/* atlas.css: the travel tools, country guides, visa map and "Where to next?" (15 Nov 2026).
   Shared by tools.php, country.php, visa.php, where.php and the other tool pages. Every colour comes
   from the site's own tokens (tratok_aurora.css), so the light theme needs only the few lines at the end. */

/* ── Flags: one image of 199 flags, twenty to a row, 32 by 24 px each (images/flags.webp). --fx / --fy are the
      column and the row, set by atlasFlag(); --fs scales the flag. ── */
.t-flag { --fs: 1; display: inline-block; flex: none; width: calc(32px * var(--fs)); height: calc(24px * var(--fs)); border-radius: calc(4px * var(--fs));
    background: url(../images/flags.webp?v=1) no-repeat; background-size: calc(640px * var(--fs)) calc(240px * var(--fs));
    background-position: calc(var(--fx) * -32px * var(--fs)) calc(var(--fy) * -24px * var(--fs)); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); vertical-align: middle; }
.t-flag--sm { --fs: .75; }
.t-flag--lg { --fs: 1.75; }
.t-flag--xl { --fs: 2.5; }

/* ── Page shell ── */
.atl-shell { max-width: 1080px; margin: 0 auto; padding: 14px 16px 8px; }
.atl-head { display: flex; align-items: flex-start; gap: 12px; margin: 4px 0 16px; }
.atl-back { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-inline-start: -8px; border-radius: 50%; color: var(--ink-200); text-decoration: none; }
.atl-back:hover { background: var(--glass-2); color: var(--ink-100); }
.atl-back:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
[dir="rtl"] .atl-back i { transform: scaleX(-1); }
.atl-head-text { flex: 1 1 auto; min-width: 0; }
.atl-head h1 { margin: 6px 0 4px; font-size: 1.45rem; line-height: 1.2; letter-spacing: -.01em; color: var(--ink-100); overflow-wrap: anywhere; }
.atl-head p { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--ink-400); }
.atl-card { margin: 0 0 14px; padding: 16px; border-radius: 18px; border: 1px solid var(--glass-border); background: linear-gradient(180deg, var(--bg-raised) 0%, var(--bg-base) 100%); }
.atl-card > h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 1.02rem; line-height: 1.3; color: var(--ink-100); }
.atl-card > h2 > i { flex: none; width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); font-size: .9rem; }
.atl-note { margin: 12px 0 0; font-size: .76rem; line-height: 1.5; color: var(--ink-500); }
.atl-note a { color: inherit; text-decoration: underline; }
.atl-empty { padding: 28px 16px; text-align: center; color: var(--ink-400); font-size: .92rem; line-height: 1.5; }
.atl-empty i { display: block; margin-bottom: 10px; font-size: 1.6rem; color: var(--ink-500); }

/* A labelled picker (passport, country): the label above, the site's own dropdown below. */
.atl-pick { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.atl-pick > label, .atl-pick > span.atl-pick-l { font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-400); }
.atl-pick select, .atl-pick .tsel-btn { width: 100%; min-height: 48px; }

/* Small rounded labels. */
.atl-tag { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--glass-border); background: var(--glass-2);
    color: var(--ink-200); font-size: .76rem; font-weight: 600; line-height: 1.35; }
.atl-tag i { flex: none; font-size: .72rem; }
.atl-tag--free { border-color: color-mix(in srgb, var(--vm-free) 55%, transparent); background: color-mix(in srgb, var(--vm-free) 14%, transparent); color: var(--vm-free-ink); }
.atl-tag--arrival { border-color: color-mix(in srgb, var(--vm-arrival) 55%, transparent); background: color-mix(in srgb, var(--vm-arrival) 14%, transparent); color: var(--vm-arrival-ink); }
.atl-tag--online { border-color: color-mix(in srgb, var(--vm-online) 55%, transparent); background: color-mix(in srgb, var(--vm-online) 14%, transparent); color: var(--vm-online-ink); }
.atl-tag--required { border-color: color-mix(in srgb, var(--vm-required) 55%, transparent); background: color-mix(in srgb, var(--vm-required) 14%, transparent); color: var(--vm-required-ink); }
.atl-tag--noadm, .atl-tag--none { color: var(--ink-400); }
.atl-tag--home { border-color: color-mix(in srgb, var(--vm-home) 55%, transparent); background: color-mix(in srgb, var(--vm-home) 14%, transparent); color: var(--vm-home-ink); }

:root { --vm-free: #10B981; --vm-arrival: #38BDF8; --vm-online: #F59E0B; --vm-required: #F43F5E; --vm-noadm: #64748B; --vm-home: #A78BFA;
        --vm-free-ink: #6EE7B7; --vm-arrival-ink: #7DD3FC; --vm-online-ink: #FCD34D; --vm-required-ink: #FDA4AF; --vm-home-ink: #C4B5FD; }

/* ── The tools page ── */
.tt-group { margin: 22px 0 10px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-400); }
.tt-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tt-tool { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px; border-radius: 16px; border: 1px solid var(--glass-border); background: var(--bg-raised);
    color: inherit; text-decoration: none; transition: border-color .15s ease, transform .15s ease, background-color .15s ease; }
