/* The trust pages (APEX; redesign WP11, release 5-2): "How we write" and the list of corrections, drawn only in the new design.
   Loaded by templates/method.php and templates/corrections.php after site-next.css and home-next.css (header.php, the
   per-route pattern), whose labels and section dots they reuse; the breadcrumbs share category-next's look under their own rule.

   Rules kept (dev plan P2/P3): every colour is a token from site-next.css, in both themes; no text under 12 px; no variable-font
   settings; no inline image URI; reading text at the reading measure. */

/* No bottom padding on the page: the footer's top margin is the one --section-gap under its last block (owner, 3 December 2026). */
.trust-next .cat-crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s2);font-size:var(--fs-caption);color:var(--text-muted)}
.trust-next .cat-crumbs a{color:var(--text-muted)}
.trust-next .cat-crumbs a:hover{color:var(--text-strong)}
.trust-next .cat-crumbs [aria-current]{color:var(--text-strong);font-weight:600}

/* ------------------------------------------------------------------ the heading */
.trust-head{display:flex;flex-direction:column;gap:var(--s3);padding-block:var(--s6) var(--s5);border-bottom:1px solid var(--line)}
.trust-head h1{margin:0;font:var(--weight-heading) var(--fs-h1)/1.08 var(--font-heading);letter-spacing:-.015em;color:var(--text-strong);overflow-wrap:anywhere}
.trust-dek{max-width:var(--reading);margin:0;font-size:var(--fs-body-l);line-height:1.6;color:var(--text-muted)}

/* ------------------------------------------------------------------ the body: the contents beside the text on a wide screen */
.trust-body{display:grid;grid-template-columns:minmax(0,240px) minmax(0,var(--reading));justify-content:start;gap:var(--s8);padding-top:var(--s6)}
.trust-body--list{grid-template-columns:minmax(0,calc(var(--reading) + 160px))}
.trust-toc{position:sticky;top:calc(var(--header-offset) + var(--s5));align-self:start}
.trust-toc__label{display:block;margin:0 0 var(--s3);font:600 var(--fs-label)/1.3 var(--font-text);letter-spacing:.07em;text-transform:uppercase;color:var(--text-muted)}
.trust-toc ol{display:flex;flex-direction:column;margin:0;padding:0;list-style:none;border-left:1px solid var(--line)}
/* The 4 px above and below each entry, as the policies' contents have (owner, 2 December 2026, spacing audit): an entry on two lines
   filled its 40 px and sat on the next one's text with no space between them. */
.trust-toc a{position:relative;display:flex;align-items:center;min-height:40px;padding:var(--s1) 0 var(--s1) var(--s4);font-size:var(--fs-small);color:var(--text-muted)}
/* The entry of the section being read (aria-current="location", js/site-next.js) has the hovered colour and, so that colour is
   not all that marks it, the article outline's 2 px accent rule, laid over the list's line by an absolutely placed ::before:
   nothing in the list moves (owner, 2 December 2026). The hover look only where a pointer hovers, so on a touch screen the
   entry last tapped does not keep it. */
.trust-toc a[aria-current="location"]{color:var(--text-strong)}
.trust-toc a[aria-current="location"]::before{content:"";position:absolute;top:0;bottom:0;left:-1px;width:2px;background:var(--accent)}
@media (hover:hover){.trust-toc a:hover{color:var(--text-strong)}}
.trust-text{min-width:0}
.trust-text section + section{margin-top:var(--s7)}
/* Every section's heading has its eyebrow with the kerb above it (owner, 1 December 2026). */
.trust-text .ar-eyebrow{margin-bottom:var(--s2)}
.trust-text h2{margin:0 0 var(--s3);font:var(--weight-title) var(--fs-h3)/1.25 var(--font-title);color:var(--text-strong)}
.trust-text p{margin:0 0 var(--s4);font-size:var(--fs-body-l);line-height:1.7;color:var(--text)}
.trust-text ul{margin:0;padding-left:var(--s5);font-size:var(--fs-body-l);line-height:1.6;color:var(--text)}
.trust-text li{margin-bottom:var(--s2);padding-left:var(--s1)}
.trust-text li::marker{color:var(--accent)}
.trust-actions{display:flex;flex-wrap:wrap;gap:var(--s3);margin-top:var(--s6)}
.trust-related{display:flex;flex-wrap:wrap;gap:var(--s2) var(--s5);margin-top:var(--s6);padding-top:var(--s5);border-top:1px solid var(--line)}
.trust-related a{display:inline-flex;align-items:center;gap:var(--s2);min-height:44px;font-size:var(--fs-small);font-weight:650;color:var(--text-strong)}
.trust-related a::after{content:"→"}
.trust-related a:hover{color:var(--accent-ink)}

/* ------------------------------------------------------------------ the corrections: date, the article, what was corrected */
.trust-notes{margin:0;padding:0;list-style:none}
.trust-note{display:grid;grid-template-columns:120px minmax(0,1fr);gap:var(--s5);padding-block:var(--s5);border-top:1px solid var(--line)}
.trust-note:first-child{border-top:0;padding-top:0}
.trust-note time{padding-top:2px;font:650 var(--fs-small)/1.4 var(--font-text);color:var(--text-muted);font-variant-numeric:tabular-nums}
.trust-note__body{display:flex;flex-direction:column;gap:var(--s2);min-width:0}
.trust-note .trust-note__title{margin:0;font:var(--weight-title) var(--fs-h4)/1.3 var(--font-title);overflow-wrap:anywhere}
.trust-note__title a{color:var(--text-strong)}
.trust-note__title a:hover{text-decoration:underline;text-decoration-color:var(--accent);text-underline-offset:4px}
.trust-note p{margin:0;font-size:var(--fs-body);line-height:1.6}
.trust-empty{padding:var(--s5);border:1px solid var(--line);border-radius:var(--r-lg);background:var(--surface);color:var(--text-muted)}
.trust-policy{margin-top:var(--s7);padding-top:var(--s6);border-top:1px solid var(--line)}
.trust-list h2{margin-bottom:var(--s5)}

@media (max-width:1000px){
  .trust-body{grid-template-columns:minmax(0,1fr);gap:var(--s5)}
  .trust-toc{position:static}
}
@media (max-width:640px){
  .trust-head{padding-block:var(--s5) var(--s4)}
  .trust-head h1{font-size:var(--fs-h2)}
  .trust-text p,.trust-text ul{font-size:var(--fs-body)}
  .trust-note{grid-template-columns:minmax(0,1fr);gap:var(--s2)}
  .trust-actions .btn{width:100%}
}
