/* safety wing styles. Loaded after style.css and wings.css (shared tokens and components live there).
   Prefixes: sf- the /safety finder; on a country page cs- the answer block and the sections, tl- the hostility
   chart, ev- the incidents list, gr- the ground score, at- the survey bars, trv- the travellers' reports.
   No new colours: bands use --band-*, the kinds of hostility use ink and the one accent, the rest paper and ink. */

/* ---------- /safety: the finder ---------- */
.sf p.sf-lede { color: var(--text-2); font-size: 1rem; line-height: 1.55; margin: 0 0 14px; }
.sf-tools { display: contents; } /* its children lay out in .sf, so the count line can stay stuck over the whole list */
.sf-q { display: block; font-weight: 600; margin: 0 0 4px; }
.sf-in { font: inherit; width: 100%; min-height: 48px; padding: 8px 12px; border: 1px solid var(--text); border-radius: var(--radius); background: var(--bg); color: var(--text); }
.sf-in::placeholder { color: var(--muted); opacity: 1; }

.sf-status { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 46px; background: var(--bg); border-block-end: 2px solid var(--rule); }
.sf p.sf-count { margin: 0; font-size: 1rem; line-height: 1.3; }
.sf-count strong { font: 700 1.375rem/1 var(--serif); }
.sf-count:focus-visible { outline-offset: -3px; }
.sf-clear { font: inherit; font-size: 0.9375rem; min-height: 44px; min-width: 44px; padding: 0; border: 0; background: none; color: var(--text); text-decoration: underline; text-decoration-color: var(--axis); text-underline-offset: 0.2em; cursor: pointer; }
.sf-clear:hover { color: var(--accent); }

/* count bar: how many countries are left in each band. A picture only; the chips under it carry the words. */
.sf-bar { display: block; width: 100%; height: 10px; margin: 12px 0 10px; }
[dir="rtl"] .sf-bar { transform: scaleX(-1); } /* the safest band starts where the first chip starts */
.sf-bar rect { transition: x 0.2s ease-out, width 0.2s ease-out, opacity 0.2s ease-out; }
.sf-bar .dim { opacity: 0.3; }
.f-warm { fill: var(--band-warm); } .f-ok { fill: var(--band-ok); } .f-caution { fill: var(--band-caution); } .f-hostile { fill: var(--band-hostile); } .f-avoid { fill: var(--band-avoid); }
.sw-warm { background: var(--band-warm); } .sw-ok { background: var(--band-ok); } .sw-caution { background: var(--band-caution); } .sw-hostile { background: var(--band-hostile); } .sw-avoid { background: var(--band-avoid); }

.sf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.sf-chip { font: inherit; font-size: 0.9375rem; line-height: 1.2; min-height: 44px; min-width: 44px; padding: 4px 12px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--axis); border-radius: var(--radius); background: transparent; color: var(--text); cursor: pointer; text-align: start; }
.sf-chip b { font: 700 1.0625rem/1 var(--serif); }
.sf-chip i { flex: none; width: 10px; height: 10px; }
.sf-chip:hover { border-color: var(--text); }
.sf-chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.sf-chip[aria-pressed="true"] i { outline: 1px solid var(--bg); }
.sf-chip[aria-disabled="true"] { border-style: dashed; border-color: var(--axis); color: var(--muted); cursor: default; }
.sf p.sf-tip { margin: 8px 0 0; padding-inline-start: 8px; border-inline-start: 3px solid var(--axis); font-size: 0.9375rem; line-height: 1.5; color: var(--text-2); } /* why a dashed chip did nothing */
.sf-via { font-weight: 600; color: var(--text); }

.sf-more { border-block: 1px solid var(--line); margin: 0 0 4px; }
.sf-more summary { min-height: 44px; padding-block: 9px; font-weight: 600; cursor: pointer; }
.sf p.sf-h { font-size: 0.875rem; font-weight: 600; line-height: 1.4; color: var(--muted); margin: 4px 0 6px; }
@media (min-width: 600px) {
  .sf-more { border: 0; }
  .sf-more summary { display: none; }
}

