/* Small optical adjustments shared by the three editorial pages. */
::selection{background:#bfbfbf;color:#161616}
.hero h1{font-weight:400}
.button:focus-visible,.header-github:focus-visible{outline-offset:5px}
@media(min-width:1101px){.hero .hero-copy{max-width:720px}.hero-art{transform:translateY(-10px)}}
@media(max-width:360px){.header-actions{gap:5px}.header-github{padding:10px;gap:6px}.menu-trigger{padding:10px;gap:9px}.brand{font-size:18px}.hero h1{font-size:48px}}
/* Locale links stay native, visible and keyboard accessible. */
.language-switch{display:flex;align-items:center;gap:3px;font-size:11px;letter-spacing:.025em;border:1px solid #626262;border-radius:999px;padding:3px}
.language-switch a{display:grid;place-items:center;min-width:31px;min-height:31px;border-radius:999px;color:#bcbcbc}
.language-switch a[aria-current]{background:#ededed;color:#181818}
.language-switch a:hover{color:#fff;background:#494949}
.language-switch a[aria-current]:hover{background:#fff;color:#181818}
html[lang=en] .hero h1{font-size:clamp(54px,5.6vw,86px)}
html[lang=en] .hero-copy{min-width:0}
@media(max-width:1100px){.header{gap:20px}.header-nav{gap:20px}.brand small{display:none}html[lang=en] .hero h1{font-size:clamp(52px,6.1vw,70px)}}
@media(max-width:800px){.header{gap:12px}.header-nav{gap:15px}.header-github{gap:8px;padding:11px 12px}.header-actions{gap:9px}.language-switch a{min-width:28px;min-height:28px}html[lang=en] .hero h1{font-size:clamp(45px,6.5vw,57px)}}
@media(max-width:600px){.header-actions{gap:9px}.header-github{display:none}.language-switch{font-size:10px}.language-switch a{min-width:28px;min-height:28px}.hero h1{overflow-wrap:normal}html[lang=en] .hero h1{font-size:clamp(44px,11.3vw,64px)}.menu-dialog nav a{letter-spacing:-.06em}html[lang=en] .menu-dialog nav a{font-size:clamp(36px,10vw,60px)}}

/* OVPT design guide adaptation: editorial surfaces, restrained accent, clear onward links. */
:root {
  --paper: #fafaf8;
  --white: #fafaf8;
  --ink: #101010;
  --muted: #666662;
  --line: #d4d4cf;
  --dark: #161714;
  --panel: #f0f0ed;
  --accent: #e2f471;
  --gutter: clamp(20px, 3.2vw, 56px);
  font-family: Arial, Helvetica, sans-serif;
}
::selection { background: var(--accent); color: #171b07; }
:focus-visible { outline: 2px solid #5555ff; outline-offset: 5px; }
.header :focus-visible, .hero :focus-visible, .demo :focus-visible,
.site-footer :focus-visible, .page-next-link:focus-visible { outline-color: #fff; }
.page-next-link:focus-visible { outline-color: #5555ff; }
.journey-section, .system { background: var(--panel); }
.prose p, .benefit-list p, .journey-steps p, .guide-step p,
.boundary-rows p, .status-list p { color: #555550; }
.mono, .eyebrow, .section-meta, .tag, .arch-tag, .outline-tag,
.step-number, .hero-bottom, .art-caption { font-family: "Courier New", monospace; }
.button { border-radius: 6px; min-height: 54px; font-size: 14px; }
.button-light { background: var(--accent); color: #171b07; }
.button-light:hover { background: #efffa1; }
.hero .button { min-height: 54px; }
.language-switch a { min-width: 44px; min-height: 44px; }
.header-nav a { min-height: 44px; display: flex; align-items: center; }
.header-nav a[aria-current] { text-decoration-thickness: 2px; text-underline-offset: 8px; }
.page-toc {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 12px 18px;
  gap: 8px 26px;
  font-size: 13px;
}
.page-toc a { display: inline-flex; align-items: center; min-height: 44px; }
.page-toc a::after { content: "↘"; margin-left: 14px; color: var(--muted); }
.mode-tabs { border-radius: 6px; background: var(--paper); border-color: var(--line); }
.mode-tabs button { border-radius: 4px; min-height: 50px; }
.mode-tabs button[aria-selected=true] { background: var(--accent); color: #171b07; }
.mode-tabs button:focus-visible { outline-offset: 1px; }
.code-block { background: var(--panel); border-color: var(--line); border-radius: 4px; }
.note { background: #e6e9dc; border-left-color: #929f5c; color: #474b3d; }
.demo-console { border-radius: 6px; }
.demo-result {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px;
  min-height: 144px;
}
.demo-result p { color: #555550; }
.demo-result .result-sign { color: var(--ink); }
.demo-result .result-code { color: #474b3d; border-color: #b6baaa; }
.route-choice input { accent-color: var(--accent); }
.grant-button { min-height: 44px; }
.route-choice label { min-height: 44px; }
.event-log-head button { min-height: 44px; }
.page-next {
  padding: 72px var(--gutter);
  border-top: 1px solid var(--line);
  background: var(--paper);
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 8%;
}
.page-next-context .mono { color: var(--muted); font-size: 11px; }
.page-next-context p { max-width: 420px; font-size: 21px; line-height: 1.45; letter-spacing: -.025em; margin-top: 18px; }
.page-next-link {
  background: var(--dark);
  color: var(--paper);
  border-radius: 6px;
  padding: 26px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 14px 25px;
  align-items: center;
}
.page-next-link .mono { grid-column: 1; font-size: 10px; color: #c5c7b8; }
.page-next-link strong { grid-column: 1; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.15; letter-spacing: -.04em; font-weight: 400; }
.page-next-link > span:last-child { grid-column: 2; grid-row: 1/3; background: var(--accent); color: #171b07; height: 48px; display: grid; place-items: center; border-radius: 5px; font-size: 28px; }
.page-next-link:hover > span:last-child { background: #efffa1; }
.page-next-link:hover strong { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.footer-signature { display: flex; align-items: center; gap: 28px; margin: 0 0 36px; padding-top: 25px; border-top: 1px solid #ffffff30; }
.footer-signature-brand { font-size: 36px; line-height: 1; letter-spacing: -.065em; font-weight: 900; }
.footer-signature-motto { border-left: 1px solid #777970; padding-left: 28px; line-height: 1.5; }
.footer-signature-motto span { display: block; font-size: 14px; }
.footer-signature-motto small { display: block; font-size: 12px; margin-top: 5px; color: #bfc1b8; }
@media (max-width: 800px) {
  .header { gap: 14px; }
  .header-nav { gap: 17px; }
  .header-github { padding: 11px 12px; gap: 8px; }
  .header-actions { gap: 8px; }
  .page-next { grid-template-columns: 1fr; gap: 30px; padding-top: 52px; padding-bottom: 52px; }
  .page-next-context p { max-width: 600px; }
}
@media (max-width: 600px) {
  .header { min-height: 80px; padding-top: 12px; padding-bottom: 12px; }
  .language-switch { padding: 2px; gap: 0; }
  .language-switch a { min-width: 44px; min-height: 44px; }
  .menu-trigger { min-height: 44px; }
  .hero-actions .button { min-height: 54px; }
  .page-toc { padding: 9px 13px; gap: 5px 20px; font-size: 12px; }
  .mode-tabs button { min-height: 50px; }
  .demo-result { padding: 20px 16px; min-height: 170px; }
  .page-next-context p { font-size: 20px; }
  .page-next-link { padding: 23px 20px; column-gap: 16px; }
  .footer-signature { align-items: flex-start; gap: 20px; }
  .footer-signature-brand { font-size: 29px; }
  .footer-signature-motto { padding-left: 20px; }
  .footer-signature-motto span { font-size: 12px; }
  .footer-signature-motto small { font-size: 11px; }
}
@media (max-width: 360px) {
  :root { --gutter: 18px; }
  .header { gap: 8px; }
  .header-actions { gap: 6px; }
  .brand { font-size: 18px; gap: 6px; }
  .brand-symbol { width: 22px; }
  .menu-trigger { padding: 10px 8px; gap: 8px; font-size: 11px; }
  .footer-signature { flex-direction: column; }
  .footer-signature-motto { border-left: 0; padding-left: 0; }
}
