/* Site-wide styles: the page shell, shared parts, the home page, text pages, sign-in and message pages.
   The directory adds shops.css and the request pages add requests.css. Everything works without JavaScript.
   Structure comes from ruled lines and type size, not from cards and shadows. Print vocabulary in use:
   the registration mark, the ticket, a halftone screen on the gold band, an offset ink layer under buttons.
   Design source: design/ota (DESIGN.md, prototype/ota.css). */

/* Self-hosted faces (OFL, see fonts/*-OFL.txt). The ?v= value is a hand-kept version: raise it when a font
   file is replaced, because the server caches any ?v= URL as immutable. */
@font-face { font-family: "Shintenberg Sans TC"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ShintenbergSansTC-Regular.woff2?v=1") format("woff2"); }
@font-face { font-family: "Shintenberg Sans TC"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ShintenbergSansTC-SemiBold.woff2?v=1") format("woff2"); }
@font-face { font-family: "Shintenberg Sans TC"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/ShintenbergSansTC-Bold.woff2?v=1") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/space-grotesk-latin.woff2?v=1") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: var(--text-base); line-height: var(--leading-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); line-height: var(--leading-tight); letter-spacing: -.015em; text-wrap: balance; }
p { text-wrap: pretty; }
.container { width: 100%; max-width: calc(var(--container-max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--fg); color: var(--bg); padding: 10px 16px; }
.skip:focus { top: 12px; }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.muted { color: var(--muted); }
.small { font-size: var(--text-sm); }
.break { overflow-wrap: anywhere; }
.link { text-decoration: underline; text-decoration-color: var(--accent-line); text-decoration-thickness: 2px; text-underline-offset: 4px; font-weight: 600; }
.link:hover { background: var(--accent); color: var(--accent-on); text-decoration-color: var(--accent-on); }
.ext::after { content: " ↗"; font-family: var(--font-mono); font-weight: 400; }
.label { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rule { border: 0; border-top: 1.5px solid var(--fg); margin: 0; }
main:focus { outline: none; }
code { font-family: var(--font-code); font-size: .92em; overflow-wrap: anywhere; }
[hidden] { display: none !important; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1.5px solid var(--fg); }
.site-header .container { display: flex; align-items: center; gap: var(--space-6); min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 30px; height: 35px; flex: none; }
.brand-name { display: grid; line-height: 1.15; font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.brand-name small { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.site-nav { display: flex; gap: 22px; margin-right: auto; margin-left: 8px; }
.site-nav a { padding: 6px 0; font-weight: 600; font-size: 15px; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-color: var(--border-strong); }
.site-nav a[aria-current] { border-color: var(--accent-line); box-shadow: inset 0 -9px 0 var(--accent); }
@media (prefers-color-scheme: dark) { .site-nav a[aria-current] { box-shadow: none; color: var(--accent); } }
.header-right { display: flex; align-items: center; gap: var(--space-4); min-width: 0; }
.locale { display: flex; font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; border: 1.5px solid var(--fg); border-radius: 6px; overflow: hidden; }
.locale a { padding: 4px 10px; color: var(--muted); }
.locale a + a { border-left: 1.5px solid var(--fg); }
.locale a[aria-current] { background: var(--fg); color: var(--bg); }
.header-email { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-logout { display: contents; }

/* ---------- Buttons: flat spot colour on an offset ink layer; pressing closes the registration ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 1.5px solid var(--fg); border-radius: 8px; font-weight: 700; font-size: 16px; cursor: pointer; white-space: nowrap; background: var(--surface); color: var(--fg); transition: transform var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) var(--ease-standard); }
.btn-primary { background: var(--accent); color: var(--accent-on); border-color: var(--accent-on); box-shadow: 4px 4px 0 var(--fg); }
.btn-primary:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--fg); }
.btn-primary:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--fg); }
@media (prefers-color-scheme: dark) { .btn-primary { box-shadow: 4px 4px 0 var(--border-strong); } }
.btn-ink { background: var(--fg); color: var(--bg); }
.btn-ink:hover { background: var(--accent); color: var(--accent-on); border-color: var(--accent-on); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { border-color: var(--danger); color: var(--danger); background: transparent; }
.btn-danger:hover { background: var(--danger-soft); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 6px; }
.btn-lg { min-height: 58px; padding: 0 28px; font-size: 17px; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Small parts ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2); }
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1.5px var(--fg); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 6px; border: 1px solid var(--border-strong); background: transparent; font-size: 13px; font-weight: 600; color: var(--fg-2); white-space: nowrap; }
a.chip:hover { background: var(--accent); color: var(--accent-on); border-color: var(--accent-on); }
.chip .num { color: var(--muted); font-weight: 500; }
a.chip:hover .num { color: inherit; }
.chip[aria-current] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip[aria-current] .num { color: inherit; opacity: .7; }
.chip-outline { border-color: var(--fg); color: var(--fg); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 4px; font-family: var(--font-mono); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-ok { background: var(--success-soft); color: var(--success); }
.badge-wait { background: var(--warn-soft); color: var(--warn); }
.badge-off { background: var(--surface-3); color: var(--fg-2); }
.badge-gold { background: var(--accent); color: var(--accent-on); }
.callout { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 14px 16px; border-left: 4px solid var(--fg); background: var(--surface-2); font-size: 15px; line-height: 1.6; }
.callout svg { width: 20px; height: 20px; margin-top: 2px; }
.callout-warn { background: var(--warn-soft); color: var(--warn); border-color: var(--warn); }
.callout-warn strong { color: inherit; }
.callout-error { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); }
.callout-ok { background: var(--success-soft); color: var(--success); border-color: var(--success); }
.callout a { text-decoration: underline; text-underline-offset: 3px; }
.card { background: var(--surface); border: 1.5px solid var(--fg); border-radius: 10px; }
.section { padding-block: clamp(48px, 7vw, 96px); }
.section-head { display: grid; grid-template-columns: 180px 1fr auto; align-items: end; gap: var(--space-6); padding-bottom: 18px; border-bottom: 1.5px solid var(--fg); }
.section-head .label { align-self: start; padding-top: 14px; color: var(--fg); }
.section-head h2 { font-size: clamp(34px, 5.2vw, 68px); font-weight: 700; letter-spacing: -.025em; line-height: 1; }
.section-head p { color: var(--muted); max-width: 30ch; font-size: 15px; text-align: right; }
.facts { display: grid; }
.facts > div { display: grid; grid-template-columns: 132px 1fr; gap: var(--space-4); padding: 13px 0; border-top: 1px solid var(--border-strong); }
.facts > div:first-child { border-top: 0; }
.facts dt { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 5px; }
.facts dd { min-width: 0; overflow-wrap: anywhere; }

/* ---------- Home hero: the headline beside the print-job picker ---------- */
.hero { position: relative; padding-block: 22px clamp(36px, 5vw, 64px); }
.hero-meta { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--border-strong); }
.hero h1 { font-size: clamp(40px, 6.3vw, 90px); font-weight: 700; letter-spacing: -.035em; line-height: 1.04; margin: 0 0 clamp(18px, 2.2vw, 28px); }
:lang(en) .hero h1 { font-size: clamp(36px, 5.2vw, 74px); letter-spacing: -.045em; }
:lang(ja) .hero h1 { font-size: clamp(34px, 4.9vw, 70px); }
.hero h1 > span { display: block; }
.hero h1 > span + span { position: relative; z-index: 1; }
/* The highlight is printed slightly out of register with the type, as a second ink would be. */
.mark { position: relative; z-index: 0; white-space: nowrap; }
.mark::before { content: ""; position: absolute; z-index: -1; inset: 18% -1.5% 2% -1.5%; background: var(--accent); transform: translate(.045em, .05em); }
@media (prefers-color-scheme: dark) { .mark { color: var(--accent); } .mark::before { display: none; } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: clamp(22px, 3vw, 40px); }
.hero-lede { font-size: clamp(17px, 1.6vw, 21px); color: var(--fg-2); max-width: 26em; line-height: 1.65; }
.hero-note { margin-top: var(--space-3); font-size: 14px; color: var(--muted); }
.job { background: var(--surface); border: 1.5px solid var(--fg); border-radius: 10px; box-shadow: 8px 8px 0 var(--fg); overflow: hidden; }
@media (prefers-color-scheme: dark) { .job { box-shadow: 8px 8px 0 var(--border-strong); } }
.job-head { display: flex; justify-content: space-between; gap: 12px; padding: 11px 18px 10px; border-bottom: 1.5px solid var(--fg); background: var(--surface-2); }
.job-head .label { color: var(--fg); }
.picks { display: grid; grid-template-columns: 1fr 1fr; border: 0; margin: 0; padding: 0; min-width: 0; }
.pick { position: relative; display: flex; border-bottom: 1px solid var(--border-strong); min-width: 0; }
.pick span { flex: 1; align-content: center; }
.pick:nth-of-type(odd) { border-right: 1px solid var(--border-strong); }
.pick:nth-last-of-type(-n+2) { border-bottom: 0; }
.pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.pick span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 15px 18px 14px; font-family: var(--font-display); font-weight: 700; font-size: clamp(17px, 1.7vw, 22px); line-height: 1.25; transition: background var(--motion-fast); }
.pick span i { font-style: normal; font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--muted); }
.pick span small { font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--muted); }
.pick:hover span { background: var(--accent-soft); }
.pick input:checked + span { background: var(--fg); color: var(--bg); }
.pick input:checked + span i, .pick input:checked + span small { color: var(--accent); }
.pick input:focus-visible + span { box-shadow: inset 0 0 0 3px var(--accent); }
.job-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-top: 1.5px solid var(--fg); }
.job-foot label { display: grid; gap: 2px; padding: 12px 18px; min-width: 0; }
.job-foot label span { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.job-foot select { appearance: none; border: 0; background: transparent; font-size: 19px; font-weight: 700; width: 100%; cursor: pointer; padding: 2px 0; }
.job-foot .btn { min-height: 100%; border: 0; border-left: 1.5px solid var(--fg); border-radius: 0; box-shadow: none; }
.job-foot .btn:hover, .job-foot .btn:active { transform: none; box-shadow: none; background: var(--accent-hover); }

/* ---------- Ticket: the reference code as an object ---------- */
.ticket { background: var(--ink-panel); color: var(--ink-panel-fg); border-radius: 10px; overflow: hidden; border: 1.5px solid var(--ink-panel-border); }
.ticket-top { padding: 18px 20px 16px; }
.ticket-top small { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-panel-muted); }
.ticket-code { font-family: var(--font-mono); font-weight: 700; font-size: clamp(24px, 2.6vw, 30px); letter-spacing: .04em; color: var(--accent); margin-top: 2px; white-space: nowrap; }
.ticket-cut { position: relative; height: 0; border-top: 2px dashed var(--ink-panel-border); margin-inline: 14px; }
.ticket-cut::before, .ticket-cut::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); }
.ticket-cut::before { left: -25px; }
.ticket-cut::after { right: -25px; }
.ticket-bottom { padding: 14px 20px 18px; display: grid; gap: 4px; font-size: 13px; color: var(--ink-panel-muted); }
.ticket-bottom b { color: var(--ink-panel-fg); font-weight: 600; }

