:root {
  --forest-950: #061a11;
  --forest-900: #0a291b;
  --forest-800: #123d2a;
  --forest-700: #1e6043;
  --forest-100: #e9f1ec;
  --gold-500: #c49b48;
  --gold-100: #fbf5e7;
  --scarlet-600: #a20f28;
  --ink-900: #14231b;
  --ink-700: #405149;
  --ink-600: #5c6a63;
  --line: #d8e1db;
  --surface: #ffffff;
  --shadow: 0 22px 55px rgba(5, 30, 19, .13);
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink-900); background: #f2f5f3; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid #0879b3; outline-offset: 3px; }
.gateway-hero :focus-visible, .boundary-strip :focus-visible { outline-color: #f3cf70; }
.skip-link { position: fixed; z-index: 1000; left: 16px; top: -100px; padding: 10px 14px; color: #fff; background: var(--forest-900); border-radius: 7px; }
.skip-link:focus { top: 14px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

.gateway-topbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 9px max(24px, calc((100% - 1420px) / 2)); background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(6,26,17,.04); }
.brand { display: inline-flex; align-items: center; gap: 13px; min-width: 0; color: inherit; text-decoration: none; }
.brand-mark { width: 56px; height: 56px; display: grid; place-items: center; flex: 0 0 56px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 50%; }
.brand-mark img { width: 52px; height: 52px; object-fit: contain; }
.brand > span:last-child { display: grid; gap: 2px; }
.brand strong { color: var(--forest-900); font-family: Georgia, "Times New Roman", serif; font-size: 21px; letter-spacing: -.015em; }
.brand small { color: var(--ink-600); font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.knowledge-link { min-height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; color: var(--forest-800); border: 1px solid var(--line); border-radius: 7px; font-size: 12px; font-weight: 750; text-decoration: none; }
.knowledge-link:hover { background: var(--forest-100); border-color: #b9c9bf; }

.gateway-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); gap: 54px; align-items: center; min-height: 370px; padding: 58px max(28px, calc((100% - 1420px) / 2)); overflow: hidden; color: #fff; background: linear-gradient(118deg, var(--forest-950), var(--forest-800) 64%, #275a40); }
.gateway-hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -110px; top: -230px; border: 1px solid rgba(196,155,72,.2); border-radius: 50%; box-shadow: 0 0 0 60px rgba(196,155,72,.035), 0 0 0 120px rgba(196,155,72,.025); }
.hero-copy, .hero-standard { position: relative; z-index: 1; }
.eyebrow { display: block; color: #e4c77f; font-size: 10px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow.dark { color: #8b671d; }
.hero-copy h1 { max-width: 800px; margin: 13px 0 18px; font: 600 clamp(42px, 5.2vw, 70px)/.99 Georgia, "Times New Roman", serif; letter-spacing: -.045em; }
.hero-copy p { max-width: 800px; margin: 0; color: #c8d7ce; font-size: 17px; line-height: 1.65; }
.hero-standard { padding: 25px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-top: 3px solid var(--gold-500); border-radius: 11px; box-shadow: 0 18px 45px rgba(0,0,0,.14); backdrop-filter: blur(8px); }
.hero-standard > span { color: #d9c086; font-size: 9px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.hero-standard strong { display: block; margin: 8px 0 10px; font: 600 25px/1.15 Georgia, serif; }
.hero-standard p { margin: 0; color: #d5e0da; font-size: 12px; line-height: 1.65; }
.hero-standard ol { display: grid; gap: 9px; margin: 17px 0 0; padding: 14px 0 0 22px; color: #d5e0da; border-top: 1px solid rgba(255,255,255,.14); font-size: .875rem; line-height: 1.45; }
.hero-standard li { padding-left: 3px; }
.hero-standard li::marker { color: #e4c77f; font-weight: 800; }
.hero-standard b { color: #fff; }

.gateway-content { width: min(1420px, calc(100% - 56px)); margin: 0 auto; padding: 46px 0 64px; }
.public-entry { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 25px; align-items: center; padding: 30px 32px; background: var(--surface); border: 1px solid #cfdad3; border-top: 4px solid var(--scarlet-600); border-radius: 13px; box-shadow: var(--shadow); }
.entry-icon { width: 68px; height: 68px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, var(--scarlet-600), #761022); border-radius: 12px; font-family: Georgia, serif; font-size: 27px; box-shadow: 0 10px 24px rgba(130, 12, 32, .2); }
.entry-kicker { color: #8f1228; font-size: 9px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.entry-copy h2 { margin: 5px 0 7px; color: var(--forest-900); font: 600 31px/1.05 Georgia, serif; }
.entry-copy p { max-width: 850px; margin: 0; color: var(--ink-700); font-size: 13px; line-height: 1.65; }
.entry-copy ul { display: flex; flex-wrap: wrap; gap: 7px 18px; margin: 14px 0 0; padding: 0; list-style: none; color: var(--ink-600); font-size: 10px; font-weight: 700; }
.entry-copy li::before { content: "✓"; margin-right: 6px; color: var(--forest-700); }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 16px; border: 1px solid transparent; border-radius: 7px; font-size: 12px; font-weight: 800; text-decoration: none; transition: transform .16s, background .16s, border-color .16s, box-shadow .16s; }
.button:hover { transform: translateY(-1px); }
.button.primary { min-width: 220px; color: #fff; background: var(--scarlet-600); border-color: #b9485b; box-shadow: 0 8px 18px rgba(119,8,27,.18); }
.button.primary:hover { background: #871124; }
.button.secondary { width: 100%; color: var(--forest-800); background: #f8faf9; border-color: #cbd7d0; }
.button.secondary:hover { background: var(--forest-100); border-color: #a9bdb1; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin: 47px 0 18px; }
.section-heading h2 { margin: 6px 0 0; color: var(--forest-900); font: 600 30px/1.1 Georgia, serif; }
.section-heading p { max-width: 520px; margin: 0; color: var(--ink-600); font-size: 12px; text-align: right; }
.role-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.role-card { min-width: 0; display: flex; flex-direction: column; padding: 25px 24px 21px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--forest-700); border-radius: 10px; box-shadow: 0 10px 28px rgba(8,36,24,.07); }
.candidate-card { border-top-color: var(--scarlet-600); }
.admin-card { border-top-color: var(--gold-500); }
.role-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.role-number { color: #dbe4de; font: 700 36px/1 Georgia, serif; }
.role-badge { max-width: 78%; padding: 5px 8px; color: var(--forest-800); background: var(--forest-100); border: 1px solid #d5e2da; border-radius: 999px; font-size: 8px; font-weight: 850; letter-spacing: .11em; line-height: 1.35; text-align: right; text-transform: uppercase; overflow-wrap: anywhere; }
.candidate-card .role-badge { color: #8b1428; background: #f8eaec; border-color: #efd3d8; }
.admin-card .role-badge { color: #725313; background: var(--gold-100); border-color: #e9d8b3; }
.role-card h3 { margin: 15px 0 9px; color: var(--forest-900); font: 600 23px/1.08 Georgia, serif; }
.role-card > p { margin: 0; color: var(--ink-700); font-size: 11px; line-height: 1.65; }
.role-card dl { margin: 19px 0 21px; border-top: 1px solid #e5ebe7; }
.role-card dl div { display: grid; grid-template-columns: 78px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid #e5ebe7; }
.role-card dt { color: var(--ink-600); font-size: 8px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.role-card dd { margin: 0; color: var(--ink-900); font-size: 10px; font-weight: 700; }
.access-profile dd strong, .access-profile dd small { display: block; }
.access-profile dd strong { color: var(--forest-900); font-size: .9rem; line-height: 1.35; }
.access-profile dd small { margin-top: 3px; color: var(--ink-600); font-size: .75rem; font-weight: 600; line-height: 1.45; }
.role-card .button { margin-top: auto; }
.session-note { min-height: 48px; margin-top: 12px !important; padding: 9px 10px 9px 12px; color: var(--ink-600) !important; background: #f5f8f6; border-left: 3px solid #bdcac2; border-radius: 0 6px 6px 0; font-size: .75rem !important; line-height: 1.45 !important; }
.session-note.active { color: #155337 !important; background: #edf7f1; border-left-color: #2a7954; font-weight: 750; }
.session-note.limited { color: #725313 !important; background: #fcf7ea; border-left-color: #b98a2f; }
.session-note.error { color: #871124 !important; background: #fdf0f2; border-left-color: var(--scarlet-600); }

.boundary-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 25px; overflow: hidden; background: var(--forest-900); border-radius: 9px; }
.boundary-strip div { padding: 17px 19px; border-right: 1px solid rgba(255,255,255,.12); }
.boundary-strip div:last-child { border: 0; }
.boundary-strip strong, .boundary-strip span { display: block; }
.boundary-strip strong { color: #fff; font-size: 10px; }
.boundary-strip span { margin-top: 4px; color: #abc0b4; font-size: 9px; line-height: 1.45; }
footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; padding: 22px max(24px, calc((100% - 1420px) / 2)); color: #4f5f57; background: #e9eeeb; border-top: 1px solid var(--line); font-size: 9px; }
footer a { color: var(--forest-700); font-weight: 700; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Workspace routing is operational UI; keep role and privacy copy readable. */
.brand small, .eyebrow, .hero-standard > span, .entry-kicker, .role-badge, .role-card dt,
.session-note, .boundary-strip span, footer { font-size: .75rem !important; }
.knowledge-link, .hero-standard p, .entry-copy ul, .button, .section-heading p, .role-card > p,
.role-card dd, .boundary-strip strong { font-size: .875rem !important; }

@media (max-width: 980px) {
  .gateway-hero { grid-template-columns: 1fr; gap: 28px; }
  .hero-standard { max-width: 650px; }
  .public-entry { grid-template-columns: auto 1fr; }
  .public-entry .button { grid-column: 2; justify-self: start; }
  .role-grid { grid-template-columns: 1fr; }
  .role-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, .45fr); gap: 0 30px; }
  .role-head, .role-card h3, .role-card > p, .role-card dl { grid-column: 1; }
  .role-card .button, .role-card .session-note { grid-column: 2; }
  .role-card .button { grid-row: 2 / span 2; align-self: end; }
  .role-card .session-note { grid-row: 4 / span 2; align-self: start; }
  .boundary-strip { grid-template-columns: repeat(2, 1fr); }
  .boundary-strip div:nth-child(2) { border-right: 0; }
  .boundary-strip div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
}

@media (max-width: 680px) {
  .gateway-topbar { min-height: 66px; align-items: stretch; flex-wrap: wrap; gap: 7px; padding: 8px 13px; }
  .brand, .knowledge-link { width: 100%; }
  .brand-mark { width: 48px; height: 48px; flex-basis: 48px; }
  .brand-mark img { width: 44px; height: 44px; }
  .brand strong { font-size: 16px; }
  .brand small { font-size: 8px; }
  .knowledge-link { min-width: 0; justify-content: center; padding: 8px 10px; }
  .knowledge-link-label { font-size: .875rem; }
  .knowledge-link span:last-child { font-size: 1rem; }
  .gateway-hero { min-height: 0; padding: 38px 20px; }
  .hero-copy h1 { font-size: clamp(36px, 11vw, 49px); }
  .hero-copy p { font-size: 14px; }
  .gateway-content { width: min(100% - 26px, 1420px); padding: 29px 0 45px; }
  .public-entry { grid-template-columns: 1fr; padding: 24px 20px; }
  .public-entry .button { grid-column: 1; width: 100%; min-width: 0; }
  .entry-copy ul { display: grid; }
  .section-heading { display: block; margin-top: 36px; }
  .section-heading p { margin-top: 8px; text-align: left; }
  .role-card { display: flex; padding: 22px 20px 18px; }
  .role-card .button { margin-top: auto; }
  .session-note { min-height: 0; }
  .boundary-strip { grid-template-columns: 1fr; }
  .boundary-strip div, .boundary-strip div:nth-child(2), .boundary-strip div:nth-child(-n+2) { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .boundary-strip div:last-child { border-bottom: 0; }
}

@media (max-width: 360px) {
  .gateway-topbar { padding: 8px; }
  .brand-mark { width: 40px; height: 40px; flex-basis: 40px; }
  .brand-mark img { width: 37px; height: 37px; }
  .brand strong { font-size: .95rem; overflow-wrap: anywhere; }
  .knowledge-link { justify-content: center; }
  .gateway-hero { padding: 28px 8px; }
  .hero-copy h1 { font-size: 2rem; overflow-wrap: anywhere; }
  .hero-standard { padding: 18px 10px; }
  .gateway-content { width: calc(100% - 12px); }
  .public-entry, .role-card { padding-inline: 10px; }
  .entry-copy h2, .section-heading h2, .role-card h3 { overflow-wrap: anywhere; }
  .role-card dl div { grid-template-columns: 1fr; gap: 4px; }
  .role-number { font-size: 1.8rem; }
  footer { padding-inline: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
