/* Shared stylesheet for the three prototypes: offer pages, operator tools and printable reports.
   Each prototype copies this file to public/ui.css and inlines it into generated reports
   so a report is one self-contained HTML file. */

:root {
  --paper: #f6f3ec;
  --surface: #ffffff;
  --ink: #17201c;
  --muted: #5d6963;
  --line: #d9d4c7;
  --accent: #0d5c46;
  --accent-ink: #ffffff;
  --accent-soft: #e2efe8;
  --good: #1f6b45;
  --good-soft: #e0efe5;
  --warn: #8a5a00;
  --warn-soft: #f7ebcf;
  --bad: #a3271c;
  --bad-soft: #f8e1dd;
  --radius: 6px;
  --wrap: 1080px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
}
img { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 46ch; }
h1 + .lede { margin-top: 18px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.eyebrow { font: 600 0.78rem/1 var(--sans); letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }

/* Top bar */
.bar { border-bottom: 1px solid var(--line); background: var(--paper); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.mark { font: 600 1.05rem var(--serif); color: var(--ink); text-decoration: none; }
.bar nav { display: flex; gap: 20px; flex-wrap: wrap; }
.bar nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; padding: 10px 0; }
.bar nav a:hover { text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border: 1px solid var(--accent); border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink);
  font: 600 1rem var(--sans); text-decoration: none; cursor: pointer;
  transition: transform 120ms ease, background 120ms ease;
}
.btn:hover { background: #0a4a39; transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #e0a12b; outline-offset: 2px;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Sections */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }
.hero { padding: 80px 0 72px; }
.hero .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.stack > * + * { margin-top: 16px; }
.section-head { max-width: 60ch; margin-bottom: 36px; }
.section-head p { color: var(--muted); margin-top: 12px; }

/* Cards and panels */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: 8px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel-head { padding: 12px 16px; border-bottom: 1px solid var(--line); font: 600 0.8rem var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }
.panel-body { padding: 16px; }
.price { font: 600 2.4rem/1 var(--serif); }
.price small { font: 400 1rem var(--sans); color: var(--muted); }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 10px 0; border-bottom: 1px solid var(--line); }
ul.plain li:last-child { border-bottom: 0; }
ul.check { list-style: none; padding: 0; margin: 0; }
ul.check li { padding: 6px 0 6px 26px; position: relative; }
ul.check li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 12px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
ul.cross li::before { width: 12px; height: 0; top: 17px; border-left: 0; border-bottom: 2px solid var(--muted); transform: none; }

/* Steps */
ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 20px; }
ol.steps li { counter-increment: step; padding-left: 52px; position: relative; }
ol.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); display: grid; place-items: center; font: 600 0.95rem var(--sans); }

/* Forms */
form.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label, fieldset legend { font-weight: 600; font-size: 0.95rem; }
.field .hint { font-size: 0.85rem; color: var(--muted); }
.field .error { font-size: 0.85rem; color: var(--bad); }
input[type=text], input[type=url], input[type=email], input[type=number], input[type=date], input[type=datetime-local], input[type=tel], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  border: 1px solid #b9b3a3; border-radius: var(--radius);
  background: var(--surface); color: var(--ink); font: inherit;
}
textarea { min-height: 110px; resize: vertical; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 0; display: grid; gap: 16px; }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.checkline { display: flex; gap: 10px; align-items: flex-start; }
.checkline input { margin-top: 5px; width: 18px; height: 18px; }

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 0.78rem var(--sans); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.total td { font-weight: 600; border-top: 2px solid var(--ink); }
.table-scroll { overflow-x: auto; }