/* a band of countries: a double rule, the band's ink, its name and how many are shown */
.sf-group { margin-block-start: 26px; }
.sf-group h2 { display: flex; align-items: baseline; gap: 8px; margin: 0; padding-block: 10px 8px; border-block-start: 3px double var(--text); border-block-end: 1px solid var(--text); font: 700 1.3125rem/1.25 var(--serif); }
.sf-group h2::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--band-ok); }
.sf-group[data-band="warm"] h2::before { background: var(--band-warm); }
.sf-group[data-band="caution"] h2::before { background: var(--band-caution); }
.sf-group[data-band="hostile"] h2::before { background: var(--band-hostile); }
.sf-group[data-band="avoid"] h2::before { background: var(--band-avoid); }
.sf-group h2 span { margin-inline-start: auto; font: 400 0.875rem/1.4 var(--sans); color: var(--muted); }

.sf ul.sf-list { list-style: none; margin: 0; padding: 0; }
.sf li.sf-row { margin: 0; font-size: 1rem; line-height: 1.4; }
.sf-row a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; min-height: 56px; padding-block: 9px; border-block-end: 1px solid var(--line); color: var(--text); text-decoration: none; overflow-wrap: break-word; }
.sf-name { font-weight: 600; font-size: 1.0625rem; }
.sf-row a:hover .sf-name { color: var(--accent); text-decoration: underline; text-underline-offset: 0.2em; }
.sf-n { grid-column: 2; grid-row: 1 / span 2; min-width: 3.25rem; padding-inline-start: 10px; border-inline-start: 4px solid; font: 700 1.5rem/1.2 var(--serif); text-align: center; }
.bl-warm { border-color: var(--band-warm); } .bl-ok { border-color: var(--band-ok); } .bl-caution { border-color: var(--band-caution); } .bl-hostile { border-color: var(--band-hostile); } .bl-avoid { border-color: var(--band-avoid); }
.sf-sub { grid-column: 1; color: var(--text-2); font-size: 0.875rem; line-height: 1.45; }
.sf-all { font: inherit; width: 100%; min-height: 48px; padding: 0; border: 0; border-block-end: 1px solid var(--line); background: none; color: var(--text); text-align: start; text-decoration: underline; text-decoration-color: var(--axis); text-underline-offset: 0.2em; cursor: pointer; }
.sf-all:hover { color: var(--accent); }

/* few results: one line and one way out. Zero results: what happened, what each loosening gives, the nearest rows. */
.sf-few { margin-block: 12px 2px; }
.sf-few p { margin: 0 0 8px; color: var(--text-2); font-size: 1rem; line-height: 1.5; }
.sf-zero { margin-block: 14px 6px; padding-block: 14px 0; border-block: 3px double var(--text); }
.sf-zero p { margin: 0 0 10px; font-size: 1rem; line-height: 1.5; }
.sf-zero p.sf-big { font: 700 1.3125rem/1.3 var(--serif); }
.sf-zero p.sf-h { margin-block: 14px 0; }
.sf-zero ul:last-child li:last-child a { border-block-end: 0; }
.sf-zero ul + .sf-opt { margin-block-start: 12px; }
.sf-zero .sf-opt:last-child { margin-block-end: 14px; }
.sf-opt { font: inherit; display: block; width: 100%; min-height: 48px; margin: 0 0 8px; padding: 8px 12px; border: 1px solid var(--text); border-radius: var(--radius); background: transparent; color: var(--text); text-align: start; line-height: 1.35; cursor: pointer; }
.sf-opt.main { background: var(--text); color: var(--bg); font-weight: 600; }
.sf-opt:hover { background: var(--surface-2); color: var(--text); }
.sf-opt.main:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.sf > .meta { margin-block-start: 20px; }

