/* passivevoicedetector.com — HORIZON (StrongMocha House System, DESIGN.md Register 8, the tidvane.com look).
   Owner decision 27.09.2026. Look only: every id/class the tool scripts use is kept; copy and URLs are unchanged.
   Fonts bundled (Archivo + Instrument Sans, variable woff2, latin subset) — no CDN, no external script. */

@font-face { font-family: 'Archivo'; src: url('/assets/fonts/Archivo-var.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/assets/fonts/InstrumentSans-var.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }

.reg-horizon {
  --navy: #0F2552; --ink: #33466B; --muted: #66779A; --agate: #8A98B5;
  --line: #DCE7F4; --line-mid: #D2DEEE; --paper: #FFFFFF; --sky: #F5F9FE; --tint: #EAF3FC; --panel: #F3F8FE;
  --accent: #1F6FEB; --accent-deep: #1E4FC4; --accent-2: #2EE6D0; --accent-mid: #22C3E8;
  --grad: linear-gradient(90deg, var(--accent-2) 0%, var(--accent-mid) 45%, var(--accent) 100%);
  --grad-button: linear-gradient(90deg, #1FB5E3, #1F6FEB);
  --grad-text: linear-gradient(90deg, #1E4FC4, #1F6FEB 55%, #22A9E8);
  --ok: #059E86; --ok-bg: #E3F8F3; --hold: #B26A00; --hold-bg: #FFF4DF; --urgent: #D9304F; --urgent-bg: #FDE8EC;
  --shadow: 0 1px 2px rgba(15, 37, 82, .06), 0 10px 30px rgba(31, 79, 196, .10);
  --shadow-lift: 0 2px 4px rgba(15, 37, 82, .06), 0 18px 40px rgba(31, 79, 196, .16);
  --radius-lg: 24px; --radius: 18px; --radius-sm: 12px;
  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-ui: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --measure: 66ch;
  margin: 0; background: var(--sky);
  background-image: linear-gradient(180deg, #F3F8FE 0%, #FFFFFF 42%, #F4F9FE 100%);
  color: var(--ink); font: 400 17px/1.6 var(--font-ui);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-deep); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; color: var(--navy); letter-spacing: -.015em; line-height: 1.1; }
:focus-visible { outline: 3px solid rgba(31, 111, 235, .45); outline-offset: 3px; border-radius: 6px; }
.u-tnum { font-variant-numeric: tabular-nums; }
.u-label { font: 700 .72rem/1.3 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; }
.shell, .wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 20; background: var(--paper); color: var(--navy); padding: 10px 16px; border-radius: 12px; box-shadow: var(--shadow); font-weight: 700; }
.skip-link:focus { left: var(--gutter); top: 10px; }

/* ---------- header ---------- */
.site-header { position: relative; z-index: 3; }
.site-header .mast { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding: 14px 0; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--navy); min-height: 44px; }
.brand img { width: 36px; height: 36px; flex: none; }
.brand .brand-name { font: 700 1.02rem/1.1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.brand .brand-name em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-nav { display: flex; gap: 4px; align-items: center; }
.site-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; text-decoration: none;
  font: 500 .95rem/1 var(--font-ui); color: var(--ink); transition: background .2s var(--ease), color .2s var(--ease); }
.site-nav a:hover { color: var(--navy); background: rgba(255, 255, 255, .8); }
.site-nav a[aria-current="page"] { color: var(--navy); background: var(--paper); box-shadow: var(--shadow); font-weight: 700; }
.site-nav a[lang], .site-nav a[hreflang]:last-child { border: 1px solid var(--line-mid); background: rgba(255, 255, 255, .7); font-weight: 700; letter-spacing: .06em; }
.mast-rule { display: none; }
@media (max-width: 760px) {
  .site-header .mast { padding: 10px 0 6px; }
  .brand .brand-name { font-size: .92rem; }
  .site-nav { width: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; width: calc(100% + 2 * var(--gutter)); }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { flex: none; min-height: 38px; padding: 0 14px; font-size: .92rem; }
}

/* ---------- hero with the film band (the film never pushes the tool down) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(22px, 3.6vw, 48px) 0 clamp(78px, 8vw, 118px); }
.hero .film { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 78% 40%, #FFFFFF 0%, #EAF4FD 55%, #E3EFFB 100%); }
.hero .film canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 42%; opacity: 0; transition: opacity 1s var(--ease); }
.hero .film video { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.hero .film .on { opacity: 1; }
.hero .film::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(245, 249, 254, .97) 0%, rgba(245, 249, 254, .92) 34%, rgba(245, 249, 254, .45) 58%, rgba(245, 249, 254, .06) 82%),
              linear-gradient(180deg, #F4F9FE 0%, rgba(245, 249, 254, 0) 22%, rgba(245, 249, 254, 0) 70%, #F5F9FE 100%); }
.hero .shell { position: relative; }
.hero .kicker { display: inline-block; color: var(--ink); letter-spacing: .22em; font-weight: 500; font-size: .74rem; }
.hero h1 { margin: 14px 0 12px; max-width: 16.5em; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.04; }
.hero h1 .grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .dateline { margin: 0; max-width: 40em; font-size: clamp(1rem, 1.5vw, 1.16rem); color: var(--ink); }
@media (max-width: 900px) {
  .hero .film canvas { object-position: 64% 50%; }
  .hero .film::after { background: linear-gradient(180deg, rgba(245, 249, 254, .9) 0%, rgba(245, 249, 254, .8) 45%, rgba(245, 249, 254, .9) 78%, #F5F9FE 100%); }
}
@media (max-width: 760px) {
  .hero { padding: 14px 0 64px; }
  .hero h1 { font-size: clamp(1.7rem, 7.4vw, 2.2rem); margin: 10px 0 8px; }
  .hero .kicker { font-size: .68rem; letter-spacing: .16em; }
  .hero .dateline { font-size: .98rem; line-height: 1.5; }
}

/* ---------- tool cards ---------- */
.tool { position: relative; z-index: 2; margin-top: -54px; padding-bottom: clamp(28px, 4vw, 48px); }
.tool-grid, .results-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(16px, 2vw, 28px); align-items: start; }
@media (max-width: 1024px) { .tool-grid, .results-grid { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; padding: 12px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #FBFDFF, #F5F9FE); }
.panel-head .u-label { color: var(--navy); }
.panel-head label.u-label { display: inline-flex; align-items: center; min-height: 32px; }
.panel-body { padding: 16px 18px 18px; }
.editor-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
button.linklike, .file-label { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; margin: 0; border-radius: 999px; cursor: pointer;
  font: 600 .86rem/1 var(--font-ui); letter-spacing: 0; text-transform: none; color: var(--navy); background: var(--paper); border: 1px solid var(--line-mid);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease); }
button.linklike:hover, .file-label:hover { border-color: #A9C4EA; color: var(--accent-deep); box-shadow: 0 4px 12px rgba(31, 79, 196, .10); text-decoration: none; }
button.linklike:disabled { opacity: .6; cursor: progress; }
#btn-sample { color: #fff; border-color: transparent; background: var(--grad-button); }
#btn-sample:hover { color: #fff; box-shadow: 0 6px 16px rgba(31, 111, 235, .28); }
#input-text { display: block; width: 100%; min-height: 320px; resize: vertical; border: 1px solid var(--line-mid); border-radius: 14px; background: #FBFDFF; color: var(--navy);
  font: 400 17px/1.65 var(--font-ui); padding: 14px 16px; outline: none; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
#input-text:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(31, 111, 235, .14); background: #fff; }
#input-text::placeholder { color: var(--muted); }
#input-text.dropping { outline: 2px dashed var(--accent); outline-offset: 4px; background: var(--tint); }
.editor-meta { display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; padding-top: 12px; margin-top: 2px; color: var(--muted); font-size: .84rem; }
.file-status { color: var(--ok); font-weight: 600; }
.file-status.err { color: var(--hold); }

/* the report card */
.report-card { position: relative; }
.report-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); }
.report-card .rc-kicker { text-align: center; color: var(--muted); margin: 0; padding-top: 22px; }
.report-card .rc-title { text-align: center; font-size: 1.6rem; margin: 6px 0 2px; }
.report-card .rc-dateline { text-align: center; color: var(--muted); font-size: .88rem; margin: 0 0 18px; }
.rc-grade-row { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 0 18px 20px; }
.grade-block { display: flex; align-items: center; justify-content: center; flex: none; border-radius: 18px; color: #fff;
  font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; background: linear-gradient(135deg, #22C3E8, #1F6FEB); }
.grade-block.caution { background: linear-gradient(135deg, #F5B23D, #D98A0B); }
.grade-block.fail { background: linear-gradient(135deg, #2B4577, #0F2552); }
.grade-block.neutral { background: linear-gradient(135deg, #B7C3D8, #8A98B5); }
.rc-grade-row .grade-block { width: 92px; height: 92px; font-size: 3.1rem; box-shadow: 0 10px 24px rgba(31, 79, 196, .20); }
.rc-grade-row .rc-verdict { margin: 0; max-width: 22ch; color: var(--ink); font-size: .98rem; line-height: 1.45; }
.rc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); background: var(--panel); }
.rc-stat { padding: 14px 8px 15px; text-align: center; border-left: 1px solid var(--line); min-width: 0; }
.rc-stat:first-child { border-left: 0; }
.rc-stat .v { font: 700 clamp(1.35rem, 2.4vw, 1.8rem)/1.1 var(--font-display); color: var(--navy); font-variant-numeric: tabular-nums; }
.rc-stat .k { color: var(--muted); margin-top: 6px; font-size: .64rem; }
@media (max-width: 640px) {
  .rc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rc-stat { border-top: 1px solid var(--line); }
  .rc-stat:nth-child(-n+2) { border-top: 0; }
  .rc-stat:nth-child(3) { border-left: 0; }
}
.rc-bench { padding: 16px 18px; border-top: 1px solid var(--line); }
.bench-track { position: relative; height: 14px; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); overflow: hidden; }
.bench-fill { position: absolute; inset: 2px auto 2px 2px; border-radius: 999px; background: var(--grad); transition: width .25s var(--ease); }
.bench-fill.caution { background: linear-gradient(90deg, #F5B23D, #D98A0B); }
.bench-fill.fail { background: linear-gradient(90deg, #2B4577, #0F2552); }
.bench-marker { position: absolute; top: -1px; bottom: -1px; width: 3px; border-radius: 2px; background: var(--urgent); }
.bench-legend { display: flex; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; margin-top: 8px; color: var(--muted); font-size: .8rem; }
.rc-ratings { border-top: 1px solid var(--line); padding: 14px 18px 6px; }
.rc-ratings .ratings-kicker { color: var(--muted); margin: 0 0 8px; }
.rating-row { display: grid; grid-template-columns: 30px auto minmax(0, 1fr); gap: 2px 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.rating-row:first-of-type { border-top: 0; }
.rating-row .grade-block { width: 30px; height: 30px; border-radius: 9px; font-size: .95rem; grid-row: span 2; }
.rating-row .r-key { font-weight: 700; color: var(--navy); font-size: .95rem; }
.rating-row .r-note { grid-column: 3; min-width: 0; color: var(--muted); font-size: .84rem; }
@media (max-width: 640px) { .rating-row { grid-template-columns: 30px minmax(0, 1fr); } .rating-row .r-note { grid-column: 2; } }
.rc-actions { text-align: center; padding: 14px 18px; border-top: 1px solid var(--line); }
.rc-actions button.linklike { display: inline-flex; }
.rc-ref { text-align: center; color: var(--muted); font-size: .8rem; margin: 0; padding: 12px 18px 16px; border-top: 1px solid var(--line); }

/* AI drawer (BYOK) */
.ai-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding: 10px 12px 10px 10px;
  background: rgba(255, 255, 255, .75); border: 1px solid var(--line); border-radius: 999px; }
.ai-status { color: var(--muted); padding-right: 6px; }
.ai-status.on { color: var(--ok); }
.ai-drawer { margin-top: 12px; }
.ai-note { margin: 0 0 16px; font-size: .92rem; color: var(--ink); max-width: 76ch; }
.ai-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 834px) { .ai-fields { grid-template-columns: minmax(0, 1fr); } .ai-bar { border-radius: 20px; } }
.ai-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ai-field .u-label { color: var(--muted); }
.ai-field select, .ai-field input { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-mid); background: #FBFDFF;
  font: 400 .95rem/1.3 var(--font-ui); color: var(--navy); }
.ai-field select:focus, .ai-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(31, 111, 235, .14); }
.ai-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
#ai-save { color: #fff; border-color: transparent; background: var(--grad-button); }

/* marked copy + findings */
.results { padding-bottom: clamp(40px, 6vw, 80px); }
.marked-copy { font-size: 1.02rem; line-height: 1.8; max-width: var(--measure); white-space: pre-wrap; overflow-wrap: break-word; color: var(--navy); }
.marked-copy .empty, .findings .empty { color: var(--muted); }
mark.pv { background: rgba(34, 195, 232, .16); color: inherit; border-bottom: 2px solid var(--accent); border-radius: 4px 4px 0 0; padding: 1px 2px; cursor: pointer; }
mark.pv:hover { background: rgba(34, 195, 232, .28); }
mark.pv.active { background: var(--accent); color: #fff; }
.finding { padding: 14px 0; border-top: 1px solid var(--line); scroll-margin: 90px; }
.finding:first-child { border-top: 0; }
.finding.active { background: linear-gradient(90deg, rgba(34, 195, 232, .10), rgba(34, 195, 232, 0)); margin: 0 -18px; padding: 14px 18px; border-radius: 12px; }
.finding .f-num { font-variant-numeric: tabular-nums; color: var(--agate); font-weight: 700; margin-right: 8px; }
.finding .f-phrase { font-weight: 700; color: var(--accent-deep); cursor: pointer; }
.finding .f-sentence { display: block; color: var(--muted); font-size: .92rem; margin-top: 4px; }
.finding .f-hint { display: block; font-size: .92rem; margin-top: 6px; color: var(--ink); }
.finding .f-hint::before { content: "→ "; color: var(--accent); }
.finding .f-ai { float: right; margin: -6px 0 0 8px; }
.finding .f-ai-out { display: block; margin-top: 8px; padding: 8px 12px; border-radius: 10px; background: var(--tint); border-left: 3px solid var(--accent); font-size: .92rem; }
.finding .f-ai-out.err { border-left-color: var(--hold); background: var(--hold-bg); }
#rewrite-all-wrap { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.rewrite-output-panel { margin-top: 20px; }
#rewrite-output.err { color: var(--hold); }

/* ---------- lower sections as white cards ---------- */
.section { padding: clamp(30px, 4.4vw, 56px) 0; }
.section-kicker, .section .u-label { color: var(--accent-deep); }
.section h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin: 10px 0 18px; max-width: 26em; }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
@media (max-width: 1024px) { .cols-3 { grid-template-columns: minmax(0, 1fr); } }
.cols-3 .col { position: relative; background: var(--paper); border-radius: 20px; box-shadow: var(--shadow); padding: 24px 24px 22px; overflow: hidden; }
.cols-3 .col::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); }
.cols-3 h3 { font-size: 1.14rem; margin: 0 0 8px; }
.cols-3 p { margin: 0; font-size: .97rem; color: var(--ink); }
.section .prose { background: var(--paper); border-radius: 20px; box-shadow: var(--shadow); padding: clamp(20px, 3vw, 32px); max-width: 820px; }
.prose { max-width: var(--measure); }
.prose p, .prose li { font-size: 1.02rem; line-height: 1.7; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); margin: 1.7em 0 .5em; }
.prose h3 { font-size: 1.2rem; margin: 1.4em 0 .4em; }
.prose a { color: var(--accent); }
.prose blockquote { margin: 16px 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--accent-mid); color: var(--ink); }
.prose .example-pair { border: 1px solid var(--line); border-radius: 14px; background: #FBFDFF; margin: 14px 0; overflow: hidden; }
.prose .example-pair > div { padding: 12px 16px; }
.prose .example-pair .bad { border-bottom: 1px solid var(--line); }
.prose .example-pair .tag { display: block; margin-bottom: 4px; font: 700 .66rem/1.3 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; }
.prose .example-pair .bad .tag { color: var(--hold); }
.prose .example-pair .good .tag { color: var(--ok); }
dl.faq { max-width: var(--measure); margin: 0; }
dl.faq dt { font-weight: 700; color: var(--navy); font-size: 1.05rem; padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line); }
dl.faq dt:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
dl.faq dd { margin: 8px 0 0; color: var(--ink); }

/* ---------- inner pages: the document on a white sheet ---------- */
.page { padding: clamp(12px, 3vw, 36px) 0 clamp(56px, 8vw, 104px); }
.page .sheet { max-width: 920px; margin: 0 auto; background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(22px, 5vw, 60px); }
.page-head { padding: 0 0 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.page-head .section-kicker { color: var(--accent-deep); }
.page-head h1 { margin: 10px 0 8px; font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.06; max-width: 18em; }
.page-head .dateline { margin: 0 0 6px; color: var(--muted); }
.page .prose { max-width: none; }
.page .prose p, .page .prose li, .page .prose dl { max-width: var(--measure); }

/* ---------- footer ---------- */
.site-footer { margin-top: 0; padding: clamp(40px, 5vw, 64px) 0 26px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .7); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 28px var(--gutter); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .footer-grid .f-about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.site-footer .f-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; min-height: 44px; }
.site-footer .f-brand img { width: 34px; height: 34px; }
.site-footer .f-brand span { font: 700 .98rem/1.1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.site-footer .f-about p { margin: 12px 0 0; max-width: 34em; font-size: .95rem; color: var(--muted); }
.site-footer .u-label { display: block; color: var(--navy); margin: 6px 0 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 36px; font-size: .95rem; color: var(--ink); text-decoration: none; }
.site-footer li a:hover { color: var(--accent); }
.site-footer .f-mail { display: inline-flex; align-items: center; min-height: 40px; margin-top: 10px; font-weight: 600; overflow-wrap: anywhere; }
.registry-line { display: flex; align-items: center; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.registry-line .code { font: 500 .7rem/1.3 var(--font-ui); letter-spacing: .24em; text-transform: uppercase; }
.registry-line .code::before { content: ""; display: inline-block; width: 36px; height: 1px; background: var(--accent); vertical-align: middle; margin-right: 12px; }
.attribution { display: inline-block; padding: 9px 0; line-height: 1.2; color: var(--navy); text-decoration: underline; text-decoration-color: var(--accent-mid); text-underline-offset: 4px; }
.attribution b { font-weight: 700; }

/* ---------- 404 ---------- */
.nf { padding: clamp(24px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.nf .sheet { max-width: 760px; margin: 0 auto; text-align: center; background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(28px, 6vw, 64px); }
.nf .code-line { margin: 0; font: 500 .74rem/1.3 var(--font-ui); letter-spacing: .28em; text-transform: uppercase; color: var(--accent-deep); }
.nf h1 { margin: 14px 0; font-size: clamp(2.2rem, 6vw, 3.8rem); line-height: 1.04; }
.nf h1 em { font-style: normal; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf p { margin: 0 auto; max-width: 40em; }
.nf a.back { display: inline-flex; align-items: center; min-height: 46px; margin-top: 24px; padding: 0 24px; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 700; background: var(--grad-button); box-shadow: 0 8px 20px rgba(31, 111, 235, .25); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
.registry-id { display: inline-flex; align-items: center; gap: 6px 16px; flex-wrap: wrap; }
