/* Preyed Upon — editorial reading-room design.
   Warm off-white paper, charcoal ink, restrained oxblood accents.
   Strong serif headlines, readable sans body, generous whitespace.
   Imagery is engraving-style and symbolic — never sensational. */

:root {
  --paper: #f6f1e7;
  --paper-deep: #ede4d0;
  --ink: #23201b;
  --ink-soft: #57524a;
  --rule: #d9cfb9;
  --card: #fffdf7;
  --accent: #6e1f2c;        /* oxblood */
  --accent-soft: #96502e;   /* muted rust */
  --proven: #2c3a47;        /* slate — court-proven */
  --allegation: #7a4d0e;    /* ochre — attributed allegation */
  --allegation-bg: #f8eed3;
  --question: #6b665e;      /* warm gray — open question */
  --footer-bg: #221e1a;
  --footer-ink: #e9e1cf;
  --serif: "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}

.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

::selection { background: var(--paper-deep); }

/* ---------- Header ---------- */
.site-header { background: var(--paper); border-bottom: 2px solid var(--ink); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; padding-top: 1.3rem; padding-bottom: 1.15rem; }
.brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--ink); }
.brand-emblem { width: 84px; height: 84px; border: 1px solid var(--rule); background: var(--card); padding: 4px; }
.brand-text { display: flex; flex-direction: column; gap: 0.15rem; max-width: 34rem; }
.site-title { font-family: var(--serif); font-size: 2rem; font-weight: bold; line-height: 1.1; letter-spacing: 0.01em; }
.site-tagline { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.45; }
.header-epigraph { margin: 0 0 0 auto; max-width: 24rem; font-family: var(--serif); font-style: italic; font-size: 0.98rem; line-height: 1.5; color: var(--ink-soft); }
.verse-cite-inline { display: block; margin-top: 0.25rem; font-family: var(--sans); font-style: normal; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--accent); }
@media (max-width: 56rem) { .header-epigraph { margin: 0; max-width: 34rem; } }

.site-nav { border-top: 1px solid var(--rule); }
.nav-inner { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; padding-top: 0.6rem; padding-bottom: 0.6rem; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 0.83rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.site-nav a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- Documents ---------- */
main { padding: 2.6rem 0 3.5rem; }
.doc { max-width: 46rem; }
.doc h1, .hero h1 { font-family: var(--serif); font-weight: bold; line-height: 1.18; }
.doc h1 { font-size: 2.1rem; margin: 0 0 0.7rem; }
.doc h2 { font-family: var(--serif); font-size: 1.4rem; margin: 2.4rem 0 0.55rem; border-top: 1px solid var(--rule); padding-top: 1.5rem; }
.doc h3 { font-size: 1.06rem; margin: 1.7rem 0 0.4rem; }
.lede { font-size: 1.13rem; color: var(--ink-soft); margin-top: 0; line-height: 1.55; }
.doc p { margin: 0.75rem 0; }
.doc ul, .doc ol { margin: 0.75rem 0; padding-left: 1.4rem; }
.doc li { margin: 0.35rem 0; }
code, .docket { font-family: var(--mono); font-size: 0.92em; }

/* Fact box */
.factbox { border: 1px solid var(--ink); background: var(--card); padding: 1.05rem 1.25rem; margin: 1.3rem 0 1.7rem; display: grid; grid-template-columns: 11rem 1fr; gap: 0.35rem 1rem; }
.factbox dt { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); padding-top: 0.2rem; }
.factbox dd { margin: 0; font-family: var(--mono); font-size: 0.95rem; }
@media (max-width: 34rem) { .factbox { grid-template-columns: 1fr; } .factbox dd { margin-bottom: 0.5rem; } }