/* Status */
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font: 600 0.75rem/1.6 var(--sans); letter-spacing: 0.03em; white-space: nowrap; }
.pill.pass { background: var(--good-soft); color: var(--good); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.fail { background: var(--bad-soft); color: var(--bad); }
.pill.info { background: var(--accent-soft); color: var(--accent); }
.notice { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 12px 16px; border-radius: 0 var(--radius) var(--radius) 0; }
.notice.warn { border-color: var(--warn); background: var(--warn-soft); }
.notice.bad { border-color: var(--bad); background: var(--bad-soft); }
.sample-flag { display: inline-block; background: var(--warn-soft); color: var(--warn); border: 1px dashed var(--warn); border-radius: var(--radius); padding: 2px 8px; font: 600 0.75rem var(--sans); letter-spacing: 0.05em; text-transform: uppercase; }
blockquote.answer { margin: 0; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.95rem; }
code, .mono { font-family: var(--mono); font-size: 0.88em; }
mark { background: #ffe9a8; padding: 0 2px; }

/* Bars for simple comparisons */
.barline { display: grid; grid-template-columns: 150px 1fr 56px; gap: 10px; align-items: center; padding: 5px 0; font-size: 0.92rem; }
.barline .track { height: 12px; background: #ebe7dc; border-radius: 6px; overflow: hidden; }
.barline .fill { height: 100%; background: var(--muted); border-radius: 6px; }
.barline.you .fill { background: var(--accent); }
.barline .val { text-align: right; font-variant-numeric: tabular-nums; }

/* Big numbers */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat .n { font: 600 2rem/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.stat .l { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.stat.bad .n { color: var(--bad); }
.stat.good .n { color: var(--good); }

/* Report sheet */
.report { background: var(--paper); padding: 32px 16px; }
.sheet { background: var(--surface); border: 1px solid var(--line); max-width: 860px; margin: 0 auto 24px; padding: 48px 52px; }
.sheet h1 { font-size: 2rem; }
.sheet h2 { font-size: 1.35rem; margin: 32px 0 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.sheet h2:first-of-type { border-top: 0; padding-top: 0; }
.sheet h3 { margin: 20px 0 6px; }
.sheet-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 2px solid var(--ink); }
.sheet-meta { font-size: 0.85rem; color: var(--muted); text-align: right; }
.finding { padding: 14px 0; border-bottom: 1px solid var(--line); }
.finding:last-child { border-bottom: 0; }
.finding-head { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; }
.finding .evidence { font-size: 0.9rem; color: var(--muted); margin: 6px 0; }
.finding .fix { font-size: 0.95rem; }
.footnote { font-size: 0.8rem; color: var(--muted); margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); }

footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 0.875rem; }

@media (max-width: 820px) {
  .hero .grid, .split, .cols-3, .stats, .row-2, .row-3 { grid-template-columns: minmax(0, 1fr); }
  section { padding: 52px 0; }
  .hero { padding: 48px 0; }
  .sheet { padding: 28px 20px; }
  .sheet-head { flex-direction: column; }
  .sheet-meta { text-align: left; }
  .barline { grid-template-columns: 110px 1fr 48px; }
  .actions .btn { width: 100%; }
  .bar .wrap { flex-wrap: wrap; padding-top: 12px; padding-bottom: 8px; row-gap: 0; }
  .bar nav { gap: 4px 18px; width: 100%; }
  .bar nav a { padding: 8px 0; }
}

@media print {
  body, .report { background: #fff; padding: 0; }
  .sheet { border: 0; margin: 0; padding: 0; max-width: none; page-break-after: always; }
  .sheet:last-child { page-break-after: auto; }
  .no-print { display: none !important; }
  a { color: inherit; text-decoration: none; }
  .finding, .stat, table tr { break-inside: avoid; }
  @page { margin: 18mm 16mm; }
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:hover, .btn:active { transform: none; }
}

/* Brass Tab’s public site and screen editions of the report. */
:root {
  --paper: #fcfbf7;
  --ink: #242b30;
  --muted: #565b5e;
  --line: #d7d5ce;
  --accent: #3c4549;
  --wrap: 1248px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --serif: "Iowan Old Style", Georgia, serif;
}
.wrap { padding-inline: clamp(20px, 4.4vw, 60px); }
.skip { position: fixed; top: -85px; left: 12px; z-index: 10; background: white; color: var(--ink); padding: 10px 18px; }
.skip:focus { top: 10px; }
.bar .wrap { min-height: 72px; gap: 24px; }
.mark { display: inline-flex; align-items: center; gap: 11px; min-height: 44px; font: 650 24px/1 var(--sans); letter-spacing: -.065em; }
.brand-glyph { display: inline-block; width: 21px; height: 25px; position: relative; border: 1.7px solid var(--ink); border-radius: 2px; }
.brand-glyph::after { content: ""; position: absolute; top: 5px; right: -6px; width: 10px; height: 7px; background: #d6ad61; border: 1px solid #77571f; border-radius: 0 3px 3px 0; }
.bar nav { margin-inline-start: auto; align-items: center; gap: 28px; }
.bar nav a, .nav-action { font: 570 .92rem/1.35 var(--sans); }
.bar nav a { display: inline-flex; align-items: center; min-height: 44px; }
.nav-action { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; color: var(--paper); background: var(--ink); padding: 8px 17px; text-decoration: none; border-radius: 4px; }
.nav-action:hover { background: #3d494b; }
.eyebrow, .sheet-kicker, .folder-tab { font: 580 .71rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .085em; }
h2, h3 { font-family: var(--sans); letter-spacing: -.039em; }
section h2 { font-size: clamp(33px, 3.35vw, 47px); font-weight: 570; line-height: 1.08; }
.cover { color: #faf8ef; background: #222d30; padding: 0; }
.cover-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); align-items: center; gap: clamp(28px,5vw,82px); padding-block: clamp(54px,6vw,90px); }
.cover .eyebrow { color: #e0cba2; }
.cover h1 { font: 530 clamp(48px,4.8vw,72px)/1.04 var(--sans); letter-spacing: -.058em; margin: 16px 0 20px; text-wrap: initial; }
.cover h1 em { display: block; font: italic 400 1.07em/.99 var(--serif); letter-spacing: -.052em; }
.cover-copy > p:not(.sample-terms) { max-width: 44ch; color: #e2e4dd; font-size: clamp(17px,1.34vw,20px); line-height: 1.53; }
.cover .actions { gap: 11px 20px; align-items: center; margin-top: 26px; }
.btn { font: 580 .94rem/1.3 var(--sans); border-radius: 4px; }
.btn:hover { transform: none; background: #313e40; }
.btn.bright { color: #29271e; background: #edcc8d; border-color: #edcc8d; }
.btn.bright:hover { color: #17160f; background: #f6dca9; border-color: #f6dca9; }
.text-link, .inline-link, .entry-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 560 .94rem/1.4 var(--sans); }
.text-link { color: #f7f4e9; text-decoration-color: #b1b6aa; }
.inline-link, .entry-link { color: var(--ink); text-decoration-color: #93948b; }
.text-link:hover, .inline-link:hover, .entry-link:hover { text-decoration-color: currentColor; text-decoration-thickness: 2px; }
.cover-copy > .sample-terms { color: #d4d6cd; font-size: .8rem; margin: 13px 0 0; }
.folio-stage { min-width: 0; padding: 25px 0 0; }
.folder { position: relative; width: min(100%,420px); margin-inline: auto 0; background: #f8f5e9; color: var(--ink); border: 1px solid #a69b83; border-radius: 0 3px 3px; box-shadow: 0 8px 19px #080d0f26; }
.folder-tab { position: absolute; bottom: 100%; left: -1px; padding: 6px 14px 5px; color: #2d291f; background: #e2c185; border-radius: 3px 7px 0 0; }
.folder-sheet { padding: clamp(20px,2.1vw,32px); }
.sheet-kicker { color: #585a50; font-size: .66rem; }
.folder h2 { font: 400 clamp(27px,2.5vw,37px)/1.13 var(--serif); letter-spacing: -.045em; margin-top: 9px; }
.domain { color: #53584f; font-size: .79rem; margin: 4px 0 0; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; border-block: 1px solid #c4c3b8; padding: 12px 0; margin: 20px 0 16px; }
.metrics div { display: flex; flex-direction: column; }
.metrics div + div { border-left: 1px solid #c4c3b8; padding-left: 18px; }
.metrics dt { font-size: .76rem; }
.metrics dd { order: -1; margin: 0; font: 500 29px/1.15 var(--sans); letter-spacing: -.045em; }
.metrics small { font: 400 .83rem/1.2 var(--sans); color: var(--muted); letter-spacing: normal; }
.index-label { display: inline-flex; align-items: center; gap: 7px; font-size: .75rem; font-weight: 620; }
.index-label::before, .priority-heading::before { content: ""; display: inline-block; width: 16px; height: 9px; background: #dfb967; border: 1px solid #78571e; border-radius: 0 3px 3px 0; }
.priority-heading::before { margin-right: 9px; }
.priority-note h3 { font: 560 clamp(18px,1.5vw,23px)/1.18 var(--sans); letter-spacing: -.035em; margin: 4px 0 5px; }
.priority-note p { font-size: .86rem; color: #4a514c; margin: 0; }
.folder-link { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 8px clamp(20px,2.1vw,32px); border-top: 1px solid #c4c3b8; color: var(--ink); text-decoration: none; font-weight: 560; font-size: .88rem; }
.folder-link:hover { background: #efe9d8; text-decoration: underline; }
.section-top, .price-list li, footer.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.intro { margin: 14px 0 22px; max-width: 59ch; color: var(--muted); font-size: 1.05rem; }
.queues { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(22px,4.2vw,64px); margin-top: 32px; }
.queue { border-top: 2px solid var(--ink); padding-top: 14px; min-width: 0; }
.queue h3 { font-size: 1.55rem; }
.queue-reason { color: var(--muted); font-size: .94rem; margin: 7px 0 12px; }
.queue-count { color: #525a54; font: 500 .77rem/1.5 var(--mono); margin: 0 0 7px; }
.file, .method-list details { border-top: 1px solid var(--line); }
.file:last-child, .method-list details:last-child { border-bottom: 1px solid var(--line); }
.file summary, .method-list summary { cursor: pointer; list-style: none; min-height: 46px; }
.file summary::-webkit-details-marker, .method-list summary::-webkit-details-marker { display: none; }
.file summary { display: grid; grid-template-columns: 16px minmax(0,1fr) 12px; align-items: center; gap: 10px; padding: 12px 5px 12px 0; }
.file-tab { width: 14px; height: 9px; border: 1px solid #77786f; border-radius: 0 3px 3px 0; transform: scaleX(.6); transform-origin: left center; }
.file[open] .file-tab { transform: scaleX(1); background: #dfb967; border-color: #765721; }
.file-name { font: 575 1rem/1.35 var(--sans); overflow-wrap: anywhere; }
.file-name small { display: block; margin-top: 3px; color: var(--muted); font: 400 .81rem/1.4 var(--sans); }
.disclosure-chevron, .method-list summary::after { width: 8px; height: 8px; border: solid #58605b; border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); }
.file[open] .disclosure-chevron, .method-list details[open] summary::after { transform: rotate(45deg); }
.file-body { margin: 0 0 13px 26px; padding-inline-start: 13px; border-inline-start: 2px solid #bf9a55; }
.file-body p { margin: 0 0 3px; font-size: .93rem; }
.file-body .file-source { color: var(--muted); font-size: .83rem; overflow-wrap: anywhere; }
.file-source code { font-size: 1em; }
.entry-link { font-size: .86rem; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.downloads { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 22px; }
.tinted { background: #f1efe8; }
.method-list summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 5px 14px 0; font-weight: 560; }
.method-list summary::after { content: ""; flex: none; }
.method-list details p, .method-list details ul { color: #49514e; }
.price-list { list-style: none; padding: 0; margin: 0 0 14px; border-top: 2px solid var(--ink); }
.price-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.price-list strong { font: 500 1.55rem/1.25 var(--sans); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.field { align-content: start; min-width: 0; }
.field :is(input,select) { border-color: #81857b; }
.field [aria-invalid=true] { border: 2px solid var(--bad); }
#request-errors { padding: 14px 18px; color: var(--ink); background: #fff9f6; border-left: 4px solid var(--bad); }
#request-errors h3 { font-size: 1.05rem; }
#request-errors ul { margin: 6px 0 0; padding-left: 20px; }
#request-errors a { color: var(--bad); }
@media (pointer:coarse) {
  #request-errors a { display: inline-flex; align-items: center; min-height: 44px; }
}
.receipt .wrap { max-width: 760px; }
.receipt-details { border-block: 1px solid var(--line); padding: 8px 0; margin: 22px 0 10px; }
.receipt-details div { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 6px 0; }
.receipt-details dt { min-width: 135px; color: var(--muted); }.receipt-details dd { margin: 0; overflow-wrap: anywhere; font-weight: 550; }
footer.site .wrap { flex-wrap: wrap; }
footer.site .mark { font-size: 21px; }
.btn:focus-visible, :is(a,button,input,select,textarea,summary):focus-visible, #request-errors:focus { outline: 3px solid #36443f; outline-offset: 2px; }
.cover .cover-copy :is(a,button):focus-visible { outline-color: #f5cf7d; }
.folder-link:focus-visible { outline-offset: -4px; }
@media (hover:hover) {
  .file summary:hover, .method-list summary:hover { background-color: #eeeae0; }
}
@media (prefers-reduced-motion:no-preference) {
  .file-tab, .disclosure-chevron, .method-list summary::after { transition: transform 140ms ease-out, background-color 140ms ease-out; }
  .file[open] .file-body { animation: file-reveal 140ms ease-out; }
  @keyframes file-reveal { from { transform: translateY(-3px); } }
}
@media (max-width: 820px) {
  .bar .wrap { gap: 16px; }
  .bar nav { width: auto; gap: 18px; }
  .cover .actions .btn { width: auto; }
  .cover-grid { gap: 28px; }
  .split { gap: 18px; }
}
@media (max-width: 740px) {
  .cover-grid, .queues { grid-template-columns: minmax(0,1fr); }
  .cover-grid { padding-block: 36px 42px; gap: 25px; }
  .cover h1 { font-size: clamp(42px,8.25vw,60px); }
  .folder { margin-inline: 0; }
  .queues { gap: 28px; }
  .section-top { align-items: flex-start; flex-direction: column; gap: 4px; }
}
@media (max-width: 620px) {
  .bar .wrap { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 0 8px; padding-block: 5px 0; }
  .bar nav { grid-column: 1 / -1; grid-row: 2; margin: 0; gap: clamp(16px,5vw,30px); }
  .bar nav a { padding-block: 7px; }
  .nav-action { grid-column: 2; grid-row: 1; font-size: .85rem; }
  .sample-terms { max-width: 38ch; }
  .cover .actions { align-items: flex-start; }
  .receipt-details div { display: block; }
  .receipt-details dd { margin-top: 2px; }
}
@media (max-width: 360px) {
  .bar .mark { gap: 8px; font-size: 20px; white-space: nowrap; }
  .nav-action { padding-inline: 10px; font-size: .79rem; }
  .cover h1 { font-size: clamp(34px,11vw,39px); }
}


@media screen and (max-width: 700px) {
  .sheet { overflow-wrap: anywhere; }
  .sheet table { display: block; overflow-x: auto; }
}
.report-nav { max-width: 860px; margin: 0 auto 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .875rem; }
.report-nav a:first-child { margin-right: auto; font-weight: 650; }
@media screen {
  .report .sheet { border-radius: 10px; border-top: 4px solid #b18a43; }
  .report .sample-flag { color: #385542; border: 0; background: #e7efe0; padding: 5px 8px; }
}

/* The paper tab changes documents in place and keeps its footprint as titles change. */
.folio-findings { display:grid; }
.folio-findings .priority-note { grid-area:1/1; }
.folio-findings .priority-note[hidden] { display:block; visibility:hidden; pointer-events:none; }
.folio-controls:not([hidden]) { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-top:14px; }
.folio-controls > div { display:flex; gap:3px; }
.folio-count { font:500 .74rem/1.3 var(--mono); color:#575748; }
.folio-controls button { display:grid; place-items:center; cursor:pointer; width:44px; height:44px; padding:0; font:500 1.18rem/1 var(--sans); color:#39372e; background:transparent; border:1px solid #a49c88; border-radius:3px; }
.folio-controls button:is(:hover,:focus-visible) { background:#ead7aa; border-color:#7b6844; }
.bar nav .client-link { font-weight:650; }
@media (max-width:620px) {
  .bar nav { justify-content:space-between; flex-wrap:nowrap; gap:5px; }
  .bar nav a { font-size:clamp(.77rem,3vw,.9rem); }
}
@media screen and (prefers-reduced-motion:no-preference) {
  .folio-stage { animation:paper-arrive 540ms cubic-bezier(.18,.76,.25,1) both; }
  @keyframes paper-arrive { from { opacity:.42; transform:translateY(14px); } }
  .folio-controls button, .nav-action, .cover .btn { transition:transform 160ms ease, background-color 160ms ease; }
  .folio-controls button:active, .nav-action:active, .cover .btn:active { transform:translateY(2px); }
  :is(.folder-link,.cover .btn,.entry-link,.inline-link) > [aria-hidden="true"] { display:inline-block; transition:transform 200ms ease; }
  :is(.folder-link,.cover .btn,.entry-link,.inline-link):is(:hover,:focus-visible) > [aria-hidden="true"] { transform:translateX(4px); }
}
