/* robdey.com — public warning site
   Palette and type follow the supplied PSD (black / red / white, condensed headings). */

/* Self-hosted fonts (no third-party requests) */
@font-face { font-family: 'Anton'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/anton-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/inter-latin-700-normal.woff2') format('woff2'); }

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --panel: #1a1a1a;
  --card: #1c1c1c;
  --card-head: #3a3a3a;
  --line: #2b2b2b;
  --red: #d3111a;
  --red-deep: #a10d14;
  --white: #ffffff;
  --text: #d9d9d9;
  --muted: #9c9c9c;
  --font-head: 'Anton', Impact, 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --radius: 10px;
  --max: 1200px;
  --gutter: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: #ff6b6b; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: #fff; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 400; letter-spacing: .01em; text-transform: uppercase; line-height: 1.05; }
p { margin: 0 0 .9em; }
p:last-child { margin-bottom: 0; }
strong { color: #fff; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
sup.ref { font-size: 11px; line-height: 0; }
sup.ref a { color: #ff6b6b; text-decoration: none; }
sup.ref a:hover { color: #fff; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8,8,8,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 56px; }
.brand { font-family: var(--font-head); text-transform: uppercase; color: #fff; text-decoration: none; font-size: 18px; letter-spacing: .04em; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand .dot { width: 10px; height: 10px; background: var(--red); border-radius: 2px; display: inline-block; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.nav-links a:hover { color: #fff; }
.btn-nav { background: var(--red); color: #fff !important; padding: 8px 14px; border-radius: 4px; font-family: var(--font-head); font-size: 14px !important; letter-spacing: .06em; }
@media (max-width: 860px) { .nav-links a:not(.btn-nav) { display: none; } .nav-links { gap: 0; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px),
    radial-gradient(900px 500px at 20% 20%, #1c1c1c, transparent 70%),
    #060606;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero .wrap:not(.hero-bottom) { display: grid; grid-template-columns: 1.35fr .8fr; gap: 40px; align-items: start; padding-top: 56px; padding-bottom: 56px; }
.hero-left { position: relative; }
.hero-art { position: absolute; right: -10px; top: -20px; width: 420px; opacity: .9; border: 3px solid #fff; box-shadow: 0 20px 60px rgba(0,0,0,.7); pointer-events: none; }
.hero-art img { width: 100%; }
.tag-red, .tag-white {
  display: inline-block; font-family: var(--font-head); text-transform: uppercase; line-height: 1;
  padding: 14px 26px; position: relative; z-index: 2;
}
.tag-red { background: var(--red); color: #fff; font-size: clamp(26px, 4vw, 44px); }
.tag-white { background: #fff; color: var(--red); font-size: clamp(56px, 9vw, 104px); padding: 12px 26px 8px; margin-top: 14px; }
.hero-sub {
  display: inline-block; background: var(--red); color: #fff; font-weight: 700; font-size: clamp(16px, 2vw, 22px);
  padding: 12px 22px; margin-top: 18px; position: relative; z-index: 2; box-shadow: 0 0 0 2px #fff;
}
.hero-copy { max-width: 620px; margin-top: 30px; font-size: 15px; position: relative; z-index: 2; }
.hero-copy strong { color: #fff; }
.hero-photo { position: relative; border: 3px solid #fff; background: #0c0c0c; box-shadow: 0 30px 80px rgba(0,0,0,.8); justify-self: end; width: 100%; max-width: 420px; }
.hero-photo img { width: 100%; filter: grayscale(1) contrast(1.05); }
.hero-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.78); color: #fff; font-size: 12px; padding: 8px 12px; letter-spacing: .04em; text-transform: uppercase; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; position: relative; z-index: 2; }
.stat { display: block; background: #1b1b1b; border: 1px solid #333; border-radius: var(--radius); padding: 18px 20px; box-shadow: inset 0 1px 0 rgba(255,255,255,.06); color: inherit; text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
a.stat:hover, a.stat:focus-visible { border-color: var(--red); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(211,17,26,.25), inset 0 1px 0 rgba(255,255,255,.06); outline: none; }
.stat-go { display: block; margin-top: 12px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9a9a9a; }
a.stat:hover .stat-go, a.stat:focus-visible .stat-go { color: #fff; }
.stat h3 { font-size: 18px; color: #fff; }
.stat .val { color: var(--red); font-weight: 700; font-size: 16px; margin-top: 8px; line-height: 1.3; }
.stat .val a { color: inherit; text-decoration: none; }
.cta-row { display: flex; justify-content: center; margin-top: 44px; position: relative; z-index: 2; }
.btn-cta {
  font-family: var(--font-head); text-transform: uppercase; color: #fff; text-decoration: none;
  background: linear-gradient(#e0161f, #b80e15); border: 3px solid #fff; box-shadow: 0 0 0 3px var(--red), 0 14px 30px rgba(0,0,0,.6);
  padding: 16px 40px; font-size: clamp(22px, 3vw, 32px); letter-spacing: .03em; border-radius: 6px; display: inline-flex; align-items: center; gap: 14px;
}
.btn-cta:hover { background: linear-gradient(#ff1f2a, #c9101a); color: #fff; }
.btn-cta svg { width: 18px; height: 18px; }
@media (max-width: 960px) {
  .hero .wrap:not(.hero-bottom) { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .hero-photo { justify-self: start; max-width: 340px; }
  .stats { grid-template-columns: 1fr; }
}

/* ---------- Section header ---------- */
.sec { padding: 72px 0; }
.sec-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { display: flex; align-items: center; gap: 0; margin-bottom: 38px; }
.sec-head h2 { background: var(--red); color: #fff; font-size: clamp(20px, 2.6vw, 30px); padding: 12px 28px; line-height: 1.1; }
.sec-head:after { content: ""; flex: 1; height: 2px; background: var(--red); }
.sec-intro { max-width: 760px; margin: -18px 0 34px; color: var(--muted); }

/* ---------- Two column evidence layout ---------- */
.grid-2 { display: grid; grid-template-columns: 400px 1fr; gap: 34px; align-items: start; }
@media (max-width: 960px) { .grid-2 { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 18px; }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid #333; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.card-head { background: var(--card-head); color: #fff; font-weight: 700; font-size: 17px; padding: 10px 18px; }
.card-head.red { background: var(--red); text-transform: uppercase; }
.card-body { padding: 16px 18px; font-size: 15px; }
.card-body ul { margin: 0; padding-left: 18px; }
.card-body li { margin-bottom: 8px; }
.card-body li:last-child { margin-bottom: 0; }
.label { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: #333; padding: 3px 8px; border-radius: 3px; margin-bottom: 8px; }
.label.red { background: var(--red); }
.label.amber { background: #8a6d00; }

/* ---------- Exhibits ---------- */
.exhibits { display: grid; gap: 22px; }
.exhibit { background: #141414; border: 1px solid #333; border-radius: 12px; padding: 18px; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.exhibit figure { margin: 0; }
.exhibit .frame { background: #fff; border-radius: 4px; overflow: hidden; }
.exhibit .frame.dark { background: #000; }
.exhibit .frame img { width: 100%; cursor: zoom-in; }
.exhibit .frame.tall { position: relative; max-height: 620px; }
.exhibit .frame.tall:after { content: "Click to view in full"; position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 0 10px; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #333; background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.96) 60%); pointer-events: none; }
.exhibit figcaption { font-size: 13px; color: var(--muted); margin-top: 12px; }
.exhibit figcaption b { color: #fff; }
.exhibit-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.exhibits > *, .exhibit-row > *, .now-gallery > * { min-width: 0; }
@media (max-width: 700px) { .exhibit-row { grid-template-columns: 1fr; } }
.docs { border: 1px dashed #444; border-radius: var(--radius); padding: 16px 18px; background: #101010; font-size: 14px; }
.docs h4 { font-family: var(--font-body); text-transform: none; font-size: 13px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; margin-bottom: 8px; }
.docs ul { margin: 0; padding-left: 18px; }
.docs li { margin-bottom: 4px; }

/* ---------- Criminal record ---------- */
.record { background: #1e1e1e; border-top: 1px solid #2f2f2f; border-bottom: 1px solid #2f2f2f; }
.record .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.rec-item { border-left: 4px solid var(--red); padding: 4px 0 4px 18px; margin-bottom: 30px; }
.rec-item h3 { font-family: var(--font-body); text-transform: none; font-weight: 700; font-size: 20px; color: #fff; }
.rec-item h3.upper { text-transform: uppercase; font-size: 17px; letter-spacing: .04em; }
.rec-item p { margin-top: 8px; }
.rec-item blockquote { margin: 8px 0 0; font-style: italic; color: #fff; font-size: 17px; line-height: 1.5; }
.rec-item blockquote cite { display: block; font-style: normal; color: var(--muted); font-size: 14px; margin-top: 6px; }
.rec-side { background: #151515; border: 1px solid #333; border-radius: 12px; padding: 24px; }
.rec-side dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 16px; font-size: 15px; }
.rec-side dt { color: #fff; font-weight: 700; }
.rec-side dd { margin: 0; }
.rec-side .knife { margin: 0 0 18px; border: 2px solid #fff; overflow: hidden; }
@media (max-width: 960px) { .record .wrap { grid-template-columns: 1fr; } }

/* ---------- Threat banner ---------- */
.bury { position: relative; background: radial-gradient(700px 260px at 25% 50%, rgba(211,17,26,.22), transparent 70%), repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 3px), #050505; border-top: 1px solid #333; border-bottom: 1px solid #333; }
.bury .wrap { min-height: 300px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 30px; padding-top: 40px; padding-bottom: 40px; }
.bury h2 { font-size: clamp(40px, 6.2vw, 84px); white-space: nowrap; color: var(--red); text-shadow: 0 0 22px rgba(211,17,26,.55), 0 4px 0 #4a0508; border: 3px solid var(--red); display: inline-block; padding: 8px 26px; background: rgba(0,0,0,.55); }
.bury p { background: #2a2a2a; color: #fff; padding: 18px 22px; font-size: 20px; border-left: 4px solid var(--red); }
@media (max-width: 860px) { .bury .wrap { grid-template-columns: 1fr; } .bury h2 { white-space: normal; } }

/* testimony */
.testimony { background: var(--red); color: #fff; border-radius: 6px; padding: 16px 18px; font-size: 13px; line-height: 1.55; text-transform: uppercase; letter-spacing: .02em; font-weight: 600; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.testimony .who { display: block; font-size: 11px; opacity: .85; margin-bottom: 8px; letter-spacing: .1em; }

/* audio player */
.player { background: var(--red); border-radius: 8px; padding: 14px 16px; color: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.player h4 { font-family: var(--font-body); text-transform: none; font-weight: 700; font-size: 16px; margin-bottom: 10px; }
.player-ui { display: flex; align-items: center; gap: 12px; }
.player button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--red); display: grid; place-items: center; cursor: pointer; flex: none; }
.player button svg { width: 20px; height: 20px; }
.player .bar { flex: 1; height: 8px; background: rgba(255,255,255,.35); border-radius: 4px; position: relative; cursor: pointer; }
.player .bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #fff; border-radius: 4px; }
.player .time { font-variant-numeric: tabular-nums; font-size: 13px; min-width: 84px; text-align: right; }
.player .note { font-size: 12px; margin-top: 8px; opacity: .9; }

/* ---------- Active threat ---------- */
.threat-box { border: 2px solid var(--red); border-radius: 8px; background: linear-gradient(180deg, #0f0f0f, #080808); padding: 0 0 34px; box-shadow: 0 0 0 1px #000, 0 30px 80px rgba(211,17,26,.12); }
.threat-box .bar { background: linear-gradient(90deg, var(--red), #6d090e); padding: 18px 28px; }
.threat-box .bar h2 { color: #fff; font-size: clamp(34px, 5vw, 60px); }
.threat-inner { display: grid; grid-template-columns: 1fr 440px; gap: 30px; padding: 30px 28px 0; align-items: start; }
.threat-photo { border: 3px solid var(--red); background: #fff; position: relative; max-width: 440px; }
.threat-photo img { width: 100%; }
.status-bar { position: absolute; left: -3px; right: -3px; bottom: 18px; background: var(--red); color: #fff; font-family: var(--font-head); font-size: clamp(18px, 2.6vw, 30px); padding: 8px 18px 8px 84px; text-transform: uppercase; }
.status-bar svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 58px; height: 52px; }
@media (max-width: 960px) { .threat-inner { grid-template-columns: 1fr; } .status-bar { padding-left: 70px; } .status-bar svg { width: 44px; } }

/* ---------- Associates ---------- */
.person { margin-bottom: 44px; border-top: 2px solid var(--red); }
.person .head { display: inline-block; background: var(--red); color: #fff; padding: 12px 22px 10px; min-width: 340px; }
.person .head h3 { font-size: 30px; color: #fff; }
.person .head span { display: block; font-size: 16px; margin-top: 4px; font-family: var(--font-body); text-transform: none; }
.person-grid { display: grid; grid-template-columns: 340px 1fr; gap: 34px; margin-top: 0; }
.person-grid .portrait { width: 100%; filter: grayscale(1); border: 1px solid #333; }
.facts dt { display: inline-block; background: #333; color: #fff; font-weight: 700; font-size: 13px; padding: 3px 9px; border-radius: 3px; margin: 14px 0 6px; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 0; font-size: 15px; }
.facts .danger { border: 1px solid var(--red); border-radius: 8px; background: #1a0a0b; padding: 14px 16px; margin-top: 16px; }
.facts .danger dt { background: var(--red); }
@media (max-width: 860px) { .person-grid { grid-template-columns: 1fr; } .person .head { min-width: 0; display: block; } }

/* ---------- Case / form ---------- */
.case { position: relative; background: #000 url('../img/bg-gavel.webp') center/cover no-repeat; border-top: 1px solid #333; }
.case:before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.85), rgba(0,0,0,.55)); }
.case .wrap { position: relative; display: grid; grid-template-columns: 1fr 520px; gap: 50px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.case h2 { background: var(--red); color: #fff; display: inline-block; padding: 14px 26px; font-size: clamp(30px, 4.5vw, 52px); }
.case .lead { margin-top: 22px; font-size: 16px; color: #fff; max-width: 560px; }
.form { background: #fff; color: #222; border-radius: 6px; padding: 26px; box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.form label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; color: #333; }
.form label:first-child { margin-top: 0; }
.form input[type=text], .form input[type=email], .form select, .form textarea {
  width: 100%; border: 1px solid #ccc; background: #f1f1f1; border-radius: 4px; padding: 11px 12px; font: inherit; font-size: 14px; color: #111;
}
.form textarea { min-height: 96px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--red); border-color: var(--red); background: #fff; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .radios { display: flex; gap: 22px; font-size: 14px; }
.form .radios label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 500; }
.form .hint { font-size: 12px; color: #666; margin-top: 6px; }
.form button { width: 100%; margin-top: 18px; background: var(--red); color: #fff; border: 0; border-radius: 4px; padding: 15px; font-family: var(--font-head); font-size: 20px; letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
.form button:hover { background: #b80e15; }
.form button[disabled] { opacity: .6; cursor: wait; }
.form .status { margin-top: 12px; font-size: 14px; min-height: 18px; }
.form .status.ok { color: #1a7f37; font-weight: 600; }
.form .status.err { color: #b3261e; font-weight: 600; }
.form .privacy { font-size: 12px; color: #666; margin-top: 14px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
@media (max-width: 960px) { .case .wrap { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form .row { grid-template-columns: 1fr; } }

/* ---------- Footer / sources ---------- */
.footer { border-top: 2px solid #fff; padding: 44px 0 60px; font-size: 14px; }
.footer .disclaimer { color: #bdbdbd; max-width: 900px; }
.footer .contact { color: var(--red); font-weight: 700; margin-top: 18px; font-size: 16px; }
.footer .contact a { color: var(--red); text-decoration: none; }
.sources { margin-top: 34px; }
.sources h3 { font-size: 20px; color: #fff; margin-bottom: 12px; }
.sources ol { margin: 0; padding-left: 22px; color: #bdbdbd; }
.sources li { margin-bottom: 6px; word-break: break-word; }
.sources li:target { background: #2a1214; outline: 1px solid var(--red); padding: 2px 6px; border-radius: 3px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1200px, 96vw); max-height: 92vh; width: auto; height: auto; box-shadow: 0 30px 80px rgba(0,0,0,.9); background: #fff; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* utilities (keeps CSP strict: no inline style attributes) */
.mt-10 { margin-top: 10px; }
.mt-18 { margin-top: 18px; }
.mt-22 { margin-top: 22px; }
.mt-28 { margin-top: 28px; }
.img-sm { max-width: 220px; margin: 0 auto; }
.img-md { max-width: 300px; margin: 0 auto; }
.hidden { display: none; }
.hero-bottom { padding-bottom: 60px; }
.testimony { margin: 0; }


/* ---------- Mobile nav toggle ---------- */
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; background: none; border: 1px solid #444; border-radius: 6px; cursor: pointer; padding: 10px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; }
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 56px; background: #0b0b0b; border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; padding: 8px 0 12px; }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn-nav) { display: block; padding: 12px 16px; border-bottom: 1px solid #1c1c1c; font-size: 14px; }
  .nav-links .btn-nav { margin: 12px 16px 0; text-align: center; }
}

/* ---------- Names & entities ---------- */
.ent-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.ent { background: var(--card); border: 1px solid #333; border-radius: var(--radius); padding: 18px 20px; }
.ent h3 { font-family: var(--font-body); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; color: var(--red); margin-bottom: 10px; }
.ent ul { margin: 0; padding-left: 18px; font-size: 14px; }
.ent li { margin-bottom: 7px; word-break: break-word; }
@media (max-width: 860px) { .ent-grid { grid-template-columns: 1fr; } }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 3px solid var(--red); display: grid; gap: 14px; }
.timeline li { position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: start; font-size: 15px; }
.timeline li:before { content: ""; position: absolute; left: -31px; top: 6px; width: 13px; height: 13px; background: var(--red); border: 3px solid var(--bg-2); border-radius: 50%; }
.tl-date { font-family: var(--font-head); color: #fff; font-size: 17px; letter-spacing: .03em; text-transform: uppercase; line-height: 1.3; }
.tl-text { color: var(--text); }
@media (max-width: 600px) { .timeline li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Now ---------- */
.now-intro { font-size: 16px; color: #fff; background: #151515; border-left: 4px solid var(--red); padding: 14px 18px; border-radius: 4px; }
.card-body p { margin-bottom: .9em; }
.card-body p:last-child { margin-bottom: 0; }

/* ---------- Video ---------- */
.video-title { font-size: 22px; color: #fff; margin-bottom: 10px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border: 3px solid var(--red); overflow: hidden; }
.video-frame img { width: 100%; height: 100%; object-fit: cover; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%; background: var(--red); border: 4px solid #fff; color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.video-play svg { width: 40px; height: 40px; margin-left: 4px; }
.video-play:hover { background: #ff1f2a; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 900px; }
.faq details { background: var(--card); border: 1px solid #333; border-radius: var(--radius); padding: 0; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 700; color: #fff; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:after { content: "+"; color: var(--red); font-family: var(--font-head); font-size: 22px; line-height: 1; }
.faq details[open] summary:after { content: "–"; }
.faq details p { padding: 0 18px 16px; margin: 0; font-size: 15px; }

/* ---------- Authorities ---------- */
.authorities { margin-top: 26px; background: rgba(0,0,0,.55); border: 1px solid #333; border-radius: var(--radius); padding: 16px 18px; max-width: 560px; }
.authorities h3 { font-family: var(--font-body); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; color: var(--red); margin-bottom: 10px; }
.authorities ul { margin: 0; padding-left: 18px; font-size: 14px; color: #fff; }
.authorities li { margin-bottom: 7px; }
.person-grid .exhibit { margin-top: 18px; }

/* ---------- Now gallery ---------- */
.now-gallery { padding: 30px 28px 0; display: grid; gap: 22px; }
.gallery-title { font-size: 22px; color: #fff; }
.exhibit .frame.dark.tall:after { background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.96) 60%); color: #ddd; }

/* ================= Language switch (English / ไทย) ================= */
.nav .brand { order: 0; }
.nav .nav-links { order: 1; }
.lang-switch {
  order: 2; flex: none; white-space: nowrap;
  font-family: 'Inter', 'Noto Sans Thai', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 13px; font-weight: 600; line-height: 1; color: #fff; text-decoration: none;
  border: 1px solid #555; border-radius: 4px; padding: 8px 12px;
}
.lang-switch:hover { background: var(--red); border-color: var(--red); color: #fff; }
.lang-switch:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.nav .nav-toggle { order: 3; flex: none; }
/* The menu folds into the toggle below 1160px: with the language switch (and in Thai) the links need more room than
   they have on tablets and small laptops. Same dropdown as the existing phone layout. */
@media (max-width: 1160px) {
  .nav .nav-toggle { display: flex; margin-left: 0; }
  .nav .nav-links { display: none; position: absolute; left: 0; right: 0; top: 56px; background: #0b0b0b; border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; padding: 8px 0 12px; }
  .nav .nav-links.open { display: flex; }
  .nav .nav-links a:not(.btn-nav) { display: block; padding: 12px 16px; border-bottom: 1px solid #1c1c1c; font-size: 14px; }
  .nav .nav-links .btn-nav { margin: 12px 16px 0; text-align: center; }
  .lang-switch { margin-left: auto; }
}
/* phones: keep the bar to the site name so the switch and the toggle always fit */
@media (max-width: 440px) { .brand-sub { display: none; } }

/* long unbroken strings (contract addresses, hashes) in exhibit captions must wrap, not widen the page on phones */
.exhibit figcaption { overflow-wrap: anywhere; }

/* ================= Thai pages (<html lang="th">) ================= */
/* Thai web font: only the Thai glyphs (Latin text keeps Inter / Anton). Self-hosted, no third-party requests. */
@font-face { font-family: 'Noto Sans Thai'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/noto-sans-thai-thai-400-normal.woff2') format('woff2'); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Noto Sans Thai'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/noto-sans-thai-thai-700-normal.woff2') format('woff2'); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }

html:lang(th) {
  --font-head: 'Anton', 'Noto Sans Thai', Impact, 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Inter', 'Noto Sans Thai', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-synthesis: none;
}
/* Thai has no capitals and its clusters break when letter-spaced */
html:lang(th) *, html:lang(th) *::before, html:lang(th) *::after { letter-spacing: 0 !important; }
html:lang(th) body { line-height: 1.75; }
html:lang(th) h1, html:lang(th) h2, html:lang(th) h3, html:lang(th) h4 { font-weight: 700; line-height: 1.35; }
html:lang(th) .brand, html:lang(th) .tag-red, html:lang(th) .tag-white, html:lang(th) .btn-nav, html:lang(th) .btn-cta,
html:lang(th) .tl-date, html:lang(th) .status-bar, html:lang(th) .form button { font-weight: 700; }
html:lang(th) .tag-red { line-height: 1.3; padding: 10px 26px 12px; }
html:lang(th) .tag-white { line-height: 1.1; }
html:lang(th) .sec-head h2 { line-height: 1.35; padding: 10px 28px; }
html:lang(th) .btn-cta, html:lang(th) .status-bar { line-height: 1.3; }
html:lang(th) .case h2 { line-height: 1.3; }
html:lang(th) .bury h2 { white-space: normal; font-size: clamp(34px, 5vw, 62px); line-height: 1.3; }
html:lang(th) .exhibit .frame.tall:after { content: "คลิกเพื่อดูภาพเต็ม"; text-transform: none; }
html:lang(th) .small, html:lang(th) .exhibit figcaption, html:lang(th) .hero-photo figcaption, html:lang(th) .sources li { font-size: 14px; }
html:lang(th) .player .note, html:lang(th) .form .hint, html:lang(th) .form .privacy { font-size: 13px; }
html:lang(th) .bury h2 { font-size: clamp(32px, 4.4vw, 56px); }
html:lang(th) .bury h2 .nb { white-space: nowrap; }
@media (max-width: 420px) {
  html:lang(th) .rec-side dl { grid-template-columns: 1fr; gap: 2px 0; }
  html:lang(th) .rec-side dd { margin-bottom: 10px; }
}
