@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=Inter:wght@400;600;700&display=swap");

:root { --blue: var(--accent); --blue-hover: #0052a3; --green: var(--pass); --amber: var(--partial); --red: var(--fail); --white: var(--bg); --max: 1200px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 400 15px/1.55 var(--font-sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.skip-link { position: absolute; z-index: 100; top: -64px; left: 16px; padding: 10px 14px; color: var(--on-accent); background: var(--accent); border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }
.site-header { position: relative; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav, .shell, .vl-wrap { width: min(calc(100% - 48px), 1200px); margin-inline: auto; }
.nav { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.brand, .footer-brand { display: inline-flex; align-items: center; }
.brand img { display: block; width: 142px; height: auto; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav-links a { color: var(--ink-2); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-cta, .button { display: inline-flex; min-height: 44px; padding: 0 18px; align-items: center; justify-content: center; border: 1px solid var(--accent); border-radius: var(--radius-sm); color: var(--on-accent); background: var(--accent); font-size: 15px; font-weight: 600; line-height: 1.2; cursor: pointer; transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease; }
.nav-cta { min-height: 40px; padding-inline: 16px; color: var(--on-accent) !important; }
.nav-cta:hover, .button:hover { color: var(--on-accent); background: var(--blue-hover); border-color: var(--blue-hover); text-decoration: none; }
.button.secondary { color: var(--accent); background: transparent; }
.button.secondary:hover { color: var(--on-accent); background: var(--accent); }
.hero { padding: 104px 0 88px; background: var(--bg); }
.hero-copy { max-width: 900px; }
.eyebrow, .card-label, .footer-title { margin: 0 0 12px; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: none; }
h1, h2, h3 { color: var(--ink); letter-spacing: -.02em; line-height: 1.16; }
h1 { margin: 0 0 20px; font-size: clamp(36px, 5.5vw, 56px); font-weight: 700; }
h2 { margin: 0 0 14px; font-size: clamp(26px, 3.2vw, 36px); font-weight: 600; }
h3 { margin: 0 0 10px; font-size: 20px; font-weight: 600; }
.lede { max-width: 760px; margin: 0; color: var(--ink-2); font-size: 19px; line-height: 1.55; }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.meta-line { margin-top: 22px; color: var(--muted); font-size: 13px; }
.section { padding: 84px 0; }
.section.gray { background: var(--surface); }
.section.dark { color: var(--ink); background: var(--surface); }
.section.dark .muted, .section.dark p { color: var(--ink-2); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head p, .muted { color: var(--muted); }
.narrow { max-width: 800px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { padding: 24px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: none; }
.gray .card { border-color: var(--line); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.number { color: var(--muted); font: 400 13px/20px var(--font-mono); }
.text-link { font-weight: 600; }
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.sticky-title { position: static; }
.stack { display: grid; gap: 16px; }
.rule-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.rule-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.check-list { padding-left: 1.2em; }
.check-list li { margin: 8px 0; }
.band { padding: 36px; display: flex; justify-content: space-between; align-items: center; gap: 28px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.band h2 { margin-bottom: 10px; }
.band p { max-width: 620px; margin: 0; color: var(--ink-2); }
.band .button { flex: 0 0 auto; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; background: var(--bg); }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 600; }
.status, .class-tag { display: inline-block; padding: 3px 8px; border: 1px solid currentColor; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; }
.status.pass { color: var(--pass); background: var(--pass-tint); }
.status.inconclusive, .status.partial { color: var(--partial); background: var(--partial-tint); }
.status.fail { color: var(--fail); background: var(--fail-tint); }
.site-footer { padding: 52px 0 28px; color: var(--ink-2); background: var(--surface); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 32px; }
.footer-brand img { width: 136px; height: auto; }
.site-footer p { max-width: 280px; color: var(--muted); font-size: 13px; }
.footer-title { color: var(--ink); }
.footer-links { display: grid; gap: 8px; }
.footer-links a { width: fit-content; color: var(--ink-2); font-size: 13px; }
.footer-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--ink); font-size: 13px; font-weight: 600; }
.field input, .field textarea, .field select { width: 100%; min-height: 44px; padding: 10px 12px; color: var(--ink); background: var(--bg); border: 1px solid var(--control-border); border-radius: var(--radius-sm); }
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field .checkbox { display: flex; align-items: start; gap: 10px; font-size: 13px; font-weight: 400; }
.field .checkbox input { width: 18px; min-height: 18px; flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--accent); }
.form-status { min-height: 20px; color: var(--ink-2); font-size: 13px; }
.notice { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.notice.info { background: var(--accent-tint); }
.notice.warning { background: var(--partial-tint); }
.reveal { opacity: 1 !important; transform: none !important; }
.rule, .method-step, .service-step, .class-card, .resource-card { box-shadow: none !important; border-radius: var(--radius-md) !important; }
.hero, .section, .band, .site-footer, .site-header { animation: none !important; backdrop-filter: none !important; }
@media (max-width: 900px) {
  .nav { gap: 18px; }
  .nav-links { gap: 16px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .nav, .shell, .vl-wrap { width: min(calc(100% - 32px), 1200px); }
  .nav { min-height: 68px; flex-wrap: wrap; padding: 12px 0; }
  .nav-links { width: 100%; order: 2; margin: 0; padding-bottom: 4px; gap: 16px; overflow-x: auto; white-space: nowrap; }
  .nav-links .nav-cta { margin-left: auto; }
  .brand img { width: 124px; }
  .hero { padding: 72px 0 64px; }
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4, .split { grid-template-columns: 1fr; gap: 18px; }
  .band { padding: 24px; align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .table-wrap { border-radius: var(--radius-sm); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ViaLayer's new editorial pages. */
.vl-page { color: var(--ink); background: var(--bg); font-family: var(--font-sans); }
.vl-positioning { max-width: 900px; margin: 0 0 20px; color: var(--muted); font-size: 13px; font-weight: 600; }
.vl-display { max-width: 900px; margin: 0 0 24px; font-size: clamp(40px, 6vw, 64px); line-height: 1.08; font-weight: 700; letter-spacing: -.025em; }
.vl-lead { max-width: 720px; margin: 0; color: var(--ink-2); font-size: 19px; line-height: 1.55; }
.vl-section { padding: 84px 0; }
.vl-section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.vl-kicker { margin: 0 0 12px; color: var(--muted); font-size: 13px; font-weight: 600; }
.vl-section-title { max-width: 760px; margin: 0 0 16px; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.2; font-weight: 600; }
.vl-section-intro { max-width: 720px; margin: 0 0 36px; color: var(--ink-2); font-size: 17px; }
.vl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.vl-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vl-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--bg); }
.vl-card__num, .vl-mono { margin: 0 0 12px; color: var(--muted); font: 400 13px/20px var(--font-mono); }
.vl-card h3 { margin: 0 0 10px; font-size: 20px; line-height: 1.35; }
.vl-card p { margin: 0; color: var(--ink-2); }
.vl-basis { margin-top: 16px !important; padding-top: 12px; color: var(--muted) !important; border-top: 1px solid var(--line); font-size: 13px; }
.vl-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.vl-service { padding: 36px 0; border-top: 1px solid var(--line); }
.vl-service:first-child { border-top: 0; }
.vl-service__body { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); gap: 48px; }
.vl-service h2 { margin: 0 0 12px; font-size: 28px; }
.vl-service__summary { color: var(--ink-2); font-size: 17px; }
.vl-service h3 { margin: 18px 0 8px; font-size: 15px; }
.vl-service p, .vl-service li { color: var(--ink-2); }
.vl-service ul { padding-left: 20px; }
.vl-service .vl-basis { color: var(--muted); }
.vl-inline-link { display: inline-block; margin-top: 14px; font-weight: 600; }
.vl-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 0; list-style: none; counter-reset: step; }
.vl-steps li { padding-top: 16px; border-top: 1px solid var(--ink); }
.vl-steps h3 { margin: 0 0 8px; font-size: 18px; }
.vl-steps p { margin: 0; color: var(--ink-2); }
.vl-tagline { max-width: 880px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 20px; font-weight: 600; }
.vl-approach-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 24px; }
.vl-approach-links a { font-weight: 600; }
.vl-footer-description { max-width: 260px; color: var(--muted); font-size: 13px; }
@media (max-width: 850px) { .vl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vl-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vl-service__body, .vl-split { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 640px) { .vl-section { padding: 64px 0; } .vl-grid, .vl-grid--2, .vl-steps { grid-template-columns: 1fr; } .vl-display { font-size: 40px; } }

/* Shared styling for retained guide and policy pages. */
.faq-list details { padding: 18px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.faq-list summary { color: var(--ink); font-size: 17px; font-weight: 600; }
.faq-list details > div { padding-top: 12px; color: var(--ink-2); }
.journal-index h2, .journal-article h1, .journal-article h2, .journal-article h3 { font-family: var(--font-sans); font-weight: 600; }
.notice.warning { color: var(--ink); background: var(--partial-tint); border-color: var(--partial); }
.notice.info { color: var(--ink); background: var(--accent-tint); border-color: var(--accent); }
.class-tag, .status.inconclusive { color: var(--partial); background: var(--partial-tint); }
.hero { padding: 128px 0 96px; }
h1 { font-size: 40px; line-height: 46px; font-weight: 600; }
h2 { font-size: 28px; line-height: 34px; }
.section { padding: 96px 0; }
.section-head { margin-bottom: 32px; }
.site-footer { padding: 48px 0 24px; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--control-border); }
.vl-display { max-width: 900px; font-size: clamp(40px, 5vw, 56px); line-height: 64px; font-weight: 700; letter-spacing: -.02em; }
.vl-section { padding: 96px 0; }
.vl-section-title { font-size: 28px; line-height: 34px; }
.vl-section-intro { margin-bottom: 48px; }
.vl-service { padding: 32px 0; }
.vl-service h3 { font-size: 20px; line-height: 28px; }
.journal-hero { padding: 96px 0; color: var(--ink); background: var(--surface); }
.journal-hero::after { content: none; }
.journal-hero h1 { color: var(--ink); font-family: var(--font-sans); font-weight: 700; letter-spacing: -.02em; }
.journal-hero .lede { color: var(--ink-2); }
.article-body p, .article-body li { color: var(--ink-2); }
.article-callout { background: var(--surface); border-left: 2px solid var(--accent); }
@media (max-width: 860px) { .nav-links a:not(.nav-cta) { display: inline-flex; } }
@media (max-width: 640px) { .hero { padding: 64px 0; } .vl-display { font-size: 40px; line-height: 46px; } }

/* Accessible, script-free navigation menus for the expanded site map. */
.nav-menu { position: relative; }
.nav-menu > summary { display: block; list-style: none; cursor: pointer; color: var(--ink-2); font-size: 14px; }
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary::after { content: "⌄"; margin-left: 6px; color: var(--muted); }
.nav-menu[open] > summary { color: var(--ink); }
.menu-panel { position: absolute; z-index: 20; top: calc(100% + 14px); left: -16px; display: grid; grid-template-columns: repeat(2, minmax(190px, 1fr)); gap: 2px; width: min(560px, calc(100vw - 48px)); padding: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-overlay); }
.menu-panel a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--ink-2); font-size: 14px; }
.menu-panel a:hover, .menu-panel a:focus-visible { color: var(--ink); background: var(--surface); text-decoration: none; }
@media (max-width: 640px) {
  .nav { align-items: center; }
  .nav-links { width: auto; flex: 1 1 100%; order: 2; margin: 0; padding: 8px 0 0; overflow: visible; flex-wrap: wrap; white-space: normal; }
  .nav-cta { margin-left: auto; }
  .menu-panel { position: static; grid-template-columns: 1fr; width: min(90vw, 420px); margin-top: 8px; box-shadow: none; }
}
@media (max-width: 380px) {
  .nav, .shell, .vl-wrap { width: calc(100% - 32px); }
  .nav-links { gap: 12px; }
  .nav-cta { min-height: 40px; padding-inline: 12px; font-size: 13px; }
}
