/* SOX Change Log Checker: a chain-of-custody form. Pale green-cyan duplicate-copy stock with white write-in fields, the form
   printed in one deep green-black spot ink, every entry the export wrote typed in black Sometype Mono, findings as printed
   check boxes ticked in black, a break in custody drawn as a struck field. No band, no radius, no shadows, no gradients,
   no second colour. Direction and walks in design-brief.md. */
:root {
  --stock: #e9f2f0; --paper: #ffffff; --spot: #1f3f3c; --ink: #111816; --rule: #b9cdc9; --muted: #3d5052; --soft: #d7e6e2;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif; --cond: "Asap Condensed", "Arial Narrow", Arial, sans-serif; --mono: "Sometype Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--stock); color: var(--ink); font: 16px/1.55 var(--sans); }
a { color: var(--spot); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
code, .mono { font-family: var(--mono); font-size: .92em; }
.d { font-family: var(--mono); }
h1, h2, h3 { font-family: var(--cond); color: var(--spot); letter-spacing: .005em; word-spacing: .1em; }
.fname, .cb, .rsn, .btn, header.site nav { word-spacing: .1em; }
.nw { white-space: nowrap; }
.more { font: 500 12.5px var(--mono); color: var(--muted); }

/* ---- title block ---- */
header.site { display: flex; align-items: center; gap: 22px; max-width: 1240px; margin: 0 auto; padding: 18px 28px 14px; border-bottom: 2px solid var(--spot); }
.brand { font: 700 22px/1 var(--cond); color: var(--spot); text-decoration: none; letter-spacing: .005em; }
.brand em { font-style: normal; font-weight: 500; }
header.site nav { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; align-items: center; font: 600 15px/1 var(--cond); letter-spacing: .02em; }
header.site nav a { text-decoration: none; color: var(--spot); }
header.site nav a:hover { text-decoration: underline; }
#nav-auth { display: inline-flex; gap: 20px; }

/* ---- hero ---- */
.hero { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 44px; padding: 34px 0 28px; align-items: start; }
.eyebrow { font: 700 13px/1.3 var(--cond); letter-spacing: .09em; text-transform: uppercase; color: var(--spot); margin-bottom: 12px; }
h1 { font-size: 46px; line-height: 1.04; margin: 0 0 16px; font-weight: 700; }
.lede { font-size: 17px; line-height: 1.55; margin: 0 0 16px; max-width: 640px; }
.reads { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--spot); background: var(--paper); margin: 0 0 18px; }
.reads > div { padding: 11px 14px 12px; font-size: 14.5px; line-height: 1.45; }
.reads > div + div { border-left: 2px solid var(--spot); }
.reads .lab, .formhead .lab, .sig .lab, .tool .lab { display: block; font: 700 11.5px/1.2 var(--cond); letter-spacing: .1em; text-transform: uppercase; color: var(--spot); margin-bottom: 4px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta .hint { flex-basis: 100%; }
.hint { color: var(--muted); font-size: 14px; line-height: 1.5; }
.btn { display: inline-block; font: 700 16px/1 var(--cond); letter-spacing: .03em; padding: 12px 18px; background: var(--ink); color: var(--paper); border: 2px solid var(--ink); border-radius: 0; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--spot); border-color: var(--spot); color: var(--paper); }
.btn.ghost { background: var(--paper); color: var(--ink); border-color: var(--spot); }
.btn.ghost:hover { background: var(--soft); color: var(--ink); }
.btn.small { font-size: 14px; padding: 8px 12px; }
.plan-tag { font: 500 10.5px/1 var(--mono); margin-left: 7px; padding: 2px 4px; border: 1px solid currentColor; vertical-align: 1px; }

/* the static specimen excerpt: four custody records */
.specimen { background: var(--paper); border: 2px solid var(--spot); }
.specimen .legend { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-bottom: 2px solid var(--spot); font: 700 12px/1.3 var(--cond); letter-spacing: .08em; text-transform: uppercase; color: var(--spot); }
.specimen .legend span:last-child { font: 400 12px/1.3 var(--mono); letter-spacing: 0; text-transform: none; color: var(--muted); }
.specimen .cap { padding: 10px 12px; font-size: 13.5px; line-height: 1.45; color: var(--muted); border-top: 1px solid var(--rule); }
.specimen ol.recs { margin: 0; }
.specimen li.rec { padding: 10px 12px; cursor: default; }
figure.person { margin: 18px 0 0; }
figure.person img { width: 100%; height: auto; display: block; border: 2px solid var(--spot); }
figure.person figcaption { font-size: 14.5px; line-height: 1.5; margin-top: 10px; color: var(--ink); }

/* ---- sections ---- */
.explain { padding: 18px 0 8px; }
.explain h2 { font-size: 26px; margin: 0 0 10px; }
.form3 { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--spot); background: var(--paper); }
.form3 > div { padding: 14px 16px 16px; }
.form3 > div + div { border-left: 2px solid var(--spot); }
.form3 .k { font: 500 12px/1 var(--mono); color: var(--muted); }
.form3 h3 { font-size: 19px; margin: 6px 0 6px; }
.form3 p { margin: 0; font-size: 15px; }
.notice { border: 2px solid var(--spot); background: var(--paper); padding: 12px 14px; margin: 14px 0; font-size: 15px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; border-top: 2px solid var(--spot); padding-top: 9px; margin: 30px 0 10px; }
.sec-head h2 { font-size: 23px; line-height: 1.15; margin: 0; }
.folio { font: 400 12.5px/1.3 var(--mono); color: var(--muted); text-align: right; }

