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

/* ── Shared small parts of this batch ── */
.t4-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 560px) { .t4-grid--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.t4-result { margin: 14px 0 0; padding: 14px; border-radius: 16px; border: 1px solid var(--glass-border); background: var(--bg-raised); }
.t4-result[hidden] { display: none; }
.t4-result h3 { margin: 0 0 6px; font-size: 1.05rem; line-height: 1.35; color: var(--ink-100); }
.t4-result p { margin: 0 0 8px; font-size: .92rem; line-height: 1.55; color: var(--ink-200); overflow-wrap: anywhere; }
.t4-result p:last-child { margin-bottom: 0; }
.t4-big { display: block; font-size: 1.9rem; line-height: 1.15; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.t4-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.t4-acts .t-btn { min-height: 46px; }
.t4-seg { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.t4-seg legend { padding: 0; margin: 0 0 6px; font-size: .78rem; font-weight: 600; color: var(--ink-400); }
.t4-seg label { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--glass-border); background: var(--bg-raised);
    font-size: .88rem; font-weight: 600; color: var(--ink-200); cursor: pointer; }
.t4-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.t4-seg label:has(input:checked) { border-color: var(--brand); color: var(--ink-100); box-shadow: inset 0 0 0 1px var(--brand); }
.t4-seg label:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ── "What to do if..." (whatif.php) ── */
.wif-where { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: end; }
.wif-where select.t-input { height: 48px; min-height: 48px; }
.wif-where .t-btn { min-height: 48px; justify-content: center; white-space: normal; text-align: center; }
@media (min-width: 620px) { .wif-where { grid-template-columns: minmax(0, 1fr) auto; } }
.wif-guide { padding: 0; overflow: hidden; }
.wif-guide > summary { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 16px; list-style: none; cursor: pointer; font-size: 1.02rem; font-weight: 700; line-height: 1.35; color: var(--ink-100); }
.wif-guide > summary::-webkit-details-marker { display: none; }
.wif-guide > summary > i:first-child { flex: none; width: 24px; text-align: center; color: var(--brand); }
.wif-guide > summary > span { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.wif-guide > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; border-radius: 16px; }
.wif-chev { flex: none; font-size: .8rem; color: var(--ink-400); transition: transform .2s ease; }
.wif-guide[open] .wif-chev { transform: rotate(180deg); }
.wif-steps { margin: 0; padding: 0 16px 14px; list-style: none; counter-reset: wif; display: flex; flex-direction: column; gap: 12px; }
.wif-steps li { position: relative; counter-increment: wif; padding-inline-start: 40px; min-height: 28px; font-size: .95rem; line-height: 1.55; color: var(--ink-200); }
.wif-steps li::before { content: counter(wif); position: absolute; inset-inline-start: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand); font-size: .82rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.wif-tool { margin: 0; padding: 0 16px 16px; }
.wif-tool .cg-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
@media print { .wif-guide { break-inside: avoid; } .wif-guide > .wif-steps { display: flex !important; } }

/* ── Flight delay rights (delayrights.php) ── */
.dlr-form { display: flex; flex-direction: column; gap: 16px; }
.dlr-go { min-height: 50px; justify-content: center; }
.dlr-notes { margin-top: 14px; }
.dlr-h { display: flex !important; align-items: center; gap: 10px; margin: 22px 0 12px !important; }
.dlr-name { margin-top: 12px; }
.dlr-letter { width: 100%; box-sizing: border-box; margin-top: 12px; padding: 12px; min-height: 260px; font: inherit; font-size: .92rem; line-height: 1.55; resize: vertical; white-space: pre-wrap; }
#drHead .t4-big { margin: 4px 0; }
.dlr-form #drFlight, #drFlight { text-transform: uppercase; }

/* ── Travel badges and the goal for the year (passport.php) ── */
.bdg-lead { margin: -2px 0 12px; font-size: .86rem; color: var(--ink-400); }
.bdg-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.bdg-row { padding: 12px; border-radius: 14px; border: 1px solid var(--glass-border); background: var(--bg-raised, rgba(255,255,255,.04)); }
.bdg-top { display: flex; align-items: center; gap: 10px; }
.bdg-top > i { flex: none; width: 22px; text-align: center; color: var(--brand); }
.bdg-name { flex: 1 1 auto; min-width: 0; font-size: .92rem; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.bdg-have { flex: none; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.bdg-steps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.bdg-step { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px; border-radius: 999px; border: 1px dashed var(--glass-border); font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-400); }
.bdg-step.is-on { border-style: solid; border-color: #F5A623; color: #F5A623; background: color-mix(in srgb, #F5A623 12%, transparent); }
.bdg-next { margin: 8px 0 0; font-size: .78rem; color: var(--ink-400); }
.ygl-line { margin: 0 0 10px; font-size: 1rem; font-weight: 600; }
.ygl-bar { height: 10px; border-radius: 999px; background: rgba(148,163,184,.22); overflow: hidden; }
.ygl-bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--brand); transition: width .3s ease; }
.ygl-card.is-done .ygl-bar span { background: #22C55E; }
.ygl-set { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.ygl-btn { width: 46px; min-width: 46px; height: 46px; padding: 0; justify-content: center; }
.ygl-btn:disabled { opacity: .45; cursor: default; }
.ygl-n { min-width: 2ch; text-align: center; font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.ygl-kept { margin-top: 12px; }

/* ── Compare two countries (versus.php) ── */
.vsx-form { display: flex; flex-direction: column; gap: 14px; }
.vsx-go { min-height: 50px; justify-content: center; }
.vsx-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.vsx-head { min-width: 0; text-align: center; }
.vsx-head h2 { display: block !important; margin: 8px 0 2px !important; font-size: 1.05rem !important; line-height: 1.3; overflow-wrap: anywhere; }
.vsx-head p { margin: 0; font-size: .8rem; color: var(--ink-400); overflow-wrap: anywhere; }
.vsx-row { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--glass-border); }
.vsx-row[data-fact="rate"] { margin-top: 6px; padding-top: 0; border-top: 0; }
.vsx-row h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; color: var(--ink-400); }
.vsx-row h3 i { color: var(--brand); width: 18px; text-align: center; }
.vsx-row .vsx-pair p { margin: 0; min-width: 0; padding: 10px; border-radius: 12px; background: var(--bg-raised); font-size: .9rem; line-height: 1.45; color: var(--ink-100); overflow-wrap: anywhere; text-align: start; unicode-bidi: plaintext; }
.vsx-row[data-fact="rate"] .vsx-pair p { font-size: .78rem; color: var(--ink-400); background: transparent; padding: 0 10px; }
.vsx-diff { margin: 16px 0 0; font-size: .9rem; font-weight: 600; color: var(--ink-200); }
.vsx-links { margin-top: 14px; }
.vsx-links .cg-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }

/* ── "When should I leave for the airport?" (leavetime.php) ── */
.apt-form { display: flex; flex-direction: column; gap: 16px; }
.apt-out { margin-top: 0; }

/* ── "Surprise me" (where.php) ── */
.srp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 12px; }
.srp-row .t-btn { min-height: 46px; }
.srp-out { font-size: .95rem; font-weight: 600; color: var(--ink-100); }
.wn-item.is-surprise { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ── Currency cheat sheet (money.php) ── */
.chs-box { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--glass-border); }
.chs-make { min-height: 46px; white-space: normal; text-align: start; }
.chs-hint { margin: 8px 0 0; font-size: .82rem; line-height: 1.5; color: var(--ink-400); }
.chs-out { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 14px; }
.chs-out[hidden] { display: none; }
.chs-out img { width: 200px; max-width: 60%; height: auto; border-radius: 22px; border: 1px solid var(--glass-border); }
.chs-out .t-btn { min-height: 46px; }

/* ── Private trip diary (diary.php) ── */
.dry-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.dry-bar .atl-note { margin: 0; }
.dry-bar .t-btn { min-height: 44px; }
.dry-day h2 { display: flex !important; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 10px !important; }
.dry-n { font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); }
.dry-day time { font-size: 1.02rem; font-weight: 700; color: var(--ink-100); }
.dry-text { width: 100%; box-sizing: border-box; min-height: 110px; padding: 12px; font: inherit; font-size: 1rem; line-height: 1.6; resize: vertical; }
.dry-print { display: none; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1rem; line-height: 1.6; }
.dry-state { min-height: 1.2em; margin: 6px 0 0; font-size: .78rem; color: var(--ink-400); }
.dry-state.is-bad { color: #EF4444; }
.dry-trips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dry-trip { display: flex; align-items: center; gap: 12px; min-height: 64px; margin: 0; text-decoration: none; color: inherit; }
.dry-trip > i:first-child { flex: none; width: 24px; text-align: center; color: var(--brand); }
.dry-trip-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dry-trip-main b { font-size: 1rem; line-height: 1.35; color: var(--ink-100); overflow-wrap: anywhere; }
.dry-trip-main span { font-size: .82rem; color: var(--ink-400); overflow-wrap: anywhere; }
.dry-count { flex: none; font-size: .8rem; font-weight: 700; color: var(--ink-400); font-variant-numeric: tabular-nums; }
.dry-go { flex: none; font-size: .8rem; color: var(--ink-400); }
[dir="rtl"] .dry-go { transform: scaleX(-1); }
.dry-none { margin: 0 0 4px; font-size: .95rem; line-height: 1.55; color: var(--ink-200); }
.dry-link { margin: 12px 0; }
@media print {
    .dry-shell .dry-bar, .dry-shell .dry-text, .dry-shell .dry-state, .dry-shell .atl-back { display: none !important; }
    .dry-shell .dry-print { display: block; color: #000; }
    .dry-shell .dry-day { break-inside: avoid; border: 0; box-shadow: none; background: none; padding: 0 0 14px; color: #000; }
    .dry-shell .dry-day.is-empty { display: none; }
    .dry-shell .dry-day time, .dry-shell h1 { color: #000 !important; }
}

/* ── Learn to read the local writing (letters.php) ── */
.scr-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.scr-chip { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--glass-border); background: var(--bg-raised); color: var(--ink-200); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.scr-chip.is-on { border-color: var(--brand); color: var(--ink-100); box-shadow: inset 0 0 0 1px var(--brand); }
.scr-chip:focus-visible, .scr-opt:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.scr-game { text-align: center; }
.scr-ask { margin: 0 0 6px; font-size: .86rem; font-weight: 600; color: var(--ink-400); }
.scr-letter { display: flex; align-items: center; justify-content: center; min-height: 132px; margin: 0 0 12px; border-radius: 18px; border: 1px solid var(--glass-border); background: var(--bg-raised);
    font-size: 5rem; line-height: 1.2; font-weight: 700; color: var(--ink-100); font-family: "Noto Sans", "Noto Sans Arabic", "Noto Sans Thai", "Noto Sans Devanagari", "Noto Sans JP", "Noto Sans KR", system-ui, sans-serif; }
.scr-opts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.scr-opt { min-height: 54px; padding: 6px 10px; border-radius: 14px; border: 1px solid var(--glass-border); background: var(--bg-raised); color: var(--ink-100); font: inherit; font-size: 1.05rem; font-weight: 700; cursor: pointer; overflow-wrap: anywhere; }
.scr-opt:disabled { cursor: default; opacity: .75; }
.scr-opt.is-right { border-color: #22C55E; color: #22C55E; opacity: 1; background: color-mix(in srgb, #22C55E 12%, transparent); }
.scr-opt.is-wrong { border-color: #EF4444; color: #EF4444; opacity: 1; }
.scr-say { min-height: 1.5em; margin: 12px 0 6px; font-size: .95rem; font-weight: 600; color: var(--ink-200); }
.scr-say.is-good { color: #22C55E; }
.scr-say.is-bad { color: #F87171; }
.scr-foot { display: flex; justify-content: space-between; gap: 12px; min-height: 1.4em; font-size: .82rem; color: var(--ink-400); font-variant-numeric: tabular-nums; }
.scr-start { width: 100%; min-height: 50px; margin-top: 12px; justify-content: center; }
.scr-start[hidden] { display: none; }
.scr-chart { margin-top: 18px; border-top: 1px solid var(--glass-border); }
.scr-chart > summary { display: flex; align-items: center; min-height: 48px; cursor: pointer; font-size: .92rem; font-weight: 700; color: var(--ink-200); }
.scr-grid { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.scr-grid li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 12px; border: 1px solid var(--glass-border); text-align: center; }
.scr-grid b { font-size: 1.6rem; line-height: 1.3; color: var(--ink-100); }
.scr-grid span { font-size: .72rem; line-height: 1.3; color: var(--ink-400); overflow-wrap: anywhere; }
.scr-card .t3-field { margin-bottom: 14px; }
.scr-range { margin-bottom: 4px; }
.scr-numform { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; margin-top: 16px; }
.scr-numform .t3-field { margin: 0; }
.scr-numform .t-btn { min-height: 46px; }

/* ── Country guide: health notes, manners and staying safe, speed limits (country.php) ── */
.hlt-lead { margin: 0 0 10px; font-size: .92rem; line-height: 1.5; color: var(--ink-200); }
.hlt-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hlt-list li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--glass-border); background: var(--bg-raised); font-size: .84rem; font-weight: 600; color: var(--ink-100); }
.hlt-also { margin: 0 0 10px; font-size: .86rem; line-height: 1.5; color: var(--ink-400); }
.hlt-ask { margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--glass-border); background: var(--bg-raised); font-size: .9rem; line-height: 1.55; color: var(--ink-100); }
.hlt-ask i { color: var(--brand); margin-inline-end: 6px; }
.hlt-card .atl-note { margin-top: 12px; }
.mnr-body { font-size: .95rem; line-height: 1.65; color: var(--ink-200); overflow-wrap: anywhere; text-align: start; margin-bottom: 12px; }
.mnr-h { margin: 14px 0 4px; font-size: 1rem; line-height: 1.3; color: var(--ink-100); }
.mnr-h:first-child { margin-top: 0; }
.mnr-text { margin: 0; }
.mnr-card .t3-warn { margin: 0 0 12px; }
.mnr-card .atl-note { margin-top: 10px; }
.drg-line { display: flex !important; flex-wrap: wrap; gap: 2px 12px; margin-top: 6px; color: var(--ink-200) !important; }
.drg-h { flex: 1 1 100%; font-weight: 700; color: var(--ink-400); }
.drg-item b { color: var(--ink-100); font-variant-numeric: tabular-nums; }
.drg-credit { display: block; margin-top: 4px; }
