/* Tripcerto internal — the site's one stylesheet.
 *
 * ⛔ THIS IS THE ORIGINAL DESIGN, LIFTED VERBATIM. A rebuild in the status page's visual language
 * was tried and rejected: that page is a public dashboard and reads as one, which is wrong for a
 * set of documents somebody has to sit and read. Nothing here should be "refreshed" — the split
 * into per-document pages and the build step are the change; the appearance deliberately is not.
 *
 * ⚠️ Linked, not inlined. Pages are generated by scripts/build-internal-site.mjs, so a change here
 * reaches all of them at once; at twenty-plus documents an inlined copy is a change made twenty
 * times. Consequence to keep in mind: a single .html opened from disk renders unstyled. The site
 * is served and access-controlled — if a document has to go to somebody, export a PDF.
 */


/* ⛔ INLINE, NOT A LINKED STYLESHEET. This file has to render correctly when it is
   emailed, downloaded or opened from a desktop, not only when it is served. A relative
   stylesheet is the difference between a document Charlie can read and one that arrives
   as unstyled text. */
/* Internal site — shared styles. One stylesheet so every page here looks the same. */
:root{
  --ground:#ffffff; --panel:#f4f3f1; --ink:#0b0c0c; --ink-2:#55595c;
  --line:#d5d3d0; --line-2:#0b0c0c; --link:#1d5fa8; --focus:#ffdd00;
  /* Label gold, 4.71:1 on white: clear of the 4.5:1 that AA asks of 12.5px label text. */
  --gold-ink:#9a6a1f;
  /* One spacing scale. Values in this file are steps on it, so vertical rhythm is a
     decision made once rather than per rule. */
  --s1:4px; --s2:8px; --s3:12px; --s4:16px; --s5:24px; --s6:32px; --s7:48px;
  --red:#b3301c;    --red-bg:#f7ddd8;    --red-ink:#8f2616;
  --amber:#a86a1e;  --amber-bg:#f8e6cf;  --amber-ink:#7a4b12;
  --green:#1c6b45;  --green-bg:#d7e8de;  --green-ink:#155234;
  --grey-bg:#ececeb; --grey-ink:#4a4e51;
  /* A search match: a highlighter's yellow, quieter than the focus yellow so the two never meet. */
  --mark:#fff0a3;
  --sans:'Instrument Sans',system-ui,-apple-system,'Segoe UI',Arial,sans-serif;
  --mono:'JetBrains Mono',ui-monospace,'SF Mono',Menlo,monospace;
}
*{box-sizing:border-box}
body{margin:0;background:var(--ground);color:var(--ink);font-family:var(--sans);
  font-size:17px;line-height:1.55;-webkit-font-smoothing:antialiased}
