/* ServiceAgreement.us. Own design system: carbon-copy work order (navy ink, canary and rose copies,
   rubber-stamp red). Type: Gloock (display), Hanken Grotesk (text), Martian Mono (figures). All fonts self-hosted, OFL. */
@font-face { font-family: "Gloock"; src: url("fonts/gloock-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url("fonts/martian-mono-var.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --ink: #14213d; --ink-2: #23335a; --paper: #fbfaf6; --white: #fff; --canary: #fff3c4; --canary-2: #f7e49a; --rose: #fbe1e1;
  --stamp: #c8372d; --green: #1f6b4a; --green-bg: #e3f1ea; --amber: #9a5408; --amber-bg: #fdf0dc; --slate: #545d72; --line: #e2ded2;
  --mist: #eef1f6; --focus: #2f6fde; --ledger: #163a30; --ledger-2: #21503f;
  --display: "Gloock", Georgia, "Times New Roman", serif;
  --text: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r: 10px; --shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 8px 24px rgba(20, 33, 61, .08);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--text); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); }
img, svg { max-width: 100%; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--stamp); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
.num { font-family: var(--mono); font-size: .86em; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.muted { color: var(--slate); }
.nowrap { white-space: nowrap; }
.r { text-align: right; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; color: #fff; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 860px; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--stamp); margin-bottom: .8em; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 40em; }

/* buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: .4em; font: 650 1rem/1 var(--text); padding: 14px 22px;
  border-radius: 999px; border: 2px solid var(--ink); text-decoration: none; cursor: pointer; transition: transform .12s, background .12s; }
.btn:hover { transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); color: #fff; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--white); color: var(--ink); }
.btn-danger { background: var(--white); color: var(--stamp); border-color: var(--stamp); }
.btn-sm { padding: 9px 15px; font-size: .9rem; }
.btn-block { width: 100%; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; display: inline-block; margin: .6em 1em 0 0; }
.linkish.danger { color: var(--stamp); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }

/* header */
.top { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top-in { max-width: 1200px; margin: 0 auto; padding: 12px 28px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-stub { width: 38px; height: 38px; flex: none; }
.brand-words { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--display); font-size: 1.28rem; }
.brand-tld { color: var(--stamp); }
.brand-sub { font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); margin-top: 3px; }
.nav { display: flex; gap: 4px; justify-content: center; }
.nav a { text-decoration: none; font-weight: 550; font-size: .95rem; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); white-space: nowrap; }
.nav a:hover { background: var(--mist); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--canary); color: var(--ink); }
.top-act { display: flex; align-items: center; gap: 12px; }
.price-chip { text-decoration: none; font-size: .82rem; color: var(--ink-2); border: 1px dashed #b9b29c; border-radius: 999px; padding: 6px 12px; white-space: nowrap; background: var(--canary); }
.price-chip b { font-family: var(--mono); font-size: .9rem; }
.price-chip span { color: var(--green); font-weight: 650; }

/* hero */
.hero { padding: 76px 0 84px; color: #e9ecf3; overflow: hidden; border-bottom: 6px solid var(--stamp);
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 34px), var(--ledger); }
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--canary-2); }
.hero .lede { color: #d7e6df; }
.hero em { color: var(--canary); font-style: normal; border-bottom: 2px solid rgba(255,243,196,.45); }
.hero .btn-ink { background: var(--canary); color: var(--ledger); border-color: var(--canary); }
.hero .btn-ink:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero .btn-line { color: #fff; border-color: rgba(255,255,255,.7); }
.hero .btn-line:hover { background: rgba(255,255,255,.1); color: #fff; }
.hero-price b { color: #fff; }
.hero .hero-note { color: #b3cbbf; }
.hero .tag-preview { background: var(--canary); color: var(--ledger); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); margin-bottom: .35em; }
.hero h1::after { content: ""; display: block; width: 72px; height: 5px; background: var(--canary); margin-top: 22px; border-radius: 3px; }
.hero-price { font-size: 1rem; margin-bottom: .4em; }
.hero-note { font-size: .92rem; color: var(--slate); }
.tag-preview { display: inline-block; background: var(--green-bg); color: var(--green); font-weight: 700; font-size: .82rem; padding: 3px 10px; border-radius: 999px; margin: 0; }
.hero-art { position: relative; min-height: 430px; }
.copy { position: absolute; inset: 20px 30px 20px 40px; border-radius: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.copy-3 { background: var(--rose); transform: rotate(5deg) translate(18px, 8px); }
.copy-2 { background: var(--canary); transform: rotate(-3.5deg) translate(-10px, 4px); }
.copy-1 { color: var(--ink); background: var(--white); padding: 34px 32px 28px; border-top: 0; transform: rotate(.6deg); }
.copy-1::before { content: ""; position: absolute; left: 14px; right: 14px; top: 12px; height: 4px;
  background: radial-gradient(circle, var(--line) 1.8px, transparent 2.2px) 0 0 / 12px 4px repeat-x; }
.copy-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 16px; }
.copy-no { font-family: var(--mono); font-weight: 700; font-size: 1.15rem; }
.copy-date { font-family: var(--mono); font-size: .8rem; color: var(--slate); }
.copy-job { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--slate); font-weight: 700; margin-bottom: .3em; }
.copy-req { font-family: var(--display); font-size: 1.5rem; line-height: 1.25; margin-bottom: 1em; }
.copy-lines { margin: 0; }
.copy-lines div { display: grid; grid-template-columns: 9.5em 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px dotted #cfcab9; font-size: .92rem; }
.copy-lines dt { color: var(--slate); }
.copy-lines dd { margin: 0; }
.copy-1 .stamp { display: table; margin: 18px 0 0 auto; }

/* stamps and pills */
.stamp { display: inline-block; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; padding: 6px 12px;
  border: 2.5px solid currentColor; border-radius: 5px; box-shadow: inset 0 0 0 2px var(--white), inset 0 0 0 3.5px currentColor; transform: rotate(-4deg); margin: 0 0 .7em; background: var(--white); }
.stamp-wait, .stamp-open { color: var(--amber); }
.stamp-inside { color: var(--green); }
.stamp-change { color: var(--stamp); }
.stamp-outside { color: var(--slate); }
.pill { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.pill-inside { background: var(--green-bg); color: var(--green); }
.pill-change { background: #fbe4e1; color: var(--stamp); }
.pill-outside { background: var(--mist); color: var(--slate); }
.pill-open { background: var(--amber-bg); color: var(--amber); }
.pill-k-in { background: var(--green-bg); color: var(--green); }
.pill-k-out { background: #fbe4e1; color: var(--stamp); }
.pill-k-assume { background: var(--canary); color: var(--amber); }
.status { display: block; font-size: .78rem; color: var(--slate); margin-top: 3px; }
.status-approved { color: var(--green); }
.status-declined { text-decoration: line-through; }
.rule-tag { font-family: var(--mono); font-size: .68rem; color: var(--slate); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; vertical-align: 1px; }

/* sections */
.sec-head { max-width: 46em; margin-bottom: 36px; }
.drift { background: var(--mist); padding: 84px 0; }
.drift-grid { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.trail { list-style: none; margin: 0; padding: 0 0 0 26px; border-left: 2px dashed #b8c0d2; }
.trail-item { position: relative; display: grid; grid-template-columns: 4.6em 1fr auto; gap: 4px 18px; align-items: baseline; padding: 14px 18px; margin-bottom: 12px;
  background: var(--white); border-radius: 8px; border-left: 4px solid var(--slate); box-shadow: 0 1px 2px rgba(20,33,61,.06); }
.trail-item::before { content: ""; position: absolute; left: -36px; top: 22px; width: 16px; height: 16px; border-radius: 50%; background: var(--mist); border: 3px solid currentColor; }
.trail-item.is-inside { border-left-color: var(--green); color: var(--green); }
.trail-item.is-change { border-left-color: var(--stamp); color: var(--stamp); }
.trail-item.is-open { border-left-color: var(--amber); color: var(--amber); }
.trail-item.is-outside { border-left-color: var(--slate); color: var(--slate); }
.trail-date { font-family: var(--mono); font-size: .78rem; color: var(--slate); }
.trail-text { color: var(--ink); font-weight: 550; }
.trail-stamp { grid-column: 2; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.trail-amt { grid-column: 3; grid-row: 1 / span 2; color: var(--ink); text-align: right; white-space: nowrap; }
.trail-amt small { display: block; font-family: var(--text); color: var(--slate); font-size: .72rem; letter-spacing: 0; }

.tally { background: var(--white); color: var(--ink); border-radius: 8px 8px 0 0; padding: 26px 24px 30px; position: relative; box-shadow: 0 1px 2px rgba(20,33,61,.06); margin-bottom: 26px; }
.tally::after { content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 12px;
  background: linear-gradient(-45deg, transparent 8px, var(--white) 0) 0 0 / 16px 12px repeat-x, linear-gradient(45deg, transparent 8px, var(--white) 0) 0 0 / 16px 12px repeat-x; }
.tally h2, .tally h3 { font-family: var(--text); font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin-bottom: 12px; }
.tally h3 { margin-top: 20px; }
.tally dl { margin: 0; }
.tally dl div, .sheet-totals dl div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dotted #cfcab9; font-size: .95rem; }
.tally dd, .sheet-totals dd { margin: 0; text-align: right; }
.tally-total { font-weight: 800; border-bottom: 2px solid var(--ink) !important; border-top: 2px solid var(--ink); font-size: 1.05rem !important; }
.signals { list-style: none; padding: 0; margin: 14px 0 0; }
.signals li { font-size: .9rem; padding: 8px 10px; background: var(--amber-bg); border-radius: 6px; margin-bottom: 6px; color: #5b3606; }
.sig-id { font-family: var(--mono); font-weight: 700; font-size: .72rem; background: var(--white); border-radius: 4px; padding: 1px 5px; margin-right: 4px; }

.rulings { padding: 84px 0; }
.rul-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.rul { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 22px; }
.rul p:last-child { margin: 0; color: var(--ink-2); font-size: .96rem; }

.sorter-band { background: var(--canary); padding: 80px 0; border-top: 1px solid var(--canary-2); border-bottom: 1px solid var(--canary-2); }
.sorter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.rules { list-style: none; padding: 0; margin: 0 0 1em; counter-reset: none; }
.rules li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; background: var(--white); border-radius: 8px; padding: 14px 18px; margin-bottom: 10px; border: 1px solid var(--canary-2); }
.rules b { font-family: var(--mono); font-size: .8rem; color: #fff; background: var(--ink); border-radius: 4px; padding: 2px 7px; }
.rules span { font-weight: 750; color: var(--stamp); }
.rules-sm li { padding: 9px 12px; font-size: .92rem; }

.plans { padding: 84px 0; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-bottom: 26px; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 30px 28px; }
.plan-pass { border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--canary-2); }
.plan h2, .plan h3 { font-family: var(--text); font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; }
.plan-price { font-size: 2.3rem; margin: 0 0 4px; letter-spacing: -.04em; }
.plan-price small { font-family: var(--text); font-size: .95rem; color: var(--slate); letter-spacing: 0; }
.plan-alt { color: var(--slate); font-size: .92rem; }
.plan ul { padding: 0; list-style: none; margin: 16px 0; }
.plan li { padding: 7px 0 7px 26px; position: relative; border-top: 1px solid var(--line); font-size: .96rem; }
.plan li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 10px; height: 6px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
.plans-more { font-weight: 650; }
.faq { padding: 20px 0 90px; }
.faq-wrap > * { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-weight: 700; font-size: 1.08rem; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }

/* inner pages */
.page-head { padding: 56px 0 30px; }
.page-head h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.crumbs { font-size: .9rem; color: var(--slate); }
.note { padding: 12px 16px; border-radius: 8px; background: var(--mist); font-size: .96rem; }
.note-ok { background: var(--green-bg); color: #154c35; }
.note-err { background: #fbe4e1; color: #8a231b; }
.note-preview { background: var(--green-bg); color: #154c35; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 26px 26px; margin-bottom: 24px; }
.card h2 { font-family: var(--text); font-size: 1.15rem; font-weight: 800; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 60px; }
.prose { padding-bottom: 70px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.4em; }
.prose li { margin-bottom: .4em; }
.p-doc .prose { font-size: 1rem; }

/* forms */
.form { display: block; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 650; font-size: .92rem; margin-bottom: 16px; min-width: 0; }
.field input, .field select, .field textarea, .copy-row input, .scope-row input, .scope-row select {
  font: 400 1rem/1.4 var(--text); color: var(--ink); background: var(--white); border: 1.5px solid #cbc6b6; border-radius: 8px; padding: 10px 12px; width: 100%; min-width: 0; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: 3px solid rgba(47,111,222,.25); }
[aria-invalid="true"] { border-color: var(--stamp) !important; }
.err { color: var(--stamp); font-weight: 600; font-size: .86rem; }
.hint { font-size: .88rem; color: var(--slate); }
.row-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.row-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; margin: 8px 0 12px; }
.yn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0 16px; }
.yn { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 0; }
.yn legend { font-weight: 650; font-size: .9rem; padding: 0 4px; }
.yn label { margin-right: 18px; font-size: .95rem; }
.sorter { background: var(--canary); border-radius: 10px; padding: 14px 18px; margin: 4px 0 18px; }
.sorter summary { font-weight: 750; cursor: pointer; }
.suggest { margin-top: 14px; background: var(--white); border-radius: 8px; padding: 14px 16px; }
.match-h { font-weight: 700; font-size: .9rem; margin: 12px 0 6px; }
.matches { list-style: none; margin: 0; padding: 0; }
.matches li { padding: 5px 0; font-size: .94rem; }
.scope-edit { border: 0; padding: 0; margin: 10px 0 0; }
.scope-edit legend { font-weight: 800; font-size: 1.05rem; margin-bottom: 8px; }
.scope-rows { list-style: none; padding: 0; margin: 0; counter-reset: line; }
.scope-row { display: grid; grid-template-columns: 2.2em 11em 1fr; gap: 10px; align-items: center; margin-bottom: 8px; counter-increment: line; }
.scope-row::before { content: counter(line, decimal-leading-zero); font-family: var(--mono); font-size: .75rem; color: var(--slate); }
.copy-row { display: flex; gap: 8px; }
.copy-row input { font-family: var(--mono); font-size: .74rem; }

/* job page */
.job-head { padding: 40px 0 10px; }
.sample-note { background: var(--canary); border-radius: 8px; padding: 10px 16px; font-size: .95rem; }
.job-title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.job-title-row h1 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); margin-bottom: .2em; }
.job-meta { color: var(--slate); }
.job-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 1em; }
.job-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; padding-bottom: 70px; align-items: start; }
.job-side { position: sticky; top: 90px; }
.scope-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.scope-col { border-top: 4px solid var(--green); padding-top: 10px; }
.scope-col.scope-out { border-top-color: var(--stamp); }
.scope-col.scope-assume { border-top-color: var(--amber); }
.scope-col ul, .scope-cols ul { margin: 0; padding-left: 1.1em; font-size: .95rem; }
.table-scroll { overflow-x: auto; }
.log { width: 100%; border-collapse: collapse; font-size: .94rem; }
.log th { text-align: left; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); border-bottom: 2px solid var(--ink); padding: 8px 10px; }
.log th.r { text-align: right; }
.log td { border-bottom: 1px solid var(--line); padding: 11px 10px; vertical-align: top; }
.log tr.is-change td:first-child { box-shadow: inset 3px 0 0 var(--stamp); }
.log tr.is-inside td:first-child { box-shadow: inset 3px 0 0 var(--green); }
.log tr.is-open td:first-child { box-shadow: inset 3px 0 0 var(--amber); }
.empty { color: var(--slate); }
.pass-box { background: var(--ink); color: #e9ecf3; border-radius: 14px; padding: 22px 22px; margin-bottom: 24px; }
.pass-box p { font-size: .92rem; }
.pass-name { font-size: .76rem !important; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--canary-2); margin-bottom: 4px; }
.pass-price { font-size: 1.7rem !important; color: #fff; margin-bottom: 8px; }
.pass-price small { font-family: var(--text); font-size: .9rem; }
.pass-price span { font-family: var(--text); font-size: .9rem; color: #c4cbdb; letter-spacing: 0; }
.pass-box .btn-ink { background: var(--canary); color: var(--ink); border-color: var(--canary); }
.side-tools form { margin-bottom: 14px; }
.ledger-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; padding-bottom: 70px; align-items: start; }
.job-list { list-style: none; padding: 0; margin: 0 0 20px; }
.job-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
.job-link { text-decoration: none; display: flex; flex-direction: column; min-width: 0; }
.job-name { font-weight: 750; font-size: 1.08rem; }
.job-sub { font-size: .88rem; color: var(--slate); }
.job-nums { text-align: right; display: flex; flex-direction: column; }
.job-nums small { color: var(--slate); font-size: .78rem; }
.sort-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; padding-bottom: 70px; align-items: start; }
.verdict .stamp { font-size: 1rem; }

/* printouts */
.print-bar { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; padding-bottom: 16px; }
.sheet { max-width: 860px; margin: 0 auto 70px; background: var(--white); border: 1px solid var(--line); padding: 48px 52px; box-shadow: var(--shadow); }
.sheet-head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 3px double var(--ink); padding-bottom: 16px; margin-bottom: 22px; }
.sheet-kind { font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--stamp); margin: 0; }
.sheet h1 { font-size: 2.1rem; margin: .1em 0 .2em; }
.sheet h2 { font-family: var(--text); font-size: .85rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin: 26px 0 10px; }
.sheet-date { font-family: var(--mono); font-size: .8rem; white-space: nowrap; }
.sheet-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.sheet-table th, .sheet-table td { text-align: left; border-bottom: 1px solid var(--line); padding: 7px 6px; vertical-align: top; }
.sheet-table th.r, .sheet-table td.r { text-align: right; }
.sheet-totals { max-width: 380px; margin-left: auto; margin-top: 22px; }
.sheet-list { padding-left: 1.1em; font-size: .94rem; }
.co-lines div { display: grid; grid-template-columns: 12em 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px dotted #cfcab9; }
.co-lines dt { color: var(--slate); }
.co-lines dd { margin: 0; }
.co-lines .big { font-size: 1.3rem; }
.sign-lines { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; margin-top: 50px; }
.sign-lines p { display: flex; flex-direction: column-reverse; font-size: .82rem; color: var(--slate); margin: 0; }
.sign-lines span { border-bottom: 1.5px solid var(--ink); height: 34px; }
.sheet-foot { margin-top: 36px; font-size: .78rem; color: var(--slate); border-top: 1px solid var(--line); padding-top: 12px; }

/* footer */
.foot { background: var(--ink); color: #c4cbdb; padding: 56px 0 0; font-size: .94rem; }
.foot a { color: #fff; }
.foot-in { max-width: 1200px; margin: 0 auto; padding: 0 28px 40px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; }
.foot-name { font-family: var(--display); font-size: 1.5rem; color: #fff; margin-bottom: .4em; }
.foot-name span { color: #ff8a7a; }
.foot-honest { color: #e9ecf3; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.foot-cols h2 { font-family: var(--text); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--canary-2); margin-bottom: 10px; }
.foot-cols a { display: block; text-decoration: none; padding: 3px 0; }
.foot-cols a:hover { text-decoration: underline; color: #fff; }
.foot-base { max-width: 1200px; margin: 0 auto; padding: 18px 28px 26px; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .84rem; }
.foot-base p { margin: 0; }
.is-error .foot { padding-top: 0; }

/* responsive */
@media (max-width: 1080px) {
  .top-in { grid-template-columns: auto auto; gap: 10px 16px; }
  .nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; flex-wrap: wrap; row-gap: 2px; }
  .top-act { justify-self: end; }
  .drift-grid, .job-grid, .ledger-grid, .sort-grid { grid-template-columns: minmax(0, 1fr); }
  .job-side { position: static; }
  .rul-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .wrap, .top-in, .foot-in, .foot-base { padding-left: 18px; padding-right: 18px; }
  .hero { padding: 40px 0 48px; }
  .hero-grid, .sorter-grid, .split-2, .foot-in { grid-template-columns: 1fr; gap: 34px; }
  .hero-art { min-height: 0; padding: 14px 12px; }
  .copy { inset: 14px 12px; }
  .copy-1 { position: relative; inset: auto; }
  .copy-1 { padding: 28px 20px 24px; }
  .copy-lines div { grid-template-columns: 1fr; gap: 2px; }
  .copy-req { font-size: 1.25rem; }
  .row-2, .row-3, .row-4, .yn-grid, .scope-cols { grid-template-columns: 1fr; gap: 0 12px; }
  .row-4 { grid-template-columns: 1fr 1fr; }
  .scope-row { grid-template-columns: 1.8em 1fr; }
  .scope-row input { grid-column: 2; }
  .trail { padding-left: 18px; }
  .trail-item { grid-template-columns: 1fr auto; padding: 12px 14px; }
  .trail-item::before { left: -28px; }
  .trail-date, .trail-text, .trail-stamp { grid-column: 1; }
  .trail-amt { grid-column: 2; grid-row: 1 / span 3; }
  .drift, .rulings, .sorter-band, .plans { padding: 56px 0; }
  .rul-grid { grid-template-columns: 1fr; }
  .price-chip { display: inline-block; text-align: center; line-height: 1.15; border-radius: 10px; padding: 4px 9px; }
  .price-chip span { display: block; font-size: .64rem; }
  .brand-name { font-size: 1.1rem; }
  .sheet { padding: 26px 18px; }
  .sheet-head { flex-direction: column; }
  .co-lines div { grid-template-columns: 1fr; gap: 2px; }
  .job-row { flex-direction: column; align-items: flex-start; }
  .log thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .log, .log tbody { display: block; }
  .log tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0 12px 12px; border-bottom: 1px solid var(--line); }
  .log td { border: 0; padding: 0; }
  .log td.c-date { grid-column: 1; font-size: .78rem; color: var(--slate); }
  .log td.c-text { grid-column: 1 / -1; }
  .log td.c-rule { grid-column: 1; }
  .log td.c-h:empty, .log td.c-a:empty { display: none; }
  .log td.c-h::before, .log td.c-a::before { content: attr(data-label) " "; font-family: var(--text); color: var(--slate); font-size: .78rem; }
  .log td.c-h, .log td.c-a { text-align: left; }
  .log td.c-act { grid-column: 2; grid-row: 1; }
  .log tr.is-change td:first-child, .log tr.is-inside td:first-child, .log tr.is-open td:first-child { box-shadow: none; }
  .log tr.is-change { box-shadow: inset 3px 0 0 var(--stamp); }
  .log tr.is-inside { box-shadow: inset 3px 0 0 var(--green); }
  .log tr.is-open { box-shadow: inset 3px 0 0 var(--amber); }
  .job-nums { text-align: left; }
  .foot-cols { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 420px) {
  .brand-stub { display: none; }
  .top-in { gap: 10px; }
  .brand-name { font-size: .96rem; }
  .brand-sub { font-size: .58rem; }
  .top-act { gap: 5px; }
  .top-act .btn-sm { padding: 8px 9px; font-size: .82rem; }
  .price-chip { padding: 4px 7px; font-size: .76rem; }
  .price-chip span { font-size: .6rem; }
  .top-in { padding-left: 14px; padding-right: 14px; }
  .row-4 { grid-template-columns: 1fr; }
  .nav { gap: 2px; }
  .nav a { padding: 7px 5px; font-size: .86rem; }
}
@media (max-width: 370px) {
  .top-in { gap: 6px; padding-left: 10px; padding-right: 10px; }
  .brand-name { font-size: .9rem; }
  .price-chip { padding: 4px 5px; font-size: .72rem; }
  .price-chip span { font-size: .56rem; }
  .top-act .btn-sm { padding: 7px 7px; font-size: .78rem; }
  .nav a { font-size: .8rem; padding: 7px 4px; }
}
@media print {
  .top, .foot, .no-print, .skip { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .sheet { border: 0; box-shadow: none; margin: 0; padding: 0; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* ---------- v1.1.0: AdEngine banner (adengine.us) ----------
   One labelled slot between the main content and the dark footer, on the public pages only (the controllers opt in).
   The label and the reserved height are on the <ins>, so when tag.js (or ae-size.js) hides a slot it cannot fill, the
   label, the reserved space and the space around it go with it. 110px = 16px label + 4px gap + 90px banner; 270px on
   phones (300x250). Every ad page ends with its own bottom padding (v1.1.1: no extra margin above, measured at 1440 and
   390) and the footer has none on top, so the <ins> carries the space below. display stays in this file and is never
   !important: tag.js hides a slot with style.display='none'. */
.ae-slot { padding: 0 28px; }
.ae-slot ins.adengine { display: block; max-width: 728px; min-height: 110px; margin: 0 auto clamp(40px, 6vw, 56px); text-align: center; text-decoration: none; }
.ae-slot ins.adengine::before { content: "Advertisement"; display: block; margin-bottom: 4px; font: 700 11px/16px var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.ae-slot ins.adengine a { display: inline-block; vertical-align: top; }
.ae-slot:has(> ins.adengine[style*="none"]) { display: none; }
@media (max-width: 767px) { .ae-slot { padding: 0 18px; } .ae-slot ins.adengine { max-width: 300px; min-height: 270px; } }
@media print { .ae-slot { display: none; } }
