/* Ambarnath Shiva Mandir — Shilpavigrah temple guide
   Kumkum & Haldi theme of shilpavigrah.com (same tokens as the website). Layout: mobile-first single column, sticky header, bottom tab bar on phones,
   side rail on wide screens. */
:root {
  --kumkum: #8B1E1E;
  --kumkum-deep: #6E1515;
  --haldi: #D4A017;
  --sandstone: #F6EEDF;
  --card: #FFFBF3;
  --basalt: #2B2622;
  --verdigris: #1F5E5B;
  --muted: #6B5E52;
  --line: #E2D3B6;
  --on-kumkum: #FFF7E8;
  --haldi-soft: #F2D48A;
  --kumkum-text: #6E1616;
  --shadow: 0 1px 2px rgba(43, 38, 34, .08), 0 4px 14px rgba(43, 38, 34, .06);
  --f-display: "Marcellus", "Tiro Devanagari Marathi", Georgia, serif;
  --f-deva: "Tiro Devanagari Marathi", "Mukta", "Noto Serif Devanagari", serif;
  --f-body: "Mukta", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs: 17px;
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sandstone: #1E1A17; --card: #29231F; --basalt: #F1E7D6; --muted: #B8AA98; --line: #3D352F;
    --kumkum: #A8322C; --kumkum-deep: #7E1F1B; --verdigris: #6FB7B1; --haldi: #E2B23A;
    --shadow: 0 1px 2px rgba(0,0,0,.4); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --sandstone: #1E1A17; --card: #29231F; --basalt: #F1E7D6; --muted: #B8AA98; --line: #3D352F;
  --kumkum: #A8322C; --kumkum-deep: #7E1F1B; --verdigris: #6FB7B1; --haldi: #E2B23A;
  --shadow: 0 1px 2px rgba(0,0,0,.4); color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { font-size: var(--fs); -webkit-text-size-adjust: 100%; }
body {
  background: var(--sandstone); color: var(--basalt);
  font-family: var(--f-body); line-height: 1.6; min-height: 100%;
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}
body.lang-mr { line-height: 1.75; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--verdigris); text-underline-offset: 2px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--haldi); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.2; text-wrap: balance; margin: 0; }
body.lang-mr h1, body.lang-mr h2, body.lang-mr h3 { font-family: var(--f-deva); font-weight: 600; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0; }
.sk { font-style: italic; color: var(--muted); }

