/* =====================================================================================================================
   TIM V5.1 public design system — loaded after tim.css / tim-v4.css.
   Mahsa-Alert-style map interaction · Airbnb-style UX discipline · TIM's own identity (deep green, memorial red, paper).
   Mobile first (390 px), logical properties for RTL, real light/dark tokens (never inversion), reduced motion respected.
   ===================================================================================================================== */

:root {
  --c-bg: #F6F5EF;           /* TIM paper */
  --c-surface: #FFFFFF;
  --c-surface-2: #EFEEE6;
  --c-text: #15201B;
  --c-muted: #56625C;
  --c-line: rgba(21, 32, 27, .12);
  --c-line-2: rgba(21, 32, 27, .2);
  --c-brand: #0B3B2E;        /* TIM green */
  --c-brand-2: #145A45;
  --c-brand-ink: #FFFFFF;
  --c-accent: #8C1015;       /* memorial red */
  --c-accent-ink: #FFFFFF;
  --c-urgent: #8A5A00;       /* execution risk: amber, deliberately not alarm red */
  --c-urgent-bg: #FFF4DB;
  --c-focus: #1D6FD8;
  --c-map-land: #E8ECE5;
  --c-map-line: rgba(11, 59, 46, .45);
  --c-chip: #FFFFFF;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .06), 0 2px 8px rgba(0, 0, 0, .06);
  --shadow-2: 0 6px 24px rgba(0, 0, 0, .14);
  --r-sm: 10px; --r-md: 14px; --r-lg: 22px; --r-pill: 999px;
  --hdr-h: 56px;
  --tab-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --bs-body-bg: var(--c-bg);
  --bs-body-color: var(--c-text);
}
[data-bs-theme=dark] {
  --c-bg: #0B1612;
  --c-surface: #12201A;
  --c-surface-2: #1A2B24;
  --c-text: #E6EDE9;
  --c-muted: #A3B3AB;
  --c-line: rgba(230, 237, 233, .12);
  --c-line-2: rgba(230, 237, 233, .22);
  --c-brand: #6FC3A0;        /* lighter green keeps contrast on dark */
  --c-brand-2: #8ED3B6;
  --c-brand-ink: #06140F;
  --c-accent: #E0575D;
  --c-accent-ink: #FFFFFF;
  --c-urgent: #F2C064;
  --c-urgent-bg: #2B2210;
  --c-focus: #7FB2FF;
  --c-map-land: #15241E;
  --c-map-line: rgba(143, 211, 182, .45);
  --c-chip: #1A2B24;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4), 0 2px 8px rgba(0, 0, 0, .35);
  --shadow-2: 0 8px 28px rgba(0, 0, 0, .5);
  --bs-body-bg: var(--c-bg);
  --bs-body-color: var(--c-text);
}

/* ---------------------------------------------------------------- base */
body.app { background: var(--c-bg); color: var(--c-text); min-height: 100vh; display: flex; flex-direction: column; }
body.app a:not(.btn) { color: var(--c-brand); }
body.app a:not(.btn):hover { color: var(--c-brand-2); }
body.app :focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; border-radius: 6px; }
body.app .text-body-secondary { color: var(--c-muted) !important; }
body.app .btn { border-radius: var(--r-pill); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding-inline: 1.15rem; }
body.app .btn-sm { min-height: 36px; padding-inline: .85rem; }
body.app .btn-lg { min-height: 52px; }
body.app .btn-primary { --bs-btn-bg: var(--c-brand); --bs-btn-border-color: var(--c-brand); --bs-btn-color: var(--c-brand-ink); --bs-btn-hover-bg: var(--c-brand-2); --bs-btn-hover-border-color: var(--c-brand-2); --bs-btn-hover-color: var(--c-brand-ink); --bs-btn-active-bg: var(--c-brand-2); --bs-btn-active-color: var(--c-brand-ink); }
body.app .btn-memorial { --bs-btn-bg: var(--c-accent); --bs-btn-border-color: var(--c-accent); --bs-btn-color: var(--c-accent-ink); --bs-btn-hover-color: var(--c-accent-ink); }
body.app .btn-outline-secondary { --bs-btn-color: var(--c-text); --bs-btn-border-color: var(--c-line-2); --bs-btn-hover-bg: var(--c-surface-2); --bs-btn-hover-color: var(--c-text); --bs-btn-hover-border-color: var(--c-line-2); --bs-btn-active-bg: var(--c-surface-2); --bs-btn-active-color: var(--c-text); background: var(--c-surface); }
body.app .form-control, body.app .form-select { border-radius: var(--r-sm); min-height: 44px; background-color: var(--c-surface); color: var(--c-text); border-color: var(--c-line-2); }
body.app .dropdown-menu { border-radius: var(--r-md); border-color: var(--c-line); box-shadow: var(--shadow-2); background: var(--c-surface); }
.app-wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
.app-main { flex: 1 0 auto; padding-bottom: calc(var(--tab-h) + var(--safe-b) + 16px); }
.skip-link:focus { position: fixed; inset-block-start: 8px; inset-inline-start: 8px; z-index: 2000; background: var(--c-surface); padding: .5rem 1rem; border-radius: var(--r-sm); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* ---------------------------------------------------------------- header */
.app-header { position: sticky; top: 0; z-index: 1030; background: var(--c-surface); background: color-mix(in srgb, var(--c-surface) 92%, transparent); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--c-line); }
.app-header-in { height: var(--hdr-h); display: flex; align-items: center; gap: 12px; padding-inline: 12px 8px; max-width: 1440px; margin-inline: auto; }
.app-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--c-text) !important; min-width: 0; }
.app-logo { height: 30px; width: auto; }
.logo-on-dark { display: none; }
[data-bs-theme=dark] .logo-on-light { display: none; }
[data-bs-theme=dark] .logo-on-dark { display: inline; }
.app-brand-name { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.app-brand-name > span { font-weight: 800; font-size: .98rem; letter-spacing: -.01em; white-space: nowrap; }
.app-brand-name small { font-size: .72rem; color: var(--c-muted); white-space: nowrap; }
.app-nav { display: none; }
.app-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }
.app-iconbtn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border-radius: var(--r-pill); color: var(--c-text) !important; text-decoration: none; }
.app-iconbtn:hover { background: var(--c-surface-2); }
.app-iconbtn .icon { font-size: 1.25rem; }
.app-morebtn-t { display: none; }
.app-submit-btn { display: none !important; }
@media (min-width: 992px) {
  .app-header-in { padding-inline: 20px; gap: 24px; height: 64px; }
  :root { --hdr-h: 64px; }
  .app-nav { display: flex; gap: 4px; }
  .app-nav a { padding: .55rem .85rem; border-radius: var(--r-pill); color: var(--c-text); text-decoration: none; font-weight: 600; font-size: .95rem; }
  .app-nav a:hover { background: var(--c-surface-2); }
  .app-nav a[aria-current] { background: var(--c-surface-2); color: var(--c-brand); }
  .app-submit-btn { display: inline-flex !important; }
  .app-morebtn { width: auto; padding-inline: .85rem; border: 1px solid var(--c-line-2); }
  .app-morebtn-t { display: inline; font-weight: 600; }
}

/* ---------------------------------------------------------------- notes / urgent band */
.app-note { background: var(--c-surface-2); border-bottom: 1px solid var(--c-line); padding-block: .5rem; }
.urgent-band { background: var(--c-urgent-bg); color: var(--c-urgent); border-bottom: 1px solid color-mix(in srgb, var(--c-urgent) 30%, transparent); padding-block: .6rem; font-size: .92rem; }
.urgent-band strong { margin-inline-end: .35rem; }

/* ---------------------------------------------------------------- bottom tab bar (phones / small tablets) */
.app-tabbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 1035; height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(5, 1fr); background: var(--c-surface); border-top: 1px solid var(--c-line); box-shadow: 0 -2px 12px rgba(0, 0, 0, .04); }
.app-tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--c-muted); text-decoration: none; font-size: .72rem; font-weight: 600; min-height: 48px; }
.app-tabbar .tab-ic .icon { font-size: 1.45rem; }
.app-tabbar a[aria-current] { color: var(--c-brand); }
.app-tabbar a[aria-current] .tab-t { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.app-tabbar .tab-submit { color: var(--c-text); }
.app-tabbar .tab-submit .tab-ic { width: 46px; height: 46px; margin-top: -18px; border-radius: 50%; background: var(--c-accent); color: var(--c-accent-ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px color-mix(in srgb, var(--c-accent) 45%, transparent); border: 3px solid var(--c-surface); }
.app-tabbar .tab-submit .tab-ic .icon { stroke-width: 2.4; }
@media (min-width: 992px) { .app-tabbar { display: none; } .app-main { padding-bottom: 0; } }

/* ---------------------------------------------------------------- "More" sheet (bottom sheet → side drawer) */
.app-more.offcanvas { background: var(--c-surface); color: var(--c-text); border: 0; }
.app-more.offcanvas-bottom { height: auto; max-height: 88vh; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.app-more .offcanvas-body { padding-bottom: calc(24px + var(--safe-b)); }
.sheet-grip { width: 40px; height: 5px; border-radius: 3px; background: var(--c-line-2); margin: 8px auto 0; }
.more-h { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); margin: 1.1rem 0 .3rem; font-weight: 700; }
.more-list, .more-langs { list-style: none; margin: 0; padding: 0; }
.more-list a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding-inline: 4px; color: var(--c-text); text-decoration: none; border-bottom: 1px solid var(--c-line); font-weight: 500; }
.more-list a .icon { color: var(--c-muted); }
.more-list a[aria-current] { color: var(--c-brand); font-weight: 700; }
.more-langs { display: flex; flex-wrap: wrap; gap: 8px; }
.more-langs a { display: inline-flex; min-height: 40px; align-items: center; padding-inline: .9rem; border: 1px solid var(--c-line-2); border-radius: var(--r-pill); color: var(--c-text); text-decoration: none; }
.more-langs a[aria-current] { background: var(--c-brand); color: var(--c-brand-ink); border-color: var(--c-brand); }
.more-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--c-line); }
@media (min-width: 768px) {
  .app-more.offcanvas-bottom { top: 0; bottom: 0; inset-inline-end: 0; inset-inline-start: auto; left: auto; width: 400px; max-height: none; height: 100%; border-radius: 0; transform: translateX(100%); }
  [dir=rtl] .app-more.offcanvas-bottom { right: auto; left: 0; transform: translateX(-100%); }
  .app-more.offcanvas-bottom.showing, .app-more.offcanvas-bottom.show:not(.hiding) { transform: none; }
  .app-more .sheet-grip { display: none; }
}

/* ---------------------------------------------------------------- segmented control (Appearance, views, filters) */
.seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--c-surface-2); border-radius: var(--r-pill); max-width: 100%; }
.seg.seg-wrap { flex-wrap: wrap; border-radius: var(--r-md); }
.seg > button, .seg > a, .seg > label { flex: 1 1 auto; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding-inline: .9rem;
  border: 0; border-radius: var(--r-pill); background: transparent; color: var(--c-text); font-weight: 600; font-size: .9rem; text-decoration: none; cursor: pointer; white-space: nowrap; }
.seg > button[aria-checked=true], .seg > a[aria-current=true], .seg > input:checked + label { background: var(--c-surface); box-shadow: var(--shadow-1); color: var(--c-text); }
.seg > input:focus-visible + label { outline: 3px solid var(--c-focus); }
.seg-sm > a { min-height: 34px; font-size: .82rem; padding-inline: .7rem; }
.app-more .seg { display: flex; width: 100%; }

/* ---------------------------------------------------------------- chips */
.chip2 { display: inline-flex; align-items: center; gap: .35rem; min-height: 38px; padding-inline: .95rem; border-radius: var(--r-pill); border: 1px solid var(--c-line-2);
  background: var(--c-chip); color: var(--c-text) !important; font-weight: 600; font-size: .88rem; text-decoration: none; white-space: nowrap; cursor: pointer; list-style: none; }
.chip2::-webkit-details-marker { display: none; }
.chip2[aria-pressed=true], .chip2.is-on { background: var(--c-text); color: var(--c-bg) !important; border-color: var(--c-text); }
.chip2.has-on { border-color: var(--c-text); box-shadow: inset 0 0 0 1px var(--c-text); }
.tag-soft { display: inline-block; font-size: .72rem; font-weight: 700; padding: .12rem .5rem; border-radius: var(--r-pill); background: var(--c-surface-2); color: var(--c-muted); vertical-align: middle; }
.tag-warn { background: var(--c-urgent-bg); color: var(--c-urgent); }

/* ---------------------------------------------------------------- dialogs + detail sheets */
.app-dialog { border: 0; padding: 0; border-radius: var(--r-lg); background: var(--c-surface); color: var(--c-text); width: min(560px, 100vw - 24px); max-height: 88vh; box-shadow: var(--shadow-2); }
.app-dialog::backdrop { background: rgba(0, 0, 0, .45); }
.app-dialog-in { display: flex; flex-direction: column; max-height: 88vh; }
.app-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 18px 20px 6px; }
.app-dialog-in > fieldset, .app-dialog-in > details, .sheetdetails-panel > fieldset, .sheetdetails-panel > details { padding-inline: 20px; }
.app-dialog-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 14px 20px calc(14px + var(--safe-b)); border-top: 1px solid var(--c-line); margin-top: auto; position: sticky; bottom: 0; background: var(--c-surface); }
@media (max-width: 575.98px) {
  .app-dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }
}
.flt-group { border: 0; margin: 0; padding-block: 14px; border-bottom: 1px solid var(--c-line); }
.flt-group legend { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; float: none; }
.flt-opt { display: flex; align-items: center; gap: .65rem; min-height: 44px; font-size: .98rem; cursor: pointer; }
.flt-opt input { width: 20px; height: 20px; accent-color: var(--c-brand); flex-shrink: 0; }
.flt-n { margin-inline-start: auto; color: var(--c-muted); font-size: .85rem; }
.flt-more { padding-block: 14px; }
.flt-more > summary { font-weight: 700; cursor: pointer; min-height: 40px; display: flex; align-items: center; }

/* <details data-sheetdetails>: inline section without JS; bottom sheet / centred panel when open */
.sheetdetails { display: inline-block; }
.sheetdetails > summary { list-style: none; }
.sheetdetails[open] .sheetdetails-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 1060; }
.sheetdetails[open] .sheetdetails-panel { position: fixed; z-index: 1061; inset-inline: 0; bottom: 0; max-height: 88vh; overflow: auto; background: var(--c-surface); color: var(--c-text);
  border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: var(--shadow-2); display: flex; flex-direction: column; }
@media (min-width: 768px) {
  .sheetdetails[open] .sheetdetails-panel { inset-inline: auto; left: 50%; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: 560px; border-radius: var(--r-lg); }
}
html.sheet-open { overflow: hidden; }

/* ---------------------------------------------------------------- big search (Names, fallback home) */
.bigsearch { position: relative; display: flex; align-items: center; background: var(--c-surface); border: 1px solid var(--c-line-2); border-radius: var(--r-pill); box-shadow: var(--shadow-1); min-height: 54px; padding-inline: 18px 8px; }
.bigsearch > .icon { color: var(--c-muted); font-size: 1.2rem; flex-shrink: 0; }
.bigsearch input { flex: 1; border: 0; background: transparent; color: var(--c-text); font-size: 1.05rem; padding: .7rem .7rem; min-width: 0; }
.bigsearch input:focus { outline: none; }
.bigsearch:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-focus) 45%, transparent), var(--shadow-1); }
.bigsearch .suggest { position: absolute; inset-inline: 0; top: calc(100% + 6px); z-index: 1050; background: var(--c-surface); border-radius: var(--r-md); box-shadow: var(--shadow-2); overflow: hidden; }

/* ---------------------------------------------------------------- Names */
.names-head { padding-block: 22px 14px; }
.names-head h1 { font-size: clamp(1.7rem, 5vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 .2rem; }
.names-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block: 14px 6px; }
.names-views { margin-inline-start: auto; }
.names-count { color: var(--c-muted); font-size: .92rem; margin: 6px 0 4px; }
.plist { list-style: none; margin: 0; padding: 0; }
.plist > li + li { border-top: 1px solid var(--c-line); }
.prow { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 4px; background: none; border: 0; text-align: start; color: var(--c-text) !important; text-decoration: none; min-height: 72px; border-radius: var(--r-sm); }
.prow:hover { background: var(--c-surface-2); text-decoration: none; }
.prow:hover * { text-decoration: none; }
.prow-ph { width: 48px; height: 60px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--c-surface-2); display: flex; align-items: center; justify-content: center; }
.prow-ph img { width: 100%; height: 100%; object-fit: cover; }
.prow-ini { font-weight: 800; color: var(--c-muted); font-size: 1.15rem; }
.prow-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.prow-n { font-weight: 700; font-size: 1.02rem; }
.prow-a { color: var(--c-muted); font-size: .92rem; }
.prow-m { color: var(--c-muted); font-size: .85rem; }
.face-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .face-grid { grid-template-columns: repeat(4, 1fr); } .plist-page { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; } .plist-page > li + li { border-top: 0; } .plist-page > li { border-bottom: 1px solid var(--c-line); } }
@media (min-width: 1200px) { .face-grid { grid-template-columns: repeat(6, 1fr); } }
.empty { text-align: center; padding: 48px 16px; }
.pager2 { display: flex; align-items: center; justify-content: center; gap: 10px; margin-block: 24px 8px; flex-wrap: wrap; }
.pager2 a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-pill); text-decoration: none; color: var(--c-text); font-weight: 600; padding-inline: .8rem; }
.pager2 .pg-step { border: 1px solid var(--c-line-2); background: var(--c-surface); }
.pager2 a[aria-current=page] { background: var(--c-text); color: var(--c-bg); }
.pg-nums { display: inline-flex; gap: 2px; align-items: center; }

/* ---------------------------------------------------------------- the map app (home) */
.is-app .app-main { padding-bottom: 0; display: flex; }
.mapapp { position: relative; flex: 1; height: calc(100vh - var(--hdr-h) - var(--tab-h) - var(--safe-b)); height: calc(100dvh - var(--hdr-h) - var(--tab-h) - var(--safe-b)); min-height: 420px; overflow: hidden; background: var(--c-map-land); }
@media (min-width: 992px) { .mapapp { height: calc(100vh - var(--hdr-h)); height: calc(100dvh - var(--hdr-h)); } }
.mapapp-map { position: absolute; inset: 0; direction: ltr; background: var(--c-map-land); display: none; }
html.js .mapapp.map-ready .mapapp-map { display: block; }
.mapapp.map-failed .mapapp-map, .mapapp.map-failed .mapctl, .mapapp.map-failed .mapchips { display: none; }
.mapapp .leaflet-container { font-family: inherit; background: var(--c-map-land); }
.tm-tiles { filter: saturate(.75); }
[data-bs-theme=dark] .tm-tiles { filter: none; }
.tm-prov { fill: transparent; stroke: var(--c-map-line); stroke-width: 1; }
.no-tiles .tm-prov { fill: var(--c-surface); fill-opacity: 1; }
.leaflet-control-attribution { background: color-mix(in srgb, var(--c-surface) 80%, transparent) !important; color: var(--c-muted) !important; font-size: 10px; }
.leaflet-control-attribution a { color: var(--c-muted) !important; }

/* overlay: search pill + filter chips */
.mapapp-top { position: absolute; z-index: 600; inset-inline: 12px; top: 12px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.mapapp-top > * { pointer-events: auto; }
.mapsearch { position: relative; display: flex; align-items: center; background: var(--c-surface); border-radius: var(--r-pill); box-shadow: var(--shadow-2); min-height: 52px; padding-inline: 16px 6px; }
.mapsearch > .icon { color: var(--c-muted); font-size: 1.15rem; flex-shrink: 0; }
.mapsearch input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--c-text); font-size: 1rem; padding: .7rem .65rem; }
.mapsearch input:focus { outline: none; }
.mapsearch:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-focus) 45%, transparent), var(--shadow-2); }
.mapsearch-clear { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--c-muted); }
.mapsearch-list { position: absolute; inset-inline: 0; top: calc(100% + 8px); list-style: none; margin: 0; padding: 6px; background: var(--c-surface); border-radius: var(--r-md); box-shadow: var(--shadow-2); max-height: min(60vh, 440px); overflow: auto; }
.mapsearch-list [role=option] { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 10px; border-radius: var(--r-sm); cursor: pointer; }
.mapsearch-list [role=option][aria-selected=true], .mapsearch-list [role=option]:hover { background: var(--c-surface-2); }
.mapsearch-list .icon { color: var(--c-muted); font-size: 1.2rem; width: 36px; }
.mapsearch-list .ms-group { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--c-muted); padding: 8px 10px 2px; }
.so-ph { width: 36px; height: 44px; border-radius: 8px; overflow: hidden; background: var(--c-surface-2); flex-shrink: 0; }
.so-ph img { width: 100%; height: 100%; object-fit: cover; }
.so-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.so-t small { color: var(--c-muted); }
.so-all { color: var(--c-brand); font-weight: 600; }
.mapchips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-inline: -12px; padding-inline: 12px; }
.mapchips::-webkit-scrollbar { display: none; }
.mapchips .chip2 { box-shadow: var(--shadow-1); border-color: transparent; }
.mapchips .chip2[aria-pressed=true] { border-color: var(--c-text); }

