
:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #10213b; background: #f4f7f8; --sticky-header-offset: 88px; }
* { box-sizing: border-box; }
html { scroll-padding-top: var(--sticky-header-offset, 88px); }
html, body { margin: 0; padding: 0; max-width: 100%; overflow-x: clip; background: #f4f7f8; color: #10213b; }
body { min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, input, select { min-height: 44px; }
select { -webkit-appearance: none; appearance: none; min-height: 44px; height: 44px; line-height: 1.2; background-image: linear-gradient(45deg, transparent 50%, #083b39 50%), linear-gradient(135deg, #083b39 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 32px !important; }
a.plain-btn, a.welcome-link, a.brand, a.fw-cta-btn, a.cert-cta, a.primary-action, a.secondary-action { min-height: 44px; }
#main-content, #lesson-stage, .guide-section { scroll-margin-top: var(--sticky-header-offset, 88px); }
.role-tip-dismiss { min-height: 44px; min-width: 44px; border: 1px solid #9abec0; border-radius: 8px; background: #fff; color: #123c45; cursor: pointer; font-weight: 800; line-height: 1; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
:focus-visible { outline: 3px solid #0b6e6d; outline-offset: 2px; }
.skip-link { position: fixed; top: 8px; left: 8px; transform: translateY(-200%); background: #0b3d4c; color: #fff; padding: 10px 16px; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; z-index: 100; border-radius: 8px; text-decoration: none; font-weight: 700; }
.skip-link:focus, .skip-link:active, .skip-link:focus-visible { transform: translateY(0); }
.sample-banner { margin: 0; padding: 8px clamp(12px, 4vw, 48px); background: #0c2231; color: #f3f7fa; font-size: .83rem; line-height: 1.4; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.sample-banner-text { flex: 1 1 20rem; text-align: left; }
.eval-switch-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 6px 14px; border-radius: 9px; border: 1.5px solid #f3bd53; background: #f3bd53; color: #082124; cursor: pointer; font-size: .84rem; font-weight: 850; white-space: nowrap; flex-shrink: 0; transition: background .15s, border-color .15s; }
.eval-switch-btn:hover { background: #ffe39e; border-color: #ffe39e; }
.editor-preview-banner { margin: 0; padding: 10px 16px; text-align: center; background: #fef3c7; color: #5c3700; border-bottom: 2px solid #d97706; font-size: .88rem; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.editor-preview-banner a { color: #083b39; font-weight: 800; text-decoration: underline; min-height: 44px; display: inline-flex; align-items: center; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; padding: 10px clamp(14px, 4vw, 48px); border-bottom: 1px solid #d5e0e6; background: #ffffff; position: sticky; top: 0; z-index: 30; }
.brand { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; font-weight: 850; font-size: 1.08rem; letter-spacing: -.02em; color: #0c1718; }
.brand-college { color: #007a5e; }
.header-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.welcome-link { display: inline-flex; align-items: center; padding: 8px 13px; border-radius: 8px; border: 1px solid #c6d6d3; background: #f8fbfc; color: #083b39; text-decoration: none; font-size: .85rem; font-weight: 750; }
.welcome-link:hover { background: #eaf5f4; border-color: #007a5e; }
.welcome-link.is-guide { background: #e8f5f0; border-color: #9ecfc2; color: #053b2f; }
/* F-14 & R-05: Compact bottom-corner dismissible role tip with automatic in-flow docking when needed */
.role-tip-bar { position: fixed; right: 16px; bottom: 16px; z-index: 45; max-width: min(300px, calc(100vw - 24px)); display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 8px 12px; background: #eef6f6; border: 1.5px solid #0b6e6d; border-radius: 12px; box-shadow: 0 10px 24px rgba(12, 34, 49, 0.2); color: #123c45; font-size: .8rem; line-height: 1.35; transition: opacity .2s ease, transform .2s ease; }
.role-tip-bar.is-bottom-left { right: auto; left: 16px; }
.role-tip-bar.is-docked { position: static; max-width: min(1400px, calc(100% - 24px)); margin: 8px auto 0; box-shadow: 0 2px 8px rgba(12, 34, 49, 0.08); border-radius: 10px; }
.role-tip-bar[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .role-tip-bar, .eval-switch-btn, .role-choice { transition: none !important; animation: none !important; }
}
.page-shell { width: 100%; margin: 0 auto; flex: 1 0 auto; }
.site-footer { padding: 26px clamp(16px, 5vw, 64px) 84px; background: #0c2231; color: #dce7ef; font-size: .88rem; line-height: 1.5; }
.site-footer strong { color: #ffffff; }
.site-footer a { color: #f4d383; }

/* R-01: High-craft Choose Your View showpiece modal */
.role-modal { width: min(620px, calc(100% - 24px)); max-height: calc(100vh - 28px); overflow-y: auto; border: 0; border-radius: 20px; padding: 0; color: #0c1718; background: #ffffff; box-shadow: 0 28px 72px rgba(4, 24, 26, .48); margin: auto; }
.role-modal::backdrop { background: rgba(4, 20, 24, .76); backdrop-filter: blur(3px); }
.role-modal-banner { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: clamp(18px, 3vw, 24px) clamp(18px, 3.5vw, 28px); background: linear-gradient(124deg, #042527 0%, #074642 68%, #0c5d54 100%); border-bottom: 4px solid #e39a1b; color: #ffffff; }
.role-modal-eyebrow { margin: 0 0 4px; font-size: .72rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; color: #f3bd53; }
.role-modal-banner h2 { margin: 0; font-size: clamp(1.35rem, 3.2vw, 1.7rem); letter-spacing: -.025em; color: #ffffff; }
.role-modal-banner .modal-close { border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.12); color: #ffffff; }
.role-modal-banner .modal-close:hover { background: rgba(255,255,255,.24); border-color: #f3bd53; }
.modal-shell { padding: clamp(16px, 3vw, 24px) clamp(18px, 3.5vw, 28px) clamp(18px, 3vw, 26px); }
.modal-close { flex: 0 0 auto; min-height: 44px; min-width: 44px; border: 1px solid #c6d6de; border-radius: 10px; background: #f8fbfc; color: #10213b; cursor: pointer; font-size: 20px; font-weight: 700; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.modal-close:hover { background: #eaf5f4; border-color: #0b6e6d; }
.modal-intro { color: #3d5256; line-height: 1.48; margin: 0 0 16px; font-size: .9rem; }
.role-list { display: grid; gap: 16px; }
.role-group { display: grid; gap: 9px; }
.role-group-heading { margin: 0; font-size: .74rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; color: #007a5e; display: flex; align-items: center; gap: 8px; }
.role-group-heading::after { content: ""; flex: 1 1 auto; height: 1px; background: #d4e2df; }
.role-choice { width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: start; text-align: left; padding: 14px 16px; border: 1.5px solid #cfe0dc; border-radius: 14px; background: #fafdfd; color: #0c1718; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s, transform .15s; }
.role-choice:hover, .role-choice:focus-visible { border-color: #007a5e; background: #eef8f5; box-shadow: 0 0 0 3px rgba(0, 122, 94, .16); }
.role-choice.is-current { border: 2px solid #083b39; background: #e8f5f0; box-shadow: inset 4px 0 0 #e39a1b; }
.role-icon-badge { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #083b39; color: #f3bd53; flex-shrink: 0; }
.role-choice.is-current .role-icon-badge { background: #007a5e; color: #ffffff; }
.role-choice-body { display: grid; gap: 3px; min-width: 0; }
.role-choice-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.role-choice strong { font-size: 1rem; color: #0c1718; }
.role-current-pill { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; background: #083b39; color: #ffffff; font-size: .68rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.role-persona { display: block; font-size: .82rem; font-weight: 700; color: #06634d; }
.role-live-line { display: inline-flex; align-items: center; gap: 6px; width: fit-content; max-width: 100%; margin-top: 3px; padding: 4px 10px; border-radius: 8px; background: #ffffff; border: 1px solid #c5ddd6; color: #083b39; font-size: .8rem; font-weight: 750; line-height: 1.35; }
.role-live-dot { width: 7px; height: 7px; border-radius: 999px; background: #007a5e; flex-shrink: 0; }
.role-desc { display: block; margin-top: 3px; color: #43575a; font-size: .82rem; line-height: 1.42; }
.modal-footer-row { display: flex; justify-content: flex-end; margin-top: 18px; padding-top: 14px; border-top: 1px solid #dce8e5; }
.modal-continue-btn { padding: 10px 18px; border-radius: 10px; border: 1.5px solid #083b39; background: #ffffff; color: #083b39; font-weight: 800; cursor: pointer; font-size: .88rem; }
.modal-continue-btn:hover { background: #e8f5f0; }

/* R-11: Polished STC-branded product pages (/accessibility, /auth/sso, 404, 429) */
.status-page-shell { width: min(1140px, calc(100% - 28px)); margin: clamp(18px, 3vw, 34px) auto clamp(40px, 5vw, 68px); display: grid; gap: 18px; min-width: 0; }
.status-page-shell > * { min-width: 0; }
.product-hero { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(14rem, .85fr); gap: clamp(14px, 3vw, 32px); align-items: end; padding: clamp(20px, 3.6vw, 36px); border-radius: 18px; background: linear-gradient(124deg, #042527 0%, #074642 68%, #0c5d54 100%); border-bottom: 5px solid #e39a1b; color: #ffffff; }
.product-hero .eyebrow { margin: 0 0 8px; font-size: .74rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; color: #b7e6df; }
.product-hero h1 { margin: 0; font-size: clamp(1.7rem, 3.8vw, 2.7rem); line-height: 1.08; letter-spacing: -.035em; color: #ffffff; }
.product-hero p { margin: 12px 0 0; color: rgba(255,255,255,.88); line-height: 1.55; max-width: 62ch; font-size: .96rem; }
.product-hero-badge { display: grid; gap: 6px; padding: 14px 16px; border-radius: 12px; background: rgba(4, 24, 28, .48); border: 1px solid rgba(255,255,255,.22); font-size: .85rem; line-height: 1.45; }
.product-hero-badge strong { color: #ffe39e; font-size: .9rem; }
.product-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.product-kpi { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid #d4e2df; border-radius: 14px; background: #ffffff; box-shadow: 0 6px 18px rgba(8, 40, 38, .05); }
.product-kpi span { font-size: .8rem; font-weight: 700; color: #43575a; }
.product-kpi strong { font-size: clamp(1.35rem, 2.5vw, 1.95rem); letter-spacing: -.03em; color: #083b39; }
.product-kpi small { font-size: .78rem; color: #465a5e; }
.product-section-card { background: #ffffff; border: 1px solid #d4e2df; border-radius: 16px; padding: clamp(18px, 3vw, 28px); box-shadow: 0 12px 30px rgba(8, 40, 38, .06); display: grid; gap: 14px; min-width: 0; }
.product-section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.product-section-head h2 { margin: 0; font-size: 1.24rem; letter-spacing: -.02em; color: #0c1718; }
.product-eyebrow { margin: 0 0 4px; font-size: .72rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; color: #007a5e; }
.pill-status { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 850; white-space: normal; max-width: 100%; overflow-wrap: anywhere; }
.pill-ready { background: #dff3ec; color: #065743; }
.pill-pending { background: #fff3d5; color: #754e0a; }
.checklist-matrix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.checklist-matrix li { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 13px 15px; border: 1px solid #d8e6e3; border-radius: 12px; background: #fafdfd; }
.checklist-matrix strong { display: block; font-size: .92rem; color: #0c1718; }
.checklist-matrix span.item-sub { display: block; margin-top: 3px; font-size: .82rem; color: #43575a; line-height: 1.4; }
.flow-steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.flow-step { padding: 14px 15px; border: 1px solid #d4e2df; border-top: 3px solid #007a5e; border-radius: 12px; background: #fafdfd; display: grid; gap: 6px; align-content: start; min-width: 0; overflow-wrap: anywhere; }
.flow-step-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 24px; border-radius: 999px; background: #dff3ec; color: #065743; font-size: .74rem; font-weight: 850; }
.flow-step strong { font-size: .92rem; color: #0c1718; }
.flow-step p { margin: 0; font-size: .82rem; color: #43575a; line-height: 1.45; }
.endpoint-table-wrap { width: 100%; overflow-x: auto; border: 1px solid #d4e2df; border-radius: 12px; }
.endpoint-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.endpoint-table th, .endpoint-table td { padding: 12px 14px; border-bottom: 1px solid #d4e2df; text-align: left; vertical-align: middle; }
.endpoint-table th { background: #f4faf8; color: #43575a; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; }
.endpoint-table tr:last-child td { border-bottom: 0; }
.endpoint-table code { font-size: .84rem; color: #083b39; font-weight: 700; word-break: break-word; }
.plain-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.plain-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border-radius: 10px; background: #083b39; color: #ffffff; text-decoration: none; font-weight: 800; border: 1.5px solid #083b39; font-size: .9rem; }
.plain-btn:hover { background: #042527; }
.plain-btn.secondary { background: #ffffff; color: #083b39; }
.plain-btn.secondary:hover { background: #eaf5f4; }
.error-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.error-info-tile { padding: 16px; border: 1px solid #d4e2df; border-radius: 12px; background: #fafdfd; }
.error-info-tile h2 { margin: 0 0 6px; font-size: 1rem; color: #083b39; }
.error-info-tile p { margin: 0; font-size: .88rem; color: #43575a; line-height: 1.5; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 900px) {
  .product-hero, .checklist-matrix, .error-card-grid { grid-template-columns: 1fr; }
  .product-kpi-grid, .flow-steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --sticky-header-offset: 16px; }
  .site-header { position: static; padding: 10px 12px; gap: 8px; }
  .sample-banner { padding: 8px 12px; }
  .eval-switch-btn { width: 100%; }
  .header-controls { width: 100%; justify-content: flex-start; }
  .modal-continue-btn { width: 100%; }
  .role-tip-bar { right: 12px; bottom: 12px; max-width: min(280px, calc(100vw - 24px)); }
  .role-tip-bar.is-bottom-left { left: 12px; right: auto; }
  .endpoint-table thead { display: none; }
  .endpoint-table, .endpoint-table tbody, .endpoint-table tr, .endpoint-table td { display: block; width: 100%; }
  .endpoint-table tr { padding: 12px; border-bottom: 1px solid #d4e2df; display: grid; gap: 6px; }
  .endpoint-table td { padding: 0; border-bottom: 0; }
}
@media (max-width: 480px) {
  .product-kpi-grid, .flow-steps-grid { grid-template-columns: 1fr; }
  .role-choice { grid-template-columns: 38px minmax(0, 1fr); padding: 12px; }
  .role-icon-badge { width: 38px; height: 38px; }
  .plain-actions .plain-btn { width: 100%; }
}
@media print { .no-print, .site-header, .sample-banner, .editor-preview-banner, .role-tip-bar, .site-footer { display: none !important; } }
