.portal-page {
  --portal-ink: #102d2b;
  --portal-sand: #ede3d2;
  --portal-mist: #dce7e2;
  --portal-coral: #a34b43;
  background: var(--bone);
}

.portal-page section { scroll-margin-top: 132px; }

.portal-hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 92px;
  background: var(--teal);
  color: var(--paper);
}
.portal-hero::before {
  position: absolute;
  top: -210px;
  right: -120px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(230,211,168,.34);
  border-radius: 50%;
  content: "";
}
.portal-hero::after {
  position: absolute;
  right: 8%;
  bottom: -230px;
  width: 430px;
  height: 430px;
  border: 70px solid rgba(181,138,58,.09);
  border-radius: 50%;
  content: "";
}
.portal-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .6fr);
  align-items: end;
  gap: 70px;
}
.portal-hero .eyebrow { color: var(--gold-pale); }
.portal-hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4.4rem, 8.8vw, 8.3rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .82;
}
.portal-hero h1 em { display: block; color: var(--gold-pale); font-weight: 500; }
.portal-intro { max-width: 760px; margin: 34px 0 0; color: rgba(255,253,248,.76); font-size: 1.05rem; }
.portal-hero .button-outline { border-color: rgba(255,253,248,.5); }
.portal-hero-note {
  position: relative;
  padding: 34px 0 0 34px;
  border-top: 1px solid rgba(230,211,168,.5);
  color: var(--gold-pale);
  font-family: var(--font-display);
  font-size: 1.65rem;
  line-height: 1.2;
}
.portal-hero-note::before {
  position: absolute;
  top: 33px;
  left: 0;
  color: var(--gold);
  content: "01";
  font-family: var(--font-body);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
}
.portal-principle {
  position: relative;
  z-index: 1;
  margin: 62px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.16);
  color: rgba(255,253,248,.68);
  font-size: .84rem;
  letter-spacing: .025em;
}

.portal-nav {
  position: sticky;
  z-index: 90;
  top: 78px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(32,40,39,.14);
  background: rgba(245,240,231,.96);
  backdrop-filter: blur(14px);
}
.portal-nav .shell { display: flex; min-width: max-content; }
.portal-nav a {
  padding: 17px 16px;
  color: var(--teal);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
}
.portal-nav a:first-child { padding-left: 0; }
.portal-nav a:hover { color: var(--burgundy); }

.portal-section { padding: 112px 0; }
.portal-section.paper { background: var(--paper); }
.portal-section.mist { background: var(--portal-mist); }
.portal-section.ink { background: var(--portal-ink); color: var(--paper); }
.portal-section.ink .eyebrow { color: var(--gold-pale); }
.portal-section.ink .portal-heading { color: var(--paper); }
.portal-section.ink .portal-heading em { color: var(--gold-pale); }
.portal-section.ink .portal-lede { color: rgba(255,253,248,.68); }
.portal-section-header { display: grid; grid-template-columns: .55fr 1.25fr; gap: 70px; margin-bottom: 60px; }
.portal-kicker { color: var(--burgundy); font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.portal-heading {
  margin: 0;
  color: var(--teal);
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 5.8vw, 5.6rem);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: .94;
}
.portal-heading em { color: var(--burgundy); font-weight: 500; }
.portal-lede { max-width: 760px; margin: 24px 0 0; color: var(--muted); font-size: 1.03rem; }
.portal-copy h3 { margin: 38px 0 14px; color: var(--teal); font-family: var(--font-display); font-size: 2rem; line-height: 1.05; }
.portal-copy p { color: var(--muted); }
.portal-copy a:not(.button) { color: var(--burgundy); font-weight: 700; }