/* map controls */
.mapctl { position: absolute; z-index: 600; inset-inline-end: 12px; bottom: 132px; display: flex; flex-direction: column; background: var(--c-surface); border-radius: var(--r-md); box-shadow: var(--shadow-2); overflow: hidden; }
.mapctl button { width: 46px; height: 46px; border: 0; background: transparent; color: var(--c-text); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.mapctl button + button { border-top: 1px solid var(--c-line); }
.mapctl button:hover { background: var(--c-surface-2); }

/* markers */
.tm-mk { display: flex !important; align-items: center; justify-content: center; border-radius: 50%; font-weight: 800; font-size: .8rem; line-height: 1; cursor: pointer; transition: transform .12s ease; }
.tm-mk:hover, .tm-mk:focus-visible { transform: scale(1.08); z-index: 1000 !important; }
.tm-mk:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.tm-prov-mk, .tm-cluster, .tm-town { background: var(--c-accent); color: #fff; border: 3px solid #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.tm-cluster { background: color-mix(in srgb, var(--c-accent) 88%, #000); }
.tm-town { background: var(--c-brand); border-width: 2px; }
[data-bs-theme=dark] .tm-town { color: var(--c-brand-ink); }
[data-bs-theme=dark] .tm-prov-mk, [data-bs-theme=dark] .tm-cluster, [data-bs-theme=dark] .tm-town { border-color: var(--c-bg); }
.tm-unplaced { background: var(--c-surface); color: var(--c-text); border: 2px dashed var(--c-muted); box-shadow: 0 1px 6px rgba(0, 0, 0, .2); }
.tm-faces { background: transparent; border: 0; box-shadow: none; }
.tm-faces .tm-fs { display: flex; }
.tm-faces .tm-fs > * { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; background: var(--c-brand); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); margin-inline-start: -12px; }
.tm-faces .tm-fs > :first-child { margin-inline-start: 0; }
.tm-faces .tm-n { position: absolute; inset-block-start: -6px; inset-inline-end: -10px; background: var(--c-accent); color: #fff; border-radius: var(--r-pill); padding: 2px 6px; font-size: .7rem; border: 2px solid #fff; }
.tm-faces.tm-one .tm-n { display: none; }
.tm-faces.tm-one .tm-fs > * { width: 44px; height: 44px; }

/* the sheet: bottom sheet on phones (peek / half / full), side panel on desktop */
.mapsheet { position: absolute; z-index: 700; inset-inline: 0; bottom: 0; background: var(--c-surface); border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: 0 -6px 28px rgba(0, 0, 0, .18);
  display: flex; flex-direction: column; height: 116px; transition: height .25s ease; }
.mapsheet[data-state=half] { height: 52%; }
.mapsheet[data-state=full] { height: calc(100% - 64px); }
.mapsheet.is-dragging { transition: none; }
html:not(.js) .mapsheet, .mapapp.map-failed .mapsheet { position: relative; height: auto; border-radius: 0; box-shadow: none; }
html:not(.js) .mapapp, .mapapp.map-failed { height: auto; overflow: visible; background: var(--c-bg); }
.sheet-handle { border: 0; background: transparent; height: 22px; width: 100%; display: flex; justify-content: center; align-items: center; cursor: grab; touch-action: none; flex-shrink: 0; }
.sheet-handle span { width: 42px; height: 5px; border-radius: 3px; background: var(--c-line-2); }
.ms-head { display: flex; align-items: center; gap: 8px; padding: 0 16px 10px; touch-action: none; flex-shrink: 0; }
.ms-iconbtn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--c-line-2); background: var(--c-surface); color: var(--c-text); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ms-titles { min-width: 0; }
.ms-title { font-size: 1.15rem; font-weight: 800; margin: 0; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-sub { margin: 0; color: var(--c-muted); font-size: .88rem; }
.ms-body { overflow-y: auto; overscroll-behavior: contain; padding: 0 16px calc(16px + var(--safe-b)); flex: 1; }
.mapsheet[data-state=peek] .ms-body { visibility: hidden; }
html:not(.js) .ms-body, .mapapp.map-failed .ms-body { visibility: visible !important; }
.ms-h { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); margin: 8px 0 4px; font-weight: 700; }
.place-list { list-style: none; margin: 0 0 12px; padding: 0; }
.place-list li + li { border-top: 1px solid var(--c-line); }
.place-list a, .place-list button { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 48px; padding-inline: 4px; background: none; border: 0; color: var(--c-text); text-decoration: none; font-weight: 600; text-align: start; }
.place-list button:hover, .place-list a:hover { background: var(--c-surface-2); }
.pl-n { color: var(--c-muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.ms-cta { margin: 16px 0 8px; padding: 14px; border-radius: var(--r-md); background: var(--c-surface-2); }
.ms-cta p { margin: 0 0 10px; font-size: .92rem; }
.ms-note, .ms-loading { color: var(--c-muted); font-size: .85rem; }
.pv { text-align: center; padding-top: 6px; }
.pv-ph { width: 160px; height: 200px; object-fit: cover; border-radius: var(--r-md); box-shadow: var(--shadow-1); margin-bottom: 14px; }
.pv-n { font-size: 1.4rem; font-weight: 800; margin: 0; }
.pv-a { color: var(--c-muted); margin: .1rem 0 .4rem; }
.pv-m { margin: 0; font-weight: 600; }
.pv-d { color: var(--c-muted); margin: 0 0 16px; }
.pv .btn { margin-top: 12px; }
@media (min-width: 992px) {
  .mapsheet, .mapsheet[data-state] { top: 16px; bottom: 16px; inset-inline-start: 16px; inset-inline-end: auto; width: 392px; height: auto; border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
  .mapsheet .sheet-handle { display: none; }
  .mapsheet .ms-head { padding-top: 16px; }
  .mapsheet[data-state] .ms-body { visibility: visible; }
  .mapapp-top { inset-inline-start: 424px; inset-inline-end: 16px; top: 16px; flex-direction: row; align-items: flex-start; }
  .mapsearch { width: 420px; flex-shrink: 0; }
  .mapchips { margin: 0; padding: 4px; min-width: 0; }
  .mapctl { bottom: 28px; inset-inline-end: 16px; }
}

/* ---------------------------------------------------------------- person */
.person-hero { display: grid; gap: 20px; padding-block: 16px 8px; }
.person-portrait { max-width: 420px; width: 100%; margin-inline: auto; }
.person-photo { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--c-surface-2); aspect-ratio: 4 / 5; box-shadow: var(--shadow-1); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person-initial { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 5rem; font-weight: 800; color: var(--c-muted); }
.person-hero.no-photo .person-portrait { max-width: 160px; margin-inline: 0; }
.person-name { font-size: clamp(1.9rem, 7vw, 2.9rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 0; }
.person-other { font-size: 1.25rem; color: var(--c-muted); margin: .3rem 0 0; }
.person-facts { font-size: 1.1rem; font-weight: 700; margin: .9rem 0 0; }
.person-date { font-size: 1.05rem; color: var(--c-muted); margin: .15rem 0 0; }
.person-excerpt { font-size: 1.06rem; line-height: 1.65; margin: 1rem 0 0; max-width: 40rem; }
.person-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.25rem; }
.person-copy { margin: .6rem 0 0; font-size: .88rem; }
.person-copy .btn-link { min-height: 32px; font-weight: 600; }
@media (min-width: 768px) {
  .person-hero { grid-template-columns: minmax(240px, 360px) 1fr; gap: 36px; align-items: start; padding-top: 32px; }
  .person-portrait { margin: 0; position: sticky; top: calc(var(--hdr-h) + 16px); }
  .person-hero.no-photo { grid-template-columns: 140px 1fr; }
}
.person-body .psec { max-width: 48rem; }
@media (min-width: 992px) { .person-body { padding-inline-start: calc(16px + 396px); } .person-body .psec { max-width: 44rem; } }
.psec { padding-block: 26px; border-top: 1px solid var(--c-line); }
.psec:first-child { border-top: 0; }
.psec h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; margin: 0 0 .75rem; }
.psub { font-size: 1rem; font-weight: 700; margin: 1.4rem 0 .5rem; }
.psec-urgent { background: var(--c-urgent-bg); border-radius: var(--r-md); padding: 20px; border: 0; margin-block: 12px; }
.psec-urgent h2 { color: var(--c-urgent); }
.kv { display: grid; grid-template-columns: 1fr; margin: 0; }
.kv > div { display: grid; grid-template-columns: 9rem 1fr; gap: 12px; padding-block: 10px; border-bottom: 1px solid var(--c-line); }
.kv dt { color: var(--c-muted); font-weight: 600; font-size: .92rem; }
.kv dd { margin: 0; font-weight: 600; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 768px) { .choice-grid { grid-template-columns: repeat(4, 1fr); } }
.choice { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border: 1px solid var(--c-line-2); border-radius: var(--r-md); background: var(--c-surface); color: var(--c-text) !important; text-decoration: none; font-weight: 600; cursor: pointer; position: relative; }
.choice > .icon { font-size: 1.35rem; color: var(--c-accent); flex-shrink: 0; }
.choice:hover { border-color: var(--c-text); }
.choice-grid .choice { flex-direction: column; align-items: flex-start; justify-content: space-between; min-height: 96px; }
.disclose { border-top: 1px solid var(--c-line); padding-block: 4px; }
.disclose > summary { min-height: 52px; display: flex; align-items: center; gap: .4rem; font-weight: 700; cursor: pointer; }
.related-grid { display: grid; gap: 14px; }
.media-grid img { border-radius: var(--r-sm); }

/* ---------------------------------------------------------------- submit */
.submit-grid { display: grid; gap: 28px; padding-bottom: 24px; }
@media (min-width: 992px) { .submit-grid { grid-template-columns: minmax(0, 1fr) 300px; } }
.submit-aside { color: var(--c-text); padding: 16px; border-radius: var(--r-md); background: var(--c-surface-2); align-self: start; }
.choice-list { display: grid; gap: 10px; }
.choice-lg { min-height: 76px; }
.choice-t { display: flex; flex-direction: column; line-height: 1.3; }
.choice-t small { color: var(--c-muted); font-weight: 400; }
.choice input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice:has(input:checked) { border-color: var(--c-text); box-shadow: inset 0 0 0 1px var(--c-text); background: var(--c-surface-2); }
.choice:has(input:focus-visible) { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.wizard2 .wizard-step legend.h4 { font-weight: 800; }
.wizard2:not([data-kind=new_name]) [data-for=new] { display: none; }
.wizard2[data-kind=new_name] [data-switch-new] { display: none; }
.done-card { padding: 32px 16px; }

/* ---------------------------------------------------------------- Updates feed */
.feed { list-style: none; margin: 0; padding: 0; }
.feed-item { padding-block: 22px; border-top: 1px solid var(--c-line); }
.feed-date { display: block; color: var(--c-muted); font-size: .85rem; font-weight: 600; margin-bottom: .3rem; }
.feed-h { font-size: 1.15rem; font-weight: 800; margin: 0 0 .5rem; }
.feed-kicker { color: var(--c-urgent); font-weight: 700; font-size: .82rem; margin: 0 0 .2rem; text-transform: uppercase; letter-spacing: .04em; }
.feed-watch { border-inline-start: 4px solid var(--c-urgent); padding-inline-start: 14px; }
.feed-more { font-weight: 700; display: inline-block; margin-top: .4rem; }

/* ---------------------------------------------------------------- footer */
.app-footer { background: var(--c-surface); border-top: 1px solid var(--c-line); padding-block: 32px calc(var(--tab-h) + var(--safe-b) + 24px); margin-top: 32px; }
@media (min-width: 992px) { .app-footer { padding-bottom: 28px; } }
.app-footer-grid { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
.app-footer-about { grid-column: 1 / -1; }
@media (min-width: 768px) { .app-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .app-footer-about { grid-column: auto; } }
.app-footer-h { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); font-weight: 700; margin-bottom: .5rem; }
.app-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.app-footer ul a { color: var(--c-text); text-decoration: none; }
.app-footer ul a:hover { text-decoration: underline; }
.app-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--c-line); color: var(--c-muted); }
.app-hero { padding-block: 32px; }
.app-hero h1 { font-weight: 800; letter-spacing: -.02em; }

/* ---------------------------------------------------------------- legacy pages inside the new shell */
body.app .page-head { background: transparent; border: 0; }
body.app .panel { background: var(--c-surface); border-color: var(--c-line); border-radius: var(--r-md); }
body.app .tim-consent { background: var(--c-surface); color: var(--c-text); border-top: 1px solid var(--c-line); box-shadow: var(--shadow-2); bottom: calc(var(--tab-h) + var(--safe-b)); }
@media (min-width: 992px) { body.app .tim-consent { bottom: 0; } }
body.app .v5-prompt { bottom: calc(var(--tab-h) + var(--safe-b) + 12px); }
@media (min-width: 992px) { body.app .v5-prompt { bottom: 16px; } }
.is-urgent .person-card, .is-urgent .case-card { border-inline-start: 4px solid var(--c-urgent); }

/* names in the other script line up with the page's own reading edge */
html[dir=ltr] .person-other, html[dir=ltr] .prow-a, html[dir=ltr] .so-t small { text-align: left; }
html[dir=rtl] .person-other, html[dir=rtl] .prow-a, html[dir=rtl] .so-t small { text-align: right; }
/* first-visit consent: compact, so it never hides the app */
body.app .tim-consent .app-wrap { padding-block: 10px !important; }
body.app .tim-consent p { font-size: .82rem; margin-bottom: .4rem !important; }
body.app .tim-consent h2 { font-size: .9rem; }
/* component links keep their own colours (beat the generic link colour) */
body.app .more-list a, body.app .more-langs a, body.app .place-list a, body.app .app-footer ul a, body.app .pager2 a, body.app .app-nav a, body.app .seg > a { color: var(--c-text); }
body.app .app-tabbar a { color: var(--c-muted); }
body.app .app-tabbar a[aria-current] { color: var(--c-brand); }
body.app .app-tabbar .tab-submit { color: var(--c-text); }
body.app .more-list a[aria-current], body.app .app-nav a[aria-current] { color: var(--c-brand); }
body.app .more-langs a[aria-current] { color: var(--c-brand-ink); }
body.app .pager2 a[aria-current=page] { color: var(--c-bg); }

/* V5.1.3 minimal footer (legal/trust only) and no-JS More sheet */
.app-footer-min { padding-block: 20px calc(var(--tab-h) + var(--safe-b) + 16px); margin-top: 24px; }
@media (min-width: 992px) { .app-footer-min { padding-bottom: 20px; } }
.app-footer-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.app-footer-links a { color: var(--c-text); text-decoration: none; }
.app-footer-links a:hover { text-decoration: underline; }
.app-footer-min .app-footer-bottom { margin-top: 12px; padding-top: 12px; align-items: center; }
.offcanvas.app-more:target { visibility: visible; transform: none; }
/* V5.1.3: one uncropped copy per size; the portrait frame is CSS (faces sit in the upper part of tall photos) */
.person-photo img, .pc-photo img, .prow-ph img, .mp-photo img { object-position: 50% 25%; }

/* V5.1.5 compact consent strip: never more than a few lines on a phone */
@media (max-width: 767.98px) {
  body.app .tim-consent .app-wrap { padding-block: 8px !important; }
  body.app .tim-consent h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  body.app .tim-consent p { font-size: .76rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px !important; }
  body.app .tim-consent .btn { padding: 4px 10px; font-size: .78rem; }
  body.app .tim-consent [data-consent-panel]:not([hidden]) ~ * , body.app .tim-consent [data-consent-panel]:not([hidden]) { max-height: 40vh; overflow: auto; }
}

/* =====================================================================================================================
   V5.1.5 design pass — calmer neutrals, TIM green as the action colour, restrained motion (200–280 ms, transform/opacity
   only, off with prefers-reduced-motion), tactile controls, search as the primary interaction.
   ===================================================================================================================== */
:root {
  --c-bg: #FAF8F4;
  --c-surface: #FFFFFF;
  --c-surface-2: #F1EFEA;
  --c-text: #161A18;
  --c-muted: #5E6661;
  --c-line: rgba(22, 26, 24, .10);
  --c-line-2: rgba(22, 26, 24, .18);
  --c-brand: #0F4D3A;
  --c-brand-2: #156B50;
  --shadow-1: 0 1px 2px rgba(20, 24, 22, .05), 0 4px 14px rgba(20, 24, 22, .06);
  --shadow-2: 0 10px 34px rgba(20, 24, 22, .14);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 180ms; --t-med: 260ms;
  --flag-g: #239F40; --flag-r: #DA0000;
}
[data-bs-theme=dark] {
  --c-bg: #0E1211;
  --c-surface: #161B19;
  --c-surface-2: #1E2522;
  --c-text: #ECEFED;
  --c-muted: #A7B1AC;
  --c-line: rgba(236, 239, 237, .10);
  --c-line-2: rgba(236, 239, 237, .20);
  --c-brand: #7CCBA9;
  --c-brand-2: #9ADABE;
  --c-brand-ink: #07140F;
}

/* tactile controls */
@media (prefers-reduced-motion: no-preference) {
  body.app .btn, .chip2, .app-iconbtn, .app-tabbar a, .prow, .pc, .hdr-search, .tier-list a, .face-row button {
    transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), color var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
  }
  body.app .btn:active, .chip2:active, .app-iconbtn:active, .app-tabbar a:active .tab-ic, .hdr-search:active { transform: scale(.96); }
  .chip2.is-on { animation: chip-in var(--t-med) var(--ease); }
  @keyframes chip-in { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
  @media (hover: hover) {
    .prow:hover { background: var(--c-surface-2); }
    .face-grid .pc:hover, .face-grid > a:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
  }
  details.disclose > :not(summary) { animation: disclose-in var(--t-med) var(--ease); }
  @keyframes disclose-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
}
.chip2 { border-radius: var(--r-pill); }
.chip2.is-on { background: var(--c-text); color: var(--c-bg); border-color: var(--c-text); }
[data-bs-theme=dark] .chip2.is-on { background: var(--c-brand); color: var(--c-brand-ink); border-color: var(--c-brand); }

/* header search pill (compact search; on pages with a big search it appears once that box scrolls away) */
.hdr-search { display: none; align-items: center; gap: .6rem; min-height: 44px; padding: 0 1rem 0 .85rem; border-radius: var(--r-pill); border: 1px solid var(--c-line-2);
  background: var(--c-surface); box-shadow: var(--shadow-1); color: var(--c-muted) !important; text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap; }
.hdr-search .icon { color: var(--c-text); font-size: 1.1rem; }
@media (min-width: 992px) { .hdr-search { display: inline-flex; margin-inline: auto; min-width: 240px; } }
body.has-hero-search .hdr-search { opacity: 0; transform: translateY(-6px) scale(.97); pointer-events: none; }
body.has-hero-search.hero-search-out .hdr-search { opacity: 1; transform: none; pointer-events: auto; }
body.has-hero-search .app-actions .app-search-ic { opacity: 0; pointer-events: none; }
body.has-hero-search.hero-search-out .app-actions .app-search-ic { opacity: 1; pointer-events: auto; }
.app-header { transition: box-shadow var(--t-med) var(--ease); }
body.is-scrolled .app-header { box-shadow: 0 2px 16px rgba(0, 0, 0, .06); }

/* big search (Names) */
.hero-q { font-size: clamp(1.35rem, 5vw, 1.9rem); font-weight: 800; letter-spacing: -.015em; margin: 6px 0 10px; }
.bigsearch { box-shadow: var(--shadow-1); border-radius: var(--r-pill); }
.bigsearch:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-brand) 25%, transparent), var(--shadow-2); }

/* evidence summary (A–D) */
.tier-sum { margin: 2px 0 14px; }
.tier-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--c-surface-2); gap: 2px; }
.tier-bar span { display: block; min-width: 3px; }
.tb-a { background: var(--c-brand); } .tb-b { background: color-mix(in srgb, var(--c-brand) 70%, var(--c-bg)); }
.tb-c { background: color-mix(in srgb, var(--c-brand) 42%, var(--c-bg)); } .tb-d { background: repeating-linear-gradient(45deg, var(--c-muted) 0 3px, transparent 3px 6px); opacity: .55; }
.tier-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.tier-list a { display: flex; align-items: center; gap: 8px; min-height: 36px; color: var(--c-text) !important; text-decoration: none; font-size: .86rem; border-radius: 8px; }
.tier-key { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .75rem; background: var(--c-surface-2); border: 1px solid var(--c-line-2); }
.tk-a { background: var(--c-brand); color: var(--c-brand-ink); border-color: transparent; }
.tk-d { border-style: dashed; }
.tier-lbl { flex: 1; min-width: 0; color: var(--c-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tier-n { font-weight: 700; font-variant-numeric: tabular-nums; }
.tier-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 700; font-size: .9rem; }
.tier-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; border: 1px solid var(--c-line-2); border-radius: var(--r-pill); font-size: .82rem; font-weight: 600; color: var(--c-text) !important; text-decoration: none; background: var(--c-surface); }

/* map: selected province, skeleton, province sheet */
.tm-prov { cursor: pointer; }
.leaflet-interactive.tm-prov { fill: transparent; fill-opacity: 0; }
.tm-prov.is-sel { stroke: var(--c-brand) !important; stroke-width: 2.5px !important; fill: var(--c-brand) !important; fill-opacity: .10 !important; }
.has-sel .tm-prov:not(.is-sel) { stroke-opacity: .35; }
@media (prefers-reduced-motion: no-preference) { .tm-mk { transition: transform var(--t-fast) var(--ease); } .tm-mk:hover { transform: scale(1.08); } .tm-prov { transition: fill-opacity var(--t-med) var(--ease), stroke-width var(--t-med) var(--ease); } }
.skel { display: grid; gap: 10px; padding: 8px 0; }
.skel span { height: 60px; border-radius: 12px; background: linear-gradient(90deg, var(--c-surface-2), color-mix(in srgb, var(--c-surface-2) 55%, var(--c-surface)), var(--c-surface-2)); background-size: 200% 100%; }
@media (prefers-reduced-motion: no-preference) { .skel span { animation: skel 1.2s linear infinite; } @keyframes skel { to { background-position: -200% 0; } } }
.ms-prov { padding: 2px 0 10px; }
.ms-need { margin: 0 0 10px; font-weight: 600; font-size: .92rem; }
.face-row { list-style: none; display: flex; gap: 8px; margin: 0 0 12px; padding: 0 0 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.face-row::-webkit-scrollbar { display: none; }
.face-row li { scroll-snap-align: start; flex: 0 0 auto; }
.face-row button { padding: 0; border: 0; background: none; border-radius: 12px; overflow: hidden; display: block; }
.face-row img { width: 56px; height: 70px; object-fit: cover; object-position: 50% 25%; display: block; border-radius: 12px; background: var(--c-surface-2); }
.ms-explore { justify-content: space-between; }

/* person page: identity first on phones (portrait beside the name), compact sticky identity bar */
@media (max-width: 767.98px) {
  .person-hero { grid-template-columns: 112px 1fr; gap: 14px 16px; align-items: start; padding-top: 14px; }
  .person-hero.no-photo { grid-template-columns: 64px 1fr; }
  .person-portrait { margin: 0; max-width: none; }
  .person-hero.no-photo .person-portrait { max-width: 64px; }
  .person-hero.no-photo .person-initial { font-size: 1.9rem; }
  .person-photo { border-radius: 16px; }
  .person-name { font-size: 1.55rem; }
  .person-other { font-size: 1.05rem; margin-top: .15rem; }
  .person-facts { font-size: .98rem; margin-top: .5rem; }
  .person-date { font-size: .95rem; }
  .person-intro { display: contents; }
  .person-intro > .person-head { grid-column: 2; }
  .person-intro > :not(.person-head) { grid-column: 1 / -1; }
  .person-excerpt { margin-top: .25rem; }
  .person-actions { margin-top: .5rem; }
  .person-actions .btn { flex: 1 1 auto; }
}
.person-head > :first-child { margin-top: 0; }
.person-stick { position: fixed; inset-inline: 0; top: var(--hdr-h); z-index: 1020; background: color-mix(in srgb, var(--c-surface) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line); transform: translateY(-110%); opacity: 0; pointer-events: none; }
.person-stick.is-on { transform: none; opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: no-preference) { .person-stick { transition: transform var(--t-med) var(--ease), opacity var(--t-med) var(--ease); } }
.person-stick-in { display: flex; align-items: center; gap: 10px; min-height: 56px; }
.person-stick img, .person-stick .ps-ini { width: 34px; height: 42px; border-radius: 8px; object-fit: cover; object-position: 50% 25%; background: var(--c-surface-2); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: var(--c-muted); flex: 0 0 auto; }
.person-stick .ps-n { font-weight: 700; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* toast (copy / share) */
.tim-toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 16px); transform: translate(-50%, 12px); opacity: 0; z-index: 2000; pointer-events: none;
  background: var(--c-text); color: var(--c-bg); padding: .6rem 1rem; border-radius: var(--r-pill); font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-2); }
