/* Cedwyn TEXT-PAGE STANDARD v1.0.0 (10 Nov 2026) — the design of the FCG case pages, e.g.
   /fcg/case/itv-cymru-wales-forensic-institutional-review — made the standard for every
   text-heavy page on bucklerfamily.estate. Extracted from cedwyn-fcg assets/theme.css (v=20261020a), renamed to tp-*.
   Canonical copy: unclehowell/cedwyn-fcg assets/text-page.css (served at /fcg/assets/text-page.css); each webapp
   vendors an identical copy at <app>/assets/text-page.css so it stays self-contained. README: TEXT-PAGE-STANDARD.md.
   Native scheme is DARK: pin <html data-ghf-native="dark" class="tp">; the shared header shell (ghf-boot.js) then shows
   it inverted (light paper, dark ink) in day mode and black in night mode, exactly like the reference page.
   Fonts: Barlow 300/400/500 comes from the shared shell (/_cedwyn/ghf/fonts/); this file declares no @font-face.
   Presentation only: never move, reword or drop content, IDs, data or links when applying it. */
:root{--tp-bg:#000;--tp-ink:#fff;--tp-body:#d4d4d4;--tp-muted:#a3a3a3;--tp-line:rgba(255,255,255,.16);--tp-panel:#0d0d0d;
  --tp-hi:#ff6b6b;--tp-wrap:46rem;--tp-wide:76rem;--tp-font:"Barlow","Helvetica Neue",Arial,system-ui,sans-serif;
  --tp-mono:ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace}