/* ---------- /country/<slug>: the answer block (cs-) ---------- */
h1.cs-h1 { font: 700 1.375rem/1.25 var(--serif); color: var(--text-2); margin: 6px 0 12px; }
.cs-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: center; margin: 0 0 6px; }
.cs p.cs-n { font: 700 4.25rem/0.9 var(--serif); margin: 0; white-space: nowrap; }
.cs-n small { font: 400 1.125rem/1 var(--serif); color: var(--muted); }
.cs p.cs-v { font: 700 1.625rem/1.2 var(--serif); margin: 0; }
.cs-ruler { display: block; overflow: visible; direction: ltr; margin: 10px 0 2px; } /* 1 is on the left in both languages, like the time axis */
.cs-cut { fill: var(--bg); }
.cs-tick { fill: var(--text); }
p.cs-ends { direction: ltr; display: flex; justify-content: space-between; gap: 12px; margin: 0 0 10px; font-size: 0.75rem; font-weight: 600; line-height: 1.3; color: var(--muted); }
p.cs-basis { margin: 0; font-size: 0.9375rem; line-height: 1.55; color: var(--text-2); }
.cs-chk { display: inline-block; }
ul.cs-parts { list-style: none; margin: 6px 0 0; padding: 0; }
ul.cs-parts li { margin: 0 0 2px; padding-inline-start: 10px; border-inline-start: 3px solid var(--line); font-size: 0.9375rem; line-height: 1.5; color: var(--text-2); }
.cs-how summary, .cs-fold summary, .tl-table summary { min-height: 44px; padding-block: 10px; font-size: 0.9375rem; line-height: 1.5; cursor: pointer; }
.cs-how summary span, .cs-fold summary span, .tl-table summary span { text-decoration: underline; text-decoration-color: var(--axis); text-underline-offset: 0.2em; }
.cs-how summary:hover span, .cs-fold summary:hover span, .tl-table summary:hover span { color: var(--accent); }
.cs-how p { margin: 0 0 10px; font-size: 0.9375rem; line-height: 1.55; color: var(--text-2); }

section.cs-know { border-block-start: 3px double var(--text); margin-block-start: 4px; padding-block-start: 10px; }
section.cs-know > h2, section.cs-sec > h2 { font: 700 1.3125rem/1.2 var(--serif); margin: 0 0 6px; padding: 0; border: 0; }
.cs-know ol { list-style: none; margin: 0; padding: 0; counter-reset: know; }
.cs-know ol li { counter-increment: know; display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: 0 6px; margin: 0; padding-block: 8px; border-block-end: 1px solid var(--line); font-size: 1rem; line-height: 1.55; }
.cs-know ol li::before { content: counter(know); font: 700 1.375rem/1.15 var(--serif); }
.cs-know q { display: block; quotes: none; margin-block-start: 4px; padding-inline-start: 8px; border-inline-start: 3px solid var(--line); color: var(--text-2); font-size: 0.9375rem; }

.cs-alert { margin-block: 14px 0; }
.cs-btn { font: inherit; font-weight: 600; width: 100%; min-height: 48px; padding: 8px 16px; border: 1px solid var(--text); border-radius: var(--radius); background: var(--text); color: var(--bg); line-height: 1.3; cursor: pointer; }
.cs-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cs-btn:disabled, .cs-btn[aria-disabled="true"] { background: transparent; border-color: var(--axis); color: var(--muted); cursor: default; }
.cs-alert .status a { display: inline-block; padding-block: 10px; }
.sf-all[aria-disabled="true"] { color: var(--muted); cursor: default; }
p.cs-exp { margin: 6px 0 0; font-size: 0.875rem; line-height: 1.5; color: var(--text-2); }
.cs-alert p.status, .trv-form p.status { min-height: 0; margin: 6px 0 0; font-size: 0.9375rem; line-height: 1.5; }
.cs-alert p.status:empty, .trv-form p.status:empty, p.tl-kstatus:empty { display: none; }