/* Tables */
table { border-collapse: collapse; width: 100%; margin: 1.1rem 0 1.5rem; font-size: 0.94rem; background: var(--card); }
th, td { border: 1px solid var(--rule); padding: 0.5rem 0.65rem; text-align: left; vertical-align: top; }
th { background: #f1e9d8; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); }

/* ---------- Evidence chips (the three labels, everywhere) ---------- */
.badge { display: inline-block; font-family: var(--sans); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; padding: 0.22rem 0.62rem; margin: 0 0 0.45rem; border-radius: 999px; }
.badge-proven { background: var(--proven); color: #fff; }
.badge-allegation { background: var(--allegation-bg); color: var(--allegation); border: 1.5px solid var(--allegation); }
.badge-question { background: transparent; color: var(--question); border: 1.5px dashed var(--question); }

.callout { border-left: 4px solid var(--ink-soft); background: var(--card); padding: 0.95rem 1.15rem; margin: 1.5rem 0; }
.callout p { margin: 0.35rem 0; }
.callout-proven { border-left-color: var(--proven); }
.callout-allegation { border-left-color: var(--allegation); background: #fdfaf1; }
.callout-question { border-left-color: var(--question); border-left-style: dashed; }

/* ---------- Verse callouts, colophon, rotator ---------- */
.verse-callout { border-left: 3px solid var(--accent); background: var(--card); padding: 1rem 1.25rem; margin: 1.6rem 0; max-width: 46rem; }
.verse-callout .verse-text { font-family: var(--serif); font-style: italic; font-size: 1.14rem; line-height: 1.55; margin: 0 0 0.4rem; }
.verse-cite { font-family: var(--sans); font-style: normal; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin: 0; }
.verse-gloss { font-size: 0.95rem; color: var(--ink-soft); margin: 0.45rem 0 0; }

.colophon { margin-top: 3.2rem; border-top: 2px solid var(--ink); padding-top: 1.8rem; text-align: center; }
.colophon-seal { width: 96px; height: 96px; }
.colophon-verse { margin: 1rem auto 0.5rem; max-width: 38rem; }
.colophon-verse p { font-family: var(--serif); font-style: italic; font-size: 1.22rem; line-height: 1.55; margin: 0; }
.colophon .verse-cite { margin-top: 0.4rem; }
.colophon-note { font-size: 0.9rem; color: var(--ink-soft); max-width: 36rem; margin: 0.7rem auto 0; }

.verse-rotator { max-width: 46rem; margin: 2.2rem 0 0.5rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 1.3rem 0.2rem 1.4rem; }
.rotator-kicker { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.11em; color: var(--accent); margin: 0 0 0.7rem; }
.rotator-quote { margin: 0; transition: opacity 0.7s ease; }
.verse-rotator.is-fading .rotator-quote { opacity: 0; }
.rotator-quote .verse-text { font-family: var(--serif); font-style: italic; font-size: 1.42rem; line-height: 1.5; margin: 0 0 0.55rem; }
.rotator-quote .verse-cite { display: block; }

/* ---------- Home ---------- */
.hero { max-width: 46rem; }
.hero h1 { font-size: 2.6rem; margin: 0 0 1.1rem; }
.hero-mission { font-size: 1.22rem; line-height: 1.58; }
.hero-standards { color: var(--ink-soft); }
.hero-figure { margin: 2.4rem 0 0; max-width: 64rem; }
.hero { max-width: none; }
.hero > h1, .hero > .hero-mission, .hero > .hero-standards { max-width: 46rem; }
.hero-figure img { width: 100%; height: auto; display: block; border: 1px solid var(--rule); background: var(--card); padding: 6px; }
.hero-figure figcaption { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.6rem; max-width: 46rem; }
.fig-cite { font-weight: 700; text-transform: uppercase; font-size: 0.74rem; letter-spacing: 0.09em; color: var(--accent); }

.section-kicker { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin: 2.8rem 0 0.55rem; }

.card-list { display: grid; gap: 1rem; margin-top: 1.4rem; }
.card { background: var(--card); border: 1px solid var(--rule); border-top: 3px solid var(--ink); padding: 1.15rem 1.3rem; max-width: 46rem; }
.card h2 { font-family: var(--serif); font-size: 1.32rem; margin: 0 0 0.45rem; border: none; padding: 0; }
.card h2 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover { text-decoration: underline; }
.card p { margin: 0.45rem 0; }
.card-meta { font-family: var(--mono); font-size: 0.82rem; color: var(--ink-soft); }
.card-flagship { border-top-color: var(--accent); }
.chip-note { font-size: 0.9rem; color: var(--ink-soft); }
.card-chips .badge { margin-bottom: 0.3rem; }

.tiers { margin-top: 3rem; max-width: 64rem; }
.tiers h2, .intake-cta h2 { font-family: var(--serif); font-size: 1.55rem; }
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 46rem) { .tier-grid { grid-template-columns: 1fr; } }
.tier-box { background: var(--card); border: 1px solid var(--rule); padding: 1.05rem 1.15rem; }
.tier-box p { margin: 0.3rem 0; font-size: 0.96rem; }

.intake-cta { margin-top: 3rem; border: 1px solid var(--ink); background: var(--card); padding: 1.5rem 1.6rem; max-width: 46rem; }
.intake-cta h2 { margin-top: 0; }
.button { display: inline-block; background: var(--ink); color: #fff; padding: 0.6rem 1.15rem; text-decoration: none; font-weight: 600; margin-right: 0.8rem; }
.button:hover { background: var(--accent); }
.cta-fine { font-size: 0.88rem; color: var(--ink-soft); }

.home-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); gap: 1rem; margin-top: 3rem; }
.section-card { border-top: 2px solid var(--ink); padding-top: 0.85rem; }
.section-card h2 { font-family: var(--serif); font-size: 1.2rem; margin: 0 0 0.4rem; }
.section-card h2 a { color: var(--ink); text-decoration: none; }
.section-card p { font-size: 0.96rem; color: var(--ink-soft); margin: 0.3rem 0; }

/* Case chips (tradition / status labels on case cards and case files) */
.card-chips { margin: 0.55rem 0 0.25rem; }
.chip { display: inline-block; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.02em; border: 1px solid var(--rule); background: var(--card); color: var(--ink-soft); padding: 0.14rem 0.55rem; border-radius: 999px; margin-right: 0.3rem; }
.chip-status { border-color: var(--ink); color: var(--ink); font-weight: 700; }

/* Homepage pattern section */
.pattern-home { margin-top: 3rem; max-width: 46rem; }
.pattern-home h2 { font-family: var(--serif); font-size: 1.55rem; }
.pattern-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.1rem 0; }
@media (max-width: 46rem) { .pattern-stats { grid-template-columns: 1fr; } }
.pattern-stat { border-top: 2px solid var(--ink); padding-top: 0.65rem; }
.pattern-stat .stat-figure { font-family: var(--serif); font-size: 1.55rem; font-weight: 700; display: block; line-height: 1.25; }
.pattern-stat p { font-size: 0.9rem; color: var(--ink-soft); margin: 0.35rem 0; }