.wrap{max-width:1060px;margin:0 auto;padding:0 var(--s5)}
a{color:var(--link)}
a:focus-visible{outline:3px solid var(--focus);outline-offset:0;background:var(--focus);color:#0b0c0c;text-decoration:none}

.topbar{border-bottom:8px solid var(--line-2);padding:var(--s4) 0}
/* Full width, left-aligned to the same edge as the sidebar beneath it. Centring this in the
   1060px content box left the brand floating in the middle of a full-width layout. */
.topbar .wrap{max-width:none;margin:0;display:flex;align-items:center;
  justify-content:space-between;gap:20px;flex-wrap:wrap}
.brand{font-weight:600;font-size:21px;margin:0;display:flex;align-items:center;gap:12px}
/* The drawn wordmark, inlined by the build. Artwork, so it is sized by height and never set as type. */
.brand .mark{display:block;height:24px;width:auto}
.brand .sub{font-weight:400;font-size:15px;color:var(--ink-2);letter-spacing:0;
  padding-left:12px;border-left:1px solid var(--line)}
.topnav{display:flex;gap:20px;font-size:15px}
.topnav a{color:var(--ink-2);text-decoration:none;border-bottom:2px solid transparent;padding-bottom:2px}
.topnav a:hover{color:var(--ink);border-bottom-color:var(--line)}
.topnav a[aria-current="page"]{color:var(--ink);font-weight:600;border-bottom-color:var(--line-2)}

header.page{padding:var(--s6) 0 var(--s5);border-bottom:1px solid var(--line)}
h1{font-size:clamp(30px,4.4vw,40px);font-weight:700;line-height:1.12;letter-spacing:-.022em;margin:0 0 var(--s3);text-wrap:balance}
.lede{font-size:18px;color:var(--ink-2);margin:0;max-width:68ch}
/* Document control. The same four fields on every controlled document, laid out rather than
   written as a sentence, so an assessor can find the review date without reading. */
.docmeta{display:flex;flex-wrap:wrap;gap:var(--s3) 40px;margin:0 0 var(--s5);padding:0 0 var(--s5);
  border-bottom:1px solid var(--line)}
.docmeta .k{margin:0 0 2px;font-size:11.5px;text-transform:uppercase;letter-spacing:.07em;
  color:var(--ink-2);font-weight:600}
.docmeta .v{margin:0;font-size:15px;font-weight:500}

h2{font-size:25px;font-weight:700;letter-spacing:-.012em;margin:0 0 var(--s3)}
h3{font-size:18px;font-weight:600;margin:0 0 var(--s3);letter-spacing:-.005em}
section{padding:var(--s6) 0;border-bottom:1px solid var(--line)}
section:first-of-type{padding-top:var(--s5)}
section:last-of-type{border-bottom:none}
.hint{color:var(--ink-2);font-size:15.5px;margin:0 0 var(--s4);max-width:76ch}

.tw{overflow-x:auto;border:1px solid var(--line);margin:0 0 var(--s5)}
.tw:last-child{margin-bottom:0}
table{border-collapse:collapse;width:100%;min-width:620px;font-size:16px}
caption{text-align:left;font-weight:600;font-size:15px;padding:var(--s3) var(--s4);background:var(--panel);border-bottom:1px solid var(--line)}
th,td{text-align:left;padding:var(--s3) var(--s4);border-bottom:1px solid var(--line);vertical-align:top}
thead th{font-size:12.5px;text-transform:uppercase;letter-spacing:.07em;color:var(--ink-2);font-weight:600;background:var(--panel);white-space:nowrap}
tbody tr:last-child td{border-bottom:none}
td.code{font-family:var(--mono);font-size:13px;color:var(--ink-2);white-space:nowrap;width:1%}
td.who{white-space:nowrap;font-size:15.5px;width:1%}
/* A short label that outgrew nowrap belongs in normal flow, not in a column three times    the width of the prose beside it. */
td.who.wrap{white-space:normal;width:auto}
td.stat{white-space:nowrap;width:1%}

.tag{display:inline-block;font-family:var(--mono);font-size:11.5px;font-weight:500;letter-spacing:.05em;
  text-transform:uppercase;padding:3px 8px;white-space:nowrap;border:1px solid transparent}
.t-red{background:var(--red-bg);color:var(--red-ink);border-color:var(--red)}
.t-amber{background:var(--amber-bg);color:var(--amber-ink);border-color:var(--amber)}
.t-green{background:var(--green-bg);color:var(--green-ink);border-color:var(--green)}
.t-grey{background:var(--grey-bg);color:var(--grey-ink);border-color:var(--line)}

.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:1px;background:var(--line);border:1px solid var(--line);margin:0 0 var(--s5)}
.stats div{background:var(--ground);padding:var(--s4) var(--s5)}
.stats .k{font-size:12.5px;text-transform:uppercase;letter-spacing:.07em;color:var(--ink-2);font-weight:600;margin:0 0 var(--s2)}
.stats .v{font-size:33px;font-weight:700;line-height:1;margin:0 0 6px;letter-spacing:-.025em;font-variant-numeric:tabular-nums}
.stats .s{font-size:14px;color:var(--ink-2);margin:0;line-height:1.4}