html.tp{background:var(--tp-bg);color-scheme:dark;-webkit-text-size-adjust:100%;scroll-padding-top:5rem}
html.tp body{margin:0;background:var(--tp-bg);color:var(--tp-body);font-family:var(--tp-font);font-size:17px;line-height:1.65;font-weight:400;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;overflow-x:hidden}
html.tp *,html.tp *::before,html.tp *::after{box-sizing:border-box}
.tp a{color:var(--tp-ink);text-decoration:underline;text-decoration-color:rgba(255,255,255,.4);text-underline-offset:.18em;text-decoration-thickness:1px}
.tp a:hover{text-decoration-color:#fff}
.tp a:focus-visible,.tp button:focus-visible,.tp [tabindex]:focus-visible{outline:2px solid #fff;outline-offset:3px;border-radius:2px}
.tp strong,.tp b{color:var(--tp-ink);font-weight:500}
.tp ::selection{background:#fff;color:#000}

/* ---- hero: kicker, title, meta line ---- */
.tp-hero{position:relative;display:flex;align-items:flex-end;padding:3rem 1.5rem 2rem;color:var(--tp-ink);overflow:hidden;
  background:radial-gradient(120% 70% at 50% 120%,rgba(120,130,150,.30) 0%,rgba(40,44,56,.22) 35%,rgba(0,0,0,0) 70%),
  radial-gradient(60% 40% at 80% 10%,rgba(255,255,255,.06) 0%,rgba(0,0,0,0) 60%),linear-gradient(180deg,#000 0%,#05070a 55%,#0b0e13 100%)}
.tp-hero::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.35),transparent)}
.tp-hero-in{position:relative;z-index:1;width:100%;max-width:var(--tp-wide);margin:0 auto}
.tp-kicker{font-size:.74rem;letter-spacing:.22em;text-transform:uppercase;color:var(--tp-muted);margin:0 0 1.2rem;font-weight:500}
.tp-hero h1{margin:0 0 1.1rem;font-weight:500;font-size:clamp(2rem,5.4vw,4.4rem);line-height:1.04;letter-spacing:.02em;text-transform:uppercase;
  color:#fff;max-width:20ch;overflow-wrap:anywhere;hyphens:auto}
.tp-hero p{max-width:40rem;margin:0 0 1rem;font-size:1.06rem;color:#e5e5e5;font-weight:400}
.tp-hero p.tp-meta{font-size:.76rem;letter-spacing:.18em;text-transform:uppercase;color:var(--tp-muted);font-weight:500;line-height:1.7}
.tp-hero p.tp-meta a{color:#e5e5e5}

/* inside the estate shell the app name already sits in the shared header bar, so the kicker is kept for readers of
   assistive tech only (the reference page does the same) */
html.ghf-shell .tp-kicker{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---- article column: one 46rem measure ---- */
.tp-article{max-width:var(--tp-wrap);margin:0 auto;padding:3.5rem 1.5rem 4rem}
.tp-content{color:var(--tp-body)}
.tp-content > *:first-child{margin-top:0}
.tp-content p,.tp-content li{font-size:1.03rem}
.tp-content h2{margin:3.2rem 0 1rem;padding-top:2.2rem;border-top:1px solid var(--tp-line);font-size:clamp(1.35rem,2.6vw,1.75rem);font-weight:500;line-height:1.25;color:#fff;letter-spacing:.01em;border-bottom:0}
.tp-content h3{margin:2.2rem 0 .7rem;font-size:.9rem;font-weight:500;line-height:1.45;letter-spacing:.16em;text-transform:uppercase;color:#fff}
.tp-content > h2:first-child,.tp-content section > h2:first-child{border-top:0;padding-top:0;margin-top:.5rem}
.tp-content h4,.tp-content h5,.tp-content h6{margin:1.8rem 0 .6rem;font-size:1rem;font-weight:500;color:#fff}
.tp-content ul,.tp-content ol{padding-left:1.3rem}
.tp-content li{margin:.35rem 0}
.tp-content li::marker{color:var(--tp-muted)}
.tp-content hr{border:0;border-top:1px solid var(--tp-line);margin:2.5rem 0}
.tp-content img{max-width:100%;height:auto}
.tp-content blockquote{margin:1.5rem 0;padding:.2rem 0 .2rem 1.2rem;border-left:1px solid #fff;color:#e5e5e5}
.tp code,.tp kbd,.tp samp{font-family:var(--tp-mono);font-size:.88em;background:#151515;color:#eee;padding:.12em .4em;border-radius:3px}
.tp-content pre{white-space:pre-wrap;background:var(--tp-panel);border:1px solid var(--tp-line);padding:1rem;border-radius:3px;overflow-x:auto}
.tp-content table{border-collapse:collapse;display:block;overflow-x:auto;max-width:100%;width:100%;font-size:.92rem;margin:1.4rem 0;-webkit-overflow-scrolling:touch}
.tp-content th,.tp-content td{border:0;border-bottom:1px solid var(--tp-line);padding:.6rem .7rem;vertical-align:top;color:var(--tp-body)}
.tp-content th{background:transparent;color:#fff;font-weight:500;font-size:.74rem;letter-spacing:.14em;text-transform:uppercase;text-align:left;border-bottom-color:rgba(255,255,255,.45)}
.tp-content details{border-top:1px solid var(--tp-line);padding:.6rem 0}
.tp-content summary{cursor:pointer;color:#fff}
.tp-muted,.tp-content .tp-muted{color:var(--tp-muted)}

/* ---- source / scope callout (the reference's .fcg-src box) and ghost buttons ---- */
.tp-src{background:var(--tp-panel);border:1px solid var(--tp-line);border-left:2px solid #fff;padding:1rem 1.2rem;margin:0 0 2.5rem;font-size:.95rem;color:var(--tp-body);border-radius:2px}
.tp-src > :last-child{margin-bottom:0}.tp-src > :first-child{margin-top:0}
.tp-btn,.tp-src a.tp-btn{display:inline-block;margin-top:.75rem;padding:.5rem 1.1rem;border:1px solid #fff;border-radius:2px;text-decoration:none;font-size:.74rem;letter-spacing:.16em;text-transform:uppercase;font-weight:500;color:#fff;background:transparent;font-family:var(--tp-font);cursor:pointer}
.tp-btn:hover,.tp-btn[aria-pressed=true]{background:#fff;color:#000}
/* chips (period/year jump links, filters) */
.tp-chips{display:flex;flex-wrap:wrap;gap:.5rem;margin:1.2rem 0 2rem;padding:0;list-style:none}
.tp-chips a,.tp-chips button{display:inline-block;padding:.35rem .8rem;border:1px solid var(--tp-line);border-radius:2px;text-decoration:none;font:500 .72rem/1.4 var(--tp-font);letter-spacing:.14em;text-transform:uppercase;color:#fff;background:transparent;cursor:pointer}
.tp-chips a:hover,.tp-chips button:hover{border-color:#fff}
.tp-chips button[aria-pressed=true]{background:#fff;color:#000;border-color:#fff}
/* entry rows: one record or point per row, hairline between */
.tp-row{display:block;padding:.85rem 0;border-bottom:1px solid var(--tp-line)}
.tp-row:first-child{border-top:1px solid var(--tp-line)}
.tp-id{font-family:var(--tp-mono);font-size:.85em;color:var(--tp-muted);letter-spacing:.02em}

/* ---- dialogs (tap-to-open detail): the top layer sits outside the shell's day-mode inversion, so invert it to match */
.tp dialog{max-width:min(46rem,94vw);width:94vw;border:1px solid var(--tp-line);border-left:2px solid #fff;background:var(--tp-panel);color:var(--tp-body);padding:0;font:400 1rem/1.6 var(--tp-font);border-radius:2px}
.tp dialog::backdrop{background:rgba(0,0,0,.6)}
html.tp dialog pre{white-space:pre-wrap;word-break:break-word;margin:0;padding:1.2rem 1.3rem;max-height:70vh;overflow:auto;font:inherit;font-family:var(--tp-font);color:var(--tp-body);background:none;border:0}
html.tp.ghf-inv dialog{filter:invert(1) hue-rotate(180deg)}
html.tp.ghf-inv dialog::backdrop{background:rgba(0,0,0,.35)}
.tp dialog button{display:inline-block;margin:0 1.3rem 1.2rem;padding:.5rem 1.1rem;border:1px solid #fff;border-radius:2px;background:transparent;color:#fff;font:500 .74rem/1.4 var(--tp-font);letter-spacing:.16em;text-transform:uppercase;cursor:pointer}
.tp dialog button:hover{background:#fff;color:#000}

/* ---- footer ---- */
.tp-foot{border-top:1px solid var(--tp-line);margin-top:2rem;padding:3rem 1.5rem 3.5rem;font-size:.75rem;letter-spacing:.16em;text-transform:uppercase;color:var(--tp-muted)}
.tp-foot-in{max-width:var(--tp-wide);margin:0 auto;display:flex;flex-wrap:wrap;gap:1rem 2rem;align-items:center}
.tp-foot a{color:var(--tp-muted);text-decoration:none}.tp-foot a:hover{color:#fff}

/* ---- phone ---- */
@media (max-width:640px){
  html.tp body{font-size:16.5px}
  .tp-hero{padding:2.5rem 1.1rem 2rem}
  .tp-hero h1{letter-spacing:.01em}
  .tp-article{padding:2.5rem 1.1rem 3rem}
  .tp-content p,.tp-content li{font-size:1rem}
  .tp-foot{padding-left:1.1rem;padding-right:1.1rem}
}
@media (prefers-reduced-motion:reduce){.tp *{transition:none!important}}
@media print{html.tp,html.tp body{background:#fff;color:#000}.tp-hero{background:none;color:#000}.tp-hero h1,.tp-content h2,.tp-content h3,.tp strong,.tp a{color:#000}}