.tim-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: no-preference) { .tim-toast { transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease); } }
@media (min-width: 992px) { .tim-toast { bottom: 24px; } }

/* footer: one thin identity line (green · white · red), nothing more */
.app-footer-min { position: relative; border-top: 0; }
.app-footer-min::before { content: ''; position: absolute; inset-inline: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--flag-g) 0 33.3%, #FFFFFF 33.3% 66.6%, var(--flag-r) 66.6%); opacity: .85; box-shadow: 0 1px 0 var(--c-line); }
[data-bs-theme=dark] .app-footer-min::before { opacity: .6; }

/* "recently documented" + "need your help" rows on the map sheet */
.ms-sec { margin: 14px 0 6px; }
.ms-sec h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); font-weight: 700; margin: 0 0 8px; }
.help-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.help-cards a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-surface); color: var(--c-text) !important; text-decoration: none; }
.help-cards .icon { font-size: 1.2rem; color: var(--c-brand); flex: 0 0 auto; }
.help-cards strong { display: block; font-size: .92rem; }
.help-cards small { color: var(--c-muted); }
.help-cards .hc-n { margin-inline-start: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.tier-sum-compact .tier-list, .mapsheet .tier-list { grid-template-columns: 1fr; }
@media (min-width: 480px) and (max-width: 991.98px) { .tier-sum:not(.tier-sum-compact) .tier-list { grid-template-columns: 1fr 1fr; } }
.f-wide, .f-wide-b { display: none; }
@media (min-width: 768px) { .f-wide { display: inline; } .f-wide-b { display: block; } }

/* =====================================================================================================================
   V5.2 — "app" refresh. White canvas + charcoal text, ONE accent (memorial red) used sparingly, TIM green kept for
   identity and links, Pahlavi Lion-and-Sun flag colours in the footer bar. Dark mode is neutral charcoal (no green
   wash) so long text stays readable. Every value below was contrast-checked (WCAG AA or better on its background).
   ===================================================================================================================== */
:root, [data-bs-theme=light] {
  --c-bg: #FFFFFF;
  --c-surface: #FFFFFF;
  --c-surface-2: #F7F7F7;
  --c-text: #222222;           /* 15.9:1 */
  --c-muted: #6A6A6A;          /* 5.4:1 */
  --c-line: #EBEBEB;
  --c-line-2: #DDDDDD;
  --c-brand: #164B44;          /* Pahlavi-flag green, 9.9:1 — links, identity */
  --c-brand-2: #0F3833;
  --c-brand-ink: #FFFFFF;
  --c-accent: #B3121D;         /* memorial red — primary actions only, 7:1 with white */
  --c-accent-2: #96101A;
  --c-accent-ink: #FFFFFF;
  --c-accent-text: #B3121D;
  --c-accent-soft: #FDECEC;
  --c-chip: #FFFFFF;
  --c-map-land: #EEF1EF;
  --c-map-line: rgba(22, 75, 68, .45);
  --c-focus: #1D6FD8;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 12px rgba(0, 0, 0, .05);
  --shadow-2: 0 6px 20px rgba(0, 0, 0, .12);
  --shadow-3: 0 18px 50px rgba(0, 0, 0, .22);
  --r-card: 18px;
  --flag-g: #164B44; --flag-w: #FFFFFF; --flag-r: #A60000;
  --tim-surface: #FFFFFF; --tim-tint: #F1F5F4; --tim-frame: #F0F0F0; --tim-bar-track: #EFEFEF; --tim-count: #B3121D;
  --bs-body-bg: #FFFFFF; --bs-body-bg-rgb: 255, 255, 255;
  --bs-body-color: #222222; --bs-body-color-rgb: 34, 34, 34;
  --bs-secondary-color: #6A6A6A;
  --bs-border-color: #DDDDDD;
  --bs-link-color: #164B44; --bs-link-color-rgb: 22, 75, 68;
  --bs-link-hover-color: #0F3833; --bs-link-hover-color-rgb: 15, 56, 51;
  --bs-emphasis-color: #000000;
}
[data-bs-theme=dark] {
  --c-bg: #141414;
  --c-surface: #1F1F1F;
  --c-surface-2: #2A2A2A;
  --c-text: #F2F2F2;           /* 16.5:1 */
  --c-muted: #B0B0B0;          /* 8.5:1 */
  --c-line: #2E2E2E;
  --c-line-2: #3D3D3D;
  --c-brand: #7FC9B0;          /* 9.5:1 */
  --c-brand-2: #A3DAC6;
  --c-brand-ink: #0B1F1B;
  --c-accent: #C62834;         /* button fill, 5.6:1 with white */
  --c-accent-2: #D93A46;
  --c-accent-ink: #FFFFFF;
  --c-accent-text: #FF6B73;    /* red used as text, 6.7:1 */
  --c-accent-soft: #3A1D1F;
  --c-chip: #1F1F1F;
  --c-map-land: #1C1F1E;
  --c-map-line: rgba(127, 201, 176, .45);
  --c-focus: #7FB2FF;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .5), 0 4px 12px rgba(0, 0, 0, .35);
  --shadow-2: 0 8px 24px rgba(0, 0, 0, .55);
  --shadow-3: 0 18px 50px rgba(0, 0, 0, .7);
  --tim-surface: #1F1F1F; --tim-tint: #232A28; --tim-frame: #2A2A2A; --tim-bar-track: #2A2A2A; --tim-count: #FF6B73;
  --bs-body-bg: #141414; --bs-body-bg-rgb: 20, 20, 20;
  --bs-body-color: #F2F2F2; --bs-body-color-rgb: 242, 242, 242;
  --bs-secondary-color: #B0B0B0;
  --bs-border-color: #3D3D3D;
  --bs-link-color: #7FC9B0; --bs-link-color-rgb: 127, 201, 176;
  --bs-link-hover-color: #A3DAC6; --bs-link-hover-color-rgb: 163, 218, 198;
  --bs-emphasis-color: #FFFFFF;
}
body.app { background: var(--c-bg); color: var(--c-text); }
.pc-name { color: var(--c-text); }

/* buttons: the accent is the one "do it" colour */
body.app .btn-primary, body.app .btn-memorial { --bs-btn-bg: var(--c-accent); --bs-btn-border-color: var(--c-accent); --bs-btn-color: var(--c-accent-ink);
  --bs-btn-hover-bg: var(--c-accent-2); --bs-btn-hover-border-color: var(--c-accent-2); --bs-btn-hover-color: var(--c-accent-ink);
  --bs-btn-active-bg: var(--c-accent-2); --bs-btn-active-border-color: var(--c-accent-2); --bs-btn-active-color: var(--c-accent-ink);
  --bs-btn-disabled-bg: var(--c-accent); --bs-btn-disabled-border-color: var(--c-accent); }
body.app .btn-outline-primary { --bs-btn-color: var(--c-brand); --bs-btn-border-color: var(--c-brand); --bs-btn-hover-bg: var(--c-brand); --bs-btn-hover-border-color: var(--c-brand); --bs-btn-hover-color: var(--c-brand-ink); }
.choice > .icon { color: var(--c-accent-text); }
body.app .text-danger { color: var(--c-accent-text) !important; }

/* footer: Pahlavi tricolour (green · white · red) */
.app-footer-min::before { background: linear-gradient(90deg, var(--flag-g) 0 33.34%, var(--flag-w) 33.34% 66.67%, var(--flag-r) 66.67%); opacity: 1; height: 4px; }
[dir=rtl] .app-footer-min::before { background: linear-gradient(-90deg, var(--flag-g) 0 33.34%, var(--flag-w) 33.34% 66.67%, var(--flag-r) 66.67%); }
[data-bs-theme=dark] .app-footer-min::before { opacity: .9; }

/* header: logo · (search pill) · actions. Phones: search · account · menu (settings live in the tab bar).
   Desktop: search pill · Submit · account · settings · Menu. */
.app-header { background: var(--c-surface); background: color-mix(in srgb, var(--c-surface) 94%, transparent); }
.app-settings-ic { display: none; }
@media (min-width: 992px) {
  .app-settings-ic { display: inline-flex; }
  .app-morebtn { border-color: var(--c-line-2); }
}
.app-account .acc-ini { width: 30px; height: 30px; border-radius: 50%; background: var(--c-text); color: var(--c-bg); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; }
.hdr-search { padding-inline: 1rem .35rem; gap: .7rem; border-color: var(--c-line); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 4px 12px rgba(0, 0, 0, .05); color: var(--c-text) !important; min-height: 48px; }
.hdr-search > .icon { display: none; }
.hdr-search-go { width: 34px; height: 34px; border-radius: 50%; background: var(--c-accent); color: var(--c-accent-ink); display: inline-flex; align-items: center; justify-content: center; margin-inline-start: auto; }
.hdr-search-go .icon { color: inherit !important; font-size: .95rem !important; stroke-width: 2.6; }
@media (hover: hover) { .hdr-search:hover { box-shadow: var(--shadow-2); } }

/* tab bar: active tab in green, centre Submit in the accent */
.app-tabbar { background: var(--c-surface); border-top-color: var(--c-line); }
.app-tabbar a[aria-current] { color: var(--c-brand); }
.app-tabbar a[aria-current] .tab-t { text-decoration: none; }
.app-tabbar a[aria-current] .tab-ic .icon { stroke-width: 2.4; }

/* sheets */
.app-more.offcanvas { background: var(--c-surface); }
.more-langs a[aria-current] { background: var(--c-text); color: var(--c-bg); border-color: var(--c-text); }
.set-row { display: flex; align-items: center; gap: 16px; padding: 10px 0; }
.set-row > span { flex: 1 1 auto; min-width: 0; }
.set-row strong { display: block; font-weight: 600; }
.set-row small { display: block; color: var(--c-muted); font-size: .82rem; line-height: 1.45; }
.set-acc { display: flex; flex-wrap: wrap; gap: 8px; }
.set-acc .btn { flex: 1 1 140px; }
/* switch */
.tgl { position: relative; flex: 0 0 auto; width: 52px; height: 32px; border-radius: var(--r-pill); border: 0; padding: 0; background: var(--c-line-2); cursor: pointer; transition: background-color var(--t-fast) var(--ease); }
.tgl > span { position: absolute; top: 3px; inset-inline-start: 3px; width: 26px; height: 26px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform var(--t-fast) var(--ease); }
.tgl[aria-checked=true] { background: var(--c-brand); }
[data-bs-theme=dark] .tgl[aria-checked=true] { background: #2F8A6E; }
.tgl[aria-checked=true] > span { transform: translateX(20px); }
[dir=rtl] .tgl[aria-checked=true] > span { transform: translateX(-20px); }

/* chips: rounded pills, active = accent */
.chip2 { border-color: var(--c-line-2); }
@media (hover: hover) { .chip2:hover { border-color: var(--c-text); } }
.chip2[aria-pressed=true], .chip2.is-on, .chip2:has(> input:checked),
[data-bs-theme=dark] .chip2.is-on { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-accent-ink) !important; }
.chip2 > input[type=checkbox], .chip2 > input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip2:has(> input:focus-visible) { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.chip2 { position: relative; }

/* cards: rounded, photo on top, soft shadow that lifts on hover */
.person-card { border-radius: var(--r-card) !important; overflow: hidden; background: var(--c-surface) !important; border: 1px solid var(--c-line) !important; box-shadow: var(--shadow-1); }
.pc-photo { background: var(--tim-frame); }
@media (prefers-reduced-motion: no-preference) {
  .person-card, .help-cards a { transition: transform 220ms var(--ease), box-shadow 220ms var(--ease); }
  @media (hover: hover) { .person-card:hover, .help-cards a:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); } }
}
.help-cards a { border-radius: var(--r-card); }

/* search dialog: pill → centred rounded modal, dimmed page behind */
.search-dlg { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 0; border-radius: 24px; background: var(--c-surface); color: var(--c-text); box-shadow: var(--shadow-3); overflow: auto; }
.search-dlg::backdrop { background: rgba(0, 0, 0, .45); }
@media (max-width: 575.98px) { .search-dlg { margin-top: 12px; margin-bottom: auto; } }
.search-dlg-in { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.search-dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sd-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sd-field { display: flex; flex-direction: column; gap: 6px; margin: 0; border: 0; padding: 0; min-width: 0; }
.sd-field > span, .sd-field > legend { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--c-muted); margin: 0; padding: 0; float: none; width: auto; }
.sd-field input[type=search], .sd-field select { width: 100%; min-height: 50px; border: 1px solid var(--c-line-2); border-radius: 14px; background: var(--c-surface-2); color: var(--c-text); padding: 0 14px; font: inherit; font-size: 1rem; }
.sd-field input[type=search]:focus, .sd-field select:focus { outline: 0; border-color: var(--c-text); background: var(--c-surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-text) 12%, transparent); }
.sd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sd-chips .chip2 { min-height: 40px; }
.sd-go { margin-top: 4px; border-radius: 14px !important; }
@media (prefers-reduced-motion: no-preference) {
  .search-dlg[open] { animation: sd-in 220ms var(--ease); }
  .search-dlg[open]::backdrop { animation: sd-fade 220ms ease; }
  .search-dlg.is-closing { animation: sd-out 160ms ease forwards; }
  .search-dlg.is-closing::backdrop { animation: sd-fade 160ms ease reverse forwards; }
  @keyframes sd-in { from { opacity: 0; transform: scale(.94) translateY(-8px); } to { opacity: 1; transform: none; } }
  @keyframes sd-out { to { opacity: 0; transform: scale(.96); } }
  @keyframes sd-fade { from { opacity: 0; } to { opacity: 1; } }
}

/* scroll reveal (JS adds .rv only to things below the fold; never in Low Data or reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(14px); transition: opacity 420ms var(--ease), transform 420ms var(--ease); }
  .rv.rv-in { opacity: 1; transform: none; }
  html.theme-anim body, html.theme-anim body * { transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease, fill 250ms ease !important; }
}
html[data-lowdata="1"] .rv { opacity: 1 !important; transform: none !important; }

/* Low Data: the light version — flat surfaces, no shadows or blur, nothing that costs a cheap phone time */
html[data-lowdata="1"] .app-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--c-surface); }
html[data-lowdata="1"] .person-card, html[data-lowdata="1"] .hdr-search, html[data-lowdata="1"] .search-dlg { box-shadow: none; }
html[data-lowdata="1"] *, html[data-lowdata="1"] *::before, html[data-lowdata="1"] *::after { animation: none !important; transition: none !important; }

/* V5.2.1 header search: a real field in a pill (Airbnb-like) — the whole pill reads as one input, never as a link */
.hdr-search { cursor: text; padding-inline: .35rem; margin-block: 0; }
.hdr-search input { flex: 1 1 auto; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent; color: var(--c-text); font: inherit; font-size: .92rem; font-weight: 500; padding-inline: .8rem .25rem; cursor: text; -webkit-appearance: none; appearance: none; }
.hdr-search input::placeholder { color: var(--c-muted); opacity: 1; font-weight: 500; }
.hdr-search input::-webkit-search-cancel-button { display: none; }
.hdr-search:focus-within { border-color: var(--c-text); box-shadow: var(--shadow-2); }
.hdr-search input:focus-visible { outline: 0; }
button.hdr-search-go { border: 0; padding: 0; flex: 0 0 auto; cursor: pointer; }
@media (min-width: 992px) { .hdr-search { min-width: 280px; } }

/* V5.2.1 map home on phones: the page is exactly the visible screen (iOS toolbars change it), so it can never scroll
   up under the header or leave an empty band above the tab bar */
html:has(body.is-app) { height: 100%; overflow: hidden; }
body.app.is-app { min-height: 0; height: 100vh; height: 100dvh; overflow: hidden; }
body.is-app .app-main { min-height: 0; flex: 1 1 auto; }

/* ---------------------------------------------------------------- V5.2.1 */
/* evidence tiers: one colour each, strongest to weakest — A green · B yellow · C orange · D grey dashed (not yet checked).
   The letter always stays, and D keeps its dashed outline, so colour is never the only signal. */
