/* Policy Register. Direction from the design seed (sha256 in design-brief.md): a controlled-document index. Pale slate
   card stock, white cards with 6px corners, one per policy, a document number in mono and a 2px slate rule under every
   card head, slate ink for every rule, label and link, a humanist sans built for screen legibility for the headline and the
   figures, the family drawers labelled at the head, and every document a ticked regime expects but the paste does not
   list filed as an empty dashed card with a raspberry double-outlined stamp. No band, no shadows, no gradients. */
:root {
  --stock: #f2f4f5; --card: #ffffff; --wash: #e9edef;
  --ink: #2b3940; --ink-2: #4f5d63; --ink-3: #74828a;
  --rule: #c7d0d4; --rule-2: #e1e6e9;
  --mark: #9a1f5a; --mark-wash: #f6e6ee;
  --display: "Merriweather Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: "Merriweather Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "PT Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --max: 1160px; --r: 6px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--stock); color: var(--ink); font: 15.5px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: geometricPrecision; }
body { margin: 0; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--rule); }
a:hover { text-decoration-color: var(--ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; margin: 0 0 12px; letter-spacing: -0.005em; }
h1 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.01em; }
h2 { font-size: clamp(21px, 2.2vw, 26px); }
h3 { font-size: 17px; }
p { margin: 0 0 14px; }
code, .mono { font-family: var(--mono); font-size: 0.92em; }
.num, .tab { font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
/* Header: the stock itself, a 1px slate rule */
.band { border-bottom: 1px solid var(--ink); background: var(--stock); }
header.site { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 13px; }
header.site .brand { font-family: var(--display); font-weight: 700; font-size: 21px; color: var(--ink); text-decoration: none; }
header.site .brand em { font-style: normal; font-weight: 400; }
header.site nav a { margin-left: 20px; text-decoration: none; color: var(--ink-2); font-size: 15px; white-space: nowrap; display: inline-block; }
header.site nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
/* Section heads: the drawer label, a 1px rule above, the folio at the right */
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; border-top: 1px solid var(--ink); padding-top: 10px; margin-bottom: 10px; }
.sec-head h2 { margin: 0; }
.sec-head .folio { font-size: 12.5px; color: var(--ink-2); margin-left: auto; }
/* Small labels: the sans, uppercase, a little tracking; the mono is kept for document numbers, clause codes and stamps */
.label, .eyebrow, .specimen .legend, .ch-head, .card-body dt, .card-clauses .kv .k, .form .k, table.mtable th { font-family: var(--sans); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
/* Stamps: double-outlined, mono, lower case, slate for a state on a listed line; the raspberry mark means one thing only: a document the regimes expect that is not on the list (and the line the dictionary could not place) */
.stamp { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-2); border: 1px solid var(--ink-2); outline: 1px solid var(--ink-2); outline-offset: 2px; padding: 0 6px; line-height: 1.6; margin: 2px 8px 2px 2px; white-space: nowrap; background: var(--card); }
.stamp.mark { color: var(--mark); border-color: var(--mark); outline-color: var(--mark); }
.mark { color: var(--mark); }
.type { font-family: var(--sans); font-size: 12px; color: var(--ink-3); white-space: nowrap; }
/* Hero */
.hero { padding: 40px 0 16px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.hero .lede { font-size: 18px; color: var(--ink-2); max-width: 600px; margin-bottom: 18px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero .cta .hint { flex-basis: 100%; }
.eyebrow { margin-bottom: 12px; } .eyebrow a { color: var(--ink-2); }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 20px; } }
figure.person { margin: 0; } figure.person img { display: block; width: 100%; height: auto; background: var(--wash); border-radius: var(--r); }
figure.person figcaption { font-size: 14px; color: var(--ink-2); margin-top: 10px; line-height: 1.45; }
/* Specimen cards under the photograph */
.specimen { border-top: 1px solid var(--ink); margin-top: 16px; padding-top: 8px; font-size: 13px; }
.specimen .legend { display: flex; justify-content: space-between; gap: 10px; }
.specimen table { width: 100%; border-collapse: collapse; margin-top: 8px; table-layout: fixed; }
.specimen th { font-family: var(--sans); font-size: 12px; font-weight: 700; text-align: left; padding: 6px 8px 5px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.specimen td { padding: 6px 8px 6px 0; border-bottom: 1px solid var(--rule-2); vertical-align: top; }
.specimen td.mono { font-size: 12px; color: var(--ink-2); }
.specimen tr.total td { border-top: 1px solid var(--ink); border-bottom: 0; font-weight: 700; }
.specimen .stamp { font-size: 10px; padding: 0 4px; margin: 0 6px 0 0; outline-offset: 1px; white-space: normal; line-height: 1.5; }
.specimen .cap { font-size: 12px; color: var(--ink-3); margin-top: 8px; }
section { padding: 30px 0; }
/* The tool */
.tool { border: 1px solid var(--rule); background: var(--card); margin-top: 22px; border-radius: var(--r); }
.tool .bar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 14px 16px 10px; }
.tool .bar .spacer { flex: 1; }
.tool .bar label { font: 14px var(--sans); color: var(--ink-2); white-space: nowrap; }
.tool .bar label input { margin-right: 5px; vertical-align: -1px; accent-color: var(--ink); }
.tool .bar .ticks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
textarea.paste { width: 100%; min-height: 230px; border: 0; border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); padding: 14px 16px; font: 13px/1.5 var(--mono); color: var(--ink); resize: vertical; background: var(--card); display: block; }
textarea.paste:focus { outline: 2px solid var(--ink); outline-offset: -2px; }
.btn { display: inline-block; border: 1px solid var(--ink); background: var(--ink); color: #fff; padding: 10px 18px; font: 700 14.5px var(--sans); cursor: pointer; text-decoration: none; border-radius: var(--r); }
.btn:hover { background: #1c272c; border-color: #1c272c; color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--wash); }
.btn.small { padding: 7px 12px; font-size: 13px; }
.hint { font-size: 13px; color: var(--ink-3); }
.na { color: var(--ink-3); font-size: 12.5px; }
.sub { display: block; font-family: var(--sans); font-size: 12.5px; color: var(--ink-2); margin-top: 2px; } .sub.mark { color: var(--mark); }
.d { white-space: nowrap; font-variant-numeric: tabular-nums; }
.regime-line { margin: -22px 0 26px; }
/* Summary strip: six cells, big figures */
.summary { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 18px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); margin-bottom: 34px; padding: 4px 0; }
.summary > div { padding: 12px 0 10px; } .summary > div + div { border-left: 1px solid var(--rule-2); padding-left: 16px; }
.summary .n { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 1.9vw, 28px); line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; }
.summary > div.flagged .n { color: var(--mark); }
.summary .l { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; line-height: 1.3; }
.summary .l .sub { color: var(--ink-2); margin-top: 3px; }
@media (max-width: 860px) { .summary { grid-template-columns: repeat(3, 1fr); gap: 0 12px; } .summary > div + div { border-left: 0; padding-left: 0; } }
@media (max-width: 480px) { .summary { grid-template-columns: repeat(2, 1fr); } }
/* Drawers and cards */
section.drawer { padding: 22px 0 0; margin-top: 14px; }
.famnote { max-width: 760px; margin: -2px 0 12px; }
.cards { display: grid; grid-template-columns: 1fr; gap: 10px; }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 0; }
.card.empty { background: var(--stock); border: 1px dashed var(--ink-3); }
.card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 16px 9px; border-bottom: 2px solid var(--ink); }
.card.empty .card-head { border-bottom: 2px solid var(--ink-3); padding: 8px 16px; } .card.empty .card-head .stamp { margin-left: auto; }
.card .gapline { flex-basis: 100%; font-size: 12.5px; color: var(--ink-2); } .card .gapline b { font-weight: 700; }
.ch-head { margin: 10px 0 2px; }
.card .docno { font-family: var(--mono); font-size: 12px; color: var(--ink-2); min-width: 78px; }
.card h3.title { margin: 0; font-size: 16px; font-weight: 700; } .card h3.title a { text-decoration: none; }
.card .ver { font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-left: 8px; font-weight: 400; }
.card .toggle { margin-left: auto; border: 1px solid var(--ink-2); background: var(--card); font: 12.5px var(--sans); color: var(--ink); cursor: pointer; padding: 3px 10px; border-radius: var(--r); } .card .toggle:hover { background: var(--wash); }
.card .toggle::after { content: 'show clauses'; } .card.open .toggle::after { content: 'hide clauses'; }
.card-body { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 18px; margin: 0; padding: 10px 16px 12px; font-size: 13.5px; }
.card-body > div { min-width: 0; } .card-body > div.wide { grid-column: span 3; } .card-body > div.full { grid-column: 1 / -1; }
.card-body dt { margin-bottom: 2px; }
.card-body dd { margin: 0; overflow-wrap: anywhere; }
.card-body .rq { display: block; font-size: 12.5px; margin-bottom: 2px; } .card-body .rq b { font-weight: 700; font-family: var(--sans); margin-right: 4px; }
a.cref { font-family: var(--mono); font-size: 12px; text-decoration: none; border-bottom: 1px solid var(--rule); white-space: nowrap; }
a.cref + a.cref { margin-left: 6px; }
.named { font-family: var(--mono); font-size: 12px; color: var(--ink-2); white-space: nowrap; } .named small { font-family: var(--sans); font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); margin-left: 3px; vertical-align: 1px; } a.cref + .named, .named + .named, .named + a.cref { margin-left: 6px; }
.card-clauses { display: none; padding: 4px 16px 14px; border-top: 1px solid var(--rule-2); font-size: 13px; color: var(--ink-2); }
.card.open .card-clauses { display: block; }
.card-clauses .kv { display: flex; gap: 10px; margin-top: 6px; } .card-clauses .kv .k { flex: 0 0 150px; padding-top: 2px; } .card-clauses .kv span:not(.k) { flex: 1; min-width: 0; }
.card.empty .card-body { padding-bottom: 12px; }
h3.gapfam { display: flex; align-items: baseline; gap: 12px; margin: 18px 0 8px; font-size: 15px; } h3.gapfam .folio { font-size: 12.5px; color: var(--ink-2); font-weight: 400; }
.drawer-gaps { margin: 10px 0 0; }
.locked { color: var(--ink-3); font-style: italic; }
.plan-tag { font-family: var(--mono); font-size: 10px; border: 1px solid currentColor; padding: 0 4px; margin-left: 6px; vertical-align: 1px; opacity: 0.8; border-radius: 2px; }
/* The gap table and the mini tables */
.sheet-wrap { overflow-x: auto; border: 1px solid var(--rule); background: var(--card); border-radius: var(--r); }
table.sheet { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.sheet th { font-family: var(--sans); font-size: 12px; font-weight: 700; color: var(--ink-2); text-align: left; padding: 9px 12px; border-bottom: 2px solid var(--ink); }
table.sheet td { padding: 9px 12px 8px; vertical-align: top; border-top: 1px solid var(--rule-2); overflow-wrap: anywhere; }
table.sheet td.code { font-weight: 700; } table.sheet td.code a { text-decoration: none; } table.sheet td.small { font-size: 13px; color: var(--ink-2); }
section.breakdown { padding: 26px 0 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid3 h3 { font-size: 15px; margin: 6px 0 8px; }
table.mini { width: 100%; border-collapse: collapse; font-size: 13px; }
table.mini td { padding: 5px 0; border-bottom: 1px solid var(--rule-2); } table.mini td.num { text-align: right; font-family: var(--mono); font-size: 12.5px; white-space: nowrap; padding-left: 10px; }
table.mini tr.total td { border-top: 1px solid var(--ink); border-bottom: 0; font-weight: 700; }
@media (max-width: 860px) { .grid3 { grid-template-columns: 1fr; } }
/* Findings */
section.ctrls { margin-top: 34px; padding-top: 0; }
section.ctrls details, .ctrls-inline details { border: 1px solid var(--rule); background: var(--card); padding: 0 16px; margin-bottom: -1px; }
section.ctrls details:first-of-type { border-radius: var(--r) var(--r) 0 0; } section.ctrls details:last-of-type { border-radius: 0 0 var(--r) var(--r); }
section.ctrls details:not([open]) .codes { display: none; }
section.ctrls summary, .ctrls-inline summary { cursor: pointer; padding: 11px 0 11px 22px; font-family: var(--sans); font-weight: 700; font-size: 15.5px; list-style: none; position: relative; } section.ctrls summary::-webkit-details-marker { display: none; }
section.ctrls summary::before { content: ""; position: absolute; left: 2px; top: 19px; width: 8px; height: 8px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transform: rotate(-45deg); } section.ctrls details[open] > summary::before { transform: rotate(45deg); top: 16px; }
section.ctrls summary .who { display: block; font-family: var(--sans); font-size: 13px; color: var(--ink-2); margin-top: 2px; font-weight: 400; }
section.ctrls summary .codes { font-family: var(--mono); font-weight: 400; font-size: 12px; display: block; margin-top: 2px; color: var(--ink-2); }
section.ctrls .ctrl, .ctrls-inline .ctrl, .card-clauses .ctrl { padding: 6px 0 12px; border-top: 1px solid var(--rule-2); }
section.ctrls.evid { margin-top: 26px; } section.ctrls.evid details { border-radius: var(--r); }
.ch { font-weight: 700; margin-bottom: 4px; } .ch code { color: var(--ink-2); margin-right: 6px; }
.ctrl p { font-size: 14px; color: var(--ink-2); margin-bottom: 6px; } .ctrl p.guide { border-left: 2px solid var(--rule); padding-left: 10px; } .ctrl .hint { font-size: 13.5px; color: var(--ink-2); }
ul.items { margin: 0 0 12px; padding-left: 18px; font-size: 14px; } ul.items li { margin-bottom: 5px; }
body.has-result section.explain { display: none; }
/* Explanation rows and notices */
.form { border-top: 1px solid var(--ink); }
.form > div { display: grid; grid-template-columns: 56px 240px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--rule-2); align-items: baseline; }
.form .k { font-size: 13px; letter-spacing: 0.02em; }
.form h3 { margin: 0; } .form p { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) { .form > div { grid-template-columns: 40px 1fr; } .form p { grid-column: 2; } }
.notice { border: 1px solid var(--rule); background: var(--card); padding: 12px 16px; margin: 14px 0; font-size: 14.5px; border-radius: var(--r); }
.notice.gate { background: var(--mark-wash); border-color: var(--mark-wash); }
p.plain-note { font-size: 14.5px; color: var(--ink-2); max-width: 720px; }
/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0; border: 1px solid var(--rule); background: var(--card); border-radius: var(--r); }
.pricing > div { padding: 22px 20px 24px; border-right: 1px solid var(--rule-2); display: flex; flex-direction: column; }
.pricing > div:last-child { border-right: 0; }
@media (max-width: 860px) { .pricing > div { border-right: 0; border-bottom: 1px solid var(--rule-2); } .pricing > div:last-child { border-bottom: 0; } }
.pricing .price { font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1; margin: 8px 0 2px; display: flex; align-items: baseline; gap: 8px; }
.pricing { align-items: start; } .pricing .price small { font-size: 13px; color: var(--ink-3); font-weight: 400; }
.pricing .per { color: var(--ink-3); font-size: 13px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--rule-2); }
.pricing ul { list-style: none; padding: 0; margin: 0 0 18px; font-size: 14.5px; }
.pricing li { margin-bottom: 7px; padding-left: 1.1em; text-indent: -1.1em; }
.pricing li::before { content: "\00B7  "; color: var(--ink-2); }
.pricing .btn { margin-top: auto; align-self: flex-start; }
footer.site { border-top: 1px solid var(--ink); margin-top: 30px; padding-block: 22px 40px; font-size: 13.5px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer.site a { color: var(--ink-3); }
/* Forms and modal */
.modal { position: fixed; inset: 0; background: rgba(43,57,64,0.55); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 10; }
.modal.open { display: flex; }
.modal .box { background: var(--card); border: 1px solid var(--rule); padding: 26px; max-width: 440px; width: 100%; border-radius: var(--r); }
.modal .box .legend { font-family: var(--display); font-weight: 700; font-size: 22px; margin-bottom: 6px; }
input[type=email], input[type=text] { width: 100%; padding: 10px 12px; border: 1px solid var(--rule); font: 15px var(--sans); background: var(--card); color: var(--ink); border-radius: var(--r); }
input:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.row { display: flex; gap: 10px; align-items: center; }
.ok { color: var(--ink-2); } .err { color: var(--mark); }
.list { border: 1px solid var(--rule); background: var(--card); border-radius: var(--r); }
.list a.item { display: flex; justify-content: space-between; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--rule-2); text-decoration: none; color: var(--ink); }
.list a.item:last-child { border-bottom: 0; } .list a.item:hover { background: var(--wash); }
.list .meta { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.index { columns: 2; column-gap: 40px; font-size: 14px; }
.index a { display: block; break-inside: avoid; text-decoration: none; color: var(--ink); padding: 6px 0; border-bottom: 1px solid var(--rule-2); }
.index a .chips { display: block; font-size: 12px; color: var(--ink-3); margin-top: 1px; }
/* Type, family, regime and standards pages */
table.mtable { width: 100%; border-collapse: collapse; font-size: 14px; }
table.mtable th { text-align: left; font-weight: 400; padding: 10px 16px 8px 0; border-bottom: 1px solid var(--rule-2); vertical-align: top; width: 230px; line-height: 1.35; }
table.mtable td { padding: 8px 0; border-bottom: 1px solid var(--rule-2); vertical-align: top; }
ul.doclist { list-style: none; padding: 0; max-width: 820px; border-top: 1px solid var(--ink); } ul.doclist li { margin: 0; padding: 9px 0 8px; font-size: 14.5px; border-bottom: 1px solid var(--rule-2); }
ol.clauses { padding-left: 20px; max-width: 760px; } ol.clauses li { margin-bottom: 6px; font-size: 14.5px; }
/* Phone */
@media (max-width: 700px) {
  .card-body { grid-template-columns: 1fr 1fr; } .card-body > div.wide, .card-body > div.full { grid-column: 1 / -1; } .card.empty .card-body { grid-template-columns: 1fr; }
  .card-head { padding: 9px 12px 8px; } .card .docno { min-width: 0; } .card h3.title { font-size: 15px; flex-basis: 100%; } .card .toggle { margin-left: auto; }
  .card-body { padding: 8px 12px 10px; } .card-clauses { padding: 4px 12px 12px; } .card-clauses .kv { display: block; } .card-clauses .kv .k { display: block; margin-bottom: 2px; }
  table.sheet.gaptable, table.sheet.gaptable tbody, table.sheet.gaptable tr, table.sheet.gaptable td { display: block; } table.sheet.gaptable thead { display: none; } table.sheet.gaptable tr { border-top: 1px solid var(--rule); padding: 8px 12px; } table.sheet.gaptable td { border: 0; padding: 3px 0 3px 100px; position: relative; font-size: 13px; } table.sheet.gaptable td::before { content: attr(data-l); position: absolute; left: 0; top: 3px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); } table.sheet.gaptable td.code { padding-left: 0; font-size: 15px; } table.sheet.gaptable td.code::before { display: none; }
  table.mtable th, table.mtable td { display: block; width: auto; padding: 6px 0 0; border: 0; } table.mtable td { padding-bottom: 8px; border-bottom: 1px solid var(--rule-2); }
  .sheet-wrap { overflow: visible; } .summary .n { font-size: 24px; } .summary > div { padding: 8px 0; } .pricing .price { font-size: 36px; } section.ctrls summary .codes { white-space: normal; }
  header.site { gap: 10px; } header.site nav { white-space: nowrap; } header.site nav a { margin-left: 10px; font-size: 13.5px; } .hero { padding-top: 24px; } .sec-head .folio { margin-left: 0; flex-basis: 100%; white-space: normal; } .regime-line { margin-top: -26px; } .index { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { h1 { font-size: 1.62rem; } .hero .lede { font-size: 16.5px; } .wrap { padding: 0 16px; } header.site { flex-wrap: wrap; gap: 4px 10px; padding-block: 10px; } header.site .brand { white-space: nowrap; font-size: 19px; } header.site nav { flex-basis: 100%; white-space: normal; } header.site nav a { margin: 0 14px 0 0; font-size: 13px; } .hero { padding-top: 18px; } .hero .lede { font-size: 1rem; line-height: 1.45; } .tool .bar .btn, .hero .cta .btn { width: 100%; text-align: center; } .tool .bar .spacer { display: none; }  }
@media print { header.site nav, .tool, .btn, footer.site, .no-print, .specimen, figure.person { display: none !important; } html { background: #fff; } details { display: block; } details > * { display: block; } .card-clauses { display: block; } }