/* ---------- Stats: one ruled band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1.5px solid var(--fg); }
.stats div { padding: 22px 20px 20px; border-left: 1px solid var(--border-strong); display: grid; gap: 6px; }
.stats div:first-child { border-left: 0; padding-left: 0; }
.stats b { font-family: var(--font-mono); font-size: clamp(36px, 5vw, 64px); font-weight: 700; line-height: .95; letter-spacing: -.04em; }
.stats span { font-size: 14px; color: var(--muted); }

/* ---------- Index: big-type rows. Used for cities on the home page and on /shops ---------- */
.index { counter-reset: i; }
.index li { counter-increment: i; border-bottom: 1px solid var(--border-strong); }
.index a { position: relative; display: grid; grid-template-columns: 56px minmax(0, auto) minmax(0, 1fr) auto 28px; align-items: baseline; gap: 20px; padding: 16px 12px 14px 0; transition: padding var(--motion-base) var(--ease-standard), background var(--motion-fast); }
.index a::before { content: counter(i, decimal-leading-zero); font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .06em; padding-left: 4px; }
.index .name { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4.6vw, 60px); line-height: 1.05; letter-spacing: -.025em; }
.index .tags { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; align-self: center; }
.index .count { font-family: var(--font-mono); font-weight: 700; font-size: clamp(26px, 3.6vw, 46px); letter-spacing: -.03em; line-height: 1; }
.index .count small { font-family: var(--font-body); font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.index svg { width: 24px; height: 24px; align-self: center; transition: transform var(--motion-base) var(--ease-standard); }
.index a:hover { background: var(--accent); color: var(--accent-on); padding-left: 14px; }
.index a:hover::before, .index a:hover .tags, .index a:hover .count small { color: var(--accent-on); }
.index a:hover svg { transform: translate(3px, -3px); }
.index-sm { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; }
.index-sm a { grid-template-columns: 34px minmax(0, 1fr) auto 18px; gap: 10px; padding: 12px 8px 11px 0; }
.index-sm .name { font-size: 21px; letter-spacing: -.01em; }
.index-sm .count { font-size: 19px; }
.index-sm svg { width: 16px; height: 16px; }
.index-sm a:hover { padding-left: 8px; }
.index-cap { display: flex; justify-content: space-between; gap: 12px; padding: 22px 0 10px; border-bottom: 1.5px solid var(--fg); }

/* ---------- Steps: three ruled columns ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); counter-reset: step; }
.step { padding: 22px 28px 30px 0; border-left: 1px solid var(--border-strong); padding-left: 24px; counter-increment: step; display: grid; align-content: start; gap: 8px; }
.step:first-child { border-left: 0; padding-left: 0; }
.step::before { content: counter(step, decimal-leading-zero); font-family: var(--font-mono); font-weight: 700; font-size: clamp(56px, 7vw, 96px); line-height: .9; letter-spacing: -.05em; margin-bottom: 26px; -webkit-text-stroke: 1.5px var(--fg); color: transparent; }
.step:nth-child(2)::before { color: var(--accent); }
.step h3 { font-size: 24px; }
.step p { color: var(--fg-2); font-size: 15.5px; }

/* ---------- Honest panel + agents ---------- */
.panel-ink { background: var(--ink-panel); color: var(--ink-panel-fg); padding: clamp(28px, 4.5vw, 60px); border-radius: 10px; }
.panel-ink h2 { font-size: clamp(30px, 4.4vw, 58px); letter-spacing: -.025em; max-width: 16em; }
.panel-ink .muted { color: var(--ink-panel-muted); }
.panel-ink .label { color: var(--accent); }
.does { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); margin-top: var(--space-10); }
.does h3 { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-panel-muted); padding-bottom: 12px; display: flex; align-items: center; gap: 8px; border-bottom: 1.5px solid var(--ink-panel-fg); }
.does h3 i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.does h3 i.off { background: transparent; box-shadow: inset 0 0 0 2px var(--ink-panel-muted); }
.does li { padding: 15px 0; border-bottom: 1px solid var(--ink-panel-border); font-size: 19px; font-weight: 600; display: grid; gap: 2px; }
.does li small { color: var(--ink-panel-muted); font-size: 14px; font-weight: 400; }
.does div:last-child li { color: var(--ink-panel-muted); text-decoration: line-through; text-decoration-color: var(--ink-panel-border); }
.does div:last-child li small { text-decoration: none; display: inline-block; }
.agents { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.agents h2 { font-size: clamp(28px, 3.6vw, 46px); margin: 14px 0 12px; letter-spacing: -.02em; }
.agents p { color: var(--fg-2); max-width: 32em; }
.terminal { background: var(--ink-panel); color: var(--ink-panel-fg); border-radius: 10px; padding: 18px 20px 22px; font-family: var(--font-code); font-size: 13.5px; line-height: 1.75; overflow-x: auto; box-shadow: 6px 6px 0 var(--accent); border: 1.5px solid var(--ink-panel); }
.terminal .bar { display: flex; gap: 6px; margin-bottom: 14px; }
.terminal .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-panel-border); }
.terminal .c { color: var(--ink-panel-muted); }
.terminal .g { color: var(--accent); }
.terminal pre { margin: 0; font: inherit; white-space: pre; }
.label-box { display: inline-block; background: var(--fg); color: var(--bg); padding: 3px 8px 2px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; line-height: 1.5; }
.section-head .label-box { align-self: start; margin-top: 12px; justify-self: start; }
.panel-ink .label-box { background: var(--accent); color: var(--accent-on); }
.band-gold { --fg: #16150f; --fg-2: #16150f; --muted: #4f4100; --bg: #faf8f3; --border-strong: rgb(22 21 15 / 35%); position: relative; background: var(--accent); color: var(--fg); border-block: 1.5px solid var(--fg); padding-block: clamp(36px, 5vw, 64px); overflow: hidden; }
.band-gold::after { content: ""; position: absolute; right: 0; top: 0; width: min(46%, 560px); height: 100%; background: radial-gradient(circle at center, rgb(22 21 15 / 50%) 1.3px, transparent 1.6px) 0 0 / 10px 10px; -webkit-mask-image: linear-gradient(to left, #000, transparent); mask-image: linear-gradient(to left, #000, transparent); pointer-events: none; }
.band-gold .container { position: relative; z-index: 1; }
.band-gold .step:nth-child(2)::before { color: var(--fg); }
.step-ticket { margin-top: 16px; max-width: 320px; transform: rotate(-2deg); }
.step-ticket .ticket-cut::before, .step-ticket .ticket-cut::after { background: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(56px, 8vw, 112px); border-top: 1.5px solid var(--fg); padding-block: 40px 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-8); }
.footer-grid p { color: var(--muted); max-width: 30em; margin-top: 12px; }
.footer-col h2 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; font-weight: 600; }
.footer-col li { padding: 4px 0; }
.footer-col a:hover, .footer-bottom a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { margin-top: 36px; padding-block: 16px; border-top: 1px solid var(--border-strong); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-family: var(--font-mono); font-size: 12.5px; }

/* ---------- Page head, ruled blocks and the cards beside them (directory, requests, text pages) ---------- */
.crumbs { padding-top: 18px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--border-strong); }
.crumbs a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--fg); }
.page-head { padding-block: 22px 26px; display: grid; gap: 14px; }
.page-head h1 { font-size: clamp(36px, 6.6vw, 92px); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.page-head .lede { font-size: 18px; color: var(--fg-2); max-width: 44em; }
.page-head .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.foot-note { margin-top: 28px; font-size: 14px; color: var(--muted); max-width: 60em; }
.block { display: grid; grid-template-columns: 150px minmax(0, 1fr); column-gap: 24px; padding: 22px 0 24px; border-top: 1.5px solid var(--fg); }
.shop-main > .block:first-of-type, .shop-main > .callout + .block { border-top-width: 1px; border-color: var(--border-strong); }
.block > h2 { font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; line-height: 1.5; padding-top: 4px; grid-row: 1 / span 20; }
.block > h2 svg { display: none; }
.block > :not(h2) { grid-column: 2; }
.block > p + p, .block > p + .chips, .block > .chips + p, .block > p + dl, .block > ul + p, .block > dl + p { margin-top: 12px; }
.block .hint { font-size: 14px; color: var(--muted); }
.block-plain { display: block; border: 1.5px solid var(--fg); border-radius: 10px; padding: 22px 24px; background: var(--surface); }
.block-plain > h2 { font-family: var(--font-display); font-size: 20px; letter-spacing: -.01em; text-transform: none; padding: 0 0 10px; }
.action-card { padding: 22px; background: var(--surface); border: 1.5px solid var(--fg); border-radius: 10px; box-shadow: 6px 6px 0 var(--fg); display: grid; gap: 14px; }
@media (prefers-color-scheme: dark) { .action-card { box-shadow: 6px 6px 0 var(--border-strong); } }
.action-card h2 { font-size: 24px; letter-spacing: -.02em; }
.action-card p { font-size: 14.5px; color: var(--fg-2); line-height: 1.6; }
.action-tel { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-block: 1.5px solid var(--fg); }
.action-tel span { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: block; font-weight: 600; }
.action-tel b { font-family: var(--font-mono); font-size: 24px; letter-spacing: -.01em; }
.mini-steps { display: grid; counter-reset: m; font-size: 14px; color: var(--fg-2); }
.mini-steps li { counter-increment: m; display: grid; grid-template-columns: 28px 1fr; gap: 8px; line-height: 1.5; padding: 8px 0; border-top: 1px solid var(--border-strong); }
.mini-steps li::before { content: counter(m, decimal-leading-zero); font-family: var(--font-mono); font-weight: 700; font-size: 12.5px; color: var(--fg); padding-top: 1px; }
.source-card { padding: 20px 22px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface-2); display: grid; gap: 10px; font-size: 14.5px; }
.source-card h2 { font-size: 17px; }