/* ---- the tool: the form to fill ---- */
.tool { border: 2px solid var(--spot); background: var(--paper); margin: 26px 0 0; }
.tool .bar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--rule); }
.tool .bar:last-child { border-bottom: 0; }
.tool .bar .hint { font-size: 14px; color: var(--muted); flex: 1 1 380px; }
.tool .spacer { flex: 1; }
.pastes { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); border-bottom: 1px solid var(--rule); }
.pastes > div { padding: 10px 14px 12px; }
.pastes > div + div { border-left: 2px solid var(--spot); }
textarea.paste { width: 100%; min-height: 220px; font: 13px/1.5 var(--mono); color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 0; padding: 10px; resize: vertical; white-space: pre; }
textarea.paste:focus { outline: 2px solid var(--spot); outline-offset: -1px; }
.opts { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; font-size: 14.5px; }
.opts label, .ticks label { display: inline-flex; gap: 6px; align-items: center; }
.opts input[type=text], .opts input[type=number] { font: 13px var(--mono); border: 1px solid var(--rule); padding: 6px 8px; border-radius: 0; background: var(--paper); color: var(--ink); }
.opts input[type=number] { width: 64px; }
.opts input#approvers { width: 290px; max-width: 100%; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14.5px; }
input[type=checkbox] { accent-color: var(--ink); width: 16px; height: 16px; }
#status { color: var(--ink); }
#actions { display: flex; gap: 8px; }
.row { display: flex; gap: 10px; align-items: center; }