:root, [data-bs-theme=light] {
  --tier-a: #1E7F4F; --tier-a-ink: #FFFFFF;
  --tier-b: #F2C230; --tier-b-ink: #222222;
  --tier-c: #EE8A2E; --tier-c-ink: #222222;
  --tier-d: #8A8A8A; --tier-d-ink: #555555;
}
[data-bs-theme=dark] {
  --tier-a: #34B27A; --tier-a-ink: #08170F;
  --tier-b: #F5C842; --tier-b-ink: #1A1A1A;
  --tier-c: #F29447; --tier-c-ink: #1A1A1A;
  --tier-d: #8F8F8F; --tier-d-ink: #D0D0D0;
}
.tier-key.tk-a, .tier-badge.tier-A { background: var(--tier-a); color: var(--tier-a-ink); border: 1px solid var(--tier-a); }
.tier-key.tk-b, .tier-badge.tier-B { background: var(--tier-b); color: var(--tier-b-ink); border: 1px solid var(--tier-b); }
.tier-key.tk-c, .tier-badge.tier-C { background: var(--tier-c); color: var(--tier-c-ink); border: 1px solid var(--tier-c); }
.tier-key.tk-d, .tier-badge.tier-D { background: var(--c-surface); color: var(--tier-d-ink); border: 2px dashed var(--tier-d); }
.tier-badge { border-radius: 6px; font-family: inherit; font-weight: 800; }
.tb-a { background: var(--tier-a); } .tb-b { background: var(--tier-b); } .tb-c { background: var(--tier-c); }
.tb-d { background: repeating-linear-gradient(45deg, var(--tier-d) 0 3px, transparent 3px 6px); opacity: .8; }
.prow-ph { position: relative; }
.prow-tk { position: absolute; inset-block-end: 3px; inset-inline-start: 3px; width: 18px; height: 18px; flex-basis: 18px; font-size: .66rem; border-radius: 5px; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.prow-ini .icon { font-size: 1.4rem; color: var(--c-muted); opacity: .6; }
.chip-tier { padding-inline-start: .35rem; }
.chip-tier .tier-key { width: 24px; height: 24px; flex-basis: 24px; }
.chip2.chip-tier:has(> input:checked) { background: var(--c-text); border-color: var(--c-text); color: var(--c-bg) !important; }
.chip2.chip-tier:has(> input:checked) .tier-key { box-shadow: 0 0 0 2px var(--c-bg); }

/* header: low-data tag, chat icon, account menu */
.app-ld-tag { display: none; align-items: center; gap: 4px; min-height: 30px; padding: 0 .6rem; border-radius: var(--r-pill); background: var(--c-surface-2); border: 1px solid var(--c-line-2); color: var(--c-text) !important; font-size: .76rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.app-ld-tag .icon { font-size: .9rem; }
html[data-lowdata="1"] .app-ld-tag { display: inline-flex; }
@media (max-width: 420px) { .app-ld-tag span { display: none; } .app-ld-tag { width: 30px; padding: 0; justify-content: center; } }
.app-chat-ic.is-here { background: var(--c-surface-2); }
.app-acc-dd { position: relative; }
.acc-menu { min-width: 230px; padding: 6px; margin-top: 6px !important; inset-inline-end: 0; inset-inline-start: auto; }
.acc-menu .dropdown-item { display: flex; align-items: center; gap: 10px; min-height: 44px; border-radius: 10px; color: var(--c-text); font-weight: 500; width: 100%; background: none; border: 0; text-align: start; }
.acc-menu .dropdown-item:hover, .acc-menu .dropdown-item:focus { background: var(--c-surface-2); color: var(--c-text); }
.acc-menu .dropdown-item .icon { color: var(--c-muted); }
.acc-menu .dropdown-divider { border-color: var(--c-line); margin: 4px 0; }
.acc-menu-h { padding: 8px 12px 4px; font-weight: 700; font-size: .85rem; color: var(--c-muted); }
.acc-menu form { margin: 0; }
/* tight phones: the header keeps brand + icons on one line */
@media (max-width: 380px) { .app-actions { gap: 0; } .app-iconbtn { width: 40px; } .app-brand-name small { display: none; } }

/* settings: switch state label, iPhone install steps */
.tgl-wrap { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.tgl-state { font-size: .82rem; font-weight: 700; color: var(--c-muted); min-width: 2.2em; text-align: end; }
.tgl-state.is-on { color: var(--c-brand); }
.ios-install { list-style: none; margin: 12px 0 0; padding: 12px; border-radius: var(--r-md); background: var(--c-surface-2); display: grid; gap: 10px; counter-reset: ios; }
.ios-install li { display: flex; align-items: center; gap: 10px; font-size: .92rem; counter-increment: ios; }
.ios-install li::before { content: counter(ios); font-weight: 800; color: var(--c-muted); min-width: 1em; }
.ios-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--c-surface); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: #0A84FF; }

/* menu: items that only make sense on one kind of screen */
@media (max-width: 991.98px) { .more-desk { display: none; } }
@media (min-width: 992px) { .more-mob { display: none; } }

/* anchors land below the sticky header (fallback when the search window is not available) */
[id] { scroll-margin-top: calc(var(--hdr-h) + 16px); }

/* V5.2.1 statistics: chart / table / CSV per block, compare table, citation, print */
.sb-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; }
.sb-head h2 { margin-inline-end: auto !important; }
.sb-tools { display: flex; align-items: center; gap: 8px; }
.sb-tools .seg > button { min-height: 32px; font-size: .8rem; padding-inline: .75rem; }
.seg > button[aria-pressed=true] { background: var(--c-surface); box-shadow: var(--shadow-1); }
.sb-csv { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 .7rem; border-radius: var(--r-pill); border: 1px solid var(--c-line-2); font-size: .8rem; font-weight: 700; color: var(--c-text) !important; text-decoration: none; }
.sb-csv:hover { background: var(--c-surface-2); }
html.js .sb[data-view=chart] .sb-table, html.js .sb[data-view=table] .sb-chart { display: none; }
html:not(.js) .sb-tools .seg { display: none; }
html:not(.js) .sb-table { margin-top: 16px; }
.sb-table .table { --bs-table-bg: transparent; color: var(--c-text); font-size: .9rem; }
.sb-table th, .sb-table td, .cmp-t th, .cmp-t td { border-color: var(--c-line); font-variant-numeric: tabular-nums; }
/* stacked bar */
.stk { display: flex; height: 22px; border-radius: 6px; overflow: hidden; gap: 2px; background: var(--c-surface-2); }
.stk-s { display: block; min-width: 3px; }
.stk-legend { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; }
.stk-l { display: grid; grid-template-columns: 14px 1fr auto 3.2em; align-items: center; gap: 10px; min-height: 36px; padding: 0 6px; border-radius: 8px; color: var(--c-text) !important; text-decoration: none; }
a.stk-l:hover { background: var(--c-surface-2); }
.stk-sw { width: 14px; height: 14px; border-radius: 4px; }
.stk-n { font-weight: 700; font-variant-numeric: tabular-nums; }
.stk-p { color: var(--c-muted); text-align: end; font-variant-numeric: tabular-nums; font-size: .86rem; }
.g-male { background: #4A78B5; } .g-female { background: #C2577E; } .g-unknown { background: repeating-linear-gradient(45deg, var(--tier-d) 0 3px, transparent 3px 6px); }
[data-bs-theme=dark] .g-male { background: #79A6E0; } [data-bs-theme=dark] .g-female { background: #E58AAE; }
/* column chart */
.colc { overflow-x: auto; }
.colc svg { display: block; min-width: var(--colc-min, 100px); max-height: 260px; }
.colc-bar { fill: var(--c-brand); }
.colc a:hover .colc-bar, .colc a:focus .colc-bar { fill: var(--c-accent); }
.colc-axis { stroke: var(--c-line-2); stroke-width: 1; }
.colc-v { font-size: 11px; font-weight: 700; fill: var(--c-text); }
.colc-l { font-size: 10.5px; fill: var(--c-muted); }
/* compare */
.cmp-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; }
.cmp-form > label:not(.cmp-pct) { display: flex; flex-direction: column; gap: 4px; min-width: 160px; flex: 1 1 160px; max-width: 240px; }
.cmp-form > label > span { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--c-muted); }
.cmp-x { font-size: 1.3rem; color: var(--c-muted); padding-bottom: 8px; }
.cmp-pct { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; min-height: 44px; }
.cmp-t { --bs-table-bg: transparent; color: var(--c-text); font-size: .88rem; }
.cmp-t thead th { white-space: nowrap; font-size: .8rem; color: var(--c-muted); }
.cmp-c { background: color-mix(in srgb, var(--c-brand) calc(var(--h, 0) * 38%), transparent) !important; }
.cmp-p { display: none; color: var(--c-muted); font-size: .78rem; margin-inline-start: 4px; }
.cmp-t.show-pct .cmp-p { display: inline; }
/* citation, organisations */
.st-cite { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 14px; border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-surface-2); margin-bottom: 8px; }
.st-cite-ref { color: var(--c-muted); word-break: break-all; }
.st-orgs { border-inline-start: 4px solid var(--c-brand) !important; }
@media print {
  .app-header, .app-tabbar, .app-footer-min, .sb-tools, .cmp-form, .st-cite button, .explore-filters, [data-consent], .tim-toast, .cookie-banner { display: none !important; }
  body.app { background: #fff !important; color: #000 !important; }
  .sb-table { display: block !important; }
  .sb-chart { display: block !important; }
  .panel { box-shadow: none !important; border: 1px solid #ccc !important; break-inside: avoid; }
  .col-lg-6 { width: 100% !important; }
  a { color: #000 !important; text-decoration: none !important; }
}
.set-row > .tgl-wrap { flex: 0 0 auto; }
body.app .acc-menu .dropdown-item { color: var(--c-text) !important; text-decoration: none; }
@media (max-width: 991.98px) { html[data-lowdata="1"] .app-ld-tag { display: none; } }
.app-tabbar .tab-ic { position: relative; }
.tab-ld { display: none; position: absolute; top: -4px; inset-inline-end: -8px; width: 18px; height: 18px; border-radius: 50%; background: var(--c-text); color: var(--c-bg); align-items: center; justify-content: center; border: 2px solid var(--c-surface); }
.tab-ld .icon { font-size: .62rem !important; }
html[data-lowdata="1"] .tab-ld { display: inline-flex; }

/* ---------------------------------------------------------------- V5.2.2 header: fits any width and language */
.app-header-in { min-width: 0; }
.app-brand { flex: 0 0 auto; }
.app-actions { flex: 0 0 auto; margin-inline-start: auto; }
.app-search-ic { display: inline-flex !important; }
@media (min-width: 992px) {
  .app-header-in { gap: 16px; }
  .app-nav { flex: 1 1 auto; min-width: 0; overflow: hidden; align-items: center; gap: 2px; }
  .app-nav a { flex: 0 0 auto; white-space: nowrap; line-height: 1.2; display: inline-flex; align-items: center; min-height: 40px; }
  .app-nav a.is-over { display: none; }
  html:not(.js) .app-nav a[data-prio="2"], html:not(.js) .app-nav a[data-prio="3"] { display: none; }
  .app-actions { gap: 2px; }
}
@media (min-width: 992px) and (max-width: 1199.98px) { .app-brand-name small { display: none; } }
.more-over { margin-top: .4rem; }
@media (max-width: 991.98px) { .more-over { display: none !important; } }
/* Low data: icon only, same as the other header icons */
.app-ld-tag { width: 44px; height: 44px; min-height: 0; padding: 0; border: 0; background: transparent; justify-content: center; border-radius: var(--r-pill); }
.app-ld-tag .icon { font-size: 1.2rem; color: var(--c-brand); }
.app-ld-tag:hover { background: var(--c-surface-2); }

/* ---------------------------------------------------------------- V5.2.2 live chat (window + page) */
.chat-badge { position: absolute; top: 4px; inset-inline-end: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--c-accent); color: #fff; font-size: .68rem; font-weight: 800; line-height: 18px; text-align: center; border: 2px solid var(--c-surface); }
.app-chat-ic { position: relative; }
.chat-dlg { width: min(760px, calc(100vw - 32px)); height: min(820px, calc(100dvh - 48px)); max-height: none; margin: auto; padding: 0; border: 1px solid var(--c-line); border-radius: 22px; background: var(--c-surface); color: var(--c-text); box-shadow: var(--shadow-3); overflow: hidden; }
.chat-dlg[open] { display: flex; flex-direction: column; }
.chat-dlg::backdrop { background: rgba(0, 0, 0, .5); }
.chat-dlg-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 12px 20px; border-bottom: 1px solid var(--c-line); flex: 0 0 auto; }
.chat-dlg-head > .icon { font-size: 1.4rem; }
.chat-dlg-head h2 { margin-inline-end: auto !important; }
.chat-dlg-full { font-size: .82rem; font-weight: 600; }
@media (max-width: 575.98px) { .chat-dlg { width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; border-radius: 0; border: 0; } .chat-dlg-full { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .chat-dlg[open] { animation: sd-in 220ms var(--ease); } .chat-dlg[open]::backdrop { animation: sd-fade 220ms ease; }
  .chat-dlg.is-closing { animation: sd-out 160ms ease forwards; }
}
.chat { display: flex; flex-direction: column; min-height: 0; position: relative; }
.chat-win { flex: 1 1 auto; }
.chat-page { height: min(72vh, 760px); min-height: 420px; border: 1px solid var(--c-line); border-radius: 22px; background: var(--c-surface); overflow: hidden; }
.chat-list { flex: 1 1 auto; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; background: var(--c-bg); }
.chat-empty, .chat-note { color: var(--c-muted); text-align: center; margin: auto 0; padding: 20px; }
.chat-note { margin: 0; padding: 12px; border-top: 1px solid var(--c-line); }
.cm { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 16px; padding: 10px 14px 6px; transition: box-shadow .3s; }
.cm.is-official { border: 1.5px solid #D9932B; background: color-mix(in srgb, #D9932B 9%, var(--c-surface)); }
.cm.is-flash { box-shadow: 0 0 0 3px var(--c-focus); }
.cm-h { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--c-muted); }
.cm-who { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--c-text); }
.cm-who .icon { font-size: .95rem; color: var(--c-muted); }
.cm-badge { padding: 1px 8px; border-radius: 999px; background: #D9932B; color: #1A1206; font-size: .7rem; font-weight: 800; }
.cm-t { margin-inline-start: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cm-q { display: block; margin: 8px 0 2px; padding: 6px 10px; border-inline-start: 3px solid var(--c-accent); border-radius: 8px; background: var(--c-surface-2); color: var(--c-text) !important; text-decoration: none; font-size: .84rem; }
.cm-q-w { display: block; font-weight: 700; }
.cm-q-b { display: block; color: var(--c-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-b { margin: 6px 0 2px; font-size: 1rem; line-height: 1.6; overflow-wrap: anywhere; }
.cm-f { display: flex; align-items: center; gap: 8px; min-height: 34px; }
.cm-info { font-size: .8rem; }
.cm-acts { margin-inline-start: auto; display: inline-flex; gap: 2px; }
.cm-a { display: inline-flex; align-items: center; gap: 4px; min-width: 34px; height: 34px; padding: 0 8px; border: 0; border-radius: 999px; background: transparent; color: var(--c-muted); cursor: pointer; font-size: .8rem; font-weight: 700; }
.cm-a:hover { background: var(--c-surface-2); color: var(--c-text); }
.cm-a .icon { font-size: 1rem; }
[dir=rtl] .cm-a[data-act=reply] .icon { transform: scaleX(-1); }
.cm-a[aria-pressed=true] { color: var(--c-accent-text); }
.cm-a[aria-pressed=true] .icon { fill: currentColor; }
.cm-a.is-done { color: var(--c-accent-text); }
.chat-newpill { position: absolute; inset-inline: 0; margin: 0 auto; width: max-content; bottom: 92px; z-index: 2; border: 0; border-radius: 999px; padding: 6px 14px; background: var(--c-text); color: var(--c-bg); font-weight: 700; font-size: .82rem; box-shadow: var(--shadow-2); }
.chat-form { flex: 0 0 auto; padding: 10px 12px 6px; border-top: 1px solid var(--c-line); background: var(--c-surface); }
.chat-replybar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding: 6px 10px; border-inline-start: 3px solid var(--c-accent); border-radius: 8px; background: var(--c-surface-2); font-size: .84rem; }
.chat-replybar > div { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-compose { display: flex; align-items: flex-end; gap: 8px; }
.chat-compose textarea { flex: 1; min-height: 46px; max-height: 140px; resize: none; padding: 11px 14px; border: 1px solid var(--c-line-2); border-radius: 14px; background: var(--c-surface-2); color: var(--c-text); font: inherit; line-height: 1.45; }
.chat-compose textarea:focus { outline: 0; border-color: var(--c-text); background: var(--c-surface); }
.chat-send { flex: 0 0 46px; height: 46px; border: 0; border-radius: 14px; background: var(--c-accent); color: var(--c-accent-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.chat-send:disabled { opacity: .55; }
.chat-send .icon { font-size: 1.2rem; }
[dir=rtl] .chat-send .icon { transform: scaleX(-1); }
.chat-status { min-height: 1.2em; margin: 4px 2px 0; font-size: .8rem; color: var(--c-muted); }
.chat-status.is-bad { color: var(--c-accent-text); }
.chat-rules { flex: 0 0 auto; margin: 0; padding: 0 14px 10px; font-size: .74rem; color: var(--c-muted); background: var(--c-surface); }
.hp { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; opacity: 0; }   /* V5.6.7: no -9999px offset (in Persian it made pages 10,000px wide and blank on phones) */

/* V5.3 case cards: no empty grey box, source inside the card, height follows the content on phones */
.case-card { height: auto; }
@media (min-width: 768px) { .case-card { height: 100%; } }
.case-ph { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; background: var(--c-surface-2); color: var(--c-muted); }
.case-ph .icon { font-size: 1.8rem; opacity: .55; }
.case-ph-lg { aspect-ratio: 4 / 5; border-radius: var(--r-md); }
.case-ph-lg .icon { font-size: 4rem; }
.case-src { color: var(--c-muted); margin-top: 2px; }
.case-src bdi { font-weight: 600; color: var(--c-text); }
a.case-card:hover .fw-bold { text-decoration: underline; }
.app-submit-btn { margin-inline-end: 6px; }
@media (max-width: 767.98px) { .case-ph-lg { max-width: 132px; } .person-photo:has(.case-ph-lg) { max-width: 132px; aspect-ratio: auto; } }

/* ===== V6 (P0-6): phones — no iOS auto-zoom on inputs, nothing wider than the screen ===== */
form:has(> .hp), #memorial { position: relative; }
.hp { inset-inline-start: 0; top: 0; pointer-events: none; }
@media (max-width: 767.98px) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]), select, textarea,
  .form-control, .form-control-sm, .form-select, .form-select-sm, .hdr-search input { font-size: 16px !important; }
}
.prose, .card-body, td, figcaption, .tlx-body, .tlx-foot { overflow-wrap: anywhere; }
.person-head, .person-head > *, .ew-card .card-body { min-width: 0; }
.badge { white-space: normal; }
img, video, canvas { max-width: 100%; }
iframe { max-width: 100%; }

/* ===== V6 shared components: urgency badge, pulse, Take action box, hashtag chips ===== */
.urg-badge { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .8rem; padding: .2rem .6rem; border-radius: 999px; background: #8C1015; color: #fff; }
.urg-badge.urg-urgent { background: #b45309; }
.pulse-dot { width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: tim-pulse 1.8s ease-out infinite; flex: none; }
@keyframes tim-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); } 70% { box-shadow: 0 0 0 .5rem rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
@media (prefers-reduced-motion: reduce) { .pulse-dot, .pulse-ring { animation: none !important; } }
.ta-box { border-inline-start: 4px solid #b45309; }
.ta-box.ta-critical { border-inline-start-color: #8C1015; }
.tag-chip { display: inline-block; padding: .15rem .55rem; border-radius: 999px; background: var(--bs-tertiary-bg); border: 1px solid var(--bs-border-color); font-size: .85rem; overflow-wrap: anywhere; }
.ta-card { display: flex; gap: .75rem; align-items: flex-start; }
.ta-card img, .ta-card .case-ph { width: 64px; height: 80px; object-fit: cover; border-radius: .4rem; flex: none; }
.hub-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.hub-card { display: block; padding: 1.1rem; border-radius: .8rem; border: 1px solid var(--bs-border-color); background: var(--bs-body-bg); color: inherit; text-decoration: none; height: 100%; }
.hub-card:hover, .hub-card:focus-visible { border-color: var(--bs-primary); }
.hub-card .n { font-size: 1.6rem; font-weight: 800; display: block; line-height: 1.1; }
.hub-tabs { display: flex; flex-wrap: wrap; gap: .5rem; border-bottom: 1px solid var(--bs-border-color); margin-bottom: 1.5rem; }
.hub-tabs a { padding: .55rem .9rem; text-decoration: none; color: inherit; border-bottom: 3px solid transparent; font-weight: 600; }
.hub-tabs a[aria-selected=true] { border-bottom-color: #8C1015; }
.safety-box { border-inline-start: 4px solid #145A45; }
.faq-list details { border-bottom: 1px solid var(--bs-border-color); padding: .75rem 0; }
.faq-list summary { font-weight: 700; cursor: pointer; }
.faq-list details > div { padding-top: .5rem; }
.prose a, .faq-list a, .hub p a:not(.btn), .hub li a:not(.btn) { text-decoration: underline; text-underline-offset: .15em; }
.gov-badge { display: inline-block; padding: .15rem .6rem; border-radius: .4rem; background: var(--bs-tertiary-bg); border: 1px solid var(--bs-border-color); font-weight: 600; }
.src-ico { text-decoration: none; font-size: .85em; opacity: .75; }
/* V6 (P1-5): device-only display settings */
html.ts-s { font-size: 93.75%; } html.ts-l { font-size: 112.5%; } html.ts-xl { font-size: 125%; }
html.ts-devfont body, html.ts-devfont .btn, html.ts-devfont input, html.ts-devfont select, html.ts-devfont textarea { font-family: system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif !important; }
html.ts-contrast { --bs-secondary-color: var(--bs-body-color); --bs-border-color: currentColor; }
html.ts-contrast .text-body-secondary { color: var(--bs-body-color) !important; }
html.ts-contrast a { text-decoration: underline; }
html.ts-reduce *, html.ts-reduce *::before, html.ts-reduce *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.ts-nopulse .pulse-dot, html.ts-nopulse .pulse-ring { animation: none !important; }
html.ts-nophotos .case-photo img, html.ts-nophotos .plist img, html.ts-nophotos .pr-photo img { visibility: hidden; }
.v6-toast { position: fixed; inset-inline: 0; bottom: 5.5rem; margin-inline: auto; width: max-content; max-width: calc(100% - 2rem); background: #072A20; color: #fff; padding: .5rem 1rem; border-radius: 999px; font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 2000; }
.v6-toast.on { opacity: 1; }
.set-wrap { max-width: 40rem; margin-inline: auto; }
.set-card { border: 1px solid var(--bs-border-color); border-radius: .9rem; padding: 1rem; margin-bottom: 1rem; background: var(--bs-body-bg); }
.set-card-h { display: flex; align-items: center; gap: .6rem; }
.set-card-h h2 { font-size: 1rem; font-weight: 700; margin: 0; flex: 1; }
.set-pill { font-size: .75rem; padding: .1rem .55rem; border-radius: 999px; background: var(--bs-tertiary-bg); }
.set-pill.on { background: #145A45; color: #fff; }
.set-opt { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--bs-border-color-translucent); }
.set-opt:first-of-type { border-top: 0; }
.set-opt small { display: block; color: var(--bs-secondary-color); }
.set-card .segx { display: flex; flex-wrap: wrap; gap: .25rem; }
.set-card .segx button { min-height: 44px; min-width: 44px; padding: .35rem .7rem; border: 1px solid var(--bs-border-color); background: transparent; border-radius: .5rem; color: inherit; }
.set-card .segx button[aria-checked=true] { background: #0B3B2E !important; color: #fff !important; border-color: #0B3B2E !important; }
.set-danger { border-color: #8C1015; background: rgba(140,16,21,.05); }
/* send chooser */
.send-sheet { border: 0; padding: 0; border-radius: 1rem 1rem 0 0; width: 100%; max-width: 30rem; margin: auto auto 0; background: var(--bs-body-bg); color: var(--bs-body-color); }
@media (min-width: 768px) { .send-sheet { border-radius: 1rem; margin: auto; } }
.send-sheet::backdrop { background: rgba(0,0,0,.5); }
.send-sheet-in { padding: 1.25rem; }
.send-grip { display: block; width: 3rem; height: .3rem; border-radius: 1rem; background: var(--bs-border-color); margin: 0 auto 1rem; }
.send-card { display: flex; gap: .9rem; align-items: center; padding: 1rem; border-radius: .9rem; border: 2px solid var(--bs-border-color); text-decoration: none; color: inherit; min-height: 64px; }
.send-card:hover, .send-card:focus-visible, .send-card.is-last { border-color: var(--bs-primary); }
.send-ico { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; color: #fff; background: #0B3B2E; flex: none; }
.send-tg .send-ico { background: #2481cc; }
/* More sheet hub rows + footer columns */
.hub-rows { list-style: none; padding: 0; margin: 0 0 .5rem; display: grid; gap: .5rem; }
.hub-rows a { display: flex; align-items: center; gap: .8rem; padding: .8rem; border: 1px solid var(--bs-border-color); border-radius: .8rem; text-decoration: none; color: inherit; }
.hub-rows .hub-ic { width: 2.4rem; height: 2.4rem; border-radius: .6rem; display: grid; place-items: center; background: var(--bs-tertiary-bg); flex: none; }
.hub-rows .hub-t { flex: 1; min-width: 0; }
.hub-rows small { display: block; color: var(--bs-secondary-color); }
.foot-cols { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
.foot-h { font-size: .95rem; font-weight: 700; margin-bottom: .4rem; }
.foot-h a { color: inherit; text-decoration: none; }
.foot-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; font-size: .9rem; }
.foot-cols a { min-height: 24px; display: inline-block; }
.foot-sub { max-width: 28rem; }
/* posts */
.post-body { max-width: 680px; margin-inline: auto; font-size: 1.08rem; line-height: 1.75; }
.post-body h2 { margin-top: 2rem; } .post-body h3 { margin-top: 1.5rem; }
.post-body blockquote { border-inline-start: 4px solid var(--bs-border-color); padding-inline-start: 1rem; color: var(--bs-secondary-color); }
.post-body blockquote.pull { border: 0; font-size: 1.35rem; font-weight: 600; color: var(--bs-body-color); text-align: center; margin: 2rem 0; }
.post-fig img { width: 100%; height: auto; border-radius: .6rem; }
.post-fig figcaption { font-size: .85rem; color: var(--bs-secondary-color); margin-top: .35rem; }
.post-embed { margin: 1.5rem 0; }
.post-toc { font-size: .9rem; }
.post-card { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--bs-border-color); border-radius: .8rem; overflow: hidden; text-decoration: none; color: inherit; background: var(--bs-body-bg); }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card .pc-b { padding: 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.feed-chips { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .25rem; margin-bottom: 1rem; }
.feed-chips a { white-space: nowrap; padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--bs-border-color); text-decoration: none; color: inherit; min-height: 36px; display: inline-flex; align-items: center; }
.feed-chips a[aria-current=page] { background: #0B3B2E; color: #fff; border-color: #0B3B2E; }
.feed-badge { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--bs-secondary-color); }
html[lang=fa] .feed-badge { text-transform: none; letter-spacing: 0; }
.quick-exit { position: fixed; inset-inline-end: .75rem; bottom: 5.25rem; z-index: 1030; }
@media (min-width: 992px) { .quick-exit { bottom: 1rem; } }
.pill-nav a { text-decoration: none; }
.pill-nav button { border: 1px solid var(--bs-border-color); border-radius: 999px; padding: .35rem .9rem; font-size: .875rem; color: inherit; background: var(--tim-surface, transparent); min-height: 36px; }
.pill-nav button.active { background: #0b3b2e; border-color: #0b3b2e; color: #fff; }
/* V6 (P2-11): a compact cookie bar on phones — one short line and the buttons, details behind "Settings" */
@media (max-width: 767.98px) {
  .tim-consent .app-wrap { padding-top: .6rem !important; padding-bottom: .6rem !important; }
  .tim-consent h2 { display: none; }
  .tim-consent p.small { font-size: .78rem; line-height: 1.35; margin-bottom: .4rem !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .tim-consent .btn-sm { padding: .3rem .7rem; }
}
/* V6 (P1-7): soft pulse on the home map's red clusters; the A→D bar grows once when the sheet opens */
.tm-cluster, .tm-prov-mk { overflow: visible; }   /* Leaflet keeps them position:absolute */
.tm-cluster::after, .tm-prov-mk::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--c-accent, #8C1015); opacity: 0; animation: tim-ring 3.2s cubic-bezier(.22,.61,.36,1) infinite; animation-delay: var(--d, 0s); pointer-events: none; }
@keyframes tim-ring { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(1.55); opacity: 0; } }
.tier-sum.tier-grow .tier-bar > span { transform-origin: inline-start; animation: tim-grow .9s cubic-bezier(.2,.7,.2,1) both; }
.tier-sum.tier-grow .tier-bar > span:nth-child(2) { animation-delay: .15s; } .tier-sum.tier-grow .tier-bar > span:nth-child(3) { animation-delay: .3s; } .tier-sum.tier-grow .tier-bar > span:nth-child(4) { animation-delay: .45s; }
@keyframes tim-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
[dir=rtl] .tier-sum.tier-grow .tier-bar > span { transform-origin: right; } [dir=ltr] .tier-sum.tier-grow .tier-bar > span { transform-origin: left; }
@media (prefers-reduced-motion: reduce) { .tm-cluster::after, .tm-prov-mk::after, .tier-sum.tier-grow .tier-bar > span { animation: none !important; } }
html.ts-reduce .tm-cluster::after, html.ts-reduce .tm-prov-mk::after, html.ts-nopulse .tm-cluster::after, html.ts-nopulse .tm-prov-mk::after, html[data-lowdata="1"] .tm-cluster::after, html[data-lowdata="1"] .tm-prov-mk::after, html[data-lowdata="1"] .tier-sum.tier-grow .tier-bar > span { animation: none !important; }
/* V6 (QA-1): links inside text are underlined; (QA-2) darker timeline badges; (QA-9) "last verified" not link-like */
.prose a, p a:not(.btn):not(.tier-chip):not(.feed-badge), li a.small, td a, .small a:not(.btn) { text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }
.ev-badge.ev-k-arrest { background-color: #a85d00 !important; } .ev-badge.ev-k-strike { background-color: #0b6e55 !important; }
[data-bs-theme=dark] .ew-fresh-fresh { color: #9fd8a8; } .ew-fresh::before { content: "◷ "; }
.feed-chips a[aria-current=page], .feed-chips a[aria-current=page]:visited { background: #0B3B2E !important; color: #fff !important; border-color: #0B3B2E !important; }
.chip-n { margin-inline-start: .4rem; font-size: .8em; opacity: .75; }
/* V6 (P1-10) lightbox */
.lb { border: 0; padding: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%; background: rgba(0,0,0,.94); color: #fff; margin: 0; inset: 0; }
.lb::backdrop { background: rgba(0,0,0,.9); }
.lb-fig { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem .5rem 1rem; }
.lb-fig img { max-width: 100%; max-height: calc(100% - 4rem); object-fit: contain; touch-action: pinch-zoom; }
.lb-fig figcaption { font-size: .9rem; text-align: center; padding: .6rem 1rem 0; opacity: .9; }
.lb-n { opacity: .7; margin-inline-start: .5rem; }
.lb-x, .lb-prev, .lb-next { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; font-size: 1.8rem; line-height: 1; }
.lb-x { top: .75rem; inset-inline-end: .75rem; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: .5rem; } .lb-next { right: .5rem; }
/* ===== V6 (P1-6) Timeline: one toolbar line, a Filters sheet, the map always shown, pulsing dots, Play ===== */
.tlx-top { display: flex; gap: .5rem; align-items: center; }
.tlx-top .tlx-q { flex: 1 1 auto !important; min-width: 0 !important; width: auto; }
.tlx-fbtn, .tlx-play { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; min-height: 44px; }
.tlx-badge { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .3rem; border-radius: 999px; background: #8C1015; color: #fff; font-size: .75rem; font-weight: 700; }
.tlx-fhead, .tlx-fshow { display: none; }
html.tlx-js .tlx-filters { display: none; }
html.tlx-js .tlx-filters.is-open { display: block; }
.tlx-bar { position: sticky; }
.tlx-filters { padding-top: .5rem; }
@media (min-width: 992px) {
  html.tlx-js .tlx-filters.is-open { position: absolute; inset-inline: 0; top: 100%; background: var(--bs-body-bg); border-bottom: 1px solid var(--bs-border-color); box-shadow: 0 10px 24px rgba(0,0,0,.12); padding: .75rem max(1rem, calc((100% - 1296px) / 2)) 1rem; z-index: 25; }
}
@media (max-width: 991.98px) {
  .tlx .tlx-switch { display: none !important; }
  .tlx[data-view] .tlx-mapcol, .tlx[data-view] .tlx-feed { display: block !important; }
  .tlx-bar { position: sticky; top: var(--hdr-h, 56px); }
  .tlx-mapcol { position: static; margin-bottom: 1rem; }
  .tlx-map, .tlx[data-view] .tlx-map { height: 42vh !important; min-height: 260px; max-height: 420px; }
  html.tlx-js .tlx-filters.is-open { position: fixed; inset-inline: 0; bottom: 0; top: auto; max-height: 82vh; max-height: 82dvh; overflow: auto; background: var(--bs-body-bg); border-radius: 1rem 1rem 0 0; box-shadow: 0 -10px 30px rgba(0,0,0,.25); padding: .75rem 1rem calc(1rem + env(safe-area-inset-bottom)); z-index: 1060; }
  html.tlx-js .tlx-filters.is-open .tlx-kinds, html.tlx-js .tlx-filters.is-open .tlx-row { flex-wrap: wrap; overflow: visible; }
  html.tlx-js .tlx-filters.is-open .tlx-row .form-select, html.tlx-js .tlx-filters.is-open .tlx-row .form-control { flex: 1 1 45%; }
  html.tlx-js .tlx-filters.is-open .tlx-fhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
  html.tlx-js .tlx-filters.is-open .tlx-fshow { display: inline-block; }
  body.tlx-fopen::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1055; }
  .tlx-play span[data-tlx-play-t], .tlx-fbtn > span:not(.tlx-badge) { display: inline; }
}
@media (max-width: 400px) { .tlx-fbtn > span:not(.tlx-badge) { display: none; } }
/* pulsing dots in the event's colour */
.tlx-mk .tlx-ring { fill: var(--ev, #3b4450); fill-opacity: .35; stroke: none; transform-box: fill-box; transform-origin: center; animation: tlx-pulse 2.6s cubic-bezier(.22,.61,.36,1) infinite; animation-delay: var(--d, 0s); pointer-events: none; }
.tlx-mk.is-approx .tlx-ring { display: none; }
@keyframes tlx-pulse { 0% { transform: scale(1); opacity: .7; } 75%, 100% { transform: scale(2.3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tlx-mk .tlx-ring { animation: none; display: none; } }
html.ts-reduce .tlx-mk .tlx-ring, html.ts-nopulse .tlx-mk .tlx-ring, html[data-lowdata="1"] .tlx-mk .tlx-ring { animation: none; display: none; }
.tlx-mk .tlx-dot { fill: var(--ev, #3b4450); }
/* Play */
.tlx-playbar { display: flex; flex-direction: column; gap: .3rem; padding: .5rem .75rem; font-weight: 600; font-size: .9rem; border-top: 1px solid var(--bs-border-color); }
.tlx-prog { display: block; height: 4px; background: var(--bs-tertiary-bg); border-radius: 4px; overflow: hidden; }
.tlx-prog i { display: block; height: 100%; width: 0; background: #8C1015; transition: width .4s; }
.tlx.is-playing .tlx-card { animation: tlx-in .35s ease-out; }
@keyframes tlx-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tlx.is-playing .tlx-card { animation: none; } }
/* more cards */
.tlx-more { text-align: center; padding: 1rem 0; }
.tlx-more.is-loading .btn { opacity: .6; pointer-events: none; }
@media (max-width: 991.98px) { body.tlx-fopen .tlx-bar { z-index: 1061; } }
.tlx-play[aria-pressed=true] { background: #111 !important; border-color: #111 !important; color: #fff !important; }
/* ===== V6.0.3 Timeline: guided playback and a map that follows the reading ===== */
.tlx-ctrls { display: inline-flex; gap: .35rem; }
.tlx-ctrls[hidden] { display: none; }
.tlx-ctrls .btn { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; white-space: nowrap; }
[dir=rtl] .tlx-chev { display: inline-block; transform: scaleX(-1); }
.tlx-playind { font-size: .82rem; font-weight: 700; letter-spacing: .01em; color: #fff; background: #8C1015; display: inline-block; padding: .3rem .75rem; border-radius: 999px; margin: 0 0 .5rem; }
.tlx.is-playing .tlx-card { opacity: .45; transition: opacity .3s; }
.tlx.is-playing .tlx-card.is-selected { opacity: 1; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ev, #888) 60%, transparent), 0 10px 30px rgba(0,0,0,.18); }
.tlx.is-playing .tlx-card.is-selected .tlx-body { -webkit-line-clamp: unset; display: block; }
.tlx-mk.is-active .tlx-dot { stroke: #fff; stroke-width: 3px !important; fill-opacity: 1; filter: drop-shadow(0 0 6px rgba(0,0,0,.5)); }
.tlx.is-playing .tlx-mk:not(.is-active), .tlx-mk.is-dim { opacity: .35; }
.tlx-mk.is-active { opacity: 1; }
.tlx-mk { transition: opacity .25s; }
@media (min-width: 992px) {
  .tlx.is-playing .tlx-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 575.98px) {
  .tlx-ctrls .btn span:not([aria-hidden]) { display: none; }
  .tlx-ctrls .btn { padding-inline: .7rem; }
}
.tlx-play[hidden] { display: none !important; }
.tlx.is-playing .tlx-card { animation: none; }
.tlx-playind { align-self: flex-start; }
.tlx-ctrls [data-tlx-stop] { background: #8C1015; border-color: #8C1015; color: #fff; }
/* phones: while playing, a small map stays under the toolbar so the place is always in view */
@media (max-width: 991.98px) {
  .tlx.is-playing .tlx-mapcol { position: sticky !important; top: calc(var(--hdr-h, 56px) + 62px); z-index: 18; margin-bottom: .75rem; }
  .tlx.is-playing .tlx-map { height: 26vh !important; min-height: 170px; }
  .tlx.is-playing .tlx-mapbox figcaption, .tlx.is-playing .tlx-sheet { display: none !important; }
}
.fam-card { min-height: 100%; }
.fam-ic { width: 2.6rem; height: 2.6rem; border-radius: .7rem; display: grid; place-items: center; background: var(--bs-tertiary-bg); }
.fam-steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: .5rem; }
.fam-steps li { counter-increment: s; display: flex; gap: .7rem; align-items: baseline; }
.fam-steps li::before { content: counter(s); flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; background: #0B3B2E; color: #fff; font-weight: 700; font-size: .85rem; }
html[lang=fa] .fam-steps li::before { content: counter(s, persian); }
/* V6.1 hub hero photos: dark-tinted so the title and text stay readable in both themes */
section.page-head.page-head-hero { position: relative; color: #fff; background: linear-gradient(rgba(5,15,12,.72), rgba(5,15,12,.82)), var(--hero) center / cover no-repeat !important; }
.page-head-hero .breadcrumb a, .page-head-hero .breadcrumb-item.active, .page-head-hero .breadcrumb-item + .breadcrumb-item::before, .page-head-hero .lead-text, .page-head-hero h1 { color: #fff !important; }
.page-head-hero .hero-credit { color: rgba(255,255,255,.75); }
html[data-lowdata="1"] .page-head-hero { background: #0B3B2E; }
.st-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.st-steps li { position: relative; padding-inline-start: 2.2rem; }
.st-steps li::before { content: ""; position: absolute; inset-inline-start: 0; top: .15rem; width: 1.4rem; height: 1.4rem; border-radius: 50%; border: 2px solid var(--bs-border-color); background: var(--bs-body-bg); }
.st-steps li.is-done::before { background: #145A45; border-color: #145A45; }
.st-steps li.is-now::before { border-color: #8C1015; box-shadow: inset 0 0 0 4px var(--bs-body-bg); background: #8C1015; }
.st-steps li:not(.is-done):not(.is-now) b { color: var(--bs-secondary-color); font-weight: 600; }

/* ---- V6.2 (P1-11) Our story ---- */
.st-progress { position: fixed; inset-inline: 0; top: 0; height: 3px; z-index: 1035; pointer-events: none; }
.st-progress span { display: block; height: 100%; background: var(--c-accent); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .st-progress span { transform-origin: right; }
@media (min-width: 992px) { .st-progress { display: none; } }
.st-hero { background: var(--c-surface); border-bottom: 1px solid var(--c-line); }
.st-lead { max-width: 46rem; }
.st-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; max-width: 46rem; }
@media (min-width: 768px) { .st-figs { grid-template-columns: repeat(4, minmax(0, 1fr)); } .st-figs-end { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.st-fig { display: flex; flex-direction: column; gap: .15rem; padding: .85rem 1rem; border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-bg); color: inherit; text-decoration: none; }
.st-fig .n { font-size: 1.6rem; font-weight: 800; color: var(--c-brand); font-variant-numeric: tabular-nums; line-height: 1.1; }
.st-fig:hover { border-color: var(--c-brand); }
.st-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-block: 2rem 4rem; }
@media (min-width: 992px) { .st-wrap { grid-template-columns: 15rem minmax(0, 1fr); } }
.st-index { display: none; }
@media (min-width: 992px) {
  .st-index { display: block; position: sticky; top: calc(var(--hdr-h) + 1rem); align-self: start; max-height: calc(100vh - var(--hdr-h) - 2rem); overflow: auto; }
  .st-index a { display: flex; gap: .5rem; padding: .35rem .5rem; border-radius: var(--r-sm); color: var(--c-muted); text-decoration: none; font-size: .875rem; line-height: 1.3; border-inline-start: 2px solid transparent; }
  .st-index a.is-on { color: var(--c-text); border-inline-start-color: var(--c-accent); background: var(--c-surface); font-weight: 600; }
  .st-ix-n { min-width: 1.4rem; font-variant-numeric: tabular-nums; }
}
.st-chapters { min-width: 0; max-width: 48rem; }
.st-ch { padding-block: 1.5rem 2.5rem; border-bottom: 1px solid var(--c-line); scroll-margin-top: calc(var(--hdr-h) + 1rem); }
.st-photo { margin: 0 0 1.25rem; position: relative; }
.st-photo img { width: 100%; max-height: 26rem; object-fit: cover; border-radius: var(--r-md); background: var(--c-map-land); display: block; }
.st-photo figcaption { margin-top: .4rem; }
.st-reveal { display: block; width: 100%; padding: 3rem 1rem; border: 1px dashed var(--c-line); border-radius: var(--r-md); background: var(--c-surface); color: var(--c-text); }
html[data-lowdata="1"] .st-photo img, html.ts-nophotos .st-photo img { max-height: 8rem; }
.st-date { color: var(--c-muted); font-size: .9rem; margin-bottom: .35rem; }
.st-num { color: var(--c-accent); font-weight: 700; }
.st-title { font-size: clamp(1.5rem, 3.6vw, 2.1rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.st-text p { font-size: 1.075rem; line-height: 1.75; }
.st-quote { margin: 1.5rem 0; padding: .25rem 1.25rem; border-inline-start: 4px solid var(--c-accent); }
.st-quote p { font-size: 1.2rem; font-weight: 600; line-height: 1.55; margin-bottom: .4rem; }
.st-quote footer { color: var(--c-muted); }
.st-strip { display: flex; gap: .5rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; margin: 1rem 0; }
.st-strip a { flex: 0 0 auto; scroll-snap-align: start; }
.st-strip img { height: 7.5rem; width: auto; border-radius: var(--r-sm); display: block; }
.st-aside { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: center; margin: 1.25rem 0; }
@media (min-width: 576px) { .st-aside { grid-template-columns: 11rem minmax(0, 1fr); } }
.st-map { width: 100%; max-width: 11rem; height: auto; }
.st-map-land { fill: var(--c-map-land); stroke: var(--c-map-line); stroke-width: 1; }
.st-dot { fill: var(--c-accent); }
.st-ring { fill: var(--c-accent); opacity: 0; transform-box: fill-box; transform-origin: center; }
.st-map.is-live .st-ring { animation: tim-ring 2.6s cubic-bezier(.22,.61,.36,1) infinite; }
html.ts-reduce .st-ring, html[data-lowdata="1"] .st-ring, html.ts-nopulse .st-ring { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .st-ring { animation: none !important; } }
.st-band { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; padding: 1rem 1.25rem; border-radius: var(--r-md); background: var(--c-brand); color: var(--c-brand-ink); text-decoration: none; }
.st-band .n { font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.st-band:hover { color: var(--c-brand-ink); filter: brightness(1.08); }
.st-links { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 .5rem; }
.st-sources ul { padding-inline-start: 1.1rem; margin: .5rem 0 0; }
.st-sources li { margin-bottom: .25rem; overflow-wrap: anywhere; }
.st-closing { border-bottom: 0; }
.tlx-star { color: #B8860B; text-decoration: none; font-size: 1rem; line-height: 1; }
.tlx-chip.tlx-key { text-decoration: none; }
.tlx-chip.tlx-key.is-on { background: var(--c-brand); color: var(--c-brand-ink); border-color: var(--c-brand); }

/* ---- V6.2 (P1-14) Press, Method, Sources ---- */
.pr-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 768px) { .pr-figs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pr-fig { display: flex; flex-direction: column; align-items: flex-start; padding: 1rem; border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-surface); }
.pr-fig .n { font-size: 1.8rem; font-weight: 800; color: var(--c-brand); line-height: 1.1; font-variant-numeric: tabular-nums; }
.pr-lead { display: flex; flex-direction: column; gap: .1rem; padding: .75rem 1rem; border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-surface); color: inherit; text-decoration: none; }
.pr-lead:hover { border-color: var(--c-brand); }
.pr-lead b { color: var(--c-brand); }
.pr-kit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.pr-kit-item { margin: 0; }
.pr-kit-img { display: flex; align-items: center; justify-content: center; height: 90px; border: 1px solid var(--c-line); border-radius: var(--r-sm); background: #fff; padding: .5rem; }
.pr-kit-img.is-dark { background: #0B3B2E; }
.pr-kit-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pr-embed-demo iframe { border-radius: var(--r-md); }
.fs-head { display: flex; gap: .75rem; align-items: center; border-bottom: 2px solid var(--c-brand); padding-bottom: .75rem; margin-bottom: 1rem; }
.fs-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .fs-figs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fs-figs div { display: flex; flex-direction: column; border: 1px solid var(--c-line); border-radius: var(--r-sm); padding: .5rem .75rem; }
.fs-figs b { font-size: 1.4rem; color: var(--c-brand); }
@media print { .fs-sheet { font-size: 11pt; } .fs-figs { grid-template-columns: repeat(4, 1fr); } .st-progress, .st-index { display: none !important; } }
.mt-toc { position: sticky; top: calc(var(--hdr-h) + 1rem); }
.mt-toc a { display: block; padding: .2rem .5rem; border-inline-start: 2px solid transparent; color: var(--c-muted); text-decoration: none; }
.mt-toc a.is-on { color: var(--c-text); border-inline-start-color: var(--c-accent); font-weight: 600; }
@media (max-width: 991.98px) { .mt-toc { position: static; } .mt-toc ol { display: flex; flex-wrap: wrap; gap: .25rem .75rem; } .mt-toc ol a { padding: 0; border: 0; } }
.mt-body section { scroll-margin-top: calc(var(--hdr-h) + 1rem); margin-bottom: 2.5rem; }
.mt-flow { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .75rem; grid-template-columns: minmax(0, 1fr); counter-reset: none; }
@media (min-width: 768px) { .mt-flow { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.mt-flow li { position: relative; display: flex; flex-direction: column; gap: .25rem; padding: .85rem; border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-surface); }
.mt-flow li:not(:last-child)::after { content: ''; position: absolute; background: var(--c-brand); }
@media (min-width: 768px) { .mt-flow li:not(:last-child)::after { inset-inline-end: -.75rem; top: 50%; width: .75rem; height: 2px; } }
@media (max-width: 767.98px) { .mt-flow li:not(:last-child)::after { inset-inline-start: 1.5rem; bottom: -.75rem; width: 2px; height: .75rem; } }
.mt-step { display: inline-flex; width: 1.75rem; height: 1.75rem; align-items: center; justify-content: center; border-radius: 50%; background: var(--c-brand); color: var(--c-brand-ink); font-weight: 700; font-size: .85rem; }
.mt-flow.is-ready li { opacity: 0; transform: translateY(8px); }
.mt-flow.is-ready.is-in li { opacity: 1; transform: none; transition: opacity .45s ease, transform .45s ease; transition-delay: calc(var(--i) * 220ms); }
.mt-tierbar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; margin: .5rem 0 1rem; }
.mt-tierbar span { display: block; height: 100%; }
.mt-tiers { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .mt-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .mt-tiers { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mt-tier { display: flex; flex-direction: column; gap: .25rem; padding: 1rem; border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-surface); }
.mt-tier-n { font-size: 1.6rem; font-weight: 800; color: var(--c-brand); text-decoration: none; }
.mt-ex { border-top: 1px dashed var(--c-line); padding-top: .5rem; margin-top: auto; }
.mt-up li { margin-bottom: .5rem; }
.mt-merge { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; align-items: center; margin: 1rem 0; }
@media (min-width: 768px) { .mt-merge { grid-template-columns: 1fr 1fr auto 1.2fr; } }
.mt-rec { display: flex; flex-direction: column; padding: .75rem; border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-surface); }
.mt-rec.is-merged { border-color: var(--c-brand); box-shadow: inset 0 0 0 1px var(--c-brand); }
.mt-arrow { font-size: 1.5rem; text-align: center; color: var(--c-brand); }
.mt-gloss dt { margin-top: .75rem; }
.mt-gloss dd { margin: 0; }
.src-list { display: grid; gap: .6rem; }
.src-card { display: flex; gap: .85rem; padding: .85rem 1rem; border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-surface); }
.src-ini { flex: 0 0 2.6rem; height: 2.6rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--c-brand); color: var(--c-brand-ink); font-weight: 700; font-size: .85rem; }
.src-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: .3rem; }
.src-type { font-size: .72rem; padding: .1rem .5rem; border-radius: 999px; border: 1px solid var(--c-line); color: var(--c-muted); }
.src-t-government { border-color: var(--c-urgent); color: var(--c-urgent); }
.src-bar { height: 6px; background: var(--c-map-land); border-radius: 999px; overflow: hidden; }
.src-bar span { display: block; height: 100%; background: var(--c-brand); border-radius: 999px; }
.src-ov { display: grid; gap: .5rem; }
.src-ov-row { display: grid; grid-template-columns: 10rem minmax(0, 1fr) 7rem; gap: .75rem; align-items: center; color: inherit; text-decoration: none; }
@media (max-width: 575.98px) { .src-ov-row { grid-template-columns: minmax(0, 1fr) 6.5rem; } .src-ov-bar { grid-column: 1 / -1; order: 3; } }
.src-ov-bar { height: 14px; background: var(--c-map-land); border-radius: 999px; overflow: hidden; }
.src-ov-bar span { display: block; height: 100%; width: var(--w); background: var(--c-accent); border-radius: 999px; }
.src-ov.is-ready .src-ov-bar span { width: 0; }
.src-ov.is-ready.is-in .src-ov-bar span { width: var(--w); transition: width .9s cubic-bezier(.22,.61,.36,1); }
.src-ov-row:hover .src-ov-l { text-decoration: underline; }
.src-ov-n { font-variant-numeric: tabular-nums; text-align: end; }
button.tlx-chip[aria-pressed="true"] { background: var(--c-brand); color: var(--c-brand-ink); border-color: var(--c-brand); }

/* ---- V6.2 (P1-12) Videos ---- */
.vd-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-start; }
.vd-bar > input { flex: 1 1 14rem; }
.vd-filters { position: relative; }
.vd-filters summary { list-style: none; }
.vd-filters summary::-webkit-details-marker { display: none; }
.vd-fpanel { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; padding: .75rem; border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-surface); }
.vd-fpanel label { display: flex; flex-direction: column; gap: .2rem; flex: 1 1 8rem; min-width: 0; }
.vd-filters[open] { flex: 1 1 100%; order: 3; }
.vd-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-radius: var(--r-lg); overflow: hidden; background: #0B1612; color: #fff; text-decoration: none; }
@media (min-width: 992px) { .vd-hero { grid-template-columns: 3fr 2fr; } }
.vd-hero-img { position: relative; display: block; aspect-ratio: 16 / 9; background: #12201A; }
.vd-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; }
.vd-hero-play { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 4.5rem; height: 4.5rem; }
.vd-hero-t { display: flex; flex-direction: column; justify-content: center; padding: 1.5rem; }
.vd-hero:hover { color: #fff; }
.vd-row { margin-bottom: 2rem; }
.vd-row-h { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .5rem; }
.vd-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(15rem, 1fr); gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
@media (min-width: 992px) { .vd-scroll { grid-auto-columns: calc((100% - 2.25rem) / 4); } }
.vd-scroll > * { scroll-snap-align: start; }
.vd-warn { color: var(--c-urgent); }
.video-card .v-thumb.is-graphic { background: #1b2622; }
.v-graphic-badge { position: absolute; inset-inline-start: .5rem; top: .5rem; font-size: .75rem; padding: .1rem .5rem; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; }
.v-ep { position: absolute; inset-inline-end: .5rem; bottom: .5rem; font-size: .75rem; padding: .1rem .5rem; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; }
.v-who { font-size: .75rem; padding: .1rem .5rem; border-radius: 999px; background: var(--c-bg); border: 1px solid var(--c-line); color: var(--c-text); }
.video-card.is-compact .v-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 991.98px) { .watch-sticky:has(iframe) { position: sticky; top: var(--hdr-h); z-index: 5; background: var(--c-bg); } }
.w-desc summary { cursor: pointer; }
.lb-video { width: min(92vw, 960px); aspect-ratio: 16 / 9; background: #000; }
.lb-video iframe, .lb-video video { width: 100%; height: 100%; border: 0; display: block; }
/* ---- V6.2 (P1-13) statistics motion (only when motion is allowed: html.st-fx is set by statsfx.js) ---- */
.st-fdet summary { list-style: none; display: inline-flex; align-items: center; gap: .35rem; }
.st-fdet summary::-webkit-details-marker { display: none; }
html.st-fx .fx .bar-fill { transform: scaleX(0); transform-origin: left; }
[dir="rtl"] html.st-fx .fx .bar-fill, html.st-fx[dir="rtl"] .fx .bar-fill { transform-origin: right; }
html.st-fx .fx.fx-in .bar-fill { transform: none; transition: transform .9s cubic-bezier(.22,.61,.36,1); }
html.st-fx .fx li:nth-child(2) .bar-fill { transition-delay: .06s; } html.st-fx .fx li:nth-child(3) .bar-fill { transition-delay: .12s; }
html.st-fx .fx li:nth-child(4) .bar-fill { transition-delay: .18s; } html.st-fx .fx li:nth-child(n+5) .bar-fill { transition-delay: .24s; }
html.st-fx .fx .colc-bar { transform: scaleY(0); transform-box: fill-box; transform-origin: bottom; }
html.st-fx .fx.fx-in .colc-bar { transform: none; transition: transform .8s cubic-bezier(.22,.61,.36,1); }
html.st-fx .fx .stk-s { transform: scaleX(0); transform-origin: left; }
html.st-fx .fx.fx-in .stk-s { transform: none; transition: transform .9s cubic-bezier(.22,.61,.36,1); }
/* ---- V6.2 (P1-16) opening animation: overlay only, page renders underneath; gone by 1.2 s; no extra requests ---- */
.tim-splash { display: none; }
html.splash-on .tim-splash { display: flex; position: fixed; inset: 0; z-index: 2000; background: #0B3B2E; color: #fff; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; pointer-events: none; animation: tim-splash-out .25s ease .95s forwards; }
.tim-splash-mark { animation: tim-splash-rise .45s cubic-bezier(.22,.61,.36,1) both; }
.tim-splash-w { display: flex; flex-direction: column; align-items: center; animation: tim-splash-fade .4s ease .35s both; }
.tim-splash-w b { font-size: 1.25rem; } .tim-splash-w small { opacity: .85; }
@keyframes tim-splash-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes tim-splash-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tim-splash-out { to { opacity: 0; visibility: hidden; } }
html.ts-reduce .tim-splash-mark, html.ts-reduce .tim-splash-w { animation: none; }
@media (prefers-reduced-motion: reduce) { .tim-splash-mark, .tim-splash-w { animation: none !important; } }
@media print { .tim-splash { display: none !important; } }

/* V6.2 (P1-16 #2): rings are out of phase; at most ~60 animate at once (the rest keep a still halo); paused in hidden tabs */
.tlx-mk.no-ring .tlx-ring { animation: none; opacity: .18; transform: none; }
html.tab-hidden .tlx-ring, html.tab-hidden .st-ring, html.tab-hidden .tm-cluster::after, html.tab-hidden .tm-prov-mk::after { animation-play-state: paused !important; }
/* ---- V6.2 (QA-3) tap targets: footer, close buttons, map dots, inline source links ---- */
.app-foot a, footer.app-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.app-foot .social a, footer .social a { min-width: 44px; justify-content: center; }
.btn-close { padding: .9rem; }
svg.map2 a.ev-link circle { stroke: transparent; stroke-width: 28px; paint-order: stroke; }
.colc-hit { pointer-events: all; }
.ew-timeline .small a, .tlx-card .tlx-src a { display: inline-block; padding-block: .55rem; }
.vd-hero, .vd-hero * { text-decoration: none !important; color: #fff; }
.vd-hero:hover .h3 { text-decoration: underline !important; }
.vd-bar > .btn-primary { flex: 0 0 auto; }

/* 6.3.2 Safety in the gear sheet + a real red "Clear and leave" button (the compiled Bootstrap has no .btn-danger) */
.set-safety { border: 1px solid #8C1015; background: rgba(140,16,21,.05); border-radius: 14px; padding: 4px 14px 14px; margin: 4px 0 18px; }
.set-safety .more-h { margin-top: 10px; }
.set-safety .set-row + .set-row { border-top: 1px solid var(--bs-border-color-translucent); }
.btn-wipe { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 0; border-radius: 10px;
  background: #B3261E; color: #FFFFFF; font-weight: 700; font-size: 1rem; line-height: 1.2; cursor: pointer; white-space: nowrap; }
.btn-wipe:hover { background: #8C1D17; color: #FFFFFF; }
.btn-wipe:focus-visible { outline: 3px solid #F2B8B5; outline-offset: 2px; }
.btn-wipe:active { transform: translateY(1px); }
.set-safety .btn-wipe { width: 100%; margin-top: 8px; }
.set-wipe-note { margin: 6px 0 0; font-size: .82rem; line-height: 1.45; color: var(--c-muted); }
[data-bs-theme=dark] .set-safety { border-color: #C0393F; background: rgba(192,57,63,.10); }
[data-bs-theme=dark] .btn-wipe { background: #C0392B; }
[data-bs-theme=dark] .btn-wipe:hover { background: #A93226; }

/* 6.4.1 Names search: the same name in the other lists */
.gs-also { border: 1px solid var(--c-line, rgba(0,0,0,.12)); border-radius: 14px; padding: 12px 14px; margin: 0 0 16px; background: var(--bs-tertiary-bg, rgba(0,0,0,.02)); }
.gs-h { font-size: 1rem; font-weight: 700; margin: 0 0 8px; }
.gs-group + .gs-group { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--bs-border-color-translucent); }
.gs-gh { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.gs-gl { font-weight: 600; }
.gs-n { font-size: .8rem; color: var(--c-muted); }
.gs-all { margin-inline-start: auto; font-size: .9rem; }
.gs-list a { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: inherit; text-decoration: none; min-height: 44px; }
.gs-list a:hover b { text-decoration: underline; }
.gs-list img, .gs-ph { width: 40px; height: 50px; border-radius: 6px; object-fit: cover; flex: 0 0 auto; background: var(--c-line-2, #ddd); }
.gs-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.gs-alt { font-size: .85rem; color: var(--c-muted); }
.gs-m { font-size: .82rem; color: var(--c-muted); }

/* 6.6 Prisoners: search and status chips */
.pris-tools { max-width: 40rem; }
body.app a.pris-chip, a.pris-chip { display: inline-flex; gap: .35rem; align-items: center; padding: .3rem .75rem; border: 1px solid var(--c-line, #d6d6d6); border-radius: 999px; color: inherit; text-decoration: none; background: var(--c-surface, #fff); }
.pris-chip span { opacity: .65; font-variant-numeric: tabular-nums; }
body.app a.pris-chip.is-on, a.pris-chip.is-on { background: var(--c-brand); color: var(--c-brand-ink); border-color: var(--c-brand); }
body.app a.pris-chip:hover { border-color: var(--c-brand); }
/* 6.6.3 Prisoners: the box for the status being shown */
body.app .ew-stats a.pris-box-on { border-color: var(--c-brand) !important; box-shadow: inset 0 0 0 1px var(--c-brand); }
/* 6.7 Statistics: the three lists */
body.app .st-ov a.st-ov-card.is-on { border-color: var(--c-brand) !important; box-shadow: inset 0 0 0 1px var(--c-brand); }
body.app .st-ov .num { color: var(--c-accent); }

/* 6.13: in Persian, a fact that is only a number (age ۱۸, plot ۶) lines up on the right like the others */
[dir="rtl"] dd[dir="auto"], [dir="rtl"] .facts dd { text-align: right; }

/* =====================================================================================================================
   6.14 — newspaper front for Articles (lead, three top stories, list), line tabs and the round search pill.
   ===================================================================================================================== */
.nf-kicker { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--c-accent-text, #B3121D); }
:lang(fa) .nf-kicker { text-transform: none; letter-spacing: 0; font-size: .85rem; }
.nf-title { display: block; font-family: "Source Serif 4", Georgia, "Times New Roman", serif; font-weight: 600; font-size: 1.2rem; line-height: 1.25; color: var(--c-text, inherit); }
:lang(fa) .nf-title { font-family: "Vazirmatn", system-ui, sans-serif; font-weight: 700; line-height: 1.6; }
.nf-xl { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.5rem); line-height: 1.12; }
:lang(fa) .nf-xl { line-height: 1.45; }
.nf-stand { display: block; color: var(--c-muted, #6A6A6A); font-size: 1rem; line-height: 1.5; }
.nf-clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nf-meta { display: block; color: var(--c-muted, #6A6A6A); font-size: .8rem; margin-top: .15rem; }
.news-front a, .nf-item, .nf-row, .nf-lead { text-decoration: none; color: inherit; }
.nf-lead:hover .nf-title, .nf-item:hover .nf-title, .nf-row:hover .nf-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.nf-lead { display: grid; gap: 1.25rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--c-line-2, #DDD); margin-bottom: 1.75rem; }
.nf-lead .nf-text { display: flex; flex-direction: column; gap: .6rem; justify-content: center; }
.nf-lead .nf-stand { font-size: 1.1rem; }
.nf-img img, .nf-item img, .nf-row img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: var(--tim-frame, #F0F0F0); display: block; }
@media (min-width: 992px) { .nf-lead { grid-template-columns: 5fr 7fr; align-items: center; gap: 2rem; } }
.nf-top { display: grid; gap: 1.5rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--c-line-2, #DDD); margin-bottom: 1.25rem; }
@media (min-width: 768px) { .nf-top { grid-template-columns: repeat(3, 1fr); } .nf-top .nf-item + .nf-item { border-inline-start: 1px solid var(--c-line, #EBEBEB); padding-inline-start: 1.5rem; } }
.nf-item { display: flex; flex-direction: column; gap: .4rem; height: 100%; }
.nf-item img { margin-bottom: .35rem; }
.post-card.nf-item { border: 0; border-radius: 0; background: transparent; overflow: visible; }
.nf-section { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border-top: 2px solid var(--c-text, #222); padding-top: .6rem; margin: 1rem 0 .25rem; }
:lang(fa) .nf-section { text-transform: none; letter-spacing: 0; }
.nf-list { display: grid; }
@media (min-width: 992px) { .nf-list { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; } }
.nf-row { display: grid; grid-template-columns: 1fr 120px; gap: 1rem; align-items: start; padding: 1rem 0; border-bottom: 1px solid var(--c-line, #EBEBEB); }
.nf-row .nf-text { display: flex; flex-direction: column; gap: .3rem; }
.nf-row .nf-title { font-size: 1.05rem; }
.nf-row img { border-radius: 8px; }
@media (min-width: 576px) { .nf-row { grid-template-columns: 1fr 180px; } }

/* line tabs (Airbnb-like): text tabs with a dark underline on the current one */
.tabs-line { display: flex; gap: 1.5rem; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--c-line, #EBEBEB); max-width: 100%; }
.tabs-line::-webkit-scrollbar { display: none; }
.tabs-line a, .tabs-line button { flex: 0 0 auto; padding: .65rem 0; color: var(--c-muted, #6A6A6A); font-weight: 600; text-decoration: none; border: 0; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs-line a:hover { color: var(--c-text, #222); }
.tabs-line a[aria-current="page"], .tabs-line [aria-selected="true"] { color: var(--c-text, #222); border-bottom-color: var(--c-text, #222); }

/* the round search pill with a red circle button (Airbnb help centre) */
.search-pill { display: flex; align-items: center; gap: .25rem; background: var(--c-surface-2, #F7F7F7); border: 1px solid var(--c-line-2, #DDD); border-radius: 999px; padding: .35rem .35rem .35rem 1.25rem; min-width: min(100%, 22rem); box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: box-shadow .15s; }
[dir="rtl"] .search-pill { padding: .35rem 1.25rem .35rem .35rem; }
.search-pill:focus-within { box-shadow: 0 2px 10px rgba(0,0,0,.12); background: var(--c-surface, #FFF); }
.search-pill input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; color: var(--c-text, #222); font-size: 1rem; padding: .35rem 0; }
.search-pill input::placeholder { color: var(--c-muted, #6A6A6A); }
.search-pill button { flex: 0 0 auto; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; background: linear-gradient(90deg, #D8232F 0%, var(--c-accent, #B3121D) 100%); }
.search-pill button:hover { filter: brightness(.95); }
/* 6.14 two lines, then "Read more" */
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-2 p { white-space: normal !important; }
.clamp-2.is-open { display: block; -webkit-line-clamp: unset; overflow: visible; }
.clamp-2.is-open p { white-space: pre-line !important; }
.btn-more { border: 0; background: none; padding: .25rem 0; margin-top: .25rem; font-weight: 600; color: var(--c-text, #222); text-decoration: underline; text-underline-offset: 3px; }

/* ---- 6.14 menu with icons (one list, Airbnb-like rows) ---- */
.more-icons a { justify-content: flex-start; gap: 14px; min-height: 56px; border-bottom: 1px solid var(--c-line); }
.more-icons .mi-ic { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--c-surface-2); }
.more-icons .mi-ic .icon { width: 18px; height: 18px; color: var(--c-text); }
.more-icons .mi-t { flex: 1 1 auto; font-weight: 600; }
.more-icons .mi-chev { width: 16px; height: 16px; color: var(--c-muted); }
.more-icons a[aria-current] .mi-ic { background: var(--c-accent); }
.more-icons a[aria-current] .mi-ic .icon { color: #FFFFFF; }

/* ---- 6.14 Submit hub tabs ---- */
.submit-tabs-wrap { padding-top: 1rem; }
.submit-page .submit-tabs-wrap { padding-inline: 0; padding-top: 0; margin-bottom: 1rem; }
.submit-tabs a { display: inline-flex; align-items: center; gap: .4rem; }
.submit-tabs .icon { width: 16px; height: 16px; }

/* ---- 6.14 footer: grey in light mode, one line of links on phones ---- */
.app-footer { background: var(--c-surface-2); border-top: 1px solid var(--c-line); }
[data-bs-theme=dark] .app-footer { background: var(--c-surface); }
.foot-mob { display: none; }
@media (max-width: 767.98px) {
  .foot-mob { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; margin: 0 0 .5rem; font-weight: 600; font-size: .95rem; }
  body.app .foot-mob a { color: var(--c-text); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
  .foot-mob a:hover { text-decoration: underline; }
  .app-footer .foot-cols { display: none; }
}

/* ---- 6.14 back to top (wide screens only) ---- */
.to-top { position: fixed; inset-inline-end: 24px; bottom: 24px; z-index: 1030; display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1rem; border-radius: 999px;
  background: var(--c-surface); color: var(--c-text); border: 1px solid var(--c-line-2); box-shadow: 0 6px 16px rgba(0,0,0,.12); font-weight: 600; font-size: .9rem; text-decoration: none; }
.to-top:hover { background: var(--c-surface-2); color: var(--c-text); }
.to-top[hidden] { display: none; }
.to-top .icon { width: 16px; height: 16px; }
/* 6.14.2: on phones too — a round button above the tab bar */
@media (max-width: 991.98px) { .to-top { bottom: calc(var(--tab-h, 64px) + var(--safe-b, 0px) + 14px); inset-inline-end: 14px; padding: 0; width: 44px; height: 44px; justify-content: center; } .to-top span { display: none; } .to-top .icon { width: 18px; height: 18px; } }

/* ---- 6.14 search boxes: a round red search button at the end (like airbnb.co.uk/help) ---- */
.go-btn { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #FFFFFF;
  background: linear-gradient(90deg, #D8232F 0%, var(--c-accent) 100%); margin-inline-start: 4px; }
.go-btn .icon { width: 18px; height: 18px; color: #FFFFFF !important; font-size: 1rem; }
.go-btn:hover { filter: brightness(.94); }
.go-btn:focus-visible { outline: 3px solid var(--c-focus, #2F6FEB); outline-offset: 2px; }
.bigsearch.has-go { padding-inline: 22px 6px; }
.mapsearch.has-go { padding-inline: 20px 5px; }
.mapsearch.has-go .go-btn { width: 42px; height: 42px; }
.vd-bar > .vd-pill { flex: 1 1 16rem; min-width: 0; }
.search-pill .icon { width: 18px; height: 18px; color: #FFFFFF; }

/* ---- 6.14 buttons, titles and tabs: one calmer, rounder style ---- */
.btn { border-radius: 10px; font-weight: 600; }
.btn-sm { border-radius: 8px; }
.btn-memorial { background: linear-gradient(90deg, #D8232F 0%, var(--c-accent) 100%); border-color: transparent; color: #FFFFFF; }
.btn-memorial:hover, .btn-memorial:focus { filter: brightness(.94); color: #FFFFFF; }
.page-head h1, .names-head h1 { font-weight: 700; letter-spacing: -.01em; }
.pill-nav a, .seg > a { border-radius: 999px; }
/* 6.14 page titles carry the section icon */
.ph-title { display: flex; align-items: center; gap: .6rem; }
.ph-ic { flex: 0 0 auto; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: inline-grid; place-items: center; background: var(--c-surface-2); }
.ph-ic .icon { width: 1.15rem; height: 1.15rem; color: var(--c-accent); }
.page-head-hero .ph-ic { background: rgba(255,255,255,.16); }
.page-head-hero .ph-ic .icon { color: #FFFFFF; }
body.app .tabs-line a { color: var(--c-muted); }
body.app .tabs-line a:hover, body.app .tabs-line a[aria-current="page"] { color: var(--c-text); }
body:has(.tim-consent:not([hidden])) .to-top { display: none !important; }
body.app .to-top, body.app .to-top:hover { color: var(--c-text); }

/* 6.14.1 tab rows: no vertical wobble when touched (overflow-x:auto made the row scroll 1px up and down on iPhone),
   and the scroll stays inside the row instead of dragging the page */
.tabs-line { overflow-y: hidden; overscroll-behavior-x: contain; touch-action: pan-x pan-y; }
.tabs-line a, .tabs-line button { margin-bottom: 0; border-bottom: 0; box-shadow: inset 0 -2px 0 transparent; }
.tabs-line a[aria-current="page"], .tabs-line [aria-selected="true"] { box-shadow: inset 0 -2px 0 var(--c-text, #222); }
/* Submit hub on phones: all four tabs visible at once (two by two), so nothing slides */
@media (max-width: 575.98px) {
  .submit-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; overflow: visible; border-bottom: 0; touch-action: auto; }
  .submit-tabs a { justify-content: center; padding: .55rem .5rem; border: 1px solid var(--c-line-2, #DDD); border-radius: 999px; white-space: normal; text-align: center; font-size: .9rem; line-height: 1.2; box-shadow: none; }
  .submit-tabs a[aria-current="page"] { background: var(--c-text, #222); border-color: var(--c-text, #222); color: var(--c-bg, #FFF) !important; box-shadow: none; }
  .submit-tabs a[aria-current="page"] .icon { color: inherit; }
}
.submit-page .submit-tabs-wrap { padding-top: 12px; }

/* 6.14.1 Who we are tabs: always one line (the three share the width on phones), neutral text, red underline */
.hub-tabs { flex-wrap: nowrap; gap: 0; }
.hub-tabs a { flex: 0 1 auto; white-space: nowrap; text-align: center; margin-bottom: -1px; }
body.app .hub-tabs a { color: var(--c-muted); }
body.app .hub-tabs a[aria-selected=true], body.app .hub-tabs a:hover { color: var(--c-text); }
@media (max-width: 575.98px) {
  .hub-tabs a { flex: 1 1 0; min-width: 0; padding: .6rem .25rem; font-size: .92rem; }
}
@media (max-width: 359.98px) { .hub-tabs a { font-size: .82rem; } }

/* 6.14.1 phones look like the desktop: figure and link tiles two by two instead of one long column */
@media (max-width: 575.98px) {
  .hub-grid:not(:has(.d-block)) { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .hub-grid:not(:has(.d-block)) .hub-card { padding: .85rem; }
  .hub-grid:not(:has(.d-block)) .hub-card .n { font-size: 1.35rem; }
  .vsteps .panel { padding: .85rem !important; }
}
/* the "How we verify" step numbers */
.step-n { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; margin-bottom: .5rem;
  background: var(--c-surface-2); color: var(--c-accent); font-weight: 700; font-size: .95rem; }

/* ---- 6.14.1 one search bar for list pages: search pill + Filters on one line ---- */
.sbar { display: flex; align-items: center; gap: .5rem; max-width: 46rem; }
.sbar .sbar-pill { flex: 1 1 auto; min-width: 0; background: var(--c-surface); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.05); }
.sbar .sbar-pill:focus-within { box-shadow: 0 2px 14px rgba(0,0,0,.14); }
.sbar-filters { flex: 0 0 auto; }
.sbar-btn { display: inline-flex; align-items: center; gap: .45rem; height: 3.5rem; padding-inline: 1.1rem; border-radius: 999px; border: 1px solid var(--c-line-2);
  background: var(--c-surface); color: var(--c-text); font-weight: 600; cursor: pointer; list-style: none; user-select: none; transition: border-color .15s, box-shadow .15s; }
.sbar-btn::-webkit-details-marker { display: none; }
.sbar-btn:hover { border-color: var(--c-text); }
.sbar-btn.has-on { border-color: var(--c-text); box-shadow: inset 0 0 0 1px var(--c-text); }
.sbar-btn .icon { width: 18px; height: 18px; }
.sbar-n { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding-inline: .3rem; border-radius: 999px; background: var(--c-text); color: var(--c-bg); font-size: .75rem; }
@media (max-width: 400px) { .sbar-btn { padding-inline: .9rem; } .sbar-btn-t { display: none; } }
.sbar-filters .sheetdetails-panel .flt-group { padding-inline: 20px; }

/* 6.14.1 Load more */
.more-wrap { display: flex; flex-direction: column; align-items: center; margin-top: 2rem; text-align: center; }
.btn-loadmore { display: inline-flex; align-items: center; justify-content: center; min-width: 14rem; min-height: 3rem; padding: .7rem 1.6rem; border-radius: 999px;
  border: 1px solid var(--c-text); color: var(--c-text) !important; background: var(--c-surface); font-weight: 700; text-decoration: none; transition: background .15s, transform .15s; }
.btn-loadmore:hover { background: var(--c-surface-2); }
.btn-loadmore:active { transform: scale(.98); }
.btn-loadmore[aria-busy=true] { opacity: .7; pointer-events: none; }
[data-more-pager][hidden] { display: none !important; }

/* ---- 6.14.1 one red everywhere ----
   Before: four reds (dark maroon #8C1015 on badges, #B3121D on buttons, #D8232F in gradients, #A60000 in the flag bar).
   Now one clear red, #D0202C (5.4:1 with white text, WCAG AA), with a darker #A8161F for hover/pressed. */
:root, [data-bs-theme=light] {
  --c-accent: #D0202C; --c-accent-2: #A8161F; --c-accent-text: #C21D28; --tim-count: #C21D28; --c-red-grad: #DE2F3B;
  --bs-danger: #D0202C; --bs-danger-rgb: 208, 32, 44; --bs-danger-text-emphasis: #8E1219;
}
[data-bs-theme=dark] { --c-red-grad: #D63B47; --bs-danger: #C62834; --bs-danger-rgb: 198, 40, 52; }
.st-death, .urg-badge, .tlx-badge, .tlx-playind, .tlx-prog i, .text-bg-danger, .bg-danger { background-color: var(--c-accent) !important; color: #FFFFFF !important; }
.tlx-ctrls [data-tlx-stop] { background: var(--c-accent); border-color: var(--c-accent); }
.ta-box.ta-critical { border-inline-start-color: var(--c-accent); }
.hub-tabs a[aria-selected=true] { border-bottom-color: var(--c-accent); }
.set-danger, .set-safety { border-color: var(--c-accent); background: color-mix(in srgb, var(--c-accent) 5%, transparent); }
.st-steps li.is-now::before { border-color: var(--c-accent); background: var(--c-accent); }
.text-danger, .text-count { color: var(--c-accent-text) !important; }
.btn-danger { --bs-btn-bg: var(--c-accent); --bs-btn-border-color: var(--c-accent); --bs-btn-hover-bg: var(--c-accent-2); --bs-btn-hover-border-color: var(--c-accent-2); --bs-btn-active-bg: var(--c-accent-2); --bs-btn-active-border-color: var(--c-accent-2); }
.go-btn, .search-pill button, .btn-memorial { background: linear-gradient(90deg, var(--c-red-grad) 0%, var(--c-accent) 100%); }
.section-title .rule, .page-head .section-title .rule { background: var(--c-accent); }
/* 6.14.1 every search box looks the same: Timeline, 404, Families */
.tlx-top .tlx-pill { flex: 1 1 auto; min-width: 0; }
.tlx-top .tlx-pill .tlx-q { border: 0; background: transparent; }
.tlx-fbtn { border-radius: 999px; height: 3.45rem; display: inline-flex; align-items: center; gap: .4rem; }
.tlx-play { border-radius: 999px; height: 3.45rem; }
.search-box.search-pill { background: var(--c-surface-2); padding: .35rem .35rem .35rem 1.25rem; outline: 0; }
[dir="rtl"] .search-box.search-pill { padding: .35rem 1.25rem .35rem .35rem; }
.search-box.search-pill .form-control { min-height: 0; padding: .35rem 0; }
.sbar-btn { height: calc(3.45rem + 2px); }
@media (max-width: 400px) { .sbar-btn-t { display: inline; } }
@media (max-width: 359.98px) { .sbar-btn-t { display: none; } }
.search-box.search-pill .form-control, .search-box.search-pill input { background: transparent !important; border: 0 !important; box-shadow: none !important; }
/* 6.14.1 tables with many columns become one card per row on phones (Privacy → cookies) */
@media (max-width: 575.98px) {
  .stack-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stack-table, .stack-table tbody, .stack-table tr, .stack-table td { display: block; width: 100%; }
  .stack-table tr { border: 1px solid var(--c-line); border-radius: 12px; padding: .75rem .9rem; margin-bottom: .75rem; background: var(--c-surface); }
  .stack-table td { border: 0; padding: .2rem 0; }
  .stack-table td[data-label]::before { content: attr(data-label); display: block; font-weight: 700; color: var(--c-muted); font-size: .75rem; }
  .stack-table caption { caption-side: top; }
}

/* =====================================================================================================================
   6.14.1 Airbnb-style feel across the site: soft lift on cards, a press-down on everything tappable, calm focus rings,
   rounded inputs, sheets that slide up, and a light that follows the pointer on the red buttons. All motion stops
   with "Reduce motion" (device setting or the site's own switch) and in Low data mode.
   ===================================================================================================================== */
:root { --r-card: 12px; --shadow-hover: 0 6px 16px rgba(0,0,0,.12); --ease-out: cubic-bezier(.2,.8,.2,1); }
.case-card, .hub-card, .mini-person, .help-cards a, .nf-item, .panel a.d-block, .ew-stats .panel, .pr-lead { border-radius: var(--r-card); }
@media (hover: hover) {
  a.case-card, a.hub-card, .mini-person, a.panel, .ew-stats a.panel, .person-card, .nf-item, .pr-lead, .more-icons a {
    transition: box-shadow .2s var(--ease-out), transform .2s var(--ease-out), border-color .2s; }
  a.case-card:hover, a.hub-card:hover, .mini-person:hover, .ew-stats a.panel:hover, .pr-lead:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: transparent; }
  .person-card .pc-photo img, .nf-item img, .nf-lead img, .case-photo img { transition: transform .5s var(--ease-out); }
  .person-card:hover .pc-photo img, .nf-item:hover img, .nf-lead:hover img { transform: scale(1.04); }
  .pc-photo, .nf-img, .nf-item { overflow: hidden; }
}
/* press down */
.btn, .chip2, .sbar-btn, .go-btn, .search-pill button, a.case-card, a.hub-card, .mini-person, .more-icons a, .tabs-line a, .seg > label, .seg > a, .btn-loadmore, .app-tabbar a {
  transition: transform .12s var(--ease-out), background-color .15s, box-shadow .2s, border-color .15s, color .15s; }
.btn:active, .chip2:active, .sbar-btn:active, .go-btn:active, .search-pill button:active, a.case-card:active, a.hub-card:active, .mini-person:active, .more-icons a:active, .seg > label:active, .btn-loadmore:active { transform: scale(.97); }
/* calm, clear focus (keyboard only) */
:focus-visible { outline: 2px solid var(--c-text); outline-offset: 2px; }
.btn:focus-visible, .form-control:focus-visible, .form-select:focus-visible { box-shadow: none; }
/* inputs like Airbnb: rounded, a dark ring when typing */
body.app .form-control, body.app .form-select { border-radius: 10px; border-color: var(--c-line-2); }
body.app .form-control:focus, body.app .form-select:focus { border-color: var(--c-text); box-shadow: 0 0 0 1px var(--c-text); }
/* sheets and dialogs slide in */
@keyframes tim-sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes tim-fade { from { opacity: 0; } to { opacity: 1; } }
.sheetdetails[open] .sheetdetails-panel { animation: tim-sheet-up .28s var(--ease-out); }
.sheetdetails[open] .sheetdetails-backdrop { animation: tim-fade .2s ease-out; }
@media (min-width: 768px) { @keyframes tim-pop { from { opacity: 0; transform: translate(-50%, -48%) scale(.98); } to { opacity: 1; transform: translate(-50%, -50%); } }
  .sheetdetails[open] .sheetdetails-panel { animation-name: tim-pop; } }
.app-dialog[open] { animation: tim-sheet-up .28s var(--ease-out); }
/* the light that follows the pointer on red buttons (position set by v6.js) */
.btn-memorial, .go-btn, .search-pill button, body.app .btn-primary { background-image: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.18) 0, rgba(255,255,255,0) 60%), linear-gradient(90deg, var(--c-red-grad, #DE2F3B) 0%, var(--c-accent) 100%); }
/* no motion when asked */
html.ts-reduce *, html[data-lowdata="1"] * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
html.ts-reduce :active, html[data-lowdata="1"] :active { transform: none !important; }
.foot-legal { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--c-line); color: var(--c-muted); }
body.app .foot-legal a { color: var(--c-text); text-decoration: none; }
body.app .foot-legal a:hover { text-decoration: underline; }
.foot-lang { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.foot-lang .icon { width: 16px; height: 16px; }
.foot-dots { display: inline-flex; flex-wrap: wrap; gap: .35rem .5rem; }
.foot-dots > span { color: var(--c-muted); }
/* 6.14.1 footer closer to Airbnb's: dark headings, tighter lists, dots on the text line */
.app-footer .foot-cols ul { gap: .55rem; }
.app-footer .foot-cols li, .app-footer .foot-cols a { line-height: 1.4; min-height: 0; }
body.app .app-footer .foot-h, body.app .app-footer .foot-h a { color: var(--c-text); font-family: inherit; font-weight: 700; font-size: .95rem; }
.foot-dots { align-items: center; }
.foot-dots > span { line-height: 1; }
body.app a.to-top, body.app a.to-top:hover { color: var(--c-text) !important; }

/* ---- 6.14.2 every bottom sheet shows the same grab bar (drag it down to close) ---- */
@media (max-width: 767.98px) {
  .sheetdetails[open] .sheetdetails-panel::before, .app-dialog[open] .app-dialog-in::before, html.tlx-js .tlx-filters.is-open::before {
    content: ""; display: block; flex: 0 0 auto; width: 40px; height: 5px; border-radius: 3px; background: var(--c-line-2); margin: 8px auto 0; }
  .app-more .sheet-grip { display: block; }
  .sheetdetails-panel, .app-more, .app-dialog { touch-action: pan-y; }
}
/* 6.14.2 gestures: photos zoom with a double tap; horizontal strips snap and never pull the page sideways */
.lb-fig img { transition: transform .25s cubic-bezier(.2,.8,.2,1); cursor: zoom-in; }
.lb-fig img.is-zoomed { transform: scale(2.2); cursor: zoom-out; }
.face-row, .vd-scroll, .st-strip, .mapchips, .feed-chips, .tabs-line, .related-grid { overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.face-row > *, .vd-scroll > *, .st-strip > * { scroll-snap-align: start; }
.btn-wipe { background: var(--c-accent) !important; }
.btn-wipe:hover { background: var(--c-accent-2) !important; }

/* ---- 6.14.2 execution & prisoner pages: a campaign page like a profile ---- */
.case-hero .person-head .status { font-size: .8rem; }
.case-days, .case-supporters { display: flex; align-items: center; gap: .5rem; margin: .5rem 0 0; font-size: 1rem; }
.case-days .icon, .case-supporters .icon { width: 18px; height: 18px; color: var(--c-accent); flex: 0 0 auto; }
.case-supporters { color: var(--c-text); font-weight: 600; }
.case-actions { flex-wrap: wrap; }
.case-short button { font-weight: 600; text-decoration: none; }
.act-kit .act-letter { background: var(--c-surface-2); border-radius: 12px; padding: 1rem 1.1rem; font-size: .95rem; line-height: 1.7; }
.ask-box { background: var(--c-surface-2); border-radius: 16px; padding: 1.25rem; border: 0; }
.src-list a { font-weight: 600; }
/* lists */
.list-tile { display: flex; flex-direction: column; gap: .5rem; padding: 1rem; border-radius: 16px; border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-text); text-decoration: none; height: 100%; }
body.app .list-tile { color: var(--c-text); }
.list-faces { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.list-faces span { aspect-ratio: 4/5; border-radius: 10px; background: var(--c-surface-2); overflow: hidden; }
.list-faces img { width: 100%; height: 100%; object-fit: cover; }
.list-t { font-weight: 700; font-size: 1.1rem; }
.list-n { color: var(--c-muted); font-size: .9rem; }
@media (hover: hover) { .list-tile { transition: box-shadow .2s, transform .2s; } .list-tile:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); } }
/* poster (A4) */
.poster { max-width: 720px; margin: 0 auto; background: #111; color: #fff; border-radius: 12px; padding: 32px 40px 28px; text-align: center; }
.poster-flag { display: flex; height: 8px; margin: -32px -40px 24px; border-radius: 12px 12px 0 0; overflow: hidden; }
.poster-flag i { flex: 1; } .poster-flag i:nth-child(1) { background: #23783C; } .poster-flag i:nth-child(2) { background: #EBEBEB; } .poster-flag i:nth-child(3) { background: #D0202C; }
.poster-status { display: inline-block; background: #D0202C; color: #fff; font-weight: 800; padding: .35rem 1rem; border-radius: 999px; font-size: 1.1rem; margin-bottom: 1rem; }
.poster-photo { display: block; width: 70%; max-height: 520px; object-fit: cover; margin: 0 auto 1rem; border-radius: 10px; }
.poster-name { font-size: 2.6rem; font-weight: 800; margin: .25rem 0; color: #fff; }
.poster-other { font-size: 1.5rem; color: #ccc; margin: 0 0 .5rem; }
.poster-days { font-size: 1.3rem; font-weight: 700; color: #ff8a8f; margin: .5rem 0; }
.poster-tags { font-size: 1.2rem; color: #ddd; margin: .5rem 0 1rem; }
.poster-foot { display: flex; align-items: center; justify-content: center; gap: 18px; }
.poster-qr { width: 120px; height: 120px; background: #fff; padding: 6px; border-radius: 8px; }
.poster-qr svg { width: 100%; height: 100%; }
.poster-url { font-size: 1.2rem; font-weight: 700; margin: 0; }
@media print {
  @page { size: A4; margin: 10mm; }
  body * { visibility: hidden; }
  .poster, .poster * { visibility: visible; }
  .poster { position: absolute; inset: 0; margin: 0; max-width: none; border-radius: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* 6.14.2 (J) executions recorded in 2026 by month; the number boxes work as filters */
.ew-stat.is-on{border-color:var(--c-accent);box-shadow:inset 0 0 0 1px var(--c-accent)}
.ex-bars{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(1.9rem,1fr);gap:.35rem;align-items:end;height:10rem;margin:1rem 0 .75rem;padding:0;overflow-x:auto;overscroll-behavior-x:contain}
.ex-bars li{height:100%}
.ex-bars a{display:flex;flex-direction:column;justify-content:flex-end;align-items:stretch;height:100%;text-decoration:none;color:inherit;gap:.25rem;min-height:44px}
.ex-n{font-size:.78rem;font-weight:700;color:var(--bs-body-color);text-align:center;line-height:1}
.ex-bar{display:block;height:calc(var(--h) * .7);min-height:3px;background:var(--c-accent);border-radius:.35rem .35rem .1rem .1rem;transition:filter .15s}
.ex-bar.is-zero{background:var(--bs-border-color);height:3px}
.ex-bars a:hover .ex-bar,.ex-bars a:focus-visible .ex-bar{filter:brightness(1.12)}
.ex-m{font-size:.72rem;text-align:center;color:var(--bs-secondary-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* 6.14.2 memorial messages: soft cards, initial or candle, four lines then "Read more", report under "⋯", the form opens when asked */
.mm-sec h2 .mm-count{display:inline-flex;align-items:center;justify-content:center;min-width:1.8em;height:1.8em;padding:0 .5em;margin-inline-start:.35rem;border-radius:999px;background:var(--bs-tertiary-bg);color:var(--bs-secondary-color);font-size:.55em;font-weight:700;vertical-align:middle}
.mm-list{display:grid;gap:.75rem}
.mm-card{display:flex;gap:.85rem;padding:1rem 1.1rem;border-radius:1rem;background:var(--bs-tertiary-bg);border:1px solid color-mix(in srgb,var(--bs-border-color) 60%,transparent)}
.mm-av{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:2.4rem;height:2.4rem;border-radius:50%;background:var(--bs-body-bg);color:var(--c-accent);font-weight:800;font-size:1rem;border:1px solid var(--bs-border-color)}
.mm-av .icon{width:1.15rem;height:1.15rem}
.mm-main{min-width:0;flex:1}
.mm-head{display:flex;align-items:baseline;gap:.5rem;flex-wrap:wrap;margin-bottom:.25rem}
.mm-date{font-size:.8rem;color:var(--bs-secondary-color)}
.mm-more{margin-inline-start:auto;position:relative}
.mm-more>summary{list-style:none;cursor:pointer;min-width:44px;min-height:32px;text-align:center;color:var(--bs-secondary-color);border-radius:.5rem;line-height:32px;margin:-.4rem -.4rem 0 0}
.mm-more>summary::-webkit-details-marker{display:none}
.mm-more>summary:hover{background:var(--bs-secondary-bg)}
.mm-more form{position:absolute;inset-inline-end:0;top:100%;z-index:5;background:var(--bs-body-bg);border:1px solid var(--bs-border-color);border-radius:.6rem;box-shadow:0 8px 24px rgba(0,0,0,.12);padding:.25rem .5rem;white-space:nowrap}
.mm-body{margin:0;white-space:pre-line;line-height:1.7}
.mm-body.is-clamped{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.mm-toggle{border:0;background:none;padding:0;margin-top:.25rem;font-weight:700;color:var(--bs-link-color);font-size:.9rem}
.mm-all{margin-top:.75rem}
.mm-all>summary{list-style:none}
.mm-all>summary::-webkit-details-marker{display:none}
.mm-all[open]>summary{display:none}
.mm-compose{margin-top:1rem;border:1px solid var(--bs-border-color);border-radius:1rem;padding:.75rem 1rem;background:var(--bs-body-bg)}
.mm-compose>summary{list-style:none;display:flex;align-items:center;gap:.75rem;cursor:pointer;color:var(--bs-secondary-color);min-height:44px}
.mm-compose>summary::-webkit-details-marker{display:none}
.mm-compose[open]>summary{color:var(--bs-body-color);font-weight:700}

/* 6.14.2 sources table: one card per source on phones instead of squeezed columns */
@media (max-width:575.98px){
  .source-table thead{display:none}
  .source-table,.source-table tbody,.source-table tr,.source-table td{display:block;width:100%}
  .source-table tr{padding:.75rem 1rem;border-bottom:1px solid var(--bs-border-color)}
  .source-table td{border:0;padding:.1rem 0!important;white-space:normal!important}
  .source-table td[data-label]{display:flex;gap:.5rem;font-size:.9rem}
  .source-table td[data-label]::before{content:attr(data-label);flex:0 0 7.5rem;color:var(--bs-secondary-color);font-size:.8rem}
}

/* 6.14.2 a lighter placeholder: the first letter instead of a grey silhouette */
.mp-photo{position:relative}
.mp-photo .mp-ini{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:1.05rem;color:var(--c-accent);background:color-mix(in srgb,var(--c-accent) 8%,var(--bs-body-bg))}

/* =====================================================================================================================
   6.14.2 design refresh — app-like, calm, modern (Airbnb-style discipline, TIM's own red):
   · one clean sans for English headings and text (Plus Jakarta Sans, open licence, 27 KB, self-hosted); Persian stays Vazirmatn
   · white page, soft grey bands (#F7F7F7) and a dark band to mark the sections that matter
   · buttons: red gradient (main action), dark outline (second action), soft grey (quiet action), underlined links
   · accordions: big question, thin line between rows, a chevron that turns
   ===================================================================================================================== */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2010-2027, U+2030-205E, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2-variations"), url("../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* 6.14.4: light only — ":root" here also matched in dark mode and turned dark pages white */
:root:not([data-bs-theme=dark]), [data-bs-theme=light] {
  --c-bg: #FFFFFF; --c-surface: #FFFFFF; --c-surface-2: #F7F7F7; --c-band: #F7F7F7; --c-band-dark: #1A1A1A; --c-band-dark-ink: #FFFFFF;
  --c-line: #EBEBEB; --c-line-2: #DDDDDD; --c-ink: #222222; --c-soft-btn: #F2F2F2; --c-soft-btn-h: #EBEBEB;
  --bs-body-bg: #FFFFFF; --bs-border-color: #EBEBEB;
  --tim-sans: "Plus Jakarta Sans", "Vazirmatn", system-ui, -apple-system, "Segoe UI", sans-serif;
}
[data-bs-theme=dark] { --c-line: rgba(230, 237, 233, .12); --c-line-2: rgba(230, 237, 233, .22); --bs-border-color: rgba(230, 237, 233, .14); --c-band: #15241E; --c-band-dark: #000000; --c-band-dark-ink: #FFFFFF; --c-ink: #F2F2F2; --c-soft-btn: #22332B; --c-soft-btn-h: #2B3F35; --tim-sans: "Plus Jakarta Sans", "Vazirmatn", system-ui, -apple-system, "Segoe UI", sans-serif; }
html[dir=ltr] { --bs-font-sans-serif: var(--tim-sans); --bs-body-font-family: var(--tim-sans); }
html[dir=ltr] body, html[dir=ltr] .btn, html[dir=ltr] .form-control, html[dir=ltr] .form-select, html[dir=ltr] .dropdown-menu { font-family: var(--tim-sans); }
html[dir=ltr] :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .person-name, .nf-title, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6) {
  font-family: var(--tim-sans); font-weight: 700; letter-spacing: -.012em; word-spacing: .06em; }
html[dir=ltr] :is(h1, .h1, .person-name) { font-weight: 800; letter-spacing: -.02em; }
html[dir=ltr] :is(.latin-name, .person-other) { font-family: var(--tim-sans); }
/* 6.14.4: headings keep the colour of where they sit (a global heading colour turned titles on dark cards dark) */
html[dir=ltr] body { letter-spacing: 0; word-spacing: .04em; }
html[dir=ltr] :is(.small, small, .form-text) { letter-spacing: .006em; }

/* ---- buttons ---- */
body.app .btn { border-radius: 10px; min-height: 48px; padding-inline: 1.4rem; font-weight: 600; font-size: 1rem; letter-spacing: 0;
  transition: transform .12s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease, filter .15s ease; }
body.app .btn:active:not(:disabled) { transform: scale(.97); }
body.app .btn-sm { min-height: 38px; padding-inline: .95rem; font-size: .9rem; border-radius: 8px; }
body.app .btn-lg { min-height: 56px; padding-inline: 1.8rem; font-size: 1.05rem; border-radius: 12px; }
body.app .btn-primary { border: 0; color: #FFFFFF; }
body.app .btn-primary:hover { filter: brightness(1.06); }
/* the second action: a dark outline (Airbnb "Contact us") */
body.app .btn-outline-secondary, body.app .btn-outline-dark { --bs-btn-color: var(--c-ink); --bs-btn-border-color: var(--c-ink); --bs-btn-hover-bg: var(--c-surface-2); --bs-btn-hover-color: var(--c-ink);
  --bs-btn-hover-border-color: var(--c-ink); --bs-btn-active-bg: var(--c-surface-2); --bs-btn-active-color: var(--c-ink); --bs-btn-active-border-color: var(--c-ink);
  background: transparent; border-width: 1.5px; }
body.app .btn-outline-secondary.btn-sm, body.app .dropdown-toggle.btn-outline-secondary.btn-sm { border-width: 1px; --bs-btn-border-color: var(--c-line-2); --bs-btn-hover-border-color: var(--c-ink); }
/* the quiet action: soft grey (Airbnb "Request a call") */
body.app .btn-soft, body.app .btn-light, body.app .btn-secondary { --bs-btn-bg: var(--c-soft-btn); --bs-btn-border-color: transparent; --bs-btn-color: var(--c-ink);
  --bs-btn-hover-bg: var(--c-soft-btn-h); --bs-btn-hover-border-color: transparent; --bs-btn-hover-color: var(--c-ink); --bs-btn-active-bg: var(--c-soft-btn-h); --bs-btn-active-color: var(--c-ink);
  background-color: var(--bs-btn-bg); border-radius: 12px; }
body.app .btn-dark { --bs-btn-bg: #222222; --bs-btn-border-color: #222222; --bs-btn-hover-bg: #000000; --bs-btn-hover-border-color: #000000; }
body.app .btn-link { color: var(--c-ink); font-weight: 600; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
body.app .btn-link:hover { color: var(--c-ink); text-decoration-thickness: 2px; }
/* a link that reads as an action: text + chevron (Airbnb "Browse all topics ›") */
.go-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--c-ink); text-decoration: none; }
.go-link::after { content: ""; width: .5em; height: .5em; border-inline-end: 2px solid currentColor; border-block-start: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
[dir=rtl] .go-link::after { transform: rotate(-45deg); }
.go-link:hover { text-decoration: underline; text-underline-offset: .2em; }

/* ---- bands: grey for "help us / take part", dark for the one action that matters most on the page ---- */
.band, .band-dark { position: relative; background: var(--c-band); box-shadow: 0 0 0 100vmax var(--c-band); clip-path: inset(0 -100vmax); border-top: 0 !important; padding-block: 44px !important; }
.band + .psec, .band-dark + .psec { border-top: 0; }
.band-dark { background: var(--c-band-dark); box-shadow: 0 0 0 100vmax var(--c-band-dark); color: var(--c-band-dark-ink); }
.band-dark :is(h2, h3, .h2, .h3) { color: #FFFFFF; }
.band-dark .text-body-secondary, .band-dark .small.text-body-secondary { color: rgba(255,255,255,.72) !important; }
.band-dark a:not(.btn) { color: #FFFFFF; }
body.app .band-dark .btn-outline-secondary { --bs-btn-color: #FFFFFF; --bs-btn-border-color: rgba(255,255,255,.85); --bs-btn-hover-bg: rgba(255,255,255,.1); --bs-btn-hover-color: #FFFFFF; --bs-btn-hover-border-color: #FFFFFF; --bs-btn-active-bg: rgba(255,255,255,.14); --bs-btn-active-color: #FFFFFF; }
.band-dark .act-letter { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); color: #FFFFFF; }
.band .choice, .band .mm-card { background: var(--c-surface); }
.band .choice:hover { border-color: var(--c-ink); }
@media (min-width: 992px) { .person-body .band, .person-body .band-dark { clip-path: inset(0 -100vmax 0 calc(-1 * (16px + 396px) - 100vmax)); } }

/* ---- accordions (FAQ, sources, "Show more" sections): big question, thin line, a turning chevron ---- */
:is(details.disclose, .faq-list details, .faq > details, details.acc) { border: 0; border-bottom: 1px solid var(--c-line-2); border-radius: 0; background: transparent; box-shadow: none; padding: 0; margin: 0 !important; }
:is(details.disclose, .faq-list details, .faq > details, details.acc):first-of-type { border-top: 1px solid var(--c-line-2); }
:is(details.disclose, .faq-list details, .faq > details, details.acc) > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 64px; padding: 18px 0 !important; font-size: 1.12rem; font-weight: 500; color: var(--c-ink); cursor: pointer; line-height: 1.4; }
:is(details.disclose, .faq-list details, .faq > details, details.acc) > summary::-webkit-details-marker { display: none; }
:is(details.disclose, .faq-list details, .faq > details, details.acc) > summary::after { content: ""; flex: 0 0 auto; width: 10px; height: 10px; margin-inline-end: 6px;
  border-inline-end: 2px solid currentColor; border-block-end: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .2s ease; }
:is(details.disclose, .faq-list details, .faq > details, details.acc)[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
:is(details.disclose, .faq-list details, .faq > details, details.acc) > summary:hover { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
:is(details.disclose, .faq-list details, .faq > details, details.acc) > :not(summary) { padding: 0 0 22px !important; }
.faq > details > p { padding-inline: 0 !important; }
html.ts-reduce :is(details.disclose, .faq-list details, .faq > details, details.acc) > summary::after { transition: none; }

/* ---- cards and chips a little softer ---- */
body.app .panel, body.app .card { border-color: var(--c-line); border-radius: 16px; }
.psec { border-top-color: var(--c-line); }
.face-row .img-ini { display: flex; align-items: center; justify-content: center; width: 56px; height: 70px; border-radius: 12px; font-weight: 800; color: var(--c-accent); background: color-mix(in srgb, var(--c-accent) 8%, var(--bs-body-bg)); }

/* 6.14.3 long stories: eight lines, then "Read more" (line breaks kept) */
.clamp-8 { display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-8.is-open { display: block; -webkit-line-clamp: unset; overflow: visible; }

/* 6.14.3 profile: a card under the photo that stays in view on computers */
.person-side { display: none; }
@media (min-width: 992px) {
  .person-body { position: relative; }
  .person-side { display: block; position: absolute; inset-block: 0; inset-inline-start: 16px; width: 360px; }
  .ps-card { position: sticky; top: 88px; border: 1px solid var(--c-line); border-radius: 16px; padding: 20px; background: var(--c-surface);
    box-shadow: 0 6px 16px rgba(0,0,0,.08); }
  .ps-name { font-size: 1.15rem; font-weight: 700; margin: 0 0 .15rem; color: var(--c-ink); letter-spacing: -.01em; }
  .ps-line { margin: 0; color: var(--c-muted); font-size: .92rem; }
  .ps-actions { display: grid; gap: 8px; margin: 16px 0 6px; }
  .ps-toc-h { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--c-muted); margin: 14px 0 4px; }
  [dir=rtl] .ps-toc-h { text-transform: none; letter-spacing: 0; }
  .ps-toc ul { list-style: none; margin: 0; padding: 0; }
  .ps-toc a { display: block; padding: 6px 10px; margin-inline: -10px; border-radius: 8px; color: var(--c-ink); text-decoration: none; font-size: .95rem; }
  .ps-toc a:hover { background: var(--c-surface-2); }
  .ps-toc a.is-on { background: var(--c-surface-2); font-weight: 700; box-shadow: inset 3px 0 0 var(--c-accent); }
  [dir=rtl] .ps-toc a.is-on { box-shadow: inset -3px 0 0 var(--c-accent); }
  .ps-code { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--c-line); font-size: .85rem; color: var(--c-muted); }
}
@media (min-width: 992px) { .person-side { z-index: 3; } }
/* help cards: icon on top, label right under it, all the same height */
.choice-grid { align-items: stretch; }
.choice-grid .choice { justify-content: flex-start; gap: 12px; min-height: 104px; border-radius: 14px; }
.choice-grid .choice .icon { width: 22px; height: 22px; }
@media (min-width: 992px) { .person-stick { display: none !important; } }
.feed-kicker time { color: var(--c-muted); font-weight: 500; text-transform: none; letter-spacing: 0; }
.mapchips .chip2 .icon { width: 16px; height: 16px; opacity: .75; }
/* lighter placeholders: the first letter on a soft red tint instead of a grey silhouette */
.prow-ini, .case-ph { display: flex !important; align-items: center; justify-content: center; width: 100%; height: 100%; font-weight: 800; font-size: 1.2rem;
  color: var(--c-accent); background: color-mix(in srgb, var(--c-accent) 8%, var(--bs-body-bg)) !important; }

/* 6.14.3 friendly empty states (and the old "no results" block on Names) */
.empty-state, .empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; padding: 48px 20px; border: 1px dashed var(--c-line-2); border-radius: 16px; background: var(--c-surface); }
.es-ic { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--c-surface-2); color: var(--c-muted); margin-bottom: .25rem; }
.es-ic .icon { width: 24px; height: 24px; }
.es-t { font-size: 1.1rem; font-weight: 700; margin: 0; color: var(--c-ink); }
.es-p { margin: 0 0 .5rem; color: var(--c-muted); max-width: 32rem; }
.pris-box-on, .ew-stat.is-on { border-color: var(--c-accent) !important; box-shadow: inset 0 0 0 1px var(--c-accent) !important; }

/* 6.14.4 buttons that sit beside a search box (Timeline Filters/Play, and any toolbar) are pills of the search box's
   height with the light border, like Filters on Executions/Prisoners — not the dark outline used for standalone actions */
body.app :is(.tlx-top, .sbar, .search-row, .vd-bar) > .btn { border-radius: 999px; height: calc(3.45rem + 2px); min-height: 0; padding-inline: 1.15rem; }
body.app :is(.tlx-top, .sbar, .search-row, .vd-bar) > .btn-outline-secondary { border-width: 1px; --bs-btn-border-color: var(--c-line-2); --bs-btn-hover-border-color: var(--c-ink); background: var(--c-surface); }
/* 6.14.4 the last old maroon reds → the one red */
.video-card .v-play { background: color-mix(in srgb, var(--c-accent) 92%, transparent); }
.urg-badge, .tlx-badge, .tlx-playind, .tlx-prog i { background: var(--c-accent) !important; }
.tlx-ctrls [data-tlx-stop] { background: var(--c-accent) !important; border-color: var(--c-accent) !important; }
.hub-tabs a[aria-selected=true] { border-bottom-color: var(--c-accent) !important; }

/* 6.14.4 button roles (Airbnb): inside cards, panels, sheets and menus a second action is quiet — a light 1px border,
   not the dark outline used for a standalone action in the page content */
body.app :is(.panel, .card, .ta-box, .app-dialog, .offcanvas, .dropdown-menu, .choice-grid, .video-card, .mm-card, .empty-state) .btn-outline-secondary {
  border-width: 1px; --bs-btn-border-color: var(--c-line-2); --bs-btn-hover-border-color: var(--c-ink); }
body.app .band .btn-outline-secondary { border-width: 1px; --bs-btn-border-color: var(--c-line-2); background: var(--c-surface); }

/* 6.14.7 header: Submit back to a round pill of normal height; Menu without a border */
body.app .app-submit-btn { border-radius: 999px !important; min-height: 40px !important; height: 40px; padding-inline: 1.1rem; font-size: .95rem; }
body.app .app-morebtn { border: 0 !important; box-shadow: none !important; background: transparent; }
body.app .app-morebtn:hover { background: var(--c-surface-2); }
/* Settings → Account: icon + label, never squeezed */
.set-acc .btn { gap: .5rem; white-space: nowrap; }
.set-acc .btn .icon { width: 18px; height: 18px; flex: 0 0 auto; }
.set-acc { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; }
.set-acc .btn { width: 100%; justify-content: center; padding-inline: .75rem; overflow: hidden; }
.set-acc .btn > span { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 479.98px) { .set-acc { grid-template-columns: 1fr; gap: 8px; } }

/* ===== 6.14.14 YadNam: its own dark green (the bot's branding on Telegram and X) ===== */
:root { --yn-green: #0B3B2E; --yn-green-2: #06281F; --yn-ink: #FFFFFF; --yn-soft: rgba(255,255,255,.78); }
.yadnam-band { display: flex; align-items: center; gap: 18px 22px; flex-wrap: wrap; padding: 22px 24px; border-radius: 20px; color: var(--yn-ink);
  background: radial-gradient(120% 140% at 0% 0%, #145343 0%, var(--yn-green) 45%, var(--yn-green-2) 100%); box-shadow: 0 10px 30px -18px rgba(6,40,31,.6); }
.yadnam-band .yn-logo { width: 40px; height: auto; flex: 0 0 auto; }
.yadnam-band .yn-text { flex: 1 1 260px; min-width: 0; }
.yadnam-band .yn-h { font-weight: 700; font-size: 1.15rem; margin: 0 0 2px; color: #FFFFFF; }
.yadnam-band .yn-p { margin: 0; color: var(--yn-soft); }
.yadnam-band .yn-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.yadnam-band .yn-btn, .yb-btn { display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px; font-weight: 600; }
body.app .yadnam-band .btn-light, body.app .yb .btn-light, body.app .yb-hero .btn-light, body.app .yb-end .btn-light { --bs-btn-bg: #FFFFFF; --bs-btn-color: var(--yn-green); --bs-btn-border-color: #FFFFFF; --bs-btn-hover-bg: #EAF3F0; --bs-btn-hover-color: var(--yn-green-2); --bs-btn-hover-border-color: #EAF3F0; --bs-btn-active-bg: #DCEBE6; --bs-btn-active-color: var(--yn-green-2); background-image: none; }
body.app :is(.yadnam-band, .yb-hero, .yb-end) .btn-outline-light { --bs-btn-color: #FFFFFF; --bs-btn-border-color: rgba(255,255,255,.7); --bs-btn-hover-bg: rgba(255,255,255,.12); --bs-btn-hover-color: #FFFFFF; --bs-btn-hover-border-color: #FFFFFF; --bs-btn-active-bg: rgba(255,255,255,.18); --bs-btn-active-color: #FFFFFF; background: transparent; }
.yadnam-band .yn-more { color: #FFFFFF; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding-inline: 4px; }
.yadnam-band .yn-btn .icon { width: 18px; height: 18px; }
@media (max-width: 575.98px) { .yadnam-band { padding: 18px; border-radius: 16px; } .yadnam-band .yn-logo { width: 32px; } .yadnam-band .yn-btns { width: 100%; } .yadnam-band .yn-btn { flex: 1 1 auto; justify-content: center; } }

/* footer link */
.foot-yadnam { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px 3px 8px; border-radius: 999px; background: var(--yn-green); color: #FFFFFF !important; text-decoration: none !important; font-weight: 600; line-height: 1.6; }
.foot-yadnam img { width: 12px; height: auto; }
.foot-yadnam:hover { background: var(--yn-green-2); }

/* the /bot page */
.yb-hero { color: var(--yn-ink); background: radial-gradient(90% 120% at 100% 0%, #165C49 0%, var(--yn-green) 42%, var(--yn-green-2) 100%); }
.yb-hero .breadcrumb, .yb-hero .breadcrumb a, .yb-hero .breadcrumb-item.active, .yb-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.7); }
.yb-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; font-weight: 700; letter-spacing: .01em; }
.yb-kicker img { width: 28px; height: auto; }
.yb-kicker .yb-on { font-weight: 600; font-size: .8rem; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.14); }
.yb-h1 { color: #FFFFFF; font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
[dir=rtl] .yb-h1 { letter-spacing: 0; line-height: 1.35; }
.yb-lead { font-size: 1.15rem; color: var(--yn-soft); max-width: 36em; margin-bottom: 22px; }
.yb-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.yb-btn .icon { width: 20px; height: 20px; }
.yb-handles { color: rgba(255,255,255,.6); margin: 14px 0 0; }
.yb-cap { color: rgba(255,255,255,.6); text-align: center; margin: 10px 0 0; }
.yb-chat { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 24px; background: #DCE8E4; background-image: radial-gradient(rgba(11,59,46,.08) 1px, transparent 1px); background-size: 14px 14px; max-width: 480px; margin-inline: auto; box-shadow: 0 30px 60px -30px rgba(0,0,0,.55); color: #111; }
[data-bs-theme=dark] .yb .yb-chat { background-color: #17201D; background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); color: #EDEDED; }
.yb-msg { max-width: 88%; padding: 10px 14px; border-radius: 18px; font-size: .95rem; line-height: 1.5; overflow-wrap: anywhere; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.yb-me { align-self: flex-end; background: #D9FDD3; border-end-end-radius: 6px; font-weight: 600; }
.yb-bot { align-self: flex-start; background: #FFFFFF; border-end-start-radius: 6px; max-height: 340px; overflow: hidden; position: relative; }
[data-bs-theme=dark] .yb .yb-me { background: #145343; color: #fff; }
[data-bs-theme=dark] .yb .yb-bot { background: #232B28; }
.yb-bot a { color: #1868B2; text-decoration: none; }
[data-bs-theme=dark] .yb .yb-bot a { color: #8CC2FF; }
.yb-hero .yb-bot::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40px; background: linear-gradient(transparent, #FFFFFF); }
.yb .yb-bot { max-height: none; }
.yb-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: none; }
.yb-steps li { position: relative; padding: 22px; border: 1px solid var(--c-line); border-radius: 20px; background: var(--c-surface); }
.yb-steps .yb-n { position: absolute; inset-inline-end: 18px; top: 14px; font-size: 2.6rem; font-weight: 800; color: var(--yn-green); opacity: .12; line-height: 1; }
.yb-steps .yb-ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--yn-green); color: #fff; margin-bottom: 14px; }
@media (max-width: 767.98px) { .yb-steps { grid-template-columns: 1fr; } }
.yb-icons, .yb-states, .yb-list, .yb-safe { list-style: none; padding: 0; margin: 0; }
.yb-icons li, .yb-states li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.yb-icons li:last-child, .yb-states li:last-child { border-bottom: 0; }
.yb-icons li > span { font-size: 1.6rem; line-height: 1; width: 2rem; text-align: center; }
.yb-icons div, .yb-states li { flex-direction: column; gap: 2px; }
.yb-icons div { display: flex; }
.yb-icons div span, .yb-states li span { color: var(--c-muted); }
.yb-states li { padding-inline-start: 16px; border-inline-start: 4px solid var(--c-line-2); margin-bottom: 8px; border-bottom: 0; padding-block: 8px; }
.yb-states .ys-found { border-inline-start-color: #2E8B57; }
.yb-states .ys-possible { border-inline-start-color: #D9A21B; }
.yb-states .ys-none { border-inline-start-color: #9AA5A1; }
.yb-card { padding: 22px; border: 1px solid var(--c-line); border-radius: 20px; background: var(--c-surface); display: flex; flex-direction: column; }
.yb-card-h { display: flex; align-items: center; gap: 10px; }
.yb-card-h .icon { width: 22px; height: 22px; color: var(--yn-green); }
[data-bs-theme=dark] .yb-card-h .icon { color: #6FC3A0; }
.yb-list li { position: relative; padding: 6px 0; padding-inline-start: 22px; }
.yb-list li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--yn-green); }
[data-bs-theme=dark] .yb-list li::before { background: #6FC3A0; }
.yb-go { margin-top: auto; align-self: flex-start; }
.yb-card .yb-list { margin-bottom: 18px; }
.yb-try { display: flex; gap: 8px; }
.yb-try .form-control { border-radius: 999px; }
@media (max-width: 479.98px) { .yb-try { flex-direction: column; } }
.yb-try-hint { padding: 22px; border: 1px dashed var(--c-line-2); border-radius: 18px; text-align: center; margin: 0; }
.yb #try .yb-chat { max-width: none; margin: 0; box-shadow: none; }
.yb-safe { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.yb-safe li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 16px; background: var(--c-band); }
.yb-safe .icon { width: 22px; height: 22px; flex: 0 0 auto; color: var(--yn-green); margin-top: 2px; }
[data-bs-theme=dark] .yb-safe .icon { color: #6FC3A0; }
@media (max-width: 767.98px) { .yb-safe { grid-template-columns: 1fr; } }
.yb-end { --c-band-dark: var(--yn-green); }
.yb-end .yb-btns { justify-content: center; }
body.app .yb-hero .breadcrumb a, body.app .yb-hero .breadcrumb-item.active, .yb-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.75) !important; }
body.app .yb-green { --bs-btn-bg: var(--yn-green); --bs-btn-color: #FFFFFF; --bs-btn-border-color: var(--yn-green); --bs-btn-hover-bg: var(--yn-green-2); --bs-btn-hover-color: #FFFFFF; --bs-btn-hover-border-color: var(--yn-green-2); --bs-btn-active-bg: var(--yn-green-2); --bs-btn-active-color: #FFFFFF; background-image: none; border-radius: 999px; font-weight: 600; }
[data-bs-theme=dark] body.app .yb-green, [data-bs-theme=dark] .yb-green { --bs-btn-bg: #165C49; --bs-btn-border-color: #165C49; }
body.app .yadnam-band a.yn-more { color: #FFFFFF !important; }
body.app .yadnam-band a.yn-more:hover { color: #EAF3F0 !important; }
/* 6.14.15 footer: the YadNam bot button where "Get updates on Telegram" was */
body.app .btn-yadnam { display: inline-flex; align-items: center; gap: .55rem; --bs-btn-bg: var(--yn-green); --bs-btn-color: #FFFFFF; --bs-btn-border-color: var(--yn-green); --bs-btn-hover-bg: var(--yn-green-2); --bs-btn-hover-color: #FFFFFF; --bs-btn-hover-border-color: var(--yn-green-2); --bs-btn-active-bg: var(--yn-green-2); --bs-btn-active-color: #FFFFFF; background-image: none; font-weight: 600; }
body.app .btn-yadnam img { width: 15px; height: auto; }
/* 6.14.15 the YadNam page: the short address and "More you can do" */
body.app .yb-hero a.yb-domain { color: #FFFFFF; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.yb-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 991.98px) { .yb-feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .yb-feats { grid-template-columns: 1fr; } }
.yb-feat { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--c-line); border-radius: 18px; background: var(--c-surface); color: inherit; text-decoration: none !important; position: relative; transition: border-color .2s, transform .2s; }
a.yb-feat:hover { border-color: var(--yn-green); transform: translateY(-1px); }
.yb-feat .yb-em { font-size: 1.6rem; line-height: 1; }
.yb-feat .yb-ft { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.yb-feat .yb-ft span { color: var(--c-muted); font-size: .92rem; }
.yb-feat .yb-cmd { margin-inline-start: auto; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--yn-green); color: #fff; align-self: flex-start; white-space: nowrap; }
/* 6.14.16 footer bottom row: icons, links and © on one line */
.app-footer-bottom { align-items: center; }
.app-footer-bottom > * { line-height: 1.5; }