.tt-tool:hover { border-color: var(--glass-border-hi); background: var(--bg-elevated); color: inherit; }
.tt-tool:active { transform: scale(.985); }
.tt-tool:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.tt-ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; color: #fff; background: var(--grad-fill); }
.tt-ic--b { background: linear-gradient(135deg, #0E7490, #2563EB); }
.tt-ic--c { background: linear-gradient(135deg, #047857, #0E7490); }
.tt-ic--d { background: linear-gradient(135deg, #6D28D9, #BE185D); }
.tt-ic--e { background: linear-gradient(135deg, #B45309, #BE123C); }
.tt-txt { flex: 1 1 auto; min-width: 0; }
.tt-txt b { display: block; font-size: .98rem; line-height: 1.3; color: var(--ink-100); }
.tt-txt span { display: block; margin-top: 2px; font-size: .82rem; line-height: 1.4; color: var(--ink-400); }
.tt-go { flex: none; color: var(--ink-500); font-size: .8rem; }
[dir="rtl"] .tt-go { transform: scaleX(-1); }
.tt-find { display: grid; grid-template-columns: 1fr; gap: 10px; }

/* ── Country guide ── */
.cg-hero { display: flex; align-items: center; gap: 14px; margin: 2px 0 14px; }
.cg-hero-text { min-width: 0; }
.cg-hero h1 { margin: 0 0 4px; font-size: 1.6rem; line-height: 1.15; letter-spacing: -.01em; color: var(--ink-100); overflow-wrap: anywhere; }
.cg-hero p { margin: 0; font-size: .9rem; color: var(--ink-400); }
.cg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.cg-rows { margin: 0; padding: 0; list-style: none; }
.cg-row { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 12px; padding: 12px 0; border-top: 1px solid var(--glass-border); }
.cg-row:first-child { border-top: 0; padding-top: 2px; }
.cg-row:last-child { padding-bottom: 2px; }
.cg-row > i { grid-row: 1 / span 2; margin-top: 3px; text-align: center; color: var(--ink-400); font-size: .95rem; }
.cg-k { font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-400); }
.cg-v { min-width: 0; margin-top: 3px; font-size: .95rem; line-height: 1.5; color: var(--ink-100); overflow-wrap: anywhere; }
.cg-v small { display: block; margin-top: 2px; font-size: .82rem; color: var(--ink-400); }
.cg-v b { font-weight: 800; }
.cg-v .ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.cg-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 2px; color: var(--brand); font-size: .9rem; font-weight: 700; text-decoration: none; }
.cg-link--row { display: flex; width: max-content; max-width: 100%; }
.cg-link:hover { text-decoration: underline; color: var(--brand); }
.cg-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
[dir="rtl"] .cg-link i.fa-arrow-right { transform: scaleX(-1); }
.cg-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; line-height: 1.4; background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--vm-free-ink); }
.cg-pill--parts { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--vm-online-ink); }
.cg-pill--all { background: color-mix(in srgb, var(--bad) 18%, transparent); color: var(--vm-required-ink); }
.cg-hol { margin: 0; padding: 0; list-style: none; }
.cg-hol li { display: flex; gap: 12px; padding: 5px 0; font-size: .92rem; line-height: 1.45; color: var(--ink-100); }
.cg-hol time { flex: none; min-width: 92px; color: var(--ink-400); font-variant-numeric: tabular-nums; }
.cg-acts { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
.cg-acts .t-btn { width: 100%; min-height: 48px; white-space: normal; text-align: center; line-height: 1.25; }
.cg-cover { margin: 10px 0 0; font-size: .9rem; font-weight: 700; color: var(--vm-free-ink); }
.cg-wx-sub { margin: -4px 0 4px; font-size: .86rem; color: var(--ink-400); }
.cg-two { display: grid; grid-template-columns: 1fr; gap: 0; }

/* ── Visa map ── */
.vm-top { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 14px; }
.vm-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.vm-stat { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--glass-border); background: var(--bg-raised); }
.vm-stat b { flex: none; min-width: 2ch; font-size: 1.3rem; font-weight: 800; line-height: 1; color: var(--ink-100); font-variant-numeric: tabular-nums; }
.vm-stat span { min-width: 0; font-size: .8rem; line-height: 1.3; color: var(--ink-300); overflow-wrap: anywhere; }
.vm-dot { flex: none; width: 12px; height: 12px; border-radius: 4px; background: var(--ink-500); }
.vm-dot--free { background: var(--vm-free); } .vm-dot--arrival { background: var(--vm-arrival); } .vm-dot--online { background: var(--vm-online); }
.vm-dot--required { background: var(--vm-required); } .vm-dot--noadm { background: var(--vm-noadm); } .vm-dot--home { background: var(--vm-home); }
.vm-mapcard { padding: 0; overflow: hidden; }
.vm-map { --wm-land: rgba(148,163,184,.16); --wm-line: rgba(148,163,184,.30); --wm-pick: #F8FAFC; --wm-dot: rgba(148,163,184,.6);
    width: 100%; height: 250px; background: transparent; outline: 0; }
.vm-map.leaflet-container { background: transparent; font: inherit; }
.vm-map .leaflet-control-zoom a { width: 36px; height: 36px; line-height: 36px; background: var(--bg-elevated); color: var(--ink-100); border-color: var(--glass-border); }
.vm-map .leaflet-control-zoom { border: 1px solid var(--glass-border); border-radius: 10px; overflow: hidden; box-shadow: none; }
.vm-map .leaflet-interactive:focus { outline: none; }
.vm-map .leaflet-tooltip { border: 0; border-radius: 8px; background: #0B0F1C; color: #F8FAFC; font-size: .78rem; font-weight: 600; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.vm-map .leaflet-tooltip::before { display: none; }
.vm-pickbar { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 12px 14px; border-top: 1px solid var(--glass-border); }
.vm-pickbar[hidden] { display: none; }
.vm-pick-text { flex: 1 1 auto; min-width: 0; }
.vm-pick-text b { display: block; font-size: .98rem; line-height: 1.3; color: var(--ink-100); overflow-wrap: anywhere; }
.vm-pick-text span { display: block; margin-top: 2px; font-size: .84rem; line-height: 1.4; color: var(--ink-300); }
.vm-pickbar .t-btn { flex: none; min-height: 44px; }
.vm-hint { margin: 0; padding: 14px; border-top: 1px solid var(--glass-border); font-size: .84rem; color: var(--ink-400); text-align: center; }
.vm-search { position: relative; margin: 0 0 12px; }
.vm-search i { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-500); pointer-events: none; }
.vm-search input { padding-inline-start: 40px; min-height: 48px; font-size: 16px; }
.vm-group { margin: 0 0 14px; border-radius: 16px; border: 1px solid var(--glass-border); background: var(--bg-raised); overflow: hidden; }
.vm-group[hidden] { display: none; }
.vm-group > summary { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 14px; cursor: pointer; list-style: none; font-size: .95rem; font-weight: 700; color: var(--ink-100); -webkit-tap-highlight-color: transparent; }
.vm-group > summary::-webkit-details-marker { display: none; }
.vm-group > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; border-radius: 16px; }
.vm-group > summary .n { margin-inline-start: auto; padding: 2px 9px; border-radius: 999px; background: var(--glass-2); color: var(--ink-300); font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.vm-group > summary .chev { flex: none; color: var(--ink-500); font-size: .75rem; transition: transform .2s ease; }
.vm-group[open] > summary .chev { transform: rotate(180deg); }
.vm-list { margin: 0; padding: 0 6px 8px; list-style: none; display: grid; grid-template-columns: 1fr; }
.vm-list li[hidden] { display: none; }
.vm-list a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 8px; border-radius: 10px; color: var(--ink-100); text-decoration: none; font-size: .93rem; line-height: 1.3; }
.vm-list a:hover { background: var(--glass-2); color: var(--ink-100); }
.vm-list a:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.vm-list .nm { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.vm-list .d { flex: none; color: var(--ink-400); font-size: .8rem; white-space: nowrap; }
.vm-nomatch { margin: 0 0 14px; }

/* ── Where to next? ── */
.wn-months { display: flex; gap: 8px; margin: 0 -16px 12px; padding: 2px 16px 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.wn-months::-webkit-scrollbar { display: none; }
.wn-month { flex: none; min-width: 64px; min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--glass-border);
    background: var(--bg-raised); color: var(--ink-200); font-size: .88rem; font-weight: 600; text-decoration: none; white-space: nowrap; scroll-snap-align: center; }
.wn-month:hover { border-color: var(--glass-border-hi); color: var(--ink-100); }
.wn-month.is-on { border-color: transparent; background: var(--ink-100); color: var(--bg-base); font-weight: 800; }
.wn-month:focus-visible, .wn-filter:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.wn-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.wn-filter { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--glass-border); background: var(--bg-raised);
    color: var(--ink-200); font-size: .86rem; font-weight: 600; text-decoration: none; }
.wn-filter:hover { border-color: var(--glass-border-hi); color: var(--ink-100); }
.wn-filter.is-on { border-color: var(--brand); background: var(--brand-soft); color: var(--ink-100); }
.wn-filter.is-on i { color: var(--brand); }
.wn-count { margin: 0 0 10px; font-size: .84rem; color: var(--ink-400); }
.wn-list { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0; padding: 0; list-style: none; }
.wn-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 12px; align-items: center; padding: 14px; border-radius: 16px; border: 1px solid var(--glass-border);
    background: var(--bg-raised); color: inherit; text-decoration: none; transition: border-color .15s ease, background-color .15s ease; }
.wn-item:hover { border-color: var(--glass-border-hi); background: var(--bg-elevated); color: inherit; }
.wn-item:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.wn-main { min-width: 0; }
.wn-main b { display: block; font-size: 1rem; line-height: 1.3; color: var(--ink-100); overflow-wrap: anywhere; }
.wn-main .wx { display: block; margin-top: 3px; font-size: .84rem; line-height: 1.45; color: var(--ink-300); }
.wn-main .wx .ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.wn-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.wn-score { flex: none; width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.wn-score--great { background: color-mix(in srgb, #FBBF24 22%, transparent); color: #FBBF24; }
.wn-score--good { background: color-mix(in srgb, #34D399 20%, transparent); color: #34D399; }
.wn-score--fair { background: var(--glass-2); color: var(--ink-400); }
.wn-more { display: flex; justify-content: center; margin: 14px 0 0; }
.wn-top { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 12px; }
.wn-map { height: 204px; }

/* The weather chart on the guide is the stay page's own (styles/hospitality_view.css, "Best time to visit"),
   built by the same script. Its rules are repeated here so the guide does not load that page's whole sheet. */
.hv-bt-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.hv-bt-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 1.02rem; line-height: 1.3; color: var(--ink-100); }
.hv-bt-head h2 > i { flex: none; width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); font-size: .9rem; }
.hv-bt-unit { display: inline-flex; flex: none; padding: 3px; border-radius: 999px; border: 1px solid var(--glass-2); background: rgba(255,255,255,.04); }
.hv-bt-unit button { min-width: 42px; min-height: 34px; padding: 0 10px; border: 0; border-radius: 999px; background: none; color: var(--ink-300); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hv-bt-unit button[aria-pressed="true"] { background: var(--ink-100); color: var(--bg-base); }
.hv-bt-unit button:focus-visible, .hv-bt .bt-m:focus-visible { outline: 2px solid var(--ink-100); outline-offset: 2px; }
.hv-bt-best { margin: 2px 0 14px; font-size: .96rem; font-weight: 700; line-height: 1.4; color: #FFC857; }
.hv-bt-best[hidden] { display: none; }
.hv-bt-chart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2px; min-height: 196px; margin-top: 10px; }
.hv-bt .bt-m { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; padding: 8px 0 12px; border: 0; border-radius: 12px; background: none; color: var(--ink-200); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hv-bt .bt-m.is-best { background: rgba(245,166,35,.11); }
.hv-bt .bt-m.is-sel { box-shadow: inset 0 0 0 1.5px var(--ink-400); }
.hv-bt .bt-m.is-best.is-sel { box-shadow: inset 0 0 0 1.5px #F5A623; }
.hv-bt .bt-hi, .hv-bt .bt-lo { white-space: nowrap; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.hv-bt-unit button, .hv-bt .bt-hi, .hv-bt .bt-lo { direction: ltr; unicode-bidi: isolate; }
.hv-bt .bt-hi { font-size: .74rem; font-weight: 800; color: var(--ink-100); }
.hv-bt .bt-lo { font-size: .7rem; font-weight: 600; color: var(--ink-400); }
.hv-bt-chart.is-tight .bt-hi { font-size: .64rem; }
.hv-bt-chart.is-tight .bt-lo { font-size: .62rem; }
.hv-bt .bt-hi i, .hv-bt .bt-lo i { font-style: normal; }
@media (max-width: 359px) { .hv-bt-chart { gap: 1px; } .hv-bt-chart.is-tight .bt-hi i, .hv-bt-chart.is-tight .bt-lo i { display: none; } }
.hv-bt .bt-track { position: relative; width: 8px; height: 84px; border-radius: 999px; background: rgba(255,255,255,.07); }
.hv-bt .bt-bar { position: absolute; left: 0; right: 0; border-radius: 999px; }
.hv-bt .bt-rain { display: flex; align-items: flex-end; width: 8px; height: 22px; margin-top: 2px; border-radius: 3px; background: rgba(56,189,248,.12); overflow: hidden; }
.hv-bt .bt-rain i { display: block; width: 100%; border-radius: 3px 3px 0 0; background: #38BDF8; }
.hv-bt .bt-name { position: relative; font-size: .74rem; font-weight: 700; line-height: 1.1; color: var(--ink-300); }
.hv-bt .bt-m.is-best .bt-name { color: #FFC857; }
.hv-bt .bt-m.is-now .bt-name::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--ink-100); }
.hv-bt-detail { margin: 12px 0 0; padding: 10px 12px; min-height: 2.9em; border-radius: 12px; background: rgba(255,255,255,.045); color: var(--ink-100); font-size: .88rem; line-height: 1.45; }
.hv-bt-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0 0; font-size: .74rem; color: var(--ink-400); }
.hv-bt-legend span { display: inline-flex; align-items: center; gap: 6px; }
.hv-bt-legend i { display: inline-block; flex: none; }
.hv-bt-legend .lg-best { width: 12px; height: 12px; border-radius: 4px; background: rgba(245,166,35,.3); border: 1px solid rgba(245,166,35,.75); }
.hv-bt-legend .lg-temp { width: 6px; height: 14px; border-radius: 999px; background: linear-gradient(to top, #38BDF8, #FBBF24); }
.hv-bt-legend .lg-rain { width: 6px; height: 10px; border-radius: 2px 2px 0 0; background: #38BDF8; }
.hv-bt-legend .lg-now { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-100); }
.hv-bt:not(.has-best) .lg-best-wrap { display: none; }
.hv-bt-note { margin: 10px 0 0; font-size: .74rem; line-height: 1.5; color: var(--ink-500); }
.hv-bt:not(.is-ready) .hv-bt-unit, .hv-bt:not(.is-ready) .hv-bt-detail, .hv-bt:not(.is-ready) .hv-bt-legend, .hv-bt:not(.is-ready) .hv-bt-note { visibility: hidden; }

@media (min-width: 560px) {
    .atl-shell { padding: 22px 24px 8px; }
    .atl-head h1 { font-size: 1.8rem; }
    .atl-card { padding: 22px 24px; }
    .tt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .tt-find { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vm-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .vm-map { height: 340px; }
    .wn-map { height: 300px; }
    .vm-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8px; }
    .cg-hero h1 { font-size: 2rem; }
    .cg-acts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wn-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .hv-bt-chart { gap: 4px; }
    .hv-bt .bt-hi, .hv-bt-chart.is-tight .bt-hi { font-size: .82rem; }
    .hv-bt .bt-lo, .hv-bt-chart.is-tight .bt-lo { font-size: .76rem; }
    .hv-bt .bt-track, .hv-bt .bt-rain { width: 10px; }
    .hv-bt .bt-name { font-size: .8rem; }
}
@media (min-width: 900px) {
    .tt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .vm-top { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); align-items: end; }
    .vm-map { height: 440px; }
    .wn-map { height: 380px; }
    .vm-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cg-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
    .cg-cols > div > .atl-card:last-child { margin-bottom: 14px; }
    .wn-top { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); align-items: end; }
    .wn-months { margin: 0 0 12px; padding: 2px 0 6px; flex-wrap: wrap; overflow: visible; }
    .wn-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .tt-tool, .wn-item, .vm-group > summary .chev { transition: none; } }

/* ── Light theme: the tokens do most of it; these are the colours chosen for a dark page. ── */
:root[data-theme="light"] { --vm-free: #059669; --vm-arrival: #0284C7; --vm-online: #D97706; --vm-required: #E11D48; --vm-noadm: #64748B; --vm-home: #7C3AED;
        --vm-free-ink: #047857; --vm-arrival-ink: #0369A1; --vm-online-ink: #B45309; --vm-required-ink: #BE123C; --vm-home-ink: #6D28D9; }
:root[data-theme="light"] .vm-map { --wm-land: rgba(100,116,139,.20); --wm-line: rgba(100,116,139,.40); --wm-pick: #0F172A; --wm-dot: rgba(100,116,139,.7); }
:root[data-theme="light"] .t-flag { box-shadow: inset 0 0 0 1px rgba(15,23,42,.16); }
:root[data-theme="light"] .wn-score--great { background: rgba(217,119,6,.14); color: #B45309; }
:root[data-theme="light"] .wn-score--good { background: rgba(5,150,105,.12); color: #047857; }
:root[data-theme="light"] .hv-bt-unit { background: rgba(15,23,42,.04); }
:root[data-theme="light"] .hv-bt-best, :root[data-theme="light"] .hv-bt .bt-m.is-best .bt-name { color: #B45309; }
:root[data-theme="light"] .hv-bt .bt-m.is-best { background: rgba(245,166,35,.16); }
:root[data-theme="light"] .hv-bt .bt-m.is-best.is-sel { box-shadow: inset 0 0 0 1.5px #D97706; }
:root[data-theme="light"] .hv-bt .bt-track { background: rgba(15,23,42,.08); }
:root[data-theme="light"] .hv-bt .bt-rain { background: rgba(2,132,199,.12); }
:root[data-theme="light"] .hv-bt-detail { background: rgba(15,23,42,.045); }

/* ── Prayer times and Qibla (prayer.php) ── */
.pry-where { display: grid; grid-template-columns: 1fr; gap: 10px; }
.pry-where .t-btn { width: 100%; min-height: 48px; white-space: normal; line-height: 1.25; }
.pry-status { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--glass-2); color: var(--ink-200); font-size: .88rem; line-height: 1.45; }
.pry-status[hidden] { display: none; }
.pry-status.is-bad { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--vm-required-ink); }
.pry-cols[hidden] { display: none; }
.pry-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.pry-top-text { flex: 1 1 auto; min-width: 0; }
.pry-top h2 { margin: 0; font-size: 1.2rem; line-height: 1.25; color: var(--ink-100); overflow-wrap: anywhere; }
.pry-date { margin: 4px 0 0; font-size: .88rem; color: var(--ink-300); }
.pry-hijri { margin: 2px 0 0; font-size: .82rem; color: var(--ink-400); }
.pry-nav { flex: none; display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--glass-border); background: var(--bg-raised); }
.pry-nav button { min-width: 40px; min-height: 40px; padding: 0 10px; border: 0; border-radius: 999px; background: none; color: var(--ink-200); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pry-nav button:hover { background: var(--glass-2); }
.pry-nav button:disabled { color: var(--ink-500); cursor: default; background: none; }
.pry-nav button:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
[dir="rtl"] .pry-nav i { transform: scaleX(-1); }
.pry-next { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; padding: 12px 14px; border-radius: 14px; background: var(--brand-soft); color: var(--ink-100); font-size: .95rem; font-weight: 700; }
.pry-next[hidden] { display: none; }
.pry-next b { font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.pry-list { margin: 0; padding: 0; list-style: none; }
.pry-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 12px; border-radius: 12px; font-size: 1.02rem; color: var(--ink-100); }
.pry-row + .pry-row { margin-top: 2px; }
.pry-row .nm { min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.pry-row .tm { flex: none; font-size: 1.12rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.pry-row.is-sun { color: var(--ink-400); font-size: .92rem; min-height: 40px; }
.pry-row.is-sun .tm { font-size: .95rem; font-weight: 600; }
.pry-row.is-past { color: var(--ink-500); }
.pry-row.is-next { background: var(--glass-2); box-shadow: inset 0 0 0 1.5px var(--brand); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.pry-compass { position: relative; width: min(240px, 70vw); aspect-ratio: 1 / 1; margin: 4px auto 14px; }
.pry-dial { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--glass-border-hi); background: radial-gradient(circle at 50% 50%, var(--bg-elevated) 0%, var(--bg-raised) 70%); transition: transform .12s linear; will-change: transform; }
.pry-n { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); font-size: .82rem; font-weight: 800; color: var(--vm-required-ink); letter-spacing: .04em; }
.pry-tick { position: absolute; width: 2px; height: 10px; background: var(--ink-500); }
.pry-tick--e { right: 6px; top: 50%; width: 10px; height: 2px; margin-top: -1px; }
.pry-tick--s { bottom: 6px; left: 50%; margin-left: -1px; }
.pry-tick--w { left: 6px; top: 50%; width: 10px; height: 2px; margin-top: -1px; }
.pry-arrow { position: absolute; inset: 0; }
.pry-arrow::before { content: ""; position: absolute; left: 50%; top: 26px; bottom: 50%; width: 4px; margin-left: -2px; border-radius: 4px; background: linear-gradient(to top, transparent, var(--vm-free)); }
.pry-arrow i { position: absolute; left: 50%; top: 14px; width: 40px; height: 40px; margin-left: -20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--vm-free); color: #04231B; font-size: 1rem; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.pry-you { position: absolute; left: 50%; top: -8px; width: 0; height: 0; margin-left: -8px; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 12px solid var(--ink-100); }
.pry-compass.is-aligned .pry-dial { border-color: var(--vm-free); box-shadow: 0 0 0 6px color-mix(in srgb, var(--vm-free) 22%, transparent); }
.pry-qdeg { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 12px; margin: 0 0 6px; text-align: center; }
.pry-qdeg b { font-size: 1.15rem; font-weight: 800; color: var(--ink-100); }
.pry-qdeg span { font-size: .86rem; color: var(--ink-400); }
.pry-qstate { min-height: 1.4em; margin: 0 0 10px; text-align: center; font-size: .9rem; font-weight: 600; color: var(--ink-200); }
.pry-compass.is-aligned ~ .pry-qstate { color: var(--vm-free-ink); }
.pry-qibla .t-btn { display: flex; width: 100%; min-height: 48px; }
.pry-qibla .t-btn[hidden] { display: none; }
.pry-asr { margin: 14px 0 0; padding: 0; border: 0; min-width: 0; }
.pry-asr legend { padding: 0 0 6px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-400); }
.pry-asr label { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: .93rem; color: var(--ink-100); cursor: pointer; }
.pry-asr input { flex: none; width: 20px; height: 20px; accent-color: var(--brand); }
@media (min-width: 560px) { .pry-where { grid-template-columns: auto minmax(0, 1fr); align-items: center; } .pry-where .t-btn { width: auto; } }
@media (min-width: 900px) { .pry-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; } .pry-cols[hidden] { display: none; } }
@media (prefers-reduced-motion: reduce) { .pry-dial { transition: none; } }
:root[data-theme="light"] .pry-arrow i { color: #fff; }

/* ── What is around me? (around.php) ── */
.aro-find { display: flex; width: 100%; min-height: 54px; font-size: 1rem; white-space: normal; line-height: 1.25; }
.aro-walk { display: flex; align-items: flex-start; gap: 12px; margin: 14px 0 0; padding: 12px; border-radius: 14px; border: 1px solid var(--glass-border); background: var(--bg-raised); cursor: pointer; }
.aro-walk input { flex: none; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--brand); }
.aro-walk b { display: block; font-size: .95rem; color: var(--ink-100); }
.aro-walk small { display: block; margin-top: 3px; font-size: .8rem; line-height: 1.45; color: var(--ink-400); }
.aro-list { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0 0 14px; padding: 0; list-style: none; }
.aro-item { padding: 14px; border-radius: 16px; border: 1px solid var(--glass-border); background: var(--bg-raised); }
.aro-item.is-playing { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.aro-top { display: flex; align-items: baseline; gap: 12px; }
.aro-top h3 { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 1.02rem; line-height: 1.3; color: var(--ink-100); overflow-wrap: anywhere; }
.aro-d { flex: none; font-size: .8rem; font-weight: 700; color: var(--vm-free-ink); white-space: nowrap; }
.aro-en { margin-top: 6px; }
.aro-desc { margin: 4px 0 0; font-size: .82rem; line-height: 1.4; color: var(--ink-400); }
.aro-text { margin: 8px 0 0; font-size: .92rem; line-height: 1.6; color: var(--ink-200); overflow-wrap: anywhere; cursor: pointer;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.aro-item.is-open .aro-text, .aro-item.is-playing .aro-text { display: block; -webkit-line-clamp: unset; line-clamp: unset; }
.aro-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.aro-acts a, .aro-acts button { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--glass-border); background: var(--glass-2);
    color: var(--ink-100); font: inherit; font-size: .84rem; font-weight: 700; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.aro-acts a:hover, .aro-acts button:hover { border-color: var(--glass-border-hi); color: var(--ink-100); }
.aro-acts a:focus-visible, .aro-acts button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.aro-acts .aro-play { border-color: transparent; background: var(--grad-fill); color: #fff; }
.aro-item.is-playing .aro-play { background: var(--ink-100); color: var(--bg-base); }
@media (min-width: 900px) { .aro-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; } }

/* ── Luggage tags (tags.php, found.php), 15 Nov 2026 ─────────────────────────────────────────────── */
.ltg-flash { margin: 0 0 14px; }
.ltg-msgs { list-style: none; margin: 0; padding: 0; }
.ltg-msg.is-new { border-color: color-mix(in srgb, var(--vm-free) 55%, var(--glass-border)); }
.ltg-msg-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 10px; color: var(--ink-100); font-size: .95rem; }
.ltg-msg-top b { display: inline-flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.ltg-msg-top b i { color: var(--brand); }
.ltg-when { margin-inline-start: auto; font-size: .78rem; color: var(--ink-500); }
.ltg-msg-body { margin: 0 0 10px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .95rem; line-height: 1.6; color: var(--ink-100); }
.ltg-msg-extra { display: flex; gap: 10px; margin: 0 0 8px; font-size: .88rem; line-height: 1.5; color: var(--ink-200); overflow-wrap: anywhere; }
.ltg-msg-extra > i { flex: none; width: 18px; margin-top: 3px; text-align: center; color: var(--ink-400); }
.ltg-msg-extra b { display: block; font-size: .74rem; font-weight: 600; color: var(--ink-400); }
.ltg-msg a, .ltg-msg .t-extlink { color: var(--brand); text-decoration: underline; overflow-wrap: anywhere; }
.ltg-msg .t-badlink { color: var(--ink-400); overflow-wrap: anywhere; }
.ltg-inline { display: inline; margin: 0; }
.ltg-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--ink-400); font: inherit; font-size: .84rem; cursor: pointer; }
.ltg-link:hover { color: var(--ink-100); }
.ltg-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
.ltg-link.is-sure { color: var(--vm-required-ink); font-weight: 700; }
.ltg-tag { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.ltg-tag.is-off .ltg-qr { opacity: .35; }
.ltg-qr { justify-self: center; line-height: 0; min-height: 132px; }
.ltg-qr canvas { border-radius: 10px; }
.ltg-tag-main { min-width: 0; }
.ltg-name { display: flex; gap: 8px; margin: 0 0 10px; }
.ltg-name .t-input { flex: 1 1 auto; min-width: 0; }
.ltg-name .t-btn { flex: none; min-height: 44px; }
.ltg-code { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; font-size: .8rem; color: var(--ink-400); }
.ltg-code b { font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 1.15rem; letter-spacing: .06em; color: var(--ink-100); }
.ltg-off { display: flex; gap: 8px; margin: 0 0 10px; font-size: .84rem; line-height: 1.45; color: var(--vm-arrival-ink); }
.ltg-off i { margin-top: 3px; }
.ltg-acts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.ltg-acts .t-btn { width: 100%; min-height: 48px; white-space: normal; line-height: 1.25; }
.ltg-more { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 6px; }
.ltg-new label, .ltg-form label, .ltg-ask label { display: block; margin: 0 0 6px; font-size: .86rem; font-weight: 600; color: var(--ink-200); }
.ltg-form label span { font-weight: 400; color: var(--ink-500); }
.ltg-new-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.ltg-new-row .t-btn { min-height: 48px; white-space: normal; line-height: 1.25; }
.ltg-new small, .ltg-form small { display: block; margin-top: 8px; font-size: .78rem; line-height: 1.45; color: var(--ink-500); }
.ltg-how ol { margin: 0; padding-inline-start: 22px; color: var(--ink-200); font-size: .92rem; line-height: 1.6; }
.ltg-how li + li { margin-top: 6px; }
.ltg-found { max-width: 640px; }
.ltg-found > .pry-status { margin: 0 0 14px; }
.ltg-found-icon { flex: none; width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); font-size: 1.2rem; }
.ltg-form h2, .ltg-done h2 { margin: 0 0 8px; font-size: 1.1rem; line-height: 1.3; color: var(--ink-100); }
.ltg-lead { margin: 0 0 16px; font-size: .92rem; line-height: 1.6; color: var(--ink-200); }
.ltg-form .t-textarea, .ltg-form .t-input { width: 100%; margin-bottom: 14px; }
.ltg-form .t-textarea { min-height: 120px; resize: vertical; }
.ltg-form small { margin: -6px 0 16px; }
.ltg-form .t-btn { width: 100%; min-height: 50px; }
.ltg-form .pry-status { margin: 0 0 14px; }
.ltg-hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ltg-done { text-align: center; padding: 30px 18px; }
.ltg-done > i { display: block; margin-bottom: 12px; font-size: 2.4rem; color: var(--vm-free-ink); }
.ltg-done p { margin: 0; font-size: .95rem; line-height: 1.6; color: var(--ink-200); }
.ltg-code-in { font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.ltg-print { display: none; }
@media (min-width: 560px) {
    .ltg-tag { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 20px; }
    .ltg-acts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ltg-new-row { grid-template-columns: minmax(0, 1fr) auto; }
    .ltg-form .t-btn { width: auto; min-width: 220px; }
}
@media print {
    html.ltg-printing body * { visibility: hidden !important; }
    html.ltg-printing .ltg-print, html.ltg-printing .ltg-print * { visibility: visible !important; }
    html.ltg-printing .ltg-print { display: block; position: fixed; inset-inline-start: 10mm; top: 10mm; margin: 0; }
    html.ltg-printing .ltg-print img { display: block; width: 86mm; height: auto; }
}

/* ── Postcards (postcard.php, card.php), 15 Nov 2026 ─────────────────────────────────────────────── */
.pcd-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.pcd-stage { position: relative; border-radius: 14px; overflow: hidden; background: var(--glass-2); }
.pcd-stage canvas { display: block; width: 100%; height: auto; max-height: 70vh; object-fit: contain; background: #fff; }
.pcd-stage canvas[hidden] { display: none; }
.pcd-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 220px; padding: 24px 16px; text-align: center; cursor: pointer;
    border: 2px dashed var(--glass-border-hi, var(--glass-border)); border-radius: 14px; color: var(--ink-200); }
.pcd-drop[hidden] { display: none; }
.pcd-drop i { font-size: 2rem; color: var(--brand); }
.pcd-drop b { font-size: 1.02rem; color: var(--ink-100); }
.pcd-drop span { font-size: .82rem; color: var(--ink-400); }
.pcd-drop:hover { background: var(--glass-1, var(--glass-2)); }
.pcd-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.pcd-file:focus-visible + .pry-status, .pcd-stage:has(+ .pcd-file:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.pcd-make .pry-status { margin: 12px 0 0; }
.pcd-fields { margin-top: 14px; }
.pcd-fields[hidden] { display: none; }
.pcd-fields label, .pcd-block > label { display: block; margin: 0 0 6px; font-size: .86rem; font-weight: 600; color: var(--ink-200); }
.pcd-fields .t-input, .pcd-fields .t-textarea { width: 100%; margin-bottom: 12px; }
.pcd-fields .t-textarea { min-height: 64px; resize: vertical; }
.pcd-styles { display: flex; flex-wrap: wrap; gap: 8px; }
.pcd-styles .t-chip { min-height: 40px; padding: 8px 14px; font-size: .84rem; }
.pcd-again { margin: 0 !important; font-weight: 500 !important; color: var(--ink-300) !important; }
.pcd-send[hidden] { display: none; }
.pcd-acts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.pcd-acts .t-btn, .pcd-block .t-btn { min-height: 48px; white-space: normal; line-height: 1.25; }
.pcd-acts .t-btn[hidden], .pcd-block .t-btn[hidden] { display: none; }
.pcd-block { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--glass-border); }
.pcd-block > label i { color: var(--brand); margin-inline-end: 4px; }
.pcd-hint { margin: 0 0 10px; font-size: .8rem; line-height: 1.5; color: var(--ink-400); }
.pcd-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.pcd-row .t-select, .pcd-row .tratok-select { min-width: 0; width: 100%; }
.pcd-block .pry-status { margin: 10px 0 0; }
.pcd-block .pry-status a { color: var(--brand); font-weight: 700; }
.pcd-linkbox { margin-top: 10px; }
.pcd-linkbox[hidden] { display: none; }
.pcd-linkbox .t-input { width: 100%; margin-bottom: 8px; font-size: .82rem; }
.pcd-linkbox .pcd-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pcd-mine[hidden] { display: none; }
.pcd-list { list-style: none; margin: 0; padding: 0; }
.pcd-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 12px; }
.pcd-item.is-off { opacity: .8; }
.pcd-thumb { grid-row: span 2; display: block; width: 72px; height: 54px; border-radius: 8px; overflow: hidden; background: var(--glass-2); }
.pcd-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pcd-thumb--off { display: inline-flex; align-items: center; justify-content: center; color: var(--ink-500); }
.pcd-item__body { min-width: 0; font-size: .82rem; line-height: 1.45; color: var(--ink-400); }
.pcd-item__body b { display: block; font-size: .92rem; color: var(--ink-100); }
.pcd-item__off { color: var(--vm-arrival-ink); }
.pcd-item .ltg-link { justify-self: start; min-height: 36px; }
.pcd-view { max-width: 820px; }
.pcd-view__from { display: flex; align-items: center; gap: 10px; margin: 8px 0 14px; font-size: 1.2rem; line-height: 1.3; color: var(--ink-100); overflow-wrap: anywhere; }
.pcd-view__from i { color: var(--brand); }
.pcd-view__card { margin: 0 0 16px; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.pcd-view__card img { display: block; width: 100%; height: auto; }
.pcd-view__acts .t-btn { width: 100%; min-height: 50px; white-space: normal; line-height: 1.25; }
.pcd-view__report { margin-top: 18px; text-align: center; }
.pcd-view__report small { display: block; font-size: .74rem; color: var(--ink-500); }
@media (min-width: 560px) {
    .pcd-acts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pcd-view__acts .t-btn { width: auto; min-width: 280px; }
    .pcd-view__acts { text-align: center; }
    .pcd-item { grid-template-columns: 96px minmax(0, 1fr) auto; }
    .pcd-thumb { width: 96px; height: 72px; grid-row: auto; }
}
@media (min-width: 960px) {
    .pcd-cols { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 14px; align-items: start; }
}

/* ── Money converter with tip and bill split (money.php), 15 Nov 2026 ───────────────────────────── */
.mny-where { margin-bottom: 14px; }
.mny-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.mny-card > label, .mny-label { display: block; margin: 14px 0 6px; font-size: .86rem; font-weight: 600; color: var(--ink-200); }
.mny-card > label:first-of-type { margin-top: 0; }
.mny-card > label span { font-weight: 400; color: var(--ink-400); }
.mny-line { display: grid; grid-template-columns: minmax(0, 1fr) minmax(104px, 34%); gap: 8px; align-items: center; }
.mny-num { width: 100%; min-width: 0; font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.mny-cur, .mny-line .tratok-select { width: 100%; min-width: 0; }
.mny-out { display: flex; align-items: center; min-height: 52px; min-width: 0; padding: 0 14px; border-radius: 14px; background: var(--brand-soft); color: var(--ink-100);
    font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mny-swap { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 8px auto; border-radius: 50%; border: 1px solid var(--glass-border); background: var(--glass-2); color: var(--ink-200); cursor: pointer; }
.mny-swap:hover { color: var(--ink-100); background: var(--glass-3, var(--glass-2)); }
.mny-swap:focus-visible, .mny-pm:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.mny-rate { margin: 10px 0 0; font-size: .8rem; color: var(--ink-400); font-variant-numeric: tabular-nums; }
[dir="rtl"] .mny-rate, [dir="rtl"] .mny-out, [dir="rtl"] .mny-sum dd { text-align: right; }
.mny-custom { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--glass-2); font-size: .84rem; line-height: 1.45; color: var(--ink-200); }
.mny-custom[hidden] { display: none; }
.mny-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mny-chips .t-chip { min-height: 40px; min-width: 56px; justify-content: center; padding: 8px 12px; font-size: .86rem; font-variant-numeric: tabular-nums; }
.mny-step { display: inline-flex; align-items: center; gap: 14px; }
.mny-step output { min-width: 2ch; text-align: center; font-size: 1.2rem; font-weight: 800; color: var(--ink-100); font-variant-numeric: tabular-nums; }
.mny-pm { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--glass-border); background: var(--glass-2); color: var(--ink-100); cursor: pointer; }
.mny-sum { margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid var(--glass-border); }
.mny-sum > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 6px 0; }
.mny-sum dt { font-size: .88rem; color: var(--ink-400); }
.mny-sum dd { margin: 0; font-size: .95rem; font-weight: 700; color: var(--ink-100); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mny-each dt { color: var(--ink-100); font-weight: 700; }
.mny-each dd { font-size: 1.1rem; color: var(--brand); }
@media (min-width: 860px) { .mny-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; } }

/* ── Holidays section (holidays.php, and its tabs on prayer.php), 15 Nov 2026 ───────────────────── */
.hld-tabs { display: flex; gap: 4px; margin: 0 0 16px; padding: 4px; border-radius: 16px; border: 1px solid var(--glass-border); background: var(--glass-2); overflow-x: auto; }
/* Two or three parts must fit a phone in every language: a name of two words takes two lines, and no part is ever narrower than its longest word. */
.hld-tab { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 6px 10px; border: 0; border-radius: 12px; background: none;
    color: var(--ink-300); font: inherit; font-size: .86rem; font-weight: 600; line-height: 1.2; text-align: center; overflow-wrap: break-word; text-decoration: none; cursor: pointer; }
.hld-tab > i { flex: none; }
/* Three parts on a phone: only the open one keeps its picture. */
@media (max-width: 479px) { .hld-tabs:has(> .hld-tab:nth-child(3):not([hidden])) > .hld-tab:not(.is-on) > i { display: none; } }
@media (max-width: 359px) { .hld-tab { padding: 6px 7px; gap: 5px; font-size: .8rem; } }
.hld-tab[hidden] { display: none; }
.hld-tab:hover { color: var(--ink-100); }
.hld-tab.is-on { background: var(--bg-raised); color: var(--ink-100); box-shadow: 0 1px 0 var(--glass-border) inset, 0 4px 14px rgba(0,0,0,.18); }
.hld-tab.is-on i { color: var(--brand); }
.hld-tab:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.hld-panel[hidden] { display: none; }
.hld-pick { margin-bottom: 12px; }
.hld-where { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.hld-chip { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; min-height: 44px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--glass-border); background: var(--glass-2);
    color: var(--ink-100); font-size: .84rem; line-height: 1.35; text-decoration: none; overflow-wrap: anywhere; }
.hld-chip--here { border-color: color-mix(in srgb, var(--brand) 55%, transparent); background: var(--brand-soft); }
.hld-chip:hover { background: var(--glass-3, var(--glass-2)); }
.hld-chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.hld-h { display: flex; align-items: center; gap: 10px; }
.hld-partial { margin: 0 0 12px; }
.hld-list { list-style: none; margin: 0; padding: 0; }
.hld-day { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border-top: 1px solid var(--glass-border); }
.hld-day:first-child { border-top: 0; }
.hld-shell > .hld-panel > .hld-list > .hld-day { padding-inline: 4px; }
.hld-cal { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 52px; min-height: 56px; padding: 6px 4px; border-radius: 12px; background: var(--glass-2); border: 1px solid var(--glass-border); }
.hld-cal b { font-size: 1.25rem; line-height: 1.1; color: var(--ink-100); font-variant-numeric: tabular-nums; }
.hld-cal i { font-style: normal; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); white-space: nowrap; }
.hld-day--faith .hld-cal { border-style: dashed; }
.hld-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hld-name { font-size: 1rem; font-weight: 700; line-height: 1.35; color: var(--ink-100); overflow-wrap: anywhere; }
.hld-local { font-size: .84rem; line-height: 1.4; color: var(--ink-300); overflow-wrap: anywhere; }
/* A name in another script (dir="auto") keeps to the page's own side, under the name above it. */
.hld-name, .hld-local { text-align: left; }
html[dir="rtl"] .hld-name, html[dir="rtl"] .hld-local { text-align: right; }
.hld-when { font-size: .8rem; line-height: 1.45; color: var(--ink-400); }
.hld-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.hld-more { margin: 14px 0 0; }
.hld-lead { margin: 0 0 14px; font-size: .9rem; line-height: 1.6; color: var(--ink-300); }
.hld-faith__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; }
.hld-faith__head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.02rem; line-height: 1.3; color: var(--ink-100); }
.hld-faith__head h2 > i { flex: none; width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); font-size: .9rem; }
.hld-follow { min-height: 40px; padding: 8px 14px; font-size: .84rem; }
.hld-follow.is-active { border-color: var(--vm-free); color: var(--vm-free-ink); background: color-mix(in srgb, var(--vm-free) 14%, transparent); }
.hld-prayer .hld-lead { margin: 0; }
.hld-prayer__go { margin-top: 14px; width: 100%; min-height: 48px; white-space: normal; line-height: 1.25; }
.hld-prayer__go[hidden] { display: none; }
.hld-off { margin: 4px 0 0; text-align: center; }
@media (min-width: 560px) { .hld-tab { flex: 0 1 auto; padding: 6px 18px; } .hld-prayer__go { width: auto; } }
@media (min-width: 860px) { .hld-shell > .hld-panel > .hld-list { padding: 6px 20px; border-radius: 18px; border: 1px solid var(--glass-border); background: linear-gradient(180deg, var(--bg-raised) 0%, var(--bg-base) 100%); } }