/* a section of the country page: a double rule, a serif heading, a quiet line under it */
section.cs-sec { border-block-start: 3px double var(--text); margin-block-start: 26px; padding-block-start: 10px; }
section.cs-sec h3 { font: 600 1rem/1.4 var(--sans); margin: 18px 0 6px; }
p.cs-dek { margin: 0 0 10px; font-size: 0.9375rem; line-height: 1.55; color: var(--text-2); }
p.cs-p { margin: 0 0 10px; font-size: 1rem; line-height: 1.55; }
p.cs-more { margin: 14px 0 0; font-size: 1rem; line-height: 1.5; }
.cs-more a { display: inline-block; padding-block: 10px; }
.cs-sec ul.actions { margin: 6px 0 4px; padding: 0; }
.cs-sec ul.actions li { flex: 1 1 100%; margin: 0; }
.cs-sec ul.actions .btn { width: 100%; min-height: 48px; }
.cs-sec .official p, .cs-sec .mfa li { font-size: 1rem; line-height: 1.6; }

/* ---------- the hostility section (tl-): six kinds, two inks, three textures ---------- */
.k-phys, .k-threat, .k-prop { color: var(--text); }
.k-verbal, .k-refuse, .k-demo { color: var(--accent); }
p.tl-pause { margin: 0 0 6px; padding: 10px 12px; border: 1px dashed var(--axis); font-size: 0.9375rem; line-height: 1.55; }
ul.tl-kinds { list-style: none; margin: 0; padding: 0; }
ul.tl-kinds > li, .tl-kind { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 0 12px; align-items: start; }
ul.tl-kinds > li { margin: 0; padding-block: 9px; border-block-end: 1px solid var(--line); font-size: 1rem; line-height: 1.45; }
ul.tl-kinds > li.on { display: block; padding: 0; }
.tl-key { margin-block-start: 7px; }
.tl-kinds div b { display: block; font-weight: 600; }
.tl-kinds div span { display: block; color: var(--text-2); font-size: 0.9375rem; }
.tl-kn { min-width: 1.75rem; font: 700 1.25rem/1.3 var(--serif); text-align: end; }
.tl-kind { font: inherit; width: 100%; min-height: 56px; margin: 0; padding: 9px 6px; border: 0; background: none; color: var(--text); text-align: start; cursor: pointer; }
.tl-kind:hover { background: var(--surface-2); }
.tl-kind[aria-pressed="true"] { background: var(--accent-soft); outline: 2px solid var(--text); outline-offset: -2px; }
.tl-kind[aria-pressed="true"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.tl-all { margin-block: 10px 4px; }
.tl-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 26rem; margin: 0 0 12px; }
.tl-tab { flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; min-height: 52px; }
.tl-tab small { font-size: 0.8125rem; line-height: 1.2; }
figure.tl-fig { margin: 0; }
.tl-fig figcaption { margin: 0 0 6px; font-size: 1rem; line-height: 1.5; }
p.tl-unit, p.tl-note, p.tl-ctxl { margin: 0 0 4px; font-size: 0.875rem; line-height: 1.5; color: var(--muted); }
p.tl-note { margin-block-start: 10px; }
p.tl-ctxl { text-align: start; }
p.tl-kstatus { margin: 10px 0 0; font-size: 0.9375rem; font-weight: 600; line-height: 1.5; }
.tl-chart, .tl-dotbox svg { direction: ltr; } /* time runs left to right in both languages */
.tl-chart svg, .tl-dotbox svg { display: block; overflow: visible; }
.tl-ax { fill: var(--muted); font: 11.5px var(--sans); }
.tl-tot { fill: var(--text); font: 700 14px var(--serif); }
.tl-grid { stroke: var(--line); stroke-width: 1; }
.tl-base { stroke: var(--text); stroke-width: 1.5; }
.tl-mean { stroke: var(--axis); stroke-width: 1; stroke-dasharray: 2 3; }
.tl-sel { fill: var(--accent-soft); }
.tl-pnc { color: var(--axis); } /* "not collected" carries meaning: drawn at 3:1, not in the hairline colour */
.tl-ctx { fill: var(--muted); }
.tl-hit { fill: transparent; cursor: pointer; }
.tl-dot { fill: currentColor; stroke: var(--bg); stroke-width: 1; }
.tl-col { transform-box: fill-box; transform-origin: 50% 100%; }
.tl-in .tl-col { animation: tl-grow 0.24s ease-out both; }
.tl-in .tl-c1 { animation-delay: 20ms; } .tl-in .tl-c2 { animation-delay: 40ms; } .tl-in .tl-c3 { animation-delay: 60ms; } .tl-in .tl-c4 { animation-delay: 80ms; }
.tl-in .tl-c5 { animation-delay: 100ms; } .tl-in .tl-c6 { animation-delay: 120ms; } .tl-in .tl-c7 { animation-delay: 140ms; } .tl-in .tl-c8 { animation-delay: 160ms; }
.tl-in .tl-c9 { animation-delay: 180ms; } .tl-in .tl-c10 { animation-delay: 200ms; } .tl-in .tl-c11 { animation-delay: 220ms; } .tl-in .tl-c12 { animation-delay: 240ms; }
@keyframes tl-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.tl-reader { direction: ltr; display: flex; align-items: center; gap: 8px; margin-block: 6px 0; border-block: 1px solid var(--line); } /* earlier is on the left, as on the chart */
.tl-arrow { font: inherit; font-size: 1.5rem; line-height: 1; min-width: 44px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--text); cursor: pointer; }
.tl-arrow:hover { color: var(--accent); }
.tl-arrow[aria-disabled="true"] { color: var(--axis); cursor: default; }
.tl-reader p { flex: 1; min-width: 0; margin: 0; padding-block: 8px; text-align: center; font-size: 0.9375rem; line-height: 1.45; }
[data-lang="he"] .tl-reader p { direction: rtl; }
.tl-reader p:focus-visible { outline-offset: -3px; }
.tl-reader p b { display: block; font: 700 1.0625rem/1.35 var(--serif); }
.tl-rc { display: block; color: var(--muted); font-size: 0.875rem; }
p.tl-jump { margin: 0; }
ol.tl-dots { list-style: none; margin: 6px 0 8px; padding: 0; }
ol.tl-dots li { margin: 0; padding-block: 6px; border-block-end: 1px solid var(--line); font-size: 0.9375rem; line-height: 1.45; }
.tl-table { margin-block-start: 6px; border-block-end: 1px solid var(--line); }
table.tl-data { min-width: 38rem; }
table.tl-data tbody th { width: 9rem; font-weight: 400; overflow-wrap: normal; }
table.tl-data tbody th span { white-space: nowrap; } /* the month stays on one line; "(so far)" may wrap under it */
table.tl-data thead th { min-width: 4.5rem; }
p.tl-tcap { margin: 10px 0 6px; font-size: 0.9375rem; font-weight: 600; line-height: 1.5; }
/* the month (or week) stays in view while the counts scroll sideways on a phone */
table.tl-data tbody th, table.tl-data thead th:first-child { position: sticky; inset-inline-start: 0; z-index: 1; background: var(--bg); }