/* ---------- Sign-in, text pages, message pages ---------- */
.narrow { max-width: 860px; margin-inline: auto; }
.signin { max-width: 540px; margin: clamp(32px, 6vw, 72px) auto 0; display: grid; gap: 28px; }
.signin-card { padding: clamp(24px, 4vw, 36px); background: var(--surface); border: 1.5px solid var(--fg); border-radius: 10px; box-shadow: 8px 8px 0 var(--accent), 8px 8px 0 1.5px var(--fg); display: grid; gap: 16px; }
.signin-card h1 { font-size: clamp(40px, 6vw, 60px); letter-spacing: -.03em; line-height: 1; }
.google { min-height: 56px; }
.stored li { padding: 12px 0 12px 30px; border-top: 1px solid var(--border-strong); font-size: 14.5px; position: relative; color: var(--fg-2); }
.stored li::before { content: ""; position: absolute; left: 4px; top: 20px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1.5px var(--fg); }
.stored li.no::before { background: transparent; box-shadow: inset 0 0 0 2px var(--muted); }
.progress { display: flex; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; margin-top: 6px; border: 1.5px solid var(--fg); border-radius: 6px; overflow: hidden; width: fit-content; max-width: 100%; }
.progress li { display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; color: var(--muted); border-left: 1.5px solid var(--fg); margin-left: -1.5px; }
.progress li i { font-style: normal; }
.progress li.done { color: var(--fg); background: var(--surface-2); }
.progress li.now { background: var(--accent); color: var(--accent-on); }
.submit-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; padding-top: 6px; }
.empty { padding: clamp(32px, 6vw, 72px) 24px; text-align: center; border: 1.5px dashed var(--fg); border-radius: 10px; display: grid; gap: 14px; justify-items: center; }
.empty h2 { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -.02em; }
.empty p { color: var(--muted); max-width: 34em; }
.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: clamp(24px, 5vw, 80px); align-items: start; border-top: 1.5px solid var(--fg); padding-top: 26px; }
.toc { position: sticky; top: 96px; display: grid; font-size: 14px; counter-reset: t; }
.toc h2 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; font-weight: 600; padding-bottom: 8px; border-bottom: 1px solid var(--fg); }
.toc a { counter-increment: t; padding: 8px 6px 8px 0; border-bottom: 1px solid var(--border); font-weight: 600; display: grid; grid-template-columns: 28px 1fr; }
.toc a::before { content: counter(t, decimal-leading-zero); font-family: var(--font-mono); font-size: 12px; color: var(--muted); padding-top: 2px; }
.toc a:hover { background: var(--accent); color: var(--accent-on); }
.prose { display: grid; gap: 0; counter-reset: s; }
.prose section { display: grid; gap: 12px; scroll-margin-top: 96px; padding: 0 0 34px; counter-increment: s; }
.prose section + section { border-top: 1px solid var(--border-strong); padding-top: 28px; }
.prose h2 { font-size: clamp(26px, 3.2vw, 38px); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; letter-spacing: -.02em; }
.prose ul { display: grid; gap: 8px; padding-left: 20px; list-style: square; }
.prose li::marker { color: var(--accent-line); }
.prose p, .prose li { color: var(--fg-2); font-size: 17px; }
.message { min-height: 60vh; display: grid; place-content: center; justify-items: start; gap: 16px; max-width: 760px; margin-inline: auto; }
.message .code { font-family: var(--font-mono); font-size: clamp(120px, 26vw, 320px); font-weight: 700; line-height: .82; letter-spacing: -.06em; color: var(--accent); -webkit-text-stroke: 2px var(--fg); text-shadow: 8px 8px 0 var(--fg); margin-left: -.04em; }
.message h1 { font-size: clamp(32px, 4.6vw, 56px); letter-spacing: -.03em; margin-top: 18px; }
.message p { color: var(--fg-2); font-size: 18px; }