.portal-welcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.portal-list { display: grid; gap: 0; margin: 30px 0 0; padding: 0; list-style: none; }
.portal-list li { position: relative; padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line); }
.portal-list li::before { position: absolute; top: 21px; left: 2px; width: 8px; height: 8px; background: var(--gold); content: ""; transform: rotate(45deg); }
.portal-callout { padding: 44px; border-left: 7px solid var(--gold); background: var(--burgundy); color: var(--paper); }
.portal-callout small { display: block; margin-bottom: 28px; color: var(--gold-pale); font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.portal-callout p { margin: 0; font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1.02; }

.resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.resource-card { position: relative; min-height: 330px; padding: 42px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
a.resource-card { color: inherit; text-decoration: none; transition: background-color .2s ease, transform .2s ease; }
a.resource-card:hover { z-index: 1; background: var(--gold-pale); transform: translateY(-3px); }
.resource-number { color: var(--gold); font-family: var(--font-display); font-size: 1.45rem; }
.resource-card h3 { max-width: 430px; margin: 50px 0 14px; color: var(--teal); font-family: var(--font-display); font-size: 2rem; line-height: 1.02; }
.resource-card p { max-width: 500px; margin: 0; color: var(--muted); font-size: .9rem; }
.resource-card .portal-download { position: absolute; right: 42px; bottom: 34px; left: 42px; }
.portal-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--burgundy);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.portal-download small { color: var(--muted); font-size: .57rem; letter-spacing: .08em; }
.library-feature { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; margin-top: 24px; padding: 52px; background: var(--teal); color: var(--paper); }
.library-feature h3 { margin: 0; font-family: var(--font-display); font-size: 3rem; line-height: 1; }
.library-feature p { color: rgba(255,253,248,.68); }
.library-action { display: flex; align-items: center; justify-content: flex-end; }
.button[aria-disabled="true"] { opacity: .58; pointer-events: none; }

.certificate-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.certificate-panel { padding: 40px; border: 1px solid var(--line); background: var(--paper); }
.certificate-panel + .certificate-panel { margin-top: 22px; }
.certificate-panel h3 { margin: 0 0 18px; color: var(--teal); font-family: var(--font-display); font-size: 2.2rem; line-height: 1; }
.step-list { margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.step-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--muted); counter-increment: steps; }
.step-list li::before { display: grid; width: 32px; height: 32px; border: 1px solid var(--gold); border-radius: 50%; place-items: center; color: var(--burgundy); content: counter(steps); font-size: .7rem; font-weight: 700; }
.portal-notice { margin-top: 28px; padding: 24px 28px; border: 1px solid rgba(181,138,58,.5); background: #fbf5e8; color: #534a3f; font-size: .86rem; }
.portal-notice strong { color: var(--burgundy); }

.video-stage { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 430px; background: var(--teal); color: var(--paper); }
.video-coming { display: flex; flex-direction: column; justify-content: flex-end; padding: 54px; background: linear-gradient(145deg, rgba(255,255,255,.025), rgba(181,138,58,.12)); }
.play-mark { display: grid; width: 82px; height: 82px; margin-bottom: auto; border: 1px solid var(--gold-pale); border-radius: 50%; place-items: center; color: var(--gold-pale); font-size: 1.35rem; }
.video-coming h3 { margin: 30px 0 12px; font-family: var(--font-display); font-size: 3.1rem; line-height: 1; }
.video-coming p { color: rgba(255,253,248,.68); }
.video-list { display: grid; grid-template-columns: 1fr 1fr; padding: 25px; background: var(--paper); color: var(--charcoal); }
.video-list article { padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.video-list article:nth-child(2n) { border-right: 0; }
.video-list article:nth-last-child(-n+2) { border-bottom: 0; }
.video-list span { color: var(--burgundy); font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.video-list h3 { margin: 10px 0 0; color: var(--teal); font-family: var(--font-display); font-size: 1.35rem; line-height: 1.08; }
.video-list p { margin: 10px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.5; }

.faq-list { max-width: 920px; margin-left: auto; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 26px 0; color: var(--teal); font-family: var(--font-display); font-size: 1.65rem; font-weight: 600; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { color: var(--gold); content: "+"; font-family: var(--font-body); font-size: 1.3rem; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-answer { max-width: 760px; padding: 0 0 28px; color: var(--muted); }
.faq-answer .button { margin-top: 16px; }

.learning-grid { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 48px; border-top: 1px solid rgba(255,255,255,.18); border-left: 1px solid rgba(255,255,255,.18); }
.learning-grid div { min-height: 145px; padding: 28px; border-right: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); color: rgba(255,253,248,.82); font-family: var(--font-display); font-size: 1.45rem; line-height: 1.1; }

.newsletter-box { display: grid; grid-template-columns: 1fr .8fr; gap: 70px; padding: 58px; background: var(--burgundy); color: var(--paper); }
.newsletter-box h3 { margin: 0 0 15px; font-family: var(--font-display); font-size: 3.1rem; line-height: .95; }
.newsletter-box p { color: rgba(255,253,248,.72); }
.newsletter-box .portal-list { margin: 0; }
.newsletter-box .portal-list li { border-color: rgba(255,255,255,.16); }
.signup-panel { margin-top: 26px; padding: 32px; background: var(--bone); color: var(--charcoal); }
.signup-panel h4 { margin: 0; color: var(--teal); font-family: var(--font-display); font-size: 2rem; }

.journey { position: relative; display: grid; grid-template-columns: repeat(2,1fr); gap: 0 70px; }
.journey::before { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--line); content: ""; }
.journey-step { position: relative; padding: 34px 0 46px; }
.journey-step:nth-child(even) { margin-top: 100px; }
.journey-step::after { position: absolute; top: 44px; width: 13px; height: 13px; border: 3px solid var(--paper); border-radius: 50%; background: var(--gold); content: ""; }
.journey-step:nth-child(odd)::after { right: -42px; }
.journey-step:nth-child(even)::after { left: -41px; }
.journey-step time { color: var(--burgundy); font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.journey-step h3 { margin: 12px 0 5px; color: var(--teal); font-family: var(--font-display); font-size: 2rem; line-height: 1; }
.journey-step p { margin: 0 0 12px; font-weight: 700; }
.journey-step ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .88rem; }

.employer-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; }
.toolkit-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; margin-top: 55px; }
.toolkit-card { padding: 36px; background: var(--paper); }
.toolkit-card:nth-child(3n) { background: var(--teal); color: var(--paper); }
.toolkit-card h3 { margin: 0 0 20px; color: var(--teal); font-family: var(--font-display); font-size: 2rem; line-height: 1; }
.toolkit-card:nth-child(3n) h3 { color: var(--paper); }
.toolkit-card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: .88rem; }
.toolkit-card:nth-child(3n) ul { color: rgba(255,253,248,.7); }
.employer-cta { display: grid; grid-template-columns: 1.2fr .8fr; gap: 45px; margin-top: 18px; padding: 48px; background: var(--gold-pale); }
.employer-cta h3 { margin: 0; color: var(--teal); font-family: var(--font-display); font-size: 2.8rem; line-height: .98; }