.banner{border-left:6px solid var(--line-2);background:var(--panel);padding:var(--s5)}
.banner h2{font-size:18px;margin:0 0 var(--s3)}
.banner ul{margin:0;padding-left:20px}
.banner li{margin-bottom:var(--s2);font-size:16px}
.banner li:last-child{margin-bottom:0}
.banner.act{border-left-color:var(--red)}
.banner.warn{border-left-color:var(--amber)}

footer{padding:var(--s6) 0 var(--s7);font-size:15px;color:var(--ink-2)}
footer p{margin:0 0 var(--s3);max-width:82ch}
.m{font-family:var(--mono);font-size:13px}
@media (prefers-reduced-motion: reduce){*{transition:none!important}}


.docs{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line);border:1px solid var(--line)}
  @media (max-width:900px){ .docs{grid-template-columns:repeat(2,1fr)} }
  @media (max-width:520px){ .docs{grid-template-columns:1fr} }
  /* Every card is the same height and its status sits on the same line across the row,
     so the four read as a set. */
  .doc{background:var(--ground);padding:var(--s5);display:flex;flex-direction:column}
  .doc .tag{align-self:flex-start;margin:0 0 var(--s3)}
  .doc p{margin:0 0 var(--s3);font-size:15px;color:var(--ink-2);line-height:1.5}
  .doc .fill{flex:1}
  .doc .foot{border-top:1px solid var(--line);padding-top:var(--s3);font-size:13.5px;color:var(--ink-2)}
  .doc .foot b{color:var(--ink);font-weight:600}
  .doc .foot .m{display:block;margin-top:6px;word-break:break-all}
.prose{max-width:76ch}
  .prose h3{margin:var(--s6) 0 var(--s3);font-size:18px}
  .prose p{margin:0 0 var(--s4)}
  .prose ul{margin:0 0 var(--s4);padding-left:22px}
  .prose li{margin-bottom:var(--s2)}
  .steps{counter-reset:s;list-style:none;padding:0;margin:0 0 8px}
  .steps li{counter-increment:s;position:relative;padding:0 0 var(--s4) 44px;margin:0}
  .steps li::before{content:counter(s);position:absolute;left:0;top:1px;width:28px;height:28px;
    display:flex;align-items:center;justify-content:center;background:var(--line-2);color:var(--ground);
    font-family:var(--mono);font-size:13px;font-weight:500}
  .steps li b{display:block;margin-bottom:3px}

/* ── The combined document ──────────────────────────────────────────────────
   Every .part is a DIRECT CHILD of the one content .wrap. Nesting a wrapper
   inside a part breaks `.part + .part`, and the separator between documents then
   silently disappears. */
.shell{display:grid;grid-template-columns:236px minmax(0,1fr);gap:0;align-items:start}
.doc-nav{position:sticky;top:0;align-self:start;box-sizing:border-box;height:100vh;height:100dvh;overflow-y:auto;
  padding:var(--s5) var(--s5) var(--s7) var(--s5);border-right:1px solid var(--line);font-size:14.5px}
.doc-nav .grp{margin:0 0 var(--s2);font-size:12px;text-transform:uppercase;letter-spacing:.08em;
  color:var(--gold-ink);font-weight:600}
.doc-nav .grp + ul{margin:0 0 var(--s5);padding:0;list-style:none}
.doc-nav li{margin:0 0 2px}
.doc-nav a{display:block;padding:4px 8px;margin-left:-8px;color:var(--ink-2);
  text-decoration:none;border-radius:3px;line-height:1.35}
.doc-nav a:hover{color:var(--ink);background:var(--panel)}
.doc-nav a[aria-current="page"]{color:var(--ink);font-weight:600;background:var(--panel)}
/* The reading measure belongs to the prose, not to the column. A six-column register squeezed
   into 900px gave its widest cell three words a line while a third of the window sat empty; text
   set to the same width would be unreadable. So the column is wide and the prose is narrow. */
.shell > .wrap{margin:0;max-width:1280px;padding:0 40px}
.part section > p,
.part section > ul,
.part section > ol,
.part section > h2,
.part section > h3{max-width:76ch}

/* Below the two-column threshold the sidebar becomes a band above the content. Groups sit
   side by side there rather than stacking, so it costs three lines instead of sixteen. */