/* Reading progress along the header's lower edge, where the browser supports scroll timelines. */
.site-header::after { content: ""; position: absolute; left: 0; bottom: -4.5px; height: 3px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
@supports (animation-timeline: scroll()) { .site-header::after { animation: progress linear both; animation-timeline: scroll(root block); } }
@keyframes progress { to { transform: scaleX(1); } }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .agents { grid-template-columns: minmax(0, 1fr); }
  .index-sm { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { grid-template-columns: minmax(0, 1fr) auto; }
  .section-head .label, .section-head .label-box { grid-column: 1 / -1; padding: 0; }
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
}
@media (max-width: 720px) {
  .site-header .container { gap: 10px; min-height: 58px; flex-wrap: wrap; padding-block: 8px; }
  .brand-name small, .header-email { display: none; }
  .header-right { display: contents; }
  .header-right > .btn { order: 2; }
  .header-right > .btn:first-of-type { margin-left: auto; }
  .site-nav { order: 3; flex: 1 1 calc(100% - 160px); margin: 0; min-width: 0; overflow-x: auto; scrollbar-width: none; gap: 16px; }
  .site-nav a { font-size: 14px; white-space: nowrap; }
  .locale { order: 4; }
  .locale a { padding: 3px 8px; }
  .hero-meta .label:last-child { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div { padding: 16px 14px; }
  .stats div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--border-strong); }
  .steps, .does, .footer-grid, .index-sm { grid-template-columns: minmax(0, 1fr); }
  .step, .step:first-child { border-left: 0; padding: 20px 0 22px; border-top: 1px solid var(--border-strong); grid-template-columns: 84px 1fr; column-gap: 12px; }
  .step:first-child { border-top: 0; }
  .step::before { grid-row: 1 / span 2; margin: 0; font-size: 52px; }
  .section-head p { display: none; }
  .index a { grid-template-columns: 30px minmax(0, 1fr) auto 20px; gap: 10px; padding: 13px 4px 12px 0; }
  .index .tags { display: none; }
  .index .count small { display: none; }
  .index svg { width: 18px; height: 18px; }
  .facts > div { grid-template-columns: 96px 1fr; gap: 10px; }
  .block, .fieldset { grid-template-columns: minmax(0, 1fr); padding: 18px 0 20px; }
  .block > h2, .fieldset > h2 { grid-row: auto; padding-bottom: 10px; }
  .fieldset > h2 { grid-template-columns: auto 1fr; align-items: end; gap: 12px; }
  .block > :not(h2), .fieldset > :not(h2) { grid-column: 1; }
  .two { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .job-foot { grid-template-columns: minmax(0, 1fr); }
  .job-foot .btn { border-left: 0; border-top: 1.5px solid var(--fg); min-height: 56px; }
  .step-ticket { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .site-header::after { animation: none; } }

/* Home details */
.panel-ink h2 { margin-top: 14px; }
.panel-ink h2 + .muted { margin-top: 8px; }
.agents-link { margin-top: 18px; }
.band-gold + .section { padding-top: clamp(48px, 7vw, 96px); }
.doc-head { padding-top: 44px; }
.signin-card form { display: grid; gap: 12px; }
.dev-login { padding: 14px 16px; border: 1.5px dashed var(--warn); border-radius: 8px; background: var(--warn-soft); color: var(--warn); font-size: 14.5px; }
.dev-login .input { color: var(--fg); }
.dev-login .btn { justify-self: start; }
p.callout { margin: 0; }
.message > h1:first-child { margin-top: 0; }
.dev-login .field { display: grid; gap: 6px; }
.dev-login .field label { font-weight: 700; font-size: 14px; }
.dev-login .input { width: 100%; min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--fg); border-radius: 8px; background: var(--surface); font-size: 16px; }
@media (prefers-color-scheme: dark) { .pick input:checked + span i, .pick input:checked + span small { color: var(--accent-ink, #7a5200); } }
