/* ISO 29148 Revision Checker: engineering dossier theme.
   Palette and type derived from the product seed, not copied from a sibling (R-181). */
:root {
  --ink: #14212e;
  --ink-2: #2b3a48;
  --muted: #4a5663;
  --paper: #f6f1e6;
  --paper-2: #fbf8f0;
  --rule: #d6cdbb;
  --rule-strong: #a99f8c;
  --amber: #a85f0d;
  --amber-dark: #7c4306;
  --amber-soft: #f0dcbd;
  --teal: #1f6d68;
  --teal-soft: #d9e8e4;
  --red: #8c2f1f;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: Charter, "Iowan Old Style", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--amber-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s ease; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.012em; }
h1 { font-size: clamp(2.15rem, 5vw, 3.4rem); line-height: 1.04; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); line-height: 1.15; }
h3 { font-size: 1.22rem; line-height: 1.3; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.35em; }
li { margin-bottom: .45em; }
strong, b { font-weight: 700; }
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 12px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.kicker, .label, .n, .code, .tag, .stamp, .eyebrow {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em;
}
.kicker { font-size: 14px; color: var(--amber-dark); margin: 0 0 14px; }
.hint { color: var(--muted); font-size: 14px; line-height: 1.55; }
.mono { font-family: var(--mono); }
.small { font-size: 14px; }
#main a { display: inline-block; padding: 3px 0; line-height: 1.5; }