@media (max-width:900px){
  .shell{display:block}
  .doc-nav{position:static;height:auto;overflow:visible;border-right:0;
    border-bottom:1px solid var(--line);padding:18px 24px 6px;
    display:flex;flex-wrap:wrap;gap:0 34px}
  .doc-nav > *{flex:0 1 auto}
  .doc-nav .grp + ul{margin-bottom:14px}
  .shell > .wrap{padding:0 24px;max-width:none}
}
@media (max-width:520px){ .doc-nav{display:block} }

.part{padding-top:var(--s5)}
/* Anchors land below the sticky bar rather than under it. */
.part{scroll-margin-top:70px}
.part > h2{font-size:29px;font-weight:700;letter-spacing:-.022em;margin:0 0 var(--s3)}
.part-lede{font-size:17px;color:var(--ink-2);margin:0 0 var(--s4);max-width:72ch}
.part + .part{margin-top:var(--s7);border-top:8px solid var(--line-2)}
h3{font-size:23px;font-weight:700;letter-spacing:-.014em;margin:0 0 6px}
h4{font-size:17px;font-weight:600;margin:0 0 8px}

/* ── Hosted site: top bar tools, the documents menu, search and sign-in ───────────────────────
   The markup is the builder's and the behaviour site.js's. None of it reaches the bundle or its
   PDF: the bundle has no top bar tools, no menu and no script, so these rules match nothing there. */
.was{font-size:13px;color:var(--ink-2)}
.glyph{display:block;width:20px;height:20px;flex:none}

.topbar .tools{display:flex;align-items:center;gap:var(--s5);margin-left:auto}
.find{display:flex;align-items:center;gap:10px;min-width:260px;padding:7px 8px 7px 10px;margin:0;
  font:inherit;font-size:15px;color:var(--ink-2);background:var(--ground);border:1px solid var(--line);
  border-radius:0;cursor:pointer;text-align:left}
.find .label{flex:1}
.find kbd{font-family:var(--mono);font-size:11.5px;line-height:1.5;color:var(--ink-2);background:var(--panel);
  border:1px solid var(--line);padding:0 6px}
.find:hover{border-color:var(--ink-2);color:var(--ink)}
.signout{font-size:15px;color:var(--ink-2);text-decoration:none;white-space:nowrap}
.signout:hover{color:var(--ink);text-decoration:underline}
.menu{display:none;align-items:center;justify-content:center;width:40px;height:40px;margin:0 -8px 0 0;padding:0;
  color:var(--ink);background:none;border:0;cursor:pointer}
.menu .glyph + .glyph,.menu[aria-expanded="true"] .glyph:first-child{display:none}
.menu[aria-expanded="true"] .glyph + .glyph{display:block}
.find:focus-visible,.menu:focus-visible,.search-close:focus-visible,.button:focus-visible{
  outline:3px solid var(--focus);outline-offset:0}
.nav-foot{display:none}

@media (max-width:900px){
  .topbar{position:sticky;top:0;z-index:30;background:var(--ground)}
  .topbar .wrap{flex-wrap:nowrap}
  .topbar .tools{gap:var(--s1)}
  .find{min-width:0;width:40px;height:40px;padding:0;justify-content:center;border:0;color:var(--ink)}
  .find .label,.find kbd,.topbar .signout{display:none}
  .menu{display:flex}
  section,.part,tr{scroll-margin-top:96px}
  /* The documents list waits behind the menu button, but only when site.js is there to open it. */
  html.js .doc-nav{display:none}
  /* align-self:stretch undoes the sidebar's `start`, which would otherwise size a fixed box to its
     content and let it run past the bottom of the screen. */
  html.js.menu-open .doc-nav{display:block;position:fixed;top:var(--bar,74px);left:0;right:0;bottom:0;z-index:25;
    align-self:stretch;height:auto;overflow-y:auto;overscroll-behavior:contain;background:var(--ground);border:0;
    padding:var(--s5) 24px var(--s7)}
  html.menu-open body{overflow:hidden}
  html.js.menu-open .doc-nav .grp + ul{margin-bottom:var(--s5)}
  html.js.menu-open .doc-nav a{font-size:17px;padding:9px 8px}
  html.js.menu-open .nav-foot{display:block;margin:0;padding-top:var(--s4);border-top:1px solid var(--line)}
  .nav-foot a{color:var(--ink-2)}
}
@media (max-width:520px){
  .topbar .wrap{padding:0 16px}
  .brand{gap:10px}
  .brand .mark{height:21px}
  .brand .sub{font-size:14px;padding-left:10px}
}

