/* tools2.css: the second batch of free member features (16 Nov 2026). Loaded after atlas.css by the pages
   that need it; every colour comes from the site's own tokens (tratok_aurora.css, atlas.css). */

/* ── Long weekends (holidays.php#breaks) ── */
.lwk-week { display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px; }
.lwk-week__l { font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-400); }
.lwk-week__days { display: flex; flex-wrap: wrap; gap: 6px; }
.lwk-week__days .t-chip { min-height: 44px; min-width: 48px; justify-content: center; text-decoration: none; }
.lwk-week__days .t-chip.is-fixed { cursor: default; }
.lwk-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.lwk-card { display: flex; align-items: flex-start; gap: 14px; min-width: 0; padding: 14px; border-radius: 16px; border: 1px solid var(--glass-border); background: var(--bg-raised); }
.lwk-card--best { border-color: color-mix(in srgb, var(--vm-free) 50%, var(--glass-border)); }
.lwk-n { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); }
.lwk-n b { font-size: 1.4rem; line-height: 1; font-variant-numeric: tabular-nums; }
.lwk-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.lwk-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 1rem; font-weight: 700; line-height: 1.3; color: var(--ink-100); }
.lwk-dates { font-size: .9rem; line-height: 1.4; color: var(--ink-200); }
.lwk-arrow { margin: 0 4px; font-size: .8rem; color: var(--ink-500); }
[dir="rtl"] .lwk-arrow, [dir="rtl"] .lwk-card .cg-link i { transform: scaleX(-1); }
.lwk-leave { display: inline-flex; align-items: baseline; gap: 8px; font-size: .88rem; line-height: 1.45; color: var(--ink-200); overflow-wrap: anywhere; }
.lwk-leave i { flex: none; font-size: .8rem; color: var(--brand); }
.lwk-leave--none, .lwk-leave--none i { color: var(--vm-free-ink); }
.lwk-card .hld-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.lwk-card .cg-link { margin-top: 0; }
@media (min-width: 760px) { .lwk-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── The daily question (daily.php) ── */
.dly-shell { max-width: 640px; }
.dly-card { text-align: center; }
.dly-date { margin: 0 0 4px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-400); }
.dly-card > h2.dly-q { display: block; margin: 0 0 14px; font-size: 1.15rem; line-height: 1.3; text-align: center; color: var(--ink-100); }
.dly-clue { display: flex; align-items: center; justify-content: center; min-height: 132px; margin: 0 0 16px; padding: 14px; border-radius: 16px; background: var(--glass-2); border: 1px solid var(--glass-border); }
.dly-clue .t-flag { --fs: 3.5; box-shadow: 0 6px 22px rgba(0,0,0,.35); }
.dly-capital { font-size: 1.7rem; line-height: 1.2; color: var(--ink-100); overflow-wrap: anywhere; }
.dly-shape { display: block; width: auto; height: auto; max-width: min(100%, 240px); max-height: 200px; }
.dly-shape path { fill: var(--brand); fill-opacity: .88; stroke: var(--bg-base); stroke-width: 1; stroke-linejoin: round; fill-rule: evenodd; }
.dly-options { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.dly-opt { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 10px 44px 10px 14px; border-radius: 14px; border: 1px solid var(--glass-border); background: var(--bg-raised);
    color: var(--ink-100); font: inherit; font-size: .98rem; font-weight: 600; text-align: start; cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
[dir="rtl"] .dly-opt { padding: 10px 14px 10px 44px; }
.dly-opt > span:not(.t-flag) { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.dly-opt > .t-flag { flex: none; }
.dly-opt:hover:not(:disabled) { border-color: var(--brand); background: var(--bg-elevated); }
.dly-opt:active:not(:disabled) { transform: scale(.985); }
.dly-opt:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.dly-opt:disabled { cursor: default; color: var(--ink-300); }
.dly-opt.is-busy { border-color: var(--brand); }
.dly-opt .dly-mark { position: absolute; inset-inline-end: 16px; top: 50%; transform: translateY(-50%); display: none; }
.dly-opt.is-right { border-color: var(--vm-free); background: color-mix(in srgb, var(--vm-free) 16%, transparent); color: var(--vm-free-ink); }
.dly-opt.is-right .dly-mark { display: block; }
.dly-opt.is-wrong .dly-mark { display: block; }
.dly-opt.is-wrong .dly-mark::before { content: "\f00d"; }
.dly-opt.is-wrong { border-color: var(--vm-required); background: color-mix(in srgb, var(--vm-required) 14%, transparent); color: var(--vm-required-ink); }
.dly-result { margin: 14px 0 0; font-size: 1.02rem; font-weight: 700; line-height: 1.4; }
.dly-result[hidden], .dly-after[hidden], .dly-friends[hidden], .dly-fnone[hidden] { display: none; }
.dly-result.is-right { color: var(--vm-free-ink); }
.dly-result.is-wrong { color: var(--vm-required-ink); }
.dly-after { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 8px; }
.dly-next { margin: 4px 0 0; font-size: .86rem; color: var(--ink-400); }
.dly-next b { color: var(--ink-100); font-variant-numeric: tabular-nums; }
.dly-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dly-tiles > div { min-width: 0; padding: 10px 4px; border-radius: 12px; text-align: center; background: var(--glass-2); border: 1px solid var(--glass-border); }
.dly-tiles b { display: block; font-size: 1.4rem; line-height: 1.1; color: var(--ink-100); font-variant-numeric: tabular-nums; }
.dly-tiles span { display: block; margin-top: 3px; font-size: .7rem; line-height: 1.25; color: var(--ink-400); overflow-wrap: anywhere; }
.dly-signin { margin: 8px 0 0; text-align: center; }
.dly-flist { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dly-flist li { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 36px; padding: 4px 12px; border-radius: 999px; font-size: .86rem; background: var(--glass-2); border: 1px solid var(--glass-border); color: var(--ink-200); }
.dly-flist li.is-right i { color: var(--vm-free); }
.dly-flist li.is-wrong i { color: var(--vm-required); }
.dly-fnone { margin: 0; font-size: .9rem; color: var(--ink-400); }
@media (min-width: 560px) { .dly-options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── The dietary and allergy card (foodcard.php) and "Show this to the driver" (driver.php) ── */
.fdc-shell, .drv-shell { max-width: 720px; }
.fdc-pick, .drv-pick { margin: 0 0 14px; }
.fdc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fdc-chip { position: relative; display: inline-flex; align-items: center; max-width: 100%; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--glass-border); background: var(--glass-2);
    color: var(--ink-200); font-size: .9rem; line-height: 1.3; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.fdc-chip input, .fdc-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fdc-chip span { min-width: 0; overflow-wrap: anywhere; }
.fdc-chip.is-on { background: color-mix(in srgb, var(--vm-required) 16%, transparent); border-color: var(--vm-required); color: var(--vm-required-ink); font-weight: 700; }
.fdc-chip:focus-within, .fdc-row:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.fdc-rows { display: flex; flex-direction: column; gap: 6px; }
.fdc-row { position: relative; display: flex; align-items: flex-start; gap: 12px; min-height: 48px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--glass-border); background: var(--glass-2);
    color: var(--ink-200); font-size: .92rem; line-height: 1.45; cursor: pointer; }
.fdc-row::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 6px; border: 2px solid var(--ink-500); }
.fdc-row.is-on { border-color: var(--brand); background: var(--brand-soft); color: var(--ink-100); }
.fdc-row.is-on::before { border-color: var(--brand); background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.fdc-row span { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.fdc-go { position: sticky; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); z-index: 5; display: flex; flex-direction: column; align-items: stretch; gap: 6px; margin: 4px 0 6px;
    padding: 10px; border-radius: 18px; border: 1px solid var(--glass-border); background: var(--bg-base); box-shadow: 0 -6px 24px rgba(0,0,0,.28); }
body:not(.has-bottom-nav) .fdc-go { bottom: 12px; }
.fdc-show { width: 100%; min-height: 52px; justify-content: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.fdc-show:disabled { opacity: .55; box-shadow: none; }
.fdc-hint { margin: 0; text-align: center; font-size: .82rem; color: var(--ink-400); }
.fdc-hint[hidden] { display: none; }
.atl-note > i { margin-inline-end: 4px; }

/* A card held up for someone else to read: black on white whatever the theme, large, nothing else on screen. */
html.tcd-open, html.tcd-open body { overflow: hidden; }
.tcd-full { position: fixed; inset: 0; z-index: 4000; overflow-y: auto; padding: calc(16px + env(safe-area-inset-top, 0px)) 18px calc(28px + env(safe-area-inset-bottom, 0px)); background: #fff; color: #0B1220; -webkit-overflow-scrolling: touch; }
.tcd-full[hidden] { display: none; }
.tcd-x { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin: 0 0 8px auto; border: 0; border-radius: 50%; background: #E5E7EB; color: #0B1220; font-size: 1.15rem; cursor: pointer; }
[dir="rtl"] .tcd-x { margin: 0 auto 8px 0; }
.tcd-x:focus-visible { outline: 3px solid #2563EB; outline-offset: 2px; }
.tcd-paper { max-width: 720px; margin: 0 auto; font-size: clamp(1.25rem, 5.2vw, 1.7rem); line-height: 1.45; }
.tcd-line { margin: 0 0 .8em; }
.tcd-l { display: block; font-weight: 600; color: inherit; overflow-wrap: anywhere; }
.tcd-m { display: block; margin-top: .15em; font-size: .52em; font-weight: 400; line-height: 1.4; color: #4B5563; overflow-wrap: anywhere; }
.tcd-title .tcd-l { font-size: 1.15em; font-weight: 800; padding-bottom: .3em; border-bottom: 3px solid #DC2626; }
.tcd-lead .tcd-l { color: #B91C1C; font-weight: 800; }
.tcd-list { margin: 0 0 .8em; padding: 0; list-style: none; }
.tcd-list li { margin: 0 0 .35em; padding: .35em .6em; border-radius: 10px; background: #FEE2E2; }
.tcd-list li .tcd-l { font-weight: 800; color: #7F1D1D; }
.tcd-thanks .tcd-l { font-weight: 500; }
.tcd-big { margin: 0 0 .7em; font-weight: 700; }
.tcd-name { margin: 0 0 .4em; font-size: 1.25em; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.tcd-addr { margin: 0 0 .6em; font-size: 1.15em; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.tcd-addr--2 { font-size: .85em; font-weight: 500; color: #374151; }
.tcd-phone { margin: .4em 0 0; font-size: 1.1em; font-weight: 700; }

.drv-card .tcd-l { font-size: 1.05rem; line-height: 1.4; color: var(--ink-100); }
.drv-card .tcd-m { font-size: .8rem; color: var(--ink-400); }
.drv-say { margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: var(--brand-soft); }
.drv-say .tcd-l { font-size: 1.15rem; color: var(--ink-100); }
.drv-name { margin: 0 0 10px; font-size: 1.35rem; font-weight: 800; line-height: 1.25; color: var(--ink-100); overflow-wrap: anywhere; }
.drv-block { margin: 0 0 12px; }
.drv-label { display: block; margin: 0 0 2px; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-400); }
.drv-local { margin: 0; font-size: 1.25rem; font-weight: 700; line-height: 1.4; color: var(--ink-100); overflow-wrap: anywhere; }
.drv-stored { margin: 0; font-size: .98rem; line-height: 1.45; color: var(--ink-200); overflow-wrap: anywhere; }
.drv-map { height: 190px; margin: 0 0 12px; border-radius: 14px; overflow: hidden; border: 1px solid var(--glass-border); background: var(--glass-2); }
.drv-map[hidden] { display: none; }
.drv-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.drv-actions .t-btn { min-height: 48px; justify-content: center; }
.drv-phrases { list-style: none; margin: 0; padding: 0; }
.drv-phrases li { padding: 10px 0; border-top: 1px solid var(--glass-border); }
.drv-phrases li:first-child { border-top: 0; padding-top: 0; }
.drv-num { margin-top: 4px; font-variant-numeric: tabular-nums; }
@media (min-width: 620px) { .drv-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── The exchange rate watch (money.php#watch) ── */
.rtw-lead { margin: 0 0 12px; font-size: .9rem; line-height: 1.5; color: var(--ink-300); }
.rtw-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 12px; }
.rtw-f { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.rtw-f label { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-400); overflow-wrap: anywhere; }
.rtw-f select, .rtw-f .tsel-btn, .rtw-f input { width: 100%; min-height: 48px; }
.rtw-f input { font-size: 16px; font-variant-numeric: tabular-nums; }
.rtw-now { grid-column: 1 / -1; margin: 0; font-size: .86rem; color: var(--ink-400); font-variant-numeric: tabular-nums; }
.rtw-go { grid-column: 1 / -1; min-height: 48px; justify-content: center; }
.rtw-list { list-style: none; margin: 0 0 4px; padding: 0; }
.rtw-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--glass-border); }
.rtw-what { flex: 1 1 auto; min-width: 0; }
.rtw-what b { display: block; font-size: .96rem; color: var(--ink-100); overflow-wrap: anywhere; }
.rtw-what small { display: block; margin-top: 2px; font-size: .8rem; color: var(--ink-400); font-variant-numeric: tabular-nums; }
.rtw-list li.is-told .rtw-what small { color: var(--vm-free-ink); font-weight: 700; }
.rtw-list form { flex: none; margin: 0; }
.rtw-x { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--glass-2); color: var(--ink-300); cursor: pointer; }
.rtw-x:hover { color: var(--vm-required-ink); }
.rtw-x:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ── The passport and visa photo maker (idphoto.php) ── */
.idp-shell { max-width: 640px; }
.idp-custom { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.idp-custom[hidden], .idp-card[hidden] { display: none; }
.idp-tips { list-style: none; margin: 0 0 14px; padding: 0; }
.idp-tips li { display: flex; align-items: baseline; gap: 10px; padding: 5px 0; font-size: .92rem; line-height: 1.45; color: var(--ink-200); }
.idp-tips i { flex: none; font-size: .8rem; color: var(--vm-free); }
.idp-get { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.idp-file { position: relative; min-height: 52px; justify-content: center; cursor: pointer; overflow: hidden; }
.idp-file input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.idp-file:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.idp-lead, .idp-move { margin: 0 0 12px; font-size: .9rem; line-height: 1.5; color: var(--ink-300); }
.idp-move { margin: 8px 0 0; font-size: .82rem; color: var(--ink-400); text-align: center; }
.idp-stage { position: relative; display: flex; justify-content: center; margin: 0 auto 12px; }
.idp-stage canvas { display: block; border-radius: 6px; background: #fff; box-shadow: 0 8px 28px rgba(0,0,0,.4); cursor: grab; touch-action: none; }
.idp-stage canvas:active { cursor: grabbing; }
.idp-guide { position: absolute; top: 0; left: 50%; transform: translateX(-50%); pointer-events: none; }
.idp-guide ellipse { fill: none; stroke: rgba(255,255,255,.95); stroke-width: 1.2; stroke-dasharray: 3 2; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 1px rgba(0,0,0,.9)); }
.idp-guide line { stroke: #FF6B35; stroke-width: 1.6; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 1px rgba(0,0,0,.8)); }
.idp-zoom { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--ink-400); }
.idp-zoom input { flex: 1 1 auto; min-width: 0; height: 44px; accent-color: var(--brand); }
.idp-out { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 12px; }
.idp-out .t-btn { min-height: 50px; justify-content: center; }
@media (min-width: 560px) { .idp-get { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.drv-map .leaflet-control-attribution { font-size: 9px; line-height: 1.3; }

/* ── Offline travel pack (the card at the foot of a country guide) ── */
.ofp-card[hidden], #cyPackRemove[hidden] { display: none; }
.ofp-hint { margin: 0 0 12px; font-size: .9rem; line-height: 1.5; color: var(--ink-300); }
.ofp-card .pry-status { margin: 0 0 12px; }

/* ── Find each other (find.php) ── */
.fnd-shell { max-width: 640px; }
.fnd-card { text-align: center; }
.fnd-card > h2 { text-align: start; }
.fnd-people { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 12px; }
.fnd-people[hidden], .fnd-dial[hidden], .fnd-none[hidden], .fnd-map[hidden], .fnd-start[hidden], .fnd-on[hidden], .fnd-compass[hidden] { display: none; }
.fnd-people .t-chip { min-height: 40px; }
.fnd-dial { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.fnd-arrow { width: min(58vw, 220px); height: auto; transition: transform .35s ease-out; }
.fnd-arrow circle { fill: var(--glass-2); stroke: var(--glass-border); stroke-width: 1.5; }
.fnd-arrow path { fill: var(--brand); stroke: var(--bg-base); stroke-width: 1.5; stroke-linejoin: round; }
.fnd-arrow.is-idle path { fill: var(--ink-500); }
.fnd-read { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.fnd-dist { font-size: 2.3rem; line-height: 1.1; color: var(--ink-100); font-variant-numeric: tabular-nums; }
.fnd-to { font-size: 1rem; font-weight: 700; color: var(--ink-200); overflow-wrap: anywhere; }
.fnd-age { font-size: .82rem; color: var(--ink-400); }
.fnd-none { margin: 10px 0; font-size: .95rem; line-height: 1.5; color: var(--ink-400); }
.fnd-compass { margin: 12px auto 0; }
.fnd-map { height: 240px; margin: 0 0 14px; border-radius: 16px; overflow: hidden; border: 1px solid var(--glass-border); background: var(--glass-2); }
.fnd-map .leaflet-control-attribution { font-size: 9px; line-height: 1.3; }
.fnd-start, .fnd-on { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
.fnd-on { grid-template-columns: minmax(0, 1fr); }
.fnd-start .t-btn, .fnd-on .t-btn { min-height: 50px; justify-content: center; }
.fnd-left { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--brand-soft); color: var(--ink-100); font-size: .95rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.fnd-rules { display: flex; align-items: baseline; gap: 8px; margin: 0; text-align: start; font-size: .86rem; line-height: 1.5; color: var(--ink-300); }
.fnd-rules i { flex: none; color: var(--vm-free); }
.fnd-card .atl-note { text-align: start; }

/* ── The trip film (film.php) ── */
.flm-shell { max-width: 640px; }
.flm-card[hidden], .flm-thumbs[hidden] { display: none; }
.flm-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
.flm-wide { grid-column: 1 / -1; }
.flm-fields input { font-size: 16px; }
.flm-pick { width: 100%; }
.flm-hint { margin: 8px 0 10px; font-size: .86rem; line-height: 1.45; color: var(--ink-400); text-align: center; }
.flm-thumbs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 0 0 12px; }
.flm-thumbs canvas { width: 48px; height: 48px; border-radius: 10px; border: 1px solid var(--glass-border); }
.flm-go { width: 100%; min-height: 52px; justify-content: center; }
.flm-screen { display: flex; justify-content: center; margin: 0 0 12px; }
.flm-screen canvas { display: block; width: auto; height: auto; max-width: 100%; max-height: min(70vh, 640px); border-radius: 18px; background: #06080F; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.flm-acts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.flm-acts .t-btn { min-height: 50px; justify-content: center; }
@media (min-width: 560px) { .flm-acts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