/* ---- the result ---- */
#result { margin-top: 8px; }
.leadline { font: 700 30px/1.15 var(--cond); color: var(--spot); margin: 22px 0 12px; }
.leadline .n { color: var(--ink); font-variant-numeric: tabular-nums; }
.formhead { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 2px solid var(--spot); background: var(--paper); }
.formhead > div { padding: 8px 10px 9px; border-left: 1px solid var(--rule); min-width: 0; }
.formhead > div:first-child { border-left: 0; }
.formhead .v, .formhead .v .d { font: 500 14px/1.35 var(--sans); }
.tzline { margin: 8px 0 0; }
.summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 16px 0 0; border-top: 2px solid var(--spot); border-bottom: 2px solid var(--spot); }
.summary > div { padding: 12px 14px 12px 0; }
.summary > div + div { padding-left: 14px; border-left: 1px solid var(--rule); }
.summary .n { font: 700 34px/1.05 var(--cond); color: var(--ink); font-variant-numeric: tabular-nums; }
.summary .l { font: 700 13px/1.3 var(--cond); letter-spacing: .06em; text-transform: uppercase; color: var(--spot); margin-top: 4px; }
.summary .sub { display: block; font: 400 13.5px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--muted); margin-top: 3px; }
.tallies { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
table.plain { width: 100%; border-collapse: collapse; font-size: 14.5px; background: var(--paper); border: 1px solid var(--rule); }
table.plain th, table.plain td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.plain thead th, table.plain th { font: 700 12px/1.3 var(--cond); letter-spacing: .08em; text-transform: uppercase; color: var(--spot); }
table.plain td.c, table.plain th.c { text-align: right; font-family: var(--mono); white-space: nowrap; }
table.plain tr.zero td { color: var(--muted); }
table.plain tr.tot td { border-top: 2px solid var(--spot); font-weight: 700; }
table.plain td.code { font-family: var(--mono); font-size: 13px; }

/* custody records */
ol.recs { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--rule); }
li.rec { padding: 12px 14px 12px; border-bottom: 1px solid var(--rule); cursor: pointer; }
li.rec:last-child { border-bottom: 0; }
li.rec.unread { color: var(--muted); }
.rh { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-bottom: 8px; }
.rh .no { font: 500 12px/1 var(--mono); color: var(--muted); min-width: 22px; }
.rh .cid { font: 500 14px/1.2 var(--mono); color: var(--ink); }
.rh .typ { font: 600 13px/1.2 var(--cond); letter-spacing: .04em; color: var(--muted); }
.rh .ttl { font-size: 15px; flex: 1 1 240px; min-width: 0; }
.chain { display: grid; grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1fr); align-items: stretch; }
.sig { position: relative; border: 1px solid var(--spot); padding: 6px 9px 7px; min-width: 0; background: var(--paper); overflow: hidden; }
.sig .who { display: block; font: 500 14px/1.3 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.sig .t { display: block; font: 400 12.5px/1.35 var(--mono); color: var(--muted); }
.sig .acct { font: 400 12.5px/1.35 var(--sans); color: var(--muted); }
.sig.blank .who { color: var(--muted); font-style: italic; }
.sig.struck { border: 2px solid var(--ink); }
.sig .rsn { display: inline-block; margin-top: 5px; font: 700 11.5px/1.2 var(--cond); letter-spacing: .06em; text-transform: uppercase; background: var(--ink); color: var(--paper); padding: 3px 6px 2px; }
li.rec.look { border-left: 4px solid var(--ink); padding-left: 12px; }
li.rec:not(.look) .sig { border-color: var(--rule); }
li.rec:not(.look) .sig .who { color: #33413f; }
li.rec:not(.look) .arr { border-left-color: var(--rule); }
.sum { display: none; font: 400 14px/1.45 var(--sans); color: #33413f; }
.sum .seg { white-space: nowrap; margin-right: 18px; }
.sum .sl { font: 700 11.5px var(--cond); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-right: 3px; }
.sum .d { font-size: 12.5px; color: var(--muted); }
li.rec:not(.look) .chain { display: none; }
li.rec:not(.look) .sum { display: block; }
li.rec:not(.look) { padding-top: 9px; padding-bottom: 9px; }
li.rec:not(.look) .rh { margin-bottom: 2px; }
li.rec:not(.look).open .chain { display: grid; margin-top: 6px; }
details.cl { margin: 4px 0 6px; }
details.cl summary { cursor: pointer; font: 700 14px/1.3 var(--cond); letter-spacing: .06em; text-transform: uppercase; color: var(--spot); }
details.cl[open] summary { margin-bottom: 4px; }
.arr { align-self: center; justify-self: center; width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 8px solid var(--spot); }
.boxes { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 9px; }
.cb { display: inline-block; font: 700 13px/1.2 var(--cond); letter-spacing: .04em; color: var(--muted); }
.cb.on { color: var(--ink); border: 2px solid var(--ink); padding: 3px 7px 2px; text-transform: uppercase; font-size: 12px; letter-spacing: .07em; }
.cb.on::before { content: "!"; display: inline-block; width: 14px; height: 14px; margin-right: 6px; background: var(--ink); color: var(--paper); text-align: center; font: 700 11px/14px var(--cond); }
.why { display: none; margin-top: 10px; border-top: 1px dashed var(--rule); padding-top: 8px; cursor: auto; }
li.rec.open .why { display: block; }
.why > div { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 10px; padding: 4px 0; font-size: 14.5px; }
.why .k { font: 700 12px/1.5 var(--cond); letter-spacing: .08em; text-transform: uppercase; color: var(--spot); }
.why .fk .k { color: var(--ink); }
.why .pasted { font: 12.5px/1.45 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.why .blocks { display: block; }
.dot { margin: 0 7px; color: var(--muted); }
a.cref { font-family: var(--mono); font-size: 13px; white-space: nowrap; text-decoration: none; border-bottom: 1px solid var(--rule); }
a.cref:hover { border-bottom-color: var(--ink); }
table.plain a, ul.idx a { text-decoration: none; }
table.plain a:hover, ul.idx a:hover { text-decoration: underline; }
.locked { color: var(--muted); }
.ctrl { border-left: 3px solid var(--spot); padding: 4px 0 4px 12px; margin: 12px 0; max-width: 820px; }
.ctrl .q, .ctrl .g { max-width: 75ch; }
.ctrl .ch { font-weight: 600; margin-bottom: 4px; }
.ctrl .ch code { font-weight: 500; margin-right: 6px; }
.ctrl .q, .ctrl .g { margin: 4px 0 6px; font-size: 14.5px; color: #243330; }
.fl-note { font-size: 13px; color: var(--muted); margin: 2px 0; }
.ctrl .ev { font-size: 13.5px; color: var(--muted); }
.ctrl .ev b { color: var(--ink); font-weight: 600; }
.ctrl .ev .q { color: #243330; }
section.finds > details { background: var(--paper); border: 1px solid var(--rule); border-left: 3px solid var(--ink); margin: 8px 0; }
section.finds > details > summary { cursor: pointer; padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; list-style: none; }
section.finds > details > summary::-webkit-details-marker { display: none; }
section.finds > details > summary::before { content: "+"; font: 500 14px var(--mono); color: var(--spot); }
section.finds > details[open] > summary::before { content: "\2212"; }
.fname { font: 700 17px/1.2 var(--cond); color: var(--ink); }
.who { font-size: 13.5px; color: var(--muted); }
.fbody { padding: 0 14px 12px; }
.fbody .items { list-style: none; padding: 0; margin: 8px 0; }
.fbody .items li { margin: 0; padding: 7px 0; border-top: 1px solid var(--rule); font-size: 15px; }
.fbody .items .iid { font: 500 13.5px var(--mono); margin-right: 8px; }
.fbody .items .ir { font-weight: 600; }
.fbody .items .it { display: block; font-size: 13.5px; color: var(--muted); }
.clauses { font-size: 14px; }
.gate { font-size: 15px; }
.recon .tly { max-width: 560px; }

/* ---- other pages ---- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--spot); background: var(--paper); margin-top: 8px; }
.pricing > div { padding: 18px 18px 20px; display: flex; flex-direction: column; }
.pricing > div + div { border-left: 2px solid var(--spot); }
.pricing h3 { margin: 0; font-size: 22px; }
.price { font: 700 38px/1.1 var(--cond); margin: 8px 0 2px; font-variant-numeric: tabular-nums; }
.price small { font-size: 16px; margin-right: 5px; vertical-align: baseline; }
.pricing > div:nth-child(2) { box-shadow: inset 0 6px 0 var(--ink); padding-top: 24px; }
.pricing + .hint { max-width: 760px; }
.per { color: var(--muted); font-size: 14px; }
.pricing ul { padding-left: 18px; font-size: 15px; margin-bottom: 18px; }
.pricing .btn { align-self: flex-start; }
.prose { max-width: 760px; }
ul.idx { list-style: none; padding: 0; margin: 0; background: var(--paper); border: 1px solid var(--rule); }
ul.idx li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 12px; border-bottom: 1px solid var(--rule); }
ul.idx li span { color: var(--muted); font-size: 14px; text-align: right; }
.list .item { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; background: var(--paper); border: 1px solid var(--rule); margin-bottom: -1px; text-decoration: none; color: var(--ink); }
.list .item .meta { color: var(--muted); font-family: var(--mono); font-size: 13px; }
.modal { display: none; position: fixed; inset: 0; background: rgba(17, 24, 22, .45); z-index: 20; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.modal .box { background: var(--paper); border: 2px solid var(--spot); padding: 20px; width: 100%; max-width: 440px; }
.modal .legend { font: 700 18px var(--cond); color: var(--spot); margin-bottom: 6px; }
.modal input[type=email] { width: 100%; font: 15px var(--sans); padding: 9px 10px; border: 1px solid var(--rule); border-radius: 0; }
.ok { color: var(--spot); } .err { color: var(--ink); font-weight: 600; }
footer.site { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 22px 28px 36px; margin-top: 44px; border-top: 2px solid var(--spot); font-size: 13.5px; color: var(--muted); }
footer.site a { color: var(--spot); }
footer.site span:first-child { font: 700 14px var(--cond); color: var(--spot); }
footer.site span:nth-last-child(-n+2) { flex-basis: 100%; line-height: 1.5; }
#provenance { border-color: var(--rule) !important; background: var(--paper) !important; border-left-color: var(--spot) !important; border-radius: 0 !important; }

/* ---- phone ---- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 22px; }
  .formhead { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .formhead > div:nth-child(4) { border-left: 0; }
  .formhead > div:nth-child(n+4) { border-top: 1px solid var(--rule); }
  .summary { grid-template-columns: 1fr 1fr; }
  .summary > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .summary > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .tallies { grid-template-columns: 1fr; }
  .pastes { grid-template-columns: 1fr; }
  .pastes > div + div { border-left: 0; border-top: 2px solid var(--spot); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  header.site { padding: 14px 16px 12px; flex-wrap: wrap; gap: 8px 14px; }
  header.site nav { margin-left: 0; gap: 14px; font-size: 14.5px; }
  header.site nav a.wide { display: none; }
  .sum .sl { display: inline-block; width: 70px; }
  .lede { font-size: 16px; }
  .eyebrow { font-size: 12px; }
  .sum .seg { display: block; margin: 0; }
  h1 { font-size: 33px; }
  .reads, .form3 { grid-template-columns: 1fr; }
  .reads > div + div, .form3 > div + div { border-left: 0; border-top: 2px solid var(--spot); }
  .chain { grid-template-columns: 1fr; }
  .arr { border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 7px solid var(--spot); border-bottom: 0; margin: 3px 0; }
  .why > div { grid-template-columns: 1fr; gap: 2px; }
  .formhead { grid-template-columns: 1fr 1fr; }
  .formhead > div:nth-child(odd) { border-left: 0; }
  .formhead > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .formhead > div:nth-child(4) { border-left: 1px solid var(--rule); }
  .leadline { font-size: 25px; }
  .summary .n { font-size: 24px; }
  .pricing { grid-template-columns: 1fr; }
  .pricing > div + div { border-left: 0; border-top: 2px solid var(--spot); }
  .sec-head { flex-wrap: wrap; }
  .folio { text-align: left; }
  textarea.paste { min-height: 160px; }
  ul.idx li { flex-direction: column; gap: 2px; }
  ul.idx li span { text-align: left; }
  table.plain { font-size: 13.5px; }
}
@media print {
  body { background: #fff; }
  header.site nav, .tool, #actions, .cta, figure.person, footer.site, .no-print, #provenance { display: none !important; }
  li.rec .why { display: block; }
  li.rec { break-inside: avoid; }
}