/* ---------- what was reported (ev-) ---------- */
.ev-scope { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
ul.ev-list { list-style: none; margin: 0; padding: 0; }
ul.ev-list > li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 0 12px; margin: 0; padding-block: 10px; border-block-end: 1px solid var(--line); font-size: 1rem; line-height: 1.45; }
p.ev-cap { margin: 0 0 2px; font-size: 0.875rem; line-height: 1.45; color: var(--text-2); }
.ev-cap > bdi, .ev-cap > span { white-space: nowrap; }
.ev-cap strong { color: var(--text); }
.ev-list a { display: inline-block; padding-block: 3px; overflow-wrap: anywhere; }
.ev-src { display: block; font-size: 0.875rem; color: var(--muted); }

/* ---------- the ground score, behind its switch (gr-) ---------- */
p.gr-sev { margin: 0 0 12px; padding: 8px 12px; border: 1px solid var(--text); border-inline-start-width: 4px; font-size: 1rem; line-height: 1.45; }
p.gr-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0; }
.gr-band { font: 700 1.625rem/1.2 var(--serif); }
.gr-n { font: 700 1.25rem/1.2 var(--serif); }
p.gr-range { margin: 2px 0 6px; font-size: 0.9375rem; line-height: 1.5; color: var(--text-2); }
ul.gr-why, ul.gr-blocks, ul.cs-gaps { list-style: none; margin: 0; padding: 0; }
/* what we do not have yet on a country: one short block of three lines */
ul.cs-gaps > li { margin: 0; padding-block: 9px; border-block-end: 1px solid var(--line); font-size: 0.9375rem; line-height: 1.55; color: var(--text-2); }
.cs-gaps b { display: block; font-size: 1rem; font-weight: 600; color: var(--text); }
.cs-gaps a { display: inline-block; padding-block: 10px; }
.cs-fold .tl-kinds > li:last-child { border-block-end: 0; }
ul.gr-why > li { display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 6.5rem); gap: 0 10px; align-items: center; margin: 0; padding-block: 8px; border-block-end: 1px solid var(--line); font-size: 0.9375rem; line-height: 1.4; }
.gr-why .gr-l + .gr-e { grid-column: 2 / 4; }
.gr-e { text-align: end; color: var(--text-2); }
ul.gr-why > li.gr-sum { border-block-end: 0; border-block-start: 1px solid var(--text); font-weight: 600; }
.gr-sum .gr-e { color: var(--text); }
.gr-bar { display: block; direction: ltr; overflow: visible; }
.trv-scale { display: block; overflow: visible; }
[dir="rtl"] .trv-scale { transform: scaleX(-1); } /* 1 is where the form's first button is */
p.trv-ends { display: flex; justify-content: space-between; margin: 0 0 8px; font-size: 0.75rem; font-weight: 600; line-height: 1.3; color: var(--muted); }
.gr-axis { fill: var(--axis); }
.gr-v, .gr-zero { fill: var(--text); }
ul.gr-blocks > li { margin: 0; padding-block: 9px; border-block-end: 1px solid var(--line); font-size: 1rem; line-height: 1.5; }
.gr-blocks b { display: block; font-weight: 600; }
.gr-val { display: block; }
.gr-sub { display: block; color: var(--text-2); font-size: 0.875rem; }