/* ---------- Dossier: documents & video ---------- */
.doc-item { border: 1px solid var(--rule); background: var(--card); padding: 1rem 1.2rem; margin: 1rem 0; }
.doc-item h3 { margin: 0 0 0.35rem; font-family: var(--serif); font-size: 1.12rem; }
.doc-item p { margin: 0.3rem 0; font-size: 0.96rem; }
.doc-hash { font-family: var(--mono); font-size: 0.76rem; color: var(--ink-soft); word-break: break-all; }
.video-grid { display: grid; gap: 1.4rem; margin: 1.2rem 0; }
.video-item { margin: 0; }
.video-embed { position: relative; padding-top: 56.25%; background: #000; border: 1px solid var(--rule); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-item figcaption { font-size: 0.88rem; color: var(--ink-soft); margin-top: 0.45rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); padding: 2.4rem 0 2rem; font-size: 0.95rem; margin-top: 1rem; }
.site-footer a { color: #d9c9a3; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 0.8fr 1.1fr 1fr; gap: 2rem; }
@media (max-width: 56rem) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 34rem) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col p { margin: 0.45rem 0; line-height: 1.55; }
.footer-brand { font-family: var(--serif); font-size: 1.3rem; font-weight: bold; margin: 0 0 0.4rem; }
.footer-head { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #cbbd97; margin: 0 0 0.55rem; }
.footer-links { list-style: none; margin: 0 0 0.8rem; padding: 0; }
.footer-links li { margin: 0.35rem 0; }
.footer-safety { border: 1px solid var(--accent); background: #2b251f; padding: 0.9rem 1rem; }
.footer-safety p { margin: 0.3rem 0; }
.footer-base { border-top: 1px solid #453f36; margin-top: 2rem; padding-top: 1.1rem; }
.footer-fine { font-size: 0.86rem; color: #b6ab94; margin: 0; max-width: 52rem; }

/* ---------- Directory ---------- */
.directory-home { border: 1px solid var(--ink); background: var(--card); padding: 1.5rem 1.6rem; max-width: 46rem; margin-top: 2.5rem; }
.directory-home h2 { font-family: var(--serif); margin-top: 0; }
.area-home { border: 1px solid var(--ink); background: var(--card); padding: 1.5rem 1.6rem; max-width: 46rem; margin-top: 2.5rem; }
.area-home h2 { font-family: var(--serif); margin-top: 0; }
.directory-controls { display: flex; flex-wrap: wrap; gap: 0.7rem 1rem; margin: 1.2rem 0 0.4rem; align-items: end; }
.directory-controls label { font-family: var(--sans); font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); display: flex; flex-direction: column; gap: 0.3rem; }
.directory-controls input, .directory-controls select { font-family: var(--sans); font-size: 0.95rem; text-transform: none; letter-spacing: normal; padding: 0.45rem 0.6rem; border: 1px solid var(--ink-soft); background: var(--card); color: var(--ink); border-radius: 4px; }
.dir-count { font-family: var(--mono); font-size: 0.85rem; color: var(--ink-soft); margin: 0.4rem 0 1rem; }
.dir-list { display: grid; gap: 0.8rem; margin-bottom: 1.5rem; }
.dir-row { background: var(--card); border: 1px solid var(--rule); border-left: 3px solid var(--ink); padding: 0.9rem 1.15rem; max-width: 46rem; }
.dir-row[hidden] { display: none; }
.dir-row h3 { font-family: var(--serif); font-size: 1.18rem; margin: 0 0 0.3rem; }
.dir-row h3 a { color: var(--ink); text-decoration: none; }
.dir-row h3 a:hover { text-decoration: underline; }
.dir-row p { margin: 0.3rem 0; font-size: 0.95rem; }
.dir-row .card-chips { margin: 0.35rem 0; }
.dir-row .badge { margin-bottom: 0; vertical-align: middle; }
.dir-meta { color: var(--ink-soft); }
.dir-source { font-size: 0.85rem; color: var(--ink-soft); }
.dir-empty { font-size: 0.95rem; color: var(--ink-soft); }
.dir-empty button { font: inherit; background: none; border: none; color: var(--accent); text-decoration: underline; cursor: pointer; padding: 0; }

.video-frame{position:relative;padding-top:56.25%;background:#000;border-radius:6px;overflow:hidden}
.video-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

/* ---------- BWS Network Bar ---------- */
.bws-network { background: #0d1b2e; border-top: 3px solid #c9a227; padding: 2rem 1rem 2.2rem; }
.bws-network-inner { max-width: 72rem; margin: 0 auto; text-align: center; }
.bws-network-heading { color: #c9a227; font-weight: 700; letter-spacing: 0.12em; font-size: 1rem; margin: 0 0 0.3rem; text-transform: uppercase; }
.bws-network-publisher { color: #ffffff; font-size: 0.85rem; margin: 0 0 1.4rem; opacity: 0.85; }
.bws-network-tiles { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
.bws-network-tile { display: flex; flex-direction: column; gap: 0.25rem; flex: 1 1 10rem; max-width: 13rem; padding: 0.9rem 0.8rem; border: 1px solid rgba(201,162,39,0.45); border-radius: 6px; text-decoration: none; background: rgba(255,255,255,0.04); }
.bws-network-tile:hover, .bws-network-tile:focus { border-color: #c9a227; background: rgba(255,255,255,0.08); }
.bws-network-name { color: #ffffff; font-weight: 700; font-size: 0.95rem; }
.bws-network-desc { color: #b8c2d1; font-size: 0.8rem; line-height: 1.4; }