/* top strip and masthead */
.strip { background: var(--ink); color: #e9e1d2; font-size: 14px; line-height: 1.5; border-bottom: 1px solid #0b141d; }
.strip .wrap { display: flex; gap: 10px; flex-wrap: wrap; padding: 8px 0; align-items: center; }
.strip b { color: #f2c078; }
.strip .dot { opacity: .55; }
.mast { background: var(--paper-2); border-bottom: 1px solid var(--rule); }
.mast .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 18px 0 0; flex-wrap: wrap; }
.brand { text-decoration: none; color: var(--ink); display: block; padding-bottom: 14px; }
.brand .mark { display: block; font-family: var(--serif); font-size: 1.32rem; font-weight: 700; letter-spacing: -.01em; }
.brand .sub { display: block; font-family: var(--mono); font-size: 14px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
nav.main { display: flex; gap: 2px; flex-wrap: wrap; }
nav.main a { font-size: 14.5px; color: var(--ink-2); text-decoration: none; padding: 9px 10px; border-bottom: 3px solid transparent; }
nav.main a:hover { border-bottom-color: var(--rule-strong); }
nav.main a[aria-current="page"] { border-bottom-color: var(--amber); color: var(--ink); font-weight: 600; }

/* typography helpers */
.lede { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.answer { font-family: var(--serif); font-size: 1.32rem; line-height: 1.42; color: var(--ink); border-left: 4px solid var(--teal); padding-left: 18px; margin: 18px 0 26px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--mono); font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 9px 0; margin: 0 0 22px; }
.meta span + span::before { content: "/"; margin-right: 18px; color: var(--rule-strong); }

/* buttons */
.btn { display: inline-block; font-family: var(--sans); font-weight: 700; font-size: 15.5px; line-height: 1.2; padding: 13px 20px; background: var(--ink); color: var(--paper-2); text-decoration: none; border: 1px solid var(--ink); border-radius: 2px; cursor: pointer; }
.btn:hover { background: #203142; color: #fff; }
.btn.amber { background: var(--amber); border-color: var(--amber); color: #ffffff; }
.btn.amber:hover { background: #cf7f1f; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn.ghost:hover { border-color: var(--ink); background: rgba(20,33,46,.04); }
.btn.small { font-size: 14px; padding: 9px 13px; }

/* home cover */
.cover { display: grid; grid-template-columns: 1.08fr .92fr; min-height: 430px; border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.cover .panel { padding: 54px 46px 44px max(30px, calc((100vw - var(--wrap)) / 2 + 20px)); border-right: 1px solid var(--rule); position: relative; }
.cover .panel::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--amber); }
.cover h1 { max-width: 15ch; }
.cover .photo { position: relative; min-height: 100%; background: #d9d2c2; }
.cover .photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.02); }
.cover .photo .stamp { position: absolute; right: 22px; bottom: 20px; background: var(--paper-2); border: 1px solid var(--ink); padding: 7px 11px; font-size: 14px; transform: rotate(-2deg); }
.cover .pricebar { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 20px; font-size: 14.5px; }
.cover .pricebar b { font-family: var(--mono); font-size: 15px; }
.trustline { font-size: 15px; line-height: 1.55; border-top: 1px solid var(--rule); padding-top: 14px; margin-top: 18px; }

/* stage strip */
.stage-strip { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--rule); background: var(--paper); }
.stage-strip div { padding: 16px 16px 14px; border-right: 1px solid var(--rule); min-height: 96px; }
.stage-strip div:last-child { border-right: 0; }
.stage-strip .sc { font-family: var(--mono); font-size: 14px; letter-spacing: .06em; display: block; color: var(--muted); }
.stage-strip .sd { display: block; font-family: var(--serif); font-size: 17px; font-weight: 600; margin: 5px 0 3px; }
.stage-strip .sn { font-size: 14px; color: var(--muted); line-height: 1.4; }
.stage-strip .now { background: var(--amber-soft); }
.stage-strip .now .sc { color: var(--amber-dark); }

/* sections */
section.block, .block { padding: 46px 0; border-bottom: 1px solid var(--rule); }
.rulehead { display: flex; align-items: baseline; gap: 14px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 22px; }
.rulehead .no { font-family: var(--mono); font-size: 14px; letter-spacing: .1em; color: var(--amber-dark); white-space: nowrap; }
.rulehead h2, .rulehead h1 { margin: 0; }

/* two column check */
.checkgrid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; align-items: start; }
.panel { background: var(--paper-2); border: 1px solid var(--rule); padding: 24px; }
form label { display: block; font-weight: 650; font-size: 14.5px; margin-bottom: 5px; }
form .hint { display: block; margin-top: 5px; }
input[type=text], input[type=email], input[type=date], input[type=number], select, textarea {
  width: 100%; font-family: var(--sans); font-size: 16px; line-height: 1.4; padding: 11px 12px;
  border: 1px solid var(--rule-strong); background: #fff; color: var(--ink); border-radius: 2px;
}
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 14px; }
.verdict { border: 1px solid var(--rule); border-left: 4px solid var(--teal); background: var(--paper-2); padding: 20px 22px; }
.verdict .tag { font-size: 14px; color: var(--teal); }
.verdict h2 { margin: 6px 0 8px; }
.provenance { border: 1px solid var(--rule); background: #efe8d9; padding: 15px 17px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.provenance b { font-family: var(--mono); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
#result { margin-top: 20px; }
.result-box { border: 2px solid var(--ink); background: var(--paper-2); padding: 22px; }
.result-box h2 { margin-top: 0; }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 14px 0; }
.result-grid div { border-top: 2px solid var(--amber); padding-top: 8px; }
.result-grid .k { font-family: var(--mono); font-size: 14px; text-transform: uppercase; color: var(--muted); display: block; }
.result-grid .v { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.bad { border-left-color: var(--red); }
.good { border-left-color: var(--teal); }

/* cards and registers */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.card { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 20px 20px 18px; background: var(--paper-2); }
.card .n { font-size: 14px; color: var(--amber-dark); display: block; margin-bottom: 7px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.card a { font-size: 14.5px; display: inline-block; padding: 3px 0; }
.tablewrap { overflow-x: auto; border: 1px solid var(--rule); background: var(--paper-2); }
table.records { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; }
table.records th { text-align: left; font-family: var(--mono); font-size: 14px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); border-bottom: 2px solid var(--ink); padding: 11px 12px; vertical-align: bottom; background: #efe8d9; }
table.records td { border-bottom: 1px solid var(--rule); padding: 11px 12px; vertical-align: top; }
table.records tr:last-child td { border-bottom: 0; }
table.records .code { font-family: var(--mono); font-size: 14px; color: var(--ink); white-space: nowrap; }
table.records .st { font-size: 14px; color: var(--muted); }
table.records a { font-weight: 600; }

/* unit page */
.doc { display: grid; grid-template-columns: 96px minmax(0, 1fr) 292px; gap: 30px; padding: 34px 0 44px; align-items: start; }
.rail { border-right: 1px solid var(--rule); padding-right: 18px; position: sticky; top: 18px; }
.rail .big { font-family: var(--serif); font-size: 2.35rem; line-height: 1; font-weight: 600; color: var(--amber-dark); }
.rail .lbl { font-family: var(--mono); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.rail .grp { font-size: 14px; color: var(--muted); line-height: 1.4; margin-top: 12px; border-top: 1px solid var(--rule); padding-top: 10px; }
.docmain h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.docmain h2 { margin-top: 30px; border-top: 1px solid var(--rule); padding-top: 14px; }
.docmain p, .docmain li { max-width: 70ch; }
.docmain .evidence { list-style: none; padding: 0; counter-reset: ev; }
.docmain .evidence li { border-left: 2px solid var(--teal); padding: 7px 0 7px 14px; margin: 0 0 10px; counter-increment: ev; }
.docmain .evidence .cat { display: block; font-family: var(--mono); font-size: 14px; letter-spacing: .07em; text-transform: uppercase; color: var(--teal); margin-bottom: 2px; }
.docmain .gaps li { color: var(--ink-2); }
.xref { columns: 2; column-gap: 28px; }
.xref li { break-inside: avoid; font-size: 15px; }
.clausenav { display: flex; justify-content: space-between; gap: 14px; border-top: 1px solid var(--rule); padding-top: 14px; font-size: 14.5px; }
.side { display: grid; gap: 16px; }
.box { border: 1px solid var(--rule); background: var(--paper-2); padding: 16px 17px; }
.box h2 { font-size: 1.05rem; margin: 0 0 10px; font-family: var(--sans); font-weight: 700; letter-spacing: 0; }
.box dl { font-size: 14px; }
.box dt { font-family: var(--mono); font-size: 14px; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.box dd { margin: 2px 0 0; }
.draftbox { border: 1px solid var(--rule); border-left: 4px solid var(--amber); background: var(--amber-soft); padding: 16px 18px; margin: 20px 0; }
.draftbox .tag { font-size: 14px; color: var(--amber-dark); display: block; margin-bottom: 5px; }
.draftbox p { font-size: 15px; margin-bottom: .5em; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); }
.plan { padding: 24px 22px; border-right: 1px solid var(--rule); }
.plan:last-child { border-right: 0; }
.plan.feature { background: var(--amber-soft); }
.plan .price { font-family: var(--serif); font-size: 2.15rem; line-height: 1; margin: 8px 0 3px; }
.plan .per { font-family: var(--mono); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 14px; }
.plan ul { font-size: 15px; padding-left: 18px; }
.plan .btn { margin-top: 10px; }
.note { border: 1px solid var(--rule); background: #efe8d9; padding: 16px 18px; font-size: 15px; }

/* photo band */
.photoband { margin: 0; border-bottom: 1px solid var(--rule); }
.photoband img { width: 100%; height: clamp(260px, 38vw, 430px); object-fit: cover; filter: saturate(.8); }
.photoband figcaption { padding: 16px 0 18px; max-width: 72ch; font-size: 15px; color: var(--ink-2); }

/* faq */
.faq details { border-top: 1px solid var(--rule); padding: 12px 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 650; font-size: 16.5px; }
.faq p { margin: 10px 0 0; font-size: 15.5px; max-width: 75ch; }

/* prose */
.prose { max-width: 76ch; }
.prose h2 { margin-top: 34px; border-top: 1px solid var(--rule); padding-top: 14px; }
.prose h1 { margin-bottom: 18px; }
.prose li { font-size: 16.5px; }

/* footer */
footer.site { background: var(--ink); color: #d9d0bf; font-size: 14.5px; line-height: 1.55; }
footer.site .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding: 38px 0 18px; }
footer.site h2 { color: var(--paper-2); font-size: 1rem; font-family: var(--sans); letter-spacing: .02em; margin-bottom: 8px; }
footer.site a { color: #f0c98c; display: inline-block; padding: 3px 0; line-height: 1.5; }
footer.site a:hover { color: #fff; }
footer.site .fine { border-top: 1px solid #33404d; margin-top: 10px; padding: 14px 0 22px; font-size: 14px; color: #b9af9f; line-height: 1.55; }
footer.site .hint { color: #b9af9f; }

/* utility */
.center { text-align: center; }
.mt0 { margin-top: 0; }
.mt24 { margin-top: 24px; }
.nowrap { white-space: nowrap; }
.no-print { }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 980px) {
  .cover { grid-template-columns: 1fr; }
  .cover .panel { padding: 36px 24px 30px; border-right: 0; }
  .cover .panel::before { width: 100%; height: 6px; bottom: auto; }
  .cover .photo { min-height: 260px; max-height: 340px; }
  .stage-strip { grid-template-columns: 1fr 1fr; }
  .stage-strip div:nth-child(2n) { border-right: 0; }
  .doc { grid-template-columns: 1fr; }
  .rail { position: static; border-right: 0; border-bottom: 1px solid var(--rule); padding: 0 0 12px; display: flex; gap: 14px; align-items: baseline; }
  .rail .big { font-size: 2rem; }
  .rail .grp { border: 0; margin: 0; padding: 0; }
  .side { grid-template-columns: 1fr 1fr; }
  .checkgrid, .cards, .plans, footer.site .wrap { grid-template-columns: 1fr; }
  .card, .plan { border-right: 0; }
  .result-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 28px); }
  .mast .wrap { padding-top: 12px; }
  nav.main { gap: 0; overflow-x: auto; width: 100%; flex-wrap: nowrap; }
  nav.main a { padding: 8px 9px; white-space: nowrap; }
  .two, .side { grid-template-columns: 1fr; }
  .xref { columns: 1; }
  h1 { font-size: 2rem; }
  .cover h1 { font-size: 2.15rem; }
  .doc { gap: 18px; }
  .panel { padding: 18px; }
  .tablewrap { border-left: 0; border-right: 0; }
  table.records { font-size: 14.5px; }
  table.records th, table.records td { padding: 9px 8px; }
  .stage-strip { grid-template-columns: 1fr 1fr; }
  .stage-strip div:nth-child(2n) { border-right: 0; }
  .stage-strip div { border-right: 0; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .mast, .strip, footer.site, .no-print, nav.main { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: none; }
}