/* ---------- the atmosphere: survey bars of 100 (at-) ---------- */
.at-bar { display: block; overflow: visible; margin: 6px 0 4px; }
[dir="rtl"] .at-bar { transform: scaleX(-1); } /* the bar starts where the first label starts */
.at-all { fill: none; stroke: var(--axis); } /* the outline of the full 100 carries meaning: 3:1 */
.at-u { fill: var(--text); }
.at-f { fill: none; stroke: var(--text); }
p.at-row { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 4px; font-size: 0.9375rem; line-height: 1.45; }
p.at-row span:first-child { font-weight: 600; }
p.at-src, span.at-src { margin: 0 0 6px; font-size: 0.875rem; line-height: 1.55; color: var(--text-2); }
.at-src a { display: inline-block; padding-block: 2px; }

/* ---------- travellers' reports (trv-) ---------- */
p.trv-mean { margin: 0; }
.trv-mean strong { font: 700 1.625rem/1.2 var(--serif); }
ul.trv-kinds { list-style: none; margin: 0 0 10px; padding: 0; }
ul.trv-kinds li { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding-block: 7px; border-block-end: 1px solid var(--line); font-size: 0.9375rem; line-height: 1.4; }
.trv-kinds b { font: 700 1.0625rem/1.3 var(--serif); }
.trv-form fieldset { min-width: 0; margin: 0 0 14px; padding: 0; border: 0; }
.trv-form legend { margin: 0 0 6px; padding: 0; font-weight: 600; line-height: 1.4; }
.trv-feel { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.trv-feel label { position: relative; display: flex; cursor: pointer; }
.trv-feel input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.trv-feel span { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 64px; padding: 6px 2px; border: 1px solid var(--axis); border-radius: var(--radius); text-align: center; }
.trv-feel span b { font: 700 1.375rem/1 var(--serif); }
.trv-feel span small { font-size: 0.75rem; line-height: 1.2; color: var(--text-2); }
.trv-feel label:hover span { border-color: var(--text); }
.trv-feel input:checked + span { background: var(--text); border-color: var(--text); color: var(--bg); }
.trv-feel input:checked + span small { color: var(--bg); }
.trv-feel input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.trv-form .check { line-height: 1.4; }
.trv-form label.field { display: block; margin: 0 0 4px; }
.trv-month { font: inherit; display: block; width: 100%; max-width: 20rem; min-height: 48px; margin: 0 0 14px; padding: 8px 10px; border: 1px solid var(--text); border-radius: var(--radius); background: var(--bg); color: var(--text); }

@media (min-width: 600px) {
  .cs p.cs-v { font-size: 2rem; }
  .cs-btn { width: auto; min-width: 20rem; }
  .cs-sec ul.actions li { flex: 0 1 auto; }
  ul.gr-why > li { grid-template-columns: minmax(0, 1fr) 140px minmax(0, 9rem); }
}
@media (prefers-reduced-motion: reduce) {
  .sf-bar rect { transition: none; }
  .tl-in .tl-col { animation: none; }
}
/* Windows high contrast: a pressed chip is told by its background, which that mode removes */
@media (forced-colors: active) {
  .sf-chip[aria-pressed="true"], .tl-kind[aria-pressed="true"], .trv-feel input:checked + span { outline: 3px solid Highlight; outline-offset: -3px; }
  .sf-chip[aria-disabled="true"], .cs-btn[aria-disabled="true"], .tl-arrow[aria-disabled="true"] { color: GrayText; border-color: GrayText; }
}
.sf-pf { display: none; }
@media print {
  .sf-in, .sf-q, .sf-bar, .sf-chips, .sf-more, .sf-few, .sf-zero, .sf-all, .sf-clear { display: none !important; }
  .cs-alert, .tl-tabs, .tl-reader, .tl-all, .ev-scope, .trv-form, .tl-hit, .tl-arrow { display: none !important; }
  /* the printout holds every row that matches, the count line and the filters in words */
  .sf li.sf-row.sf-cut { display: block !important; }
  .sf-status { position: static; display: block; border: 0; min-height: 0; }
  .sf-pf { display: block; margin-block-start: 2px; font-size: 0.875rem; font-weight: 400; }
  /* the six kinds are buttons once the script runs; the shared print rule hides buttons */
  .tl-kinds .tl-kind { display: grid !important; }
}

/* "Coming soon" placeholder of the hostility chart (generic columns, blurred; not data) */
.tl-soon { position: relative; margin: 4px 0 12px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.tl-soon-pic { display: block; width: 100%; height: 132px; color: var(--text-2); fill: currentColor; opacity: 0.55; filter: blur(5px); }
.tl-soon-ax { stroke: var(--axis); stroke-width: 2; fill: none; }
.tl-soon-badge { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; padding: 12px 16px; text-align: center; font-family: var(--serif); font-size: 1.0625rem; font-weight: 700; line-height: 1.4; color: var(--text); }
.tl-soon-badge span { display: inline-block; max-width: 100%; padding: 8px 18px; background: var(--bg); border: 1px solid var(--text); border-radius: 12px; }
@media (prefers-reduced-transparency: reduce) { .tl-soon-pic { opacity: 0.3; } }
@media (forced-colors: active) { .tl-soon-pic { display: none; } .tl-soon-badge { position: static; } }
@media print { .tl-soon { display: none; } }