/* Header: same as the Shilpavigrah website */
.top {
  position: sticky; top: 0; z-index: 20;
  background: #8B1E1E; color: var(--on-kumkum);
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
  display: flex; align-items: center; gap: 10px;
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; min-width: 0; flex: 1; }
.brand svg { flex: none; }
.brand .bt { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.brand .b1 { font-family: "Marcellus", serif; font-size: 17px; letter-spacing: 1.5px; white-space: nowrap; }
.brand .b2 { font-size: 9.5px; letter-spacing: 2px; color: var(--haldi-soft); white-space: nowrap; }
.langbtn { background: #D4A017; color: #2B2622; border: 0; border-radius: 6px; padding: 6px 11px; min-height: 36px; font-size: 14px; cursor: pointer; flex: none; }
.langbtn[lang="mr"] { font-family: "Tiro Devanagari Marathi", serif; }
.menubtn { color: var(--on-kumkum); display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; flex: none; }
.menubtn[aria-current="page"] { background: rgba(255,247,232,.16); }
.templebar { display: block; background: var(--card); color: #8B1E1E; border-bottom: 1px solid var(--line); text-decoration: none; text-align: center; font-family: var(--f-display); font-size: 1rem; letter-spacing: .5px; padding: 5px 12px; position: sticky; top: calc(58px + env(safe-area-inset-top)); z-index: 19; }
body.lang-mr .templebar { font-family: var(--f-deva); }

/* Layout */
.shell { display: grid; grid-template-columns: 1fr; }
main { padding: 16px; max-width: 880px; width: 100%; min-width: 0; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
main > * { min-width: 0; max-width: 100%; }
.shell > * { min-width: 0; }
.rail { display: none; }
.tabs {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  background: var(--card); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 6px 4px calc(10px + env(safe-area-inset-bottom));
}
.tabs a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 48px; text-decoration: none; color: var(--muted); font-size: 11.5px; font-weight: 500; line-height: 1.1; text-align: center; padding: 6px 0;
}
.tabs a svg { width: 24px; height: 24px; }
.tabs a[aria-current="page"] { color: #8B1E1E; font-weight: 600; }
.tabs a[href="#identify"] svg { color: #8B1E1E; }
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .shell { grid-template-columns: 220px 1fr; }
  .tabs { display: none; }
  .rail { display: flex; flex-direction: column; gap: 2px; padding: 18px 10px; position: sticky; top: 64px; align-self: start; }
  .rail a { padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--basalt); }
  .rail a[aria-current="page"] { background: var(--card); color: var(--kumkum); font-weight: 600; box-shadow: var(--shadow); }
}

/* Generic blocks */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.lead { font-size: 1.08rem; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.eyebrow { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--kumkum); font-weight: 600; }
body.lang-mr .eyebrow { letter-spacing: 0; text-transform: none; }
.id { font-variant-numeric: tabular-nums; font-size: .8rem; color: var(--muted); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 8px 16px; border-radius: 8px; border: 1.5px solid var(--kumkum);
  background: var(--kumkum); color: var(--on-kumkum); text-decoration: none; cursor: pointer; font-weight: 600;
}
.btn.ghost { background: transparent; color: var(--kumkum); }
.btn.small { min-height: 36px; padding: 4px 12px; font-size: .88rem; }
.btn[disabled] { opacity: .5; cursor: default; }
.notice { border-left: 4px solid var(--haldi); background: color-mix(in srgb, var(--haldi) 12%, var(--card)); padding: 10px 12px; border-radius: 6px; font-size: .92rem; }
.notice.safety { border-left-color: var(--verdigris); background: color-mix(in srgb, var(--verdigris) 10%, var(--card)); }
.pending { font-style: italic; color: var(--muted); }

/* Hero */
.hero { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--basalt); }
.hero img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; opacity: .92; }
.hero .cap { position: absolute; inset: auto 0 0 0; padding: 48px 16px 14px; background: linear-gradient(transparent, rgba(20, 14, 10, .85)); color: #FFF7EA; display: flex; flex-direction: column; gap: 4px; }
.hero h1 { font-size: 1.7rem; }
.hero .mr { font-family: var(--f-deva); font-size: 1.2rem; }
@media (min-width: 700px) { .hero img { aspect-ratio: 16 / 9; } .hero h1 { font-size: 2.2rem; } }

/* Home grid */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-decoration: none; color: var(--basalt);
  display: flex; flex-direction: column; gap: 6px; min-height: 104px;
}
.tile b { font-family: var(--f-display); font-weight: 400; font-size: 1.05rem; color: var(--kumkum); }
body.lang-mr .tile b { font-family: var(--f-deva); font-weight: 600; }
.tile span { font-size: .85rem; color: var(--muted); line-height: 1.35; }
.tile.primary { grid-column: 1 / -1; background: var(--kumkum); color: var(--on-kumkum); border-color: var(--kumkum); flex-direction: row; align-items: center; justify-content: space-between; min-height: 72px; }
.tile.primary b { color: var(--on-kumkum); font-size: 1.2rem; }
.tile.primary span { color: var(--on-kumkum); opacity: .9; }
.langpick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.langpick button { min-height: 56px; font-size: 1.1rem; border-radius: var(--radius); border: 1.5px solid var(--kumkum); background: var(--card); color: var(--kumkum); cursor: pointer; }
.langpick button[aria-pressed="true"] { background: var(--kumkum); color: var(--on-kumkum); }

/* Confidence labels */
.lbl { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; border: 1.5px solid currentColor; white-space: nowrap; }
.lbl::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.lbl.documented { color: var(--verdigris); }
.lbl.scholarly { color: var(--verdigris); }
.lbl.scholarly::before { background: transparent; border: 2px solid currentColor; width: 5px; height: 5px; }
.lbl.traditional { color: #8A6A10; }
.lbl.probable { color: #8A6A10; }
.lbl.tentative { color: #B0461F; }
.lbl.disputed { color: var(--kumkum); }
.lbl.unidentified { color: var(--muted); }
:root[data-theme="dark"] .lbl.traditional, :root[data-theme="dark"] .lbl.probable { color: var(--haldi); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lbl.traditional, :root:not([data-theme="light"]) .lbl.probable { color: var(--haldi); } :root:not([data-theme="light"]) .lbl.tentative { color: #E58A5E; } }
:root[data-theme="dark"] .lbl.tentative { color: #E58A5E; }

/* Gallery */
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.chip { flex: none; border: 1.5px solid var(--line); background: var(--card); color: var(--basalt); border-radius: 999px; padding: 6px 14px; min-height: 38px; cursor: pointer; font-size: .9rem; }
.chip[aria-pressed="true"] { border-color: var(--kumkum); background: var(--kumkum); color: var(--on-kumkum); }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.gcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--basalt); display: flex; flex-direction: column; }
.gcard img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--line); }
.gcard .gb { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.gcard .gt { font-weight: 600; line-height: 1.3; font-size: .95rem; }

/* Entry pages */
.figure { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--basalt); }
.figure img { width: auto; max-width: 100%; max-height: 78vh; object-fit: contain; margin: 0 auto; }
.figure .zoom { position: absolute; right: 10px; bottom: 10px; background: rgba(20,14,10,.7); color: #FFF7EA; border: 0; border-radius: 999px; min-height: 40px; padding: 6px 14px; cursor: pointer; }
.figure .tp { position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; background: var(--haldi); color: #2B2622; font-weight: 700; font-size: .85rem; border: 2px solid #FFF7EA; display: grid; place-items: center; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.4); padding: 0; }
.figure .tp[aria-pressed="true"] { background: #FFF7EA; outline: 3px solid var(--haldi); }
.figure.notp .tp { display: none; }
figcaption { font-size: .82rem; color: var(--muted); padding-top: 6px; }
.taplist { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.taplist li { display: flex; gap: 10px; align-items: center; padding: 4px 6px; border-radius: 6px; }
.taplist li.on { background: color-mix(in srgb, var(--haldi) 22%, transparent); }
.taplist .n { width: 24px; height: 24px; border-radius: 50%; background: var(--haldi); color: #2B2622; font-weight: 700; font-size: .78rem; display: grid; place-items: center; flex: none; }
dl.facts { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0; }
dl.facts dt { font-size: .8rem; font-weight: 600; color: var(--kumkum); }
dl.facts dd { margin: 2px 0 0; }
details.more { border-top: 1px solid var(--line); padding-top: 10px; }
details.more > summary { cursor: pointer; font-weight: 600; color: var(--kumkum); min-height: 40px; display: flex; align-items: center; list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "+"; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--kumkum); margin-right: 8px; font-weight: 700; }
details.more[open] > summary::before { content: "−"; }
details.more > div { display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.srcs { margin: 0; padding-left: 18px; font-size: .88rem; }
.pager { display: flex; justify-content: space-between; gap: 8px; }
.pager a { flex: 1; }

/* Audio */
.audio { display: flex; flex-direction: column; gap: 8px; }
.audio .seg { display: inline-flex; border: 1.5px solid var(--verdigris); border-radius: 999px; overflow: hidden; align-self: flex-start; }
.audio .seg button { border: 0; background: transparent; color: var(--verdigris); padding: 4px 14px; min-height: 36px; cursor: pointer; }
.audio .seg button[aria-pressed="true"] { background: var(--verdigris); color: var(--card); font-weight: 600; }
.player { display: flex; align-items: center; gap: 10px; }
.player button.play { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--verdigris); color: var(--card); cursor: pointer; display: grid; place-items: center; flex: none; }
.player input[type=range] { flex: 1; accent-color: var(--verdigris); min-width: 0; }
.player .tm { font-variant-numeric: tabular-nums; font-size: .82rem; color: var(--muted); min-width: 84px; text-align: right; }

/* Tour */
.progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--haldi); }
ol.stops { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
ol.stops a { display: grid; grid-template-columns: 40px 64px 1fr; gap: 12px; align-items: center; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--basalt); }
ol.stops .num { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--kumkum); color: var(--kumkum); display: grid; place-items: center; font-weight: 700; font-variant-numeric: tabular-nums; }
ol.stops .done .num { background: var(--kumkum); color: var(--on-kumkum); }
ol.stops img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
ol.stops .st { display: flex; flex-direction: column; min-width: 0; }
ol.stops .st b { font-weight: 600; line-height: 1.3; }

/* Map */
.mapwrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; overflow-x: auto; }
.mapbox { position: relative; min-width: 560px; }
.mapbox svg { width: 100%; height: auto; display: block; }
.mk { position: absolute; transform: translate(-50%, -50%); min-width: 30px; height: 30px; padding: 0 6px; border-radius: 999px; border: 2px solid #FFF7EA; background: var(--kumkum); color: #FFF7EA; font-weight: 700; font-size: .82rem; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.35); display: grid; place-items: center; }
.mk.sculpture { background: var(--haldi); color: #2B2622; }
.mk.approx { border-style: dashed; }
.mk[aria-pressed="true"] { outline: 3px solid var(--haldi); }
.mappop { display: flex; gap: 12px; align-items: center; }
.mappop img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; flex: none; }
table.list { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.list th, table.list td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { font-size: .8rem; color: var(--muted); font-weight: 600; }
.tablewrap { overflow-x: auto; }

/* Timeline */
ol.tl { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--haldi); display: flex; flex-direction: column; gap: 14px; }
ol.tl li { position: relative; display: flex; flex-direction: column; gap: 4px; }
ol.tl li::before { content: ""; position: absolute; left: -25px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 2px solid var(--kumkum); }
ol.tl .when { font-weight: 700; color: var(--kumkum); font-variant-numeric: tabular-nums; }
.pair { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .pair { grid-template-columns: 1fr 1fr; } }
.pair figure { margin: 0; }
.pair img { border-radius: 8px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(12, 9, 7, .95); display: none; flex-direction: column; }
.lb.on { display: flex; }
.lb .lbbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; color: #FFF7EA; }
.lb .lbbar button { background: transparent; color: #FFF7EA; border: 1.5px solid rgba(255,247,234,.6); border-radius: 999px; min-width: 44px; min-height: 44px; cursor: pointer; }
.lb .lbview { flex: 1; overflow: auto; touch-action: pan-x pan-y pinch-zoom; }
.lb .lbview img { max-width: none; margin: auto; transition: width .15s ease; }
@media (prefers-reduced-motion: reduce) { .lb .lbview img { transition: none; } }

.offline { display: flex; align-items: center; gap: 8px; font-size: .85rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.ok { background: #2E7D4F; }
.glo { display: grid; grid-template-columns: 1fr; gap: 0; }
.glo div { display: grid; grid-template-columns: minmax(110px, 30%) 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.glo b { font-weight: 600; }
.glo .dv { font-family: var(--f-deva); color: var(--muted); display: block; font-size: .9rem; }
.legend { display: grid; grid-template-columns: 1fr; gap: 8px; }
.legend div { display: grid; grid-template-columns: 150px 1fr; gap: 10px; align-items: start; }
@media (max-width: 420px) { .legend div { grid-template-columns: 1fr; gap: 2px; } }
.skip { position: absolute; left: -999px; top: 0; background: var(--haldi); color: #2B2622; padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }

/* v1.1 */
.feat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .feat { grid-template-columns: repeat(5, 1fr); } }
.feat .gcard img { aspect-ratio: 1 / 1; }
.hero .couple { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 3px solid #E8C35A; margin-bottom: 6px; }
.mapbox { min-width: 0; }
.mapbox.z2 { width: 220%; }
.mapwrap { max-height: 82vh; overflow: auto; }
.mapbox svg .pt { cursor: pointer; }
.mapbox svg .pt:focus { outline: none; }
.mapbox svg .pt:focus-visible circle, .mapbox svg .pt:focus-visible rect { stroke: var(--haldi); stroke-width: 18; }
.legend2 { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); }
.legend2 span { display: inline-flex; align-items: center; gap: 6px; }
.legend2 i { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1px solid #888; font-style: normal; font-size: 10px; color: #2B2622; }
.splash { position: fixed; inset: 0; z-index: 60; display: none; background: #2B2622 center / cover no-repeat; }
.splash.on { display: flex; }
.splash .spl-in { margin-top: auto; width: 100%; padding: 80px 20px calc(28px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(20, 14, 10, .92) 40%); color: #FFF7EA; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.splash h1 { font-size: 2rem; }
.splash .spl-pre { font-size: .82rem; letter-spacing: .05em; color: #E8C35A; }
.splash .spl-mr { font-family: var(--f-deva); font-size: 1.4rem; margin: 0; }
.splash .spl-names { font-size: 1rem; margin: 4px 0 10px; }
.splash .spl-names span { font-family: var(--f-deva); }
.splash .couple.big { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; border: 4px solid #E8C35A; }
.splash .langpick { width: min(360px, 100%); }
.splash .langpick button { background: rgba(255, 247, 234, .1); color: #FFF7EA; border-color: #E8C35A; }

/* v1.2: Shilpavigrah links, identification */
.svstrip, .idstrip { display: flex; align-items: center; gap: 12px; background: #D4A017; color: #8B1E1E; text-decoration: none; padding: 14px; border-radius: var(--radius); }
.svstrip .st, .idstrip .st { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.svstrip b, .idstrip b { font-family: var(--f-display); font-weight: 400; font-size: 1.1rem; }
body.lang-mr .svstrip b, body.lang-mr .idstrip b { font-family: var(--f-deva); font-weight: 600; }
.svstrip .small, .idstrip .small { color: var(--kumkum-text); }
.idstrip { background: #2B2622; color: #FFF7E8; }
.idstrip svg { color: #D4A017; flex: none; }
.idstrip .small { color: #EADFCB; }
.idpick { align-items: stretch; }
.btn.big { min-height: 56px; font-size: 1.1rem; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
label.btn { cursor: pointer; text-align: center; }
ul.ticks { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 4px; }
.idbusy { align-items: center; text-align: center; }
.idq { max-height: 260px; width: auto; border-radius: 8px; margin: 0 auto; }
.idres { border-width: 2px; }
.idres.sure { border-color: #1F5E5B; }
.idres.maybe { border-color: #D4A017; }
.idres.unsure { border-color: #8B1E1E; }
.badge { align-self: flex-start; font-size: .82rem; font-weight: 600; letter-spacing: .02em; padding: 3px 10px; border-radius: 6px; }
.badge.ok { background: #1F5E5B; color: #FFF7E8; }
.badge.warn { background: #D4A017; color: #2B2622; }
.badge.no { background: #8B1E1E; color: #FFF7E8; }
.idpair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.idpair figure { margin: 0; }
.idpair img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; background: var(--line); }
.idpair figcaption { font-size: .78rem; color: var(--muted); text-align: center; }
.idcand { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.idcand h2 { font-size: 1.15rem; }
.idfrom { border-left: 4px solid #1F5E5B; }
.moreph { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.moreph button { padding: 0; border: 1px solid var(--line); border-radius: 6px; background: none; cursor: zoom-in; overflow: hidden; }
.moreph img { width: 84px; height: 84px; object-fit: cover; }
code { font-size: .9em; background: var(--sandstone); padding: 1px 5px; border-radius: 4px; }
@media (min-width: 900px) { .templebar { top: 58px; } .rail { top: 104px; } }
.idbusy .progress { width: 100%; }
