.portal {
  --portal-ink:#153a30;
  --portal-line:#d8e4d9;
  --portal-tint:#e9f3df;
  --portal-dark:#174c3e;
  background:#fcfdf9;
  color:var(--portal-ink);
}
.portal :is(h1,h2,h3) {color:inherit; text-wrap:balance}
.portal h2 {margin:0 0 1.45rem; font-size:clamp(1.75rem,3.3vw,2.85rem); line-height:1.1; letter-spacing:-.045em}
.portal h3 {margin-block:0 .65rem; line-height:1.25}
.portal p {margin-block:0 1rem}
.portal .mast-inner {min-height:78px}
.portal .brand {color:var(--portal-dark)}
.portal .menu-toggle {border-color:var(--portal-line)}
.portal .eyebrow {display:block; color:var(--portal-dark); font-size:.81rem; font-weight:800; letter-spacing:.105em}
.portal .primary,.portal .secondary {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:.65rem 1.1rem;
  font-weight:750;
  border-radius:7px;
  text-decoration:none;
}
.portal .primary {background:var(--portal-dark); color:white}
.portal .primary:hover {background:#0e392f}
.portal .secondary {background:white; border:1px solid #a4bcac}
.portal .secondary:hover {background:#f0f7ed}
.portal .actions {gap:.65rem}
.portal-hero {
  display:grid;
  align-items:center;
  gap:clamp(1rem,4.5vw,4rem);
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
}
.portal .home-hero {
  margin-block:clamp(1.1rem,2.5vw,2.25rem) 0;
  background:var(--portal-tint);
  border-radius:18px;
  overflow:hidden;
}
.hero-copy {padding:clamp(1.25rem,5vw,4.5rem)}
.portal-hero h1 {
  margin:0 0 1.15rem;
  font-size:clamp(2.55rem,5.8vw,5.1rem);
  line-height:.99;
  letter-spacing:-.075em;
}
.home-hero h1 {max-width:10ch}
.portal .portal-lead {font-size:clamp(1.1rem,1.7vw,1.32rem); line-height:1.56; max-width:51ch}
.portal-photo {margin:0; min-width:0}
.home-hero .portal-photo {align-self:stretch; min-height:29rem; position:relative}
.home-hero .portal-photo img {position:absolute; inset:0}
.portal-photo img {width:100%; height:100%; object-fit:cover}
.home-hero .portal-photo img {object-position:50% 45%}
.portal .portal-section {margin-block:clamp(3rem,6.5vw,6rem); scroll-margin-top:1.25rem}
.portal .journey-section {margin-top:clamp(2.5rem,5vw,4.5rem)}
.journey-stages {display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); padding:0; list-style:none; counter-reset:stage; gap:1.05rem; margin:0}
.journey-stages li {counter-increment:stage; border-top:1px solid #adbfad; padding:1.05rem .45rem 0 0}
.journey-stages li::before {content:counter(stage); display:grid; place-items:center; background:var(--portal-tint); width:2.1rem; height:2.1rem; border-radius:50%; font-weight:800; margin-bottom:.8rem}
.journey-stages a {display:block; margin-top:.45rem; font-weight:650}
.topic-grid {display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:1rem}
.portal .card {border:0; min-width:0; min-height:0; box-shadow:none; background:transparent; padding:0; border-radius:0}
.portal .card h3 {font-size:clamp(1.26rem,2vw,1.78rem)}
.portal .card h3 a {text-decoration:none}
.portal .card h3 a:hover {text-decoration:underline}
.portal .topic-grid .card {
  grid-column:span 2;
  padding:clamp(1.05rem,3vw,2.15rem);
  background:#f1f6ec;
  border-top:3px solid #5a8b76;
  display:flex;
  flex-direction:column;
}
.portal .topic-grid .card:nth-child(4n+2) {background:#edf4f5; border-color:#5e8794}
.portal .topic-grid .card:nth-child(4n+3) {background:#f8f3e5; border-color:#a48344}
.portal .topic-grid .card:nth-child(5) {grid-column:span 3; background:#eef2e2}
.portal .topic-grid .card:nth-child(6) {grid-column:span 3}
.portal .topic-grid .card:nth-child(4) {grid-column:span 6; display:grid; grid-template-columns:1fr 2fr; gap:.5rem 1.5rem}
.portal .topic-grid .card:nth-child(4) .topic-tool {grid-column:2}
.portal .topic-grid .card:nth-child(4) .topic-entry {grid-row:2; grid-column:1}
.portal .topic-tool {margin-top:auto; font-weight:600}
.topic-entry {font-weight:800; align-self:start}
.tool-feature {min-width:0}
.tool-feature .card p {max-width:65ch}
.tool-task {font-size:1rem; color:var(--portal-dark)}
.home-tool-lead {background:#eaf3e5; padding:clamp(1.15rem,4vw,3.1rem); border-radius:13px}
.home-tool-pair {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); margin-top:2rem; gap:clamp(1rem,5vw,4.3rem)}
.home-tool-pair .tool-feature {border-top:1px solid var(--portal-line); padding-top:1.1rem}
.tool-directory {margin-top:1.75rem}
.portal-links {list-style:none; padding:0; margin:0}
.portal-links li {margin-bottom:.65rem}
.home-editorial,.topic-editorial {display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:clamp(1rem,4vw,3.6rem)}
.home-editorial > div:first-child,.topic-editorial > div:first-child {background:#f4f0e3; padding:clamp(1rem,4vw,2.65rem); align-self:start; border-left:3px solid #a48344}
.editorial-rail > div,.reading-groups h3 {padding-top:.7rem; border-top:1px solid var(--portal-line)}
.reading-groups h3 {font-size:1.11rem}
.how-steps {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  margin:0;
  padding:1.3rem 1.3rem 1.3rem 2.4rem;
  gap:2rem;
  background:#edf4ec;
}
.how-steps li::marker {font-weight:800}
.case-study {display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.2fr); gap:clamp(1rem,4vw,3.5rem); margin-bottom:1rem; border-block:1px solid var(--portal-line); padding:1.15rem 0}
.case-study dl {margin:0}
.case-study dt,.offer-factors dt {font-weight:800}
.case-study dd,.offer-factors dd {margin:0 0 .6rem; overflow-wrap:anywhere}
.case-inputs {display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); column-gap:.8rem; font-size:.93rem}
.portal #faq {max-width:54rem}
.portal details {border-color:var(--portal-line)}
.portal summary {min-height:1.5rem}
.portal .site-footer {background:#e9f2e7}
.topic-hero {background:#edf4ec; padding:clamp(1.15rem,4vw,3.15rem); border-radius:11px; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}
.topic-hero .hero-copy {padding:0}
.topic-hero h1 {font-size:clamp(2.3rem,4.8vw,4.4rem)}
.topic-hero p {max-width:62ch}
.topic-hero .portal-photo {aspect-ratio:1.52; overflow:hidden; border-radius:8px}
.topic-hero .topic-audience {border-left:2px solid #68907b; padding-left:.7rem; font-weight:700}
.topic-hero:not(:has(figure)) {display:block}
.topic-hero:not(:has(figure)) .hero-copy {max-width:54rem}
.topic-hero:not(:has(figure)) p {max-width:70ch}
.portal .topic-workspaces {margin-top:clamp(2.3rem,5vw,4.6rem)}
.topic-workspaces .tool-feature + .tool-feature {margin-top:2.1rem}
.resume-topic .feature-skills {padding:clamp(1rem,3vw,2rem); background:#eaf2f3}
.applications-topic .topic-hero {background:#e9f2f5}
.application-flow,.milestone-flow,.story-workbench > ol {
  display:flex; flex-wrap:wrap; row-gap:.65rem; column-gap:2.75rem; padding:1.1rem 1.1rem 1.1rem 2.55rem; margin:0 0 1.4rem; background:#e9f2f5; font-weight:750
}
.applications-topic .feature-tracker {padding:clamp(1rem,3vw,2rem); background:#f2f7f8}
.interview-topic .topic-hero,.story-workbench {background:#f5f0e4}
.story-workbench {padding:clamp(1rem,3vw,2rem)}
.story-workbench > ol {background:white}
.story-workbench + .tool-feature {margin-top:2rem}
.milestone-flow {background:#e9f3df; border-bottom:3px solid #6d9378}
.transition-topic .feature-transition {padding:0 0 1.5rem; border-bottom:1px solid var(--portal-line)}
.offers-topic .topic-hero {background:#f6f2e4}
.offers-topic .feature-offers {padding:clamp(1rem,3vw,2rem); background:#f6f2e4}
.offer-factors {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.1rem; padding:1rem 0; border-bottom:1px solid var(--portal-line)}
.strategy-topic .topic-hero {background:#e8f3ec}
.planner-panel {display:grid; grid-template-columns:minmax(0,1.6fr) minmax(0,1fr); gap:1.3rem 2.5rem; background:#edf5ef; padding:clamp(1rem,3vw,2rem)}
.planner-checklist {margin:0; padding-left:1.3rem}
.planner-checklist li {padding:.35rem 0}
.reading-groups {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.3rem}
.reading-index {grid-column:1/-1}
.reading-index .grid {grid-template-columns:minmax(0,1fr); gap:0}
.reading-index .card {padding-block:.8rem; border-top:1px solid var(--portal-line)}
.reading-index .card h3 {padding-top:0; border-top:0; font-size:1.1rem}
.portal .grid .card {
  padding:clamp(.95rem,2vw,1.35rem);
  border:1px solid var(--portal-line);
  border-radius:12px;
  background:var(--white);
}
.portal .grid .card h3 {font-size:var(--fs-card);line-height:1.34}
.portal .grid .card-guide {border-inline-start:4px solid #5689ac;background:var(--blue)}
.portal .grid .card-article h3 {border-block-end:1px solid var(--portal-line)}
.portal .grid .card p:last-child {margin-block-end:0}
.portal .reading-index .grid {grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr))}
.related-topics .portal-links,.tool-directory .portal-links {display:flex; flex-wrap:wrap; gap:.5rem 1.5rem}
@media(max-width:950px) {
  .topic-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  .portal .topic-grid .card:nth-child(n) {grid-column:span 1; display:flex}
  .journey-stages {grid-template-columns:repeat(3,minmax(0,1fr))}
  .how-steps {grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem 2rem}
}
@media(max-width:700px) {
  .portal-hero,.home-tool-pair,.home-editorial,.topic-editorial,.case-study,.planner-panel {grid-template-columns:minmax(0,1fr)}
  .home-hero .portal-photo {min-height:0; aspect-ratio:1.5}
  .home-hero .hero-copy {padding-bottom:.35rem}
  .home-hero h1 {max-width:13ch}
  .portal .footer-grid {grid-template-columns:1fr}
  .portal .footer-grid > div:first-child {grid-column:auto}
  .journey-stages {grid-template-columns:1fr; padding-left:1rem; gap:1rem; border-left:1px solid #adbfad}
  .journey-stages li {border-top:0; padding:0}
  .journey-stages li::before {float:left; margin-right:.7rem}
  .journey-stages h3 {padding-top:.3rem; margin-bottom:.95rem}
  .journey-stages p {clear:both}
  .how-steps {grid-template-columns:1fr}
}
@media(max-width:470px) {
  .portal .topic-grid,.reading-groups,.offer-factors {grid-template-columns:1fr}
  .portal-hero .actions a {width:100%}
}
