@font-face {
  font-family: Barlow Semi Condensed;
  src: url("assets/barlow-semi-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Instrument Sans;
  src: url("assets/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bench: #131b20;
  --bench-raised: #1a242b;
  --rail: #465159;
  --chalk: #f4f1e9;
  --chalk-muted: #bbcabf;
  --signal: #ffb373;
  --signal-strong: #ff9f52;
  --paper: #f5f2ea;
  --sheet: #fffefa;
  --ink: #18242a;
  --muted: #4a6061;
  --rule: #abb9b4;
  --ok: #225c48;
  --warn: #78371b;
  --warn-bg: #fff0dd;
  --focus: #166885;
  --heading: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --data: Consolas, "Liberation Mono", monospace;
  font: 16px/1.55 var(--body);
  color: var(--ink);
  background: var(--bench);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
[hidden] { display: none !important; }
::selection { background: #ffd5ad; color: #1a2024; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
a { color: inherit; text-underline-offset: .28em; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--heading); font-weight: 700; }
code { font-family: var(--data); }
.shell { width: min(100% - 100px, 1220px); margin-inline: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.skip-link { position: fixed; z-index: 2; top: 8px; left: 12px; transform: translateY(-150%); padding: .65rem 1rem; background: var(--chalk); }
.skip-link:focus { transform: translateY(0); }

.mast { background: var(--bench); }
.site-header, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; color: var(--chalk); }
.site-header { min-height: 76px; border-bottom: 1px solid var(--rail); }
.wordmark { display: inline-flex; align-items: center; gap: .66rem; font: 700 1.35rem/1 var(--heading); text-decoration: none; white-space: nowrap; }
.brand-mark {
  display: inline-block;
  width: 22px;
  height: 18px;
  flex: none;
  border: 2px solid var(--signal);
  border-radius: 3px;
  background: linear-gradient(var(--signal), var(--signal)) center / 9px 2px no-repeat;
}
.site-header nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); }
.site-header nav a, .site-footer a:not(.wordmark) { font-size: .88rem; text-decoration: none; }
.site-header nav a:hover, .site-footer a:hover { color: var(--signal); }
.site-header nav :focus-visible, .site-footer :focus-visible, .hero :focus-visible { outline-color: var(--signal); }
.header-action { display: inline-flex; align-items: center; gap: .7rem; min-height: 42px; padding: 0 .75rem; border: 1px solid var(--rail); border-radius: 4px; }
.arrow { display: inline-block; flex: 0 0 auto; width: 17px; height: 10px; position: relative; }
.arrow::before { content: ""; position: absolute; width: 14px; top: 4px; left: 0; border-top: 1.5px solid; }
.arrow::after { content: ""; position: absolute; top: 1px; right: 1px; width: 7px; height: 7px; border-top: 1.5px solid; border-right: 1.5px solid; transform: rotate(45deg); }

.hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(30px, 6vw, 90px); padding-block: clamp(57px, 7vw, 100px); color: var(--chalk); }
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(3.35rem, 5.41vw, 5.15rem); line-height: .98; letter-spacing: -.022em; }
.hero h1 span, .hero h1 em { display: block; }
.hero h1 em { font-style: normal; color: var(--signal); }
.hero-copy > p:not(.local-note) { max-width: 43ch; font-size: clamp(1rem, 1.3vw, 1.17rem); color: var(--chalk-muted); margin-block: 1.5rem 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  min-height: 48px;
  padding: .63rem 1rem;
  border: 1px solid transparent;
  border-radius: 4px;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 650;
  line-height: 1.18;
}
.primary { background: var(--signal); color: var(--bench); }
.primary:hover { background: #ffd1aa; }
.ghost { border-color: #839290; color: var(--chalk); background: transparent; }
.ghost:hover { border-color: var(--signal); color: var(--signal); }
.dark { background: var(--bench); color: var(--chalk); }
.dark:hover { background: #283943; }
.light { border-color: var(--rule); background: var(--sheet); color: var(--ink); }
.light:hover { background: #ebece3; }
.local-note { display: flex; align-items: center; gap: .6rem; margin-top: 1.15rem; font-size: .86rem; color: var(--chalk-muted); }
.status-light { display: inline-block; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--signal); }

.signal-sheet { border: 1px solid #53626a; border-radius: 12px; background: var(--bench-raised); min-width: 0; }
.signal-sheet figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 1rem 1.14rem; border-bottom: 1px solid var(--rail); }
.signal-sheet figcaption strong { font: 700 1.6rem/1 var(--heading); letter-spacing: .004em; }
.signal-sheet figcaption span, .signal-sheet small { color: var(--chalk-muted); font-size: .78rem; }
.signal-sheet table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .87rem; }
.signal-sheet th, .signal-sheet td { text-align: left; overflow-wrap: anywhere; }
.signal-sheet thead th { padding-block: .65rem; color: var(--chalk-muted); font-size: .75rem; font-weight: 600; }
.signal-sheet th:first-child { padding-left: 1.14rem; width: 32%; }
.signal-sheet th:last-child, .signal-sheet td:last-child { padding-right: 1rem; }
.signal-sheet th:nth-child(2) { width: 24%; }
.signal-sheet th.signal-column { width: 13%; }
.signal-sheet tbody tr { border-top: 1px solid #394750; height: 77px; }
.signal-sheet tbody tr:nth-child(2) { background: #222c32; }
.signal-sheet tbody th { font-weight: 600; }
.signal-sheet tbody th code { display: block; color: var(--chalk-muted); margin-top: .2rem; font-size: .72rem; font-weight: 400; }
.signal-sheet tbody td:nth-child(2) { padding-right: .25rem; }
.signal-sheet tbody td:last-child > span, .signal-sheet td small { display: block; }
.signal-sheet td small { margin-top: .15rem; line-height: 1.25; }
.signal-sheet .signal-difference td:last-child > span, .signal-sheet .signal-missing td:last-child > span { color: var(--signal); }
.signal { display: block; position: relative; height: 18px; margin: 0 .55rem 0 .3rem; color: var(--signal); }
.signal::before { position: absolute; content: ""; inset: 8px 0 auto; border-top: 1px solid; }
.signal::after { position: absolute; content: ""; width: 5px; height: 5px; right: 0; top: 6px; border: 1px solid; border-radius: 50%; background: var(--bench-raised); }
.signal-difference .signal::after { right: 50%; top: 3px; width: 1px; height: 12px; border: 0; border-radius: 0; background: currentColor; transform: rotate(33deg); }
.signal-missing .signal::before { border-top-style: dashed; }
.signal-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; border-top: 1px solid var(--rail); padding: .9rem 1.14rem; font-size: .77rem; color: var(--chalk-muted); }
.signal-foot strong { margin-left: auto; color: var(--signal); font-weight: 650; }

.workspace-band { background: var(--paper); border-top: 3px solid var(--signal); }
.workspace { padding-block: clamp(40px, 6vw, 76px) 38px; scroll-margin-top: 10px; }
.workspace-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 1.45rem; }
.workspace-heading h2, .method h2, .rules h2 { font-size: clamp(2.1rem, 4.5vw, 3.6rem); letter-spacing: -.015em; line-height: 1.02; }
.workspace-heading p { margin-top: .55rem; color: var(--muted); }
.subtle-link { flex-shrink: 0; font-size: .87rem; color: var(--ok); font-weight: 650; }
#check-form { background: var(--sheet); border: 1px solid var(--rule); border-radius: 10px; }
.project-line { display: flex; align-items: center; gap: 15px; border-bottom: 1px solid var(--rule); padding: 1rem 1.35rem; }
.project-line label { font-weight: 650; font-size: .9rem; }
.optional { font-size: .77rem; color: var(--muted); font-weight: 400; }
.project-line input { width: min(100%, 375px); padding: .55rem .7rem; border: 1px solid var(--rule); border-radius: 4px; background: var(--sheet); color: var(--ink); }
.project-line input::placeholder, textarea::placeholder { color: #536666; opacity: 1; }
.example-label { color: var(--warn); font-size: .8rem; font-weight: 650; }
.inline-notice { margin: .8rem 1.35rem 0; padding: .6rem .8rem; background: var(--warn-bg); color: var(--warn); font-size: .86rem; }
.registers { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.register { padding: 1.1rem 1.35rem 1.15rem; min-width: 0; }
.register + .register { border-left: 1px solid var(--rule); }
.register-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: .65rem; }
.register-heading span { font: 700 1.45rem/1 var(--heading); }
.register-heading small { font-size: .8rem; color: var(--muted); }
textarea { display: block; width: 100%; min-height: 166px; padding: .8rem; border: 1px solid var(--rule); border-radius: 4px; background: #f5f6ef; color: var(--ink); font: .8rem/1.68 var(--data); resize: vertical; tab-size: 4; }
textarea[aria-invalid="true"] { border-color: #9e452a; background: #fff8f0; }
input, textarea { caret-color: #9b4720; }
.input-help { margin-top: .7rem; font-size: .83rem; line-height: 1.5; color: var(--muted); }
.field-error { color: var(--warn); font-size: .9rem; font-weight: 650; margin-top: .55rem; }
.check-bar { padding: .83rem 1.35rem; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.2rem; }
.link-button { background: transparent; color: var(--ok); text-decoration: underline; text-underline-offset: .26em; padding: .5rem .15rem; min-height: 44px; border: 0; font-size: .88rem; font-weight: 650; text-align: left; }
.link-button:hover { color: var(--ink); }
.status { margin-block: .65rem; min-height: 1.4rem; font-size: .85rem; font-weight: 600; color: var(--muted); }
.empty-state { border-bottom: 1px solid var(--rule); padding: 1rem 0 1.55rem; display: flex; align-items: start; gap: 18px; }
.empty-rule { width: 24px; height: 12px; border-block: 1px solid var(--rule); display: inline-block; flex: none; margin-top: .5rem; }
.empty-state h3 { font-size: 1.3rem; line-height: 1.05; margin-bottom: .35rem; }
.empty-state p { color: var(--muted); font-size: .86rem; }
.results { padding-block: .75rem 1.6rem; }
.result-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.result-top h3 { font-size: clamp(2rem,4vw,3.15rem); line-height: 1; }
.result-top h3:focus { outline-offset: 6px; }
.result-top p { color: var(--muted); font-size: .9rem; margin-top: .35rem; overflow-wrap: anywhere; }
.report-actions { display: flex; flex-wrap: wrap; flex: 0 0 auto; gap: 8px; }
.export-status { margin-top: .5rem; color: var(--ok); font-size: .87rem; }
.export-status:empty { margin-top: 0; }
.result-summary { font-size: .96rem; margin-block: 1rem; padding-bottom: .9rem; border-bottom: 2px solid var(--ink); }
.stale-note, .warnings { background: var(--warn-bg); color: var(--warn); margin-block: .8rem; border: 1px solid #d8a97e; border-radius: 4px; padding: .65rem .85rem; font-size: .87rem; }
.result-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; margin-bottom: .9rem; }
.result-toolbar label { font-size: .93rem; font-weight: 650; }
.result-toolbar select { min-height: 44px; max-width: min(320px,100%); padding: .4rem .65rem; border-radius: 4px; border: 1px solid var(--rule); background: var(--sheet); color: var(--ink); }
.result-toolbar > span { color: var(--muted); font-size: .83rem; }
.result-toolbar .link-button { margin-left: auto; }
.room-section { margin-bottom: 1.5rem; }
.room-heading { display: flex; align-items: baseline; gap: .75rem; padding-bottom: .45rem; border-bottom: 1px solid var(--rule); }
.room-heading h4 { font: 700 1.55rem/1.15 var(--heading); margin: 0; overflow-wrap: anywhere; }
.room-heading span { color: var(--muted); font-size: .82rem; flex: none; }
.finding { display: grid; grid-template-columns: 168px minmax(0,1fr); gap: 20px; padding: 1rem 0; border-bottom: 1px solid var(--rule); break-inside: avoid; }
.finding-mark { display: flex; flex-direction: column; align-items: start; gap: 6px; }
.issue-code { color: var(--muted); font: .8rem var(--data); }
.issue-label { border: 1px solid #d8a97e; background: var(--warn-bg); color: var(--warn); padding: .12rem .4rem; border-radius: 3px; font-size: .78rem; font-weight: 650; }
.finding h5 { margin: 0 0 .25rem; font: 700 1.04rem var(--body); overflow-wrap: anywhere; }
.source-line { color: var(--muted); font-size: .82rem; margin-bottom: .65rem; }
.value-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem 1rem; margin: 0 0 .5rem; }
.value-pair dt { font-size: .75rem; color: var(--muted); }
.value-pair dd { margin: 0; font-size: .9rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.next-action, .room-clear { font-size: .86rem; }
.room-clear { color: var(--ok); padding: .85rem 0; }
.matched-details { border-block: 1px solid var(--rule); background: #edf1e8; }
.matched-details summary { padding: .8rem 1rem; cursor: pointer; font-weight: 650; font-size: .9rem; }
.matched-row { display: grid; grid-template-columns: 168px minmax(0,1fr); gap: 20px; border-top: 1px solid var(--rule); padding: .9rem 1rem; font-size: .88rem; overflow-wrap: anywhere; }
.matched-row small { color: var(--muted); font-size: .78rem; }
.limits { margin-top: 1.25rem; color: var(--muted); font-size: .85rem; }
.limits h4 { margin: 0 0 .25rem; color: var(--ink); }
.limits p { margin: 0 0 .35rem; }
#report-time { font-size: .8rem; }
.copy-fallback { margin-top: 1rem; }
.copy-fallback summary { cursor: pointer; padding-block: .5rem; font-size: .87rem; }
.copy-fallback textarea { min-height: 200px; margin-block: .6rem; }
.copy-fallback p { color: var(--muted); font-size: .85rem; margin-top: .6rem; }

.method { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: clamp(36px,8vw,110px); padding-block: clamp(54px,8vw,108px); color: var(--chalk); }
.method-intro h2 { max-width: 16ch; }
.method-intro p, .method-list dd { color: var(--chalk-muted); }
.method-intro p { margin-top: 1rem; max-width: 36ch; }
.method-list { margin: 0; border-top: 1px solid var(--rail); }
.method-list > div { display: grid; grid-template-columns: minmax(140px,.7fr) minmax(0,1fr); gap: 1.1rem; padding-block: 1.05rem; border-bottom: 1px solid var(--rail); align-items: baseline; }
.method-list dt { color: var(--signal); font: 700 1.3rem/1.2 var(--heading); }
.method-list dd { margin: 0; font-size: .92rem; }
.rules-band { background: #e6eae2; border-top: 1px solid #414d4e; }
.rules { display: grid; grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr); gap: clamp(28px,6vw,80px); padding-block: clamp(42px,7vw,86px); }
.rules-intro p { color: var(--muted); max-width: 32ch; margin-top: .8rem; }
.details-list { border-top: 1px solid var(--rule); }
.details-list details { border-bottom: 1px solid var(--rule); }
.details-list summary { cursor: pointer; min-height: 48px; padding: .72rem .05rem; font-weight: 650; }
.details-list details p { max-width: 65ch; color: var(--muted); padding: 0 1rem .9rem 1.08rem; font-size: .92rem; }
.footer-inner { min-height: 86px; }
.site-footer a:not(.wordmark) { display: inline-flex; align-items: center; gap: .55rem; color: var(--chalk-muted); }
.site-footer a:hover:not(.wordmark) { color: var(--signal); }

@media (max-width: 1000px) {
  .shell { width: calc(100% - 56px); }
  .hero { gap: 36px; }
}
@media (max-width: 765px) {
  .shell { width: calc(100% - 40px); }
  .hero, .method, .rules { grid-template-columns: minmax(0,1fr); }
  .hero { padding-block: 46px 42px; }
  .hero h1 { font-size: clamp(2.65rem,11.1vw,4.8rem); }
  .hero-copy > p:not(.local-note) { margin-block: 1.15rem 1.4rem; }
  .signal-sheet { max-width: 545px; }
  .site-header { min-height: 62px; }
  .site-header nav a:not(.header-action) { display: none; }
  .workspace-heading { align-items: start; flex-direction: column; gap: .6rem; }
  .method-intro h2 { max-width: 20ch; }
  .footer-inner { flex-wrap: wrap; gap: .95rem 1.3rem; min-height: 0; padding-block: 1.25rem; }
}
@media (max-width: 565px) {
  .registers { grid-template-columns: minmax(0,1fr); }
  .register + .register { border-left: 0; border-top: 1px solid var(--rule); }
  .project-line, .register, .check-bar { padding-inline: .85rem; }
  .project-line { flex-wrap: wrap; gap: .4rem .7rem; }
  .project-line input { width: 100%; font-size: 16px; }
  .check-bar > .button { width: 100%; }
  .check-bar .link-button { text-align: center; width: 100%; }
  .result-top { display: block; }
  .report-actions { margin-top: .75rem; }
  .report-actions .button { flex: 1; }
  .result-toolbar .link-button { width: 100%; margin-left: 0; }
  .finding { grid-template-columns: minmax(0,1fr); gap: .4rem; }
  .finding-mark { flex-direction: row; align-items: center; }
  .matched-row { grid-template-columns: minmax(0,1fr); gap: .25rem; }
  .method-list > div { grid-template-columns: minmax(0,1fr); gap: .35rem; }
}
@media (max-width: 420px) {
  .shell { width: calc(100% - 34px); }
  .site-header { gap: .6rem; }
  .wordmark { font-size: 1.2rem; gap: .45rem; }
  .header-action { min-height: 44px; padding-inline: .55rem; gap: .45rem; }
  .hero-actions .button { flex: 1 0 140px; gap: .44rem; padding-inline: .65rem; }
  .signal-sheet figcaption { padding-inline: .75rem; }
  .signal-sheet th:first-child { padding-left: .7rem; width: 30%; }
  .signal-sheet th:last-child, .signal-sheet td:last-child { padding-right: .52rem; }
  .signal-sheet th:nth-child(2) { width: 25%; }
  .signal-sheet table { font-size: .78rem; }
  .signal-sheet td small, .signal-sheet tbody th code { font-size: .68rem; }
  .signal-sheet figcaption strong { font-size: 1.45rem; }
  .signal-foot { gap: .35rem .7rem; padding-inline: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  :root, body, .mast, .workspace-band { background: #fff; color: #000; }
  .site-header, .hero, #check-form, .workspace-heading, .status, #empty, .report-actions,
  .result-toolbar, .copy-fallback, .export-status, .method, .rules-band, .site-footer, .skip-link { display: none !important; }
  .workspace-band { border: 0; }
  .shell.workspace { margin: 0; width: 100%; }
  .workspace, .results { padding: 0; }
  .results:not([hidden])::before { display: block; content: "AV Register Check"; font: 700 13pt var(--heading); border-bottom: 1pt solid #000; margin-bottom: 10pt; padding-bottom: 6pt; }
  .result-top h3 { font-size: 22pt; }
  .finding { grid-template-columns: 110pt 1fr; gap: 10pt; }
  .matched-details:not([open]) > :not(summary) { display: block; }
  .matched-row { display: block; break-inside: avoid; }
  .warnings, .stale-note, .matched-details, .issue-label { background: #fff; color: #000; border-color: #777; }
}


/* Keep product text upright, including browser form controls and print. */
*,*::before,*::after,::placeholder,::file-selector-button {font-style:normal!important;font-synthesis-style:none!important}
.account-summary-preview { max-height: 22rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