dialog.search{width:min(680px,calc(100vw - 32px));max-height:min(72vh,720px);margin:10vh auto auto;padding:0;
  color:var(--ink);background:var(--ground);border:1px solid var(--line-2);border-top:8px solid var(--line-2)}
dialog.search[open]{display:flex;flex-direction:column}
dialog.search::backdrop{background:rgba(11,12,12,.36)}
.search-bar{display:flex;align-items:center;gap:12px;padding:12px 14px 12px 16px;border-bottom:1px solid var(--line)}
.search-bar .glyph{color:var(--ink-2)}
.search-bar input{flex:1;min-width:0;margin:0;padding:6px 0;font:inherit;font-size:19px;color:var(--ink);
  background:none;border:0;outline:0;-webkit-appearance:none;appearance:none}
.search-bar input::-webkit-search-cancel-button{-webkit-appearance:none}
.search-close{flex:none;margin:0;padding:3px 9px;font:inherit;font-size:13px;color:var(--ink-2);
  background:var(--panel);border:1px solid var(--line);cursor:pointer}
.search-close:hover{color:var(--ink);border-color:var(--ink-2)}
.search-status{margin:0;padding:10px 16px;font-size:13.5px;color:var(--ink-2);border-bottom:1px solid var(--line)}
.search-results{flex:1;list-style:none;margin:0;padding:0;overflow-y:auto;overscroll-behavior:contain}
.search-results:empty{display:none}
.search-results li{border-bottom:1px solid var(--line)}
.search-results li:last-child{border-bottom:0}
.search-results a{display:block;padding:12px 16px 13px;color:var(--ink);text-decoration:none}
.search-results [aria-selected="true"] a{background:var(--panel);box-shadow:inset 4px 0 0 var(--line-2)}
.sr-where{display:flex;align-items:baseline;gap:8px;margin:0 0 3px;min-width:0}
.sr-doc{flex:none;font-size:15.5px;font-weight:600}
.sr-sec{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:14px;color:var(--ink-2)}
.sr-sec::before{content:"/";margin-right:8px;color:var(--line)}
.sr-text{display:block;font-size:14.5px;line-height:1.5;color:var(--ink-2)}
dialog.search mark{background:var(--mark);color:var(--ink);padding:0 1px}
@media (max-width:640px){
  dialog.search{width:100%;max-width:none;height:100%;height:100dvh;max-height:none;margin:0;border:0;
    border-top:8px solid var(--line-2)}
  .search-bar input{font-size:17px}
}

/* Where a search result lands: the section it quoted, marked for a moment. */
.part section:target,.part tr:target > td{animation:landed 1.8s ease-out}
@keyframes landed{from{background:var(--mark)}to{background:transparent}}
@media (prefers-reduced-motion: reduce){.part section:target,.part tr:target > td{animation:none}}

/* The sign-in page: the one page anybody can open, and the one a shared link previews. */
main.gate{max-width:640px;margin:0 auto;padding:var(--s7) var(--s5)}
main.gate h1{margin-bottom:var(--s4)}
main.gate .lede{margin-bottom:var(--s6)}
.button{display:inline-block;padding:12px 26px;font-size:17px;font-weight:600;color:var(--ground);
  background:var(--line-2);text-decoration:none}
.button:hover{background:#2c2e30}
main.gate .hint{margin-top:var(--s6);font-size:15px}

@media print{
  .topbar .tools,.nav-foot,dialog.search{display:none!important}
}