.support-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; align-items: start; }
.crisis-warning { margin-bottom: 26px; padding: 24px; border-left: 6px solid var(--portal-coral); background: #f6e8e3; color: #5f302c; font-size: .86rem; }
.graduate-form { padding: 40px; border: 1px solid var(--line); background: var(--paper); }
.choice-field { display: flex; gap: 11px; align-items: flex-start; }
.choice-field input { width: auto; margin-top: 7px; }

.portal-closing { position: relative; overflow: hidden; padding: 120px 0; background: var(--burgundy); color: var(--paper); text-align: center; }
.portal-closing::before { position: absolute; inset: 28px; border: 1px solid rgba(230,211,168,.34); content: ""; }
.portal-closing .shell { position: relative; z-index: 1; }
.portal-closing .eyebrow { justify-content: center; color: var(--gold-pale); }
.portal-closing h2 { max-width: 920px; margin: 0 auto 38px; font-family: var(--font-display); font-size: clamp(4rem, 8vw, 7.5rem); font-weight: 500; letter-spacing: -.05em; line-height: .86; }
.practice-lines { margin: 0 auto 45px; color: var(--gold-pale); font-family: var(--font-display); font-size: clamp(1.65rem, 3vw, 2.4rem); line-height: 1.35; }
.signature { margin-top: 45px; font-size: .87rem; line-height: 1.8; }
.signature strong { display: block; font-family: var(--font-display); font-size: 1.8rem; }
.closing-tagline { margin-top: 38px; color: var(--gold-pale); font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.portal-disclaimer { padding: 28px 0; background: var(--portal-ink); color: rgba(255,253,248,.56); font-size: .72rem; line-height: 1.65; }

.resource-page-hero { padding: 88px 0 74px; background: var(--portal-ink); color: var(--paper); }
.resource-page-hero .eyebrow { color: var(--gold-pale); }
.resource-page-hero h1 { max-width: 970px; margin: 24px 0; font-family: var(--font-display); font-size: clamp(4rem, 8vw, 7.4rem); font-weight: 500; letter-spacing: -.055em; line-height: .86; }
.resource-page-hero h1 em { color: var(--gold-pale); font-weight: 500; }
.resource-page-hero p { max-width: 760px; color: rgba(255,253,248,.72); font-size: 1.05rem; }
.resource-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; color: rgba(255,253,248,.58); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.resource-breadcrumb a { color: var(--gold-pale); }
.resource-detail-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: start; }
.resource-preview { position: sticky; top: 138px; padding: 46px; border: 1px solid var(--line); background: var(--paper); box-shadow: 18px 18px 0 var(--gold-pale); }
.resource-preview-label { display: block; margin-bottom: 38px; color: var(--burgundy); font-size: .68rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.resource-preview h2 { margin: 0 0 26px; color: var(--teal); font-family: var(--font-display); font-size: 3rem; line-height: .95; }
.resource-preview ol { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: preview; }
.resource-preview li { display: grid; grid-template-columns: 34px 1fr; gap: 13px; color: var(--muted); counter-increment: preview; }
.resource-preview li::before { display: grid; width: 28px; height: 28px; border-radius: 50%; background: var(--gold-pale); place-items: center; color: var(--burgundy); content: counter(preview); font-size: .68rem; font-weight: 700; }
.resource-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.resource-actions .button[aria-disabled="true"] { cursor: not-allowed; }
.takeaway-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 34px 0; }
.takeaway-card { padding: 28px; border-top: 4px solid var(--gold); background: var(--portal-mist); }
.takeaway-card h3 { margin: 0 0 9px; color: var(--teal); font-family: var(--font-display); font-size: 1.7rem; line-height: 1; }
.takeaway-card p { margin: 0; color: var(--muted); font-size: .88rem; }
.link-directory { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: 42px; }
.link-group { padding: 34px; border: 1px solid var(--line); background: var(--paper); }
.link-group h3 { margin: 0 0 22px; color: var(--teal); font-family: var(--font-display); font-size: 2rem; }
.link-group ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.link-group li { border-top: 1px solid var(--line); }
.link-group a { display: flex; justify-content: space-between; gap: 18px; padding: 15px 0; color: var(--burgundy); font-size: .83rem; font-weight: 700; text-decoration: none; }
.link-group a::after { content: "↗"; }
.link-group.wvw a::after { content: "→"; }
.portal-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.portal-destination { display: flex; min-height: 270px; padding: 34px; border: 1px solid var(--line); background: var(--paper); color: inherit; text-decoration: none; flex-direction: column; }
.portal-destination small { color: var(--burgundy); font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.portal-destination h2, .portal-destination h3 { margin: auto 0 12px; color: var(--teal); font-family: var(--font-display); font-size: 2.2rem; line-height: 1; }
.portal-destination p { margin: 0; color: var(--muted); font-size: .88rem; }
.portal-destination:hover { border-color: var(--gold); background: var(--gold-pale); }
.page-callout { padding: 48px; background: var(--burgundy); color: var(--paper); }
.page-callout h2 { margin: 0 0 14px; font-family: var(--font-display); font-size: 3rem; line-height: 1; }
.page-callout p { color: rgba(255,253,248,.72); }

@media (max-width: 900px) {
  .portal-hero-grid, .portal-section-header, .portal-welcome-grid, .certificate-layout, .video-stage, .newsletter-box, .employer-intro, .employer-cta, .support-layout, .resource-detail-grid { grid-template-columns: 1fr; }
  .portal-hero-note { max-width: 520px; }
  .portal-section-header { gap: 16px; }
  .resource-grid, .toolkit-grid { grid-template-columns: 1fr; }
  .library-feature { grid-template-columns: 1fr; }
  .library-action { justify-content: flex-start; }
  .learning-grid { grid-template-columns: 1fr 1fr; }
  .portal-card-grid { grid-template-columns: 1fr 1fr; }
  .resource-preview { position: static; }
  .portal-nav { top: 78px; }
}

@media (max-width: 600px) {
  .portal-hero { padding: 80px 0 70px; }
  .portal-hero h1 { font-size: clamp(4rem, 20vw, 5.8rem); }
  .portal-hero-grid { gap: 48px; }
  .portal-principle { margin-top: 48px; }
  .portal-nav { top: 78px; }
  .portal-section { padding: 82px 0; }
  .portal-heading { font-size: 3.25rem; }
  .portal-callout, .resource-card, .certificate-panel, .video-coming, .newsletter-box, .signup-panel, .toolkit-card, .employer-cta, .graduate-form { padding: 28px 24px; }
  .resource-card { min-height: 350px; }
  .resource-card .portal-download { right: 24px; bottom: 26px; left: 24px; }
  .library-feature { padding: 32px 24px; }
  .video-list { grid-template-columns: 1fr; }
  .video-list article, .video-list article:nth-child(2n), .video-list article:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .video-list article:last-child { border-bottom: 0; }
  .learning-grid { grid-template-columns: 1fr; }
  .journey { grid-template-columns: 1fr; padding-left: 26px; }
  .journey::before { left: 5px; }
  .journey-step:nth-child(even) { margin-top: 0; }
  .journey-step:nth-child(odd)::after, .journey-step:nth-child(even)::after { top: 43px; right: auto; left: -27px; }
  .portal-closing::before { inset: 14px; }
  .portal-closing { padding: 95px 0; }
  .portal-download { align-items: flex-start; flex-direction: column; gap: 4px; }
  .takeaway-grid, .link-directory, .portal-card-grid { grid-template-columns: 1fr; }
  .resource-page-hero { padding: 70px 0 62px; }
  .resource-preview, .page-callout { padding: 30px 24px; }
}
