/* retireacross look (2026-10-30, the uniacross rework brought over): a reference work with the warmth of photos, not a SaaS
   landing page. Loaded after app.css and overrides it. Grotesque headings, paper background, 1 px rules instead of shadows,
   one accent used rarely, no gradients; the photos stay (hero, page headers, cards, closing band). */
@font-face { font-family: "Inter Tight"; src: url("/assets/fonts/inter-tight-latin.woff2") format("woff2"); font-weight: 600 800; font-style: normal; font-display: block; }   /* headings (owner 2026-11-09: Inter Tight instead of Bricolage Grotesque, all across sites) */
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: block; }
:root {
  --bg: #f7f5f0; --surface: #fffdf9; --surface-2: #efece4; --fg: #15192a; --muted: #5f6577; --line: #d9d4c8;
  --brand: #1e3a7a; --brand-2: #14295a; --teal: #1e3a7a; --accent: #b8541f; --accent-2: #8f3f14;
  --brand-soft: #e9ecf3; --teal-soft: #e9ecf3; --accent-soft: #f6e8df; --grad: #1e3a7a;
  --radius: 6px; --radius-sm: 4px; --shadow-sm: none; --shadow: none; --shadow-lg: none;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --accent-ink: #8f3f14; --accent-btn: #b8541f; --accent-btn-2: #8f3f14;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #14151a; --surface: #1b1d24; --surface-2: #23262f; --fg: #ecebe6; --muted: #a2a5ae; --line: #343843;
    --brand: #9db3e8; --brand-2: #c1cff0; --teal: #9db3e8; --accent: #e08a5a; --accent-2: #f0a77f; --brand-soft: #222a3c; --teal-soft: #222a3c; --accent-soft: #3a2a20; --grad: #9db3e8;
    --accent-ink: #f0a77f; --accent-btn: #e08a5a; --accent-btn-2: #f0a77f; --on-brand: #14151a; }
}
:root[data-theme="dark"] { --bg: #14151a; --surface: #1b1d24; --surface-2: #23262f; --fg: #ecebe6; --muted: #a2a5ae; --line: #343843;
  --brand: #9db3e8; --brand-2: #c1cff0; --teal: #9db3e8; --accent: #e08a5a; --accent-2: #f0a77f; --brand-soft: #222a3c; --teal-soft: #222a3c; --accent-soft: #3a2a20; --grad: #9db3e8;
  --accent-ink: #f0a77f; --accent-btn: #e08a5a; --accent-btn-2: #f0a77f; --on-brand: #14151a; }

body { font-size: 16px; line-height: 1.6; }
h1, h2, h3, .hero-title, .fold-title, .cta-band h2, .glass h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; }
h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
time, .num, .money, .score, .tile-value, td { font-variant-numeric: tabular-nums; }
a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.eyebrow { font-size: .72rem; letter-spacing: .12em; color: var(--muted); font-weight: 600; font-variant: small-caps; }
.eyebrow::before { content: none; }

/* header: a masthead rule, no blur; the full menu still fits at 1280 px with Inter */
.site-header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid var(--fg); }
.logo { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; }
.logo-mark { border-radius: var(--radius-sm); box-shadow: none; background: var(--brand); }
:root[data-theme="dark"] .logo-mark { background: #1e3a7a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-mark { background: #1e3a7a; } }
.logo-text span, .site-footer .logo-text span { background: none; -webkit-text-fill-color: currentColor; color: var(--accent-ink); }
.site-footer .logo-text span { color: #ffc46b; -webkit-text-fill-color: #ffc46b; }
.site-nav a { border-radius: 2px; font-weight: 500; font-size: .9rem; padding: 8px 7px; letter-spacing: -.005em; }
.site-nav a[aria-current="page"] { background: none; color: var(--fg); box-shadow: inset 0 -2px 0 var(--fg); }
.site-nav a.btn { border-radius: var(--radius-sm); }
.beta-badge { border-radius: 2px; }
.nav-toggle { border-radius: var(--radius-sm); }

/* buttons: flat, no lift */
.btn { border-radius: var(--radius-sm); box-shadow: none; font-weight: 600; padding: 10px 18px; }
.btn:hover { transform: none; box-shadow: none; }
.btn-accent { background: var(--accent-btn); }
.btn-accent:hover { background: var(--accent-btn-2); box-shadow: none; }
.btn-light { background: transparent; color: var(--brand); border-color: var(--line); backdrop-filter: none; }
.btn-light:hover { background: var(--surface-2); color: var(--brand-2); }
.btn-ghost { border-radius: var(--radius-sm); }

/* cards: a rule, not a shadow; no hover lift; no icons in circles */
.card { border-radius: var(--radius); box-shadow: none; }
a.card:hover, .dest-card:hover, .next-tool:hover { transform: none; box-shadow: none; border-color: var(--fg); }
.tool-icon, .feature-icon { display: none; }
.tool-card .ph, .dest-ph { border-radius: var(--radius) var(--radius) 0 0; }
.tool-card:hover .ph img { transform: none; }
.badge, .score, .chip, .sr-chip, .tabs a { border-radius: 3px; }
.flash { border-radius: var(--radius-sm); }
.split .ph { border-radius: var(--radius); box-shadow: none; }
.split ul.ticks li::before { border-radius: 2px; background: transparent; border: 1px solid var(--line); color: var(--fg); }

/* page headers keep their photos; the gradient becomes one dark wash */
.page-hero { background: var(--brand); }
.page-hero::before { background: linear-gradient(100deg, rgba(14, 18, 40, .86) 0%, rgba(14, 18, 40, .55) 42%, rgba(14, 18, 40, .22) 68%, rgba(14, 18, 40, .06) 100%); }   /* lighter fade (owner, 2026-10-30, as uniacross): dark on the text side, the photo shows on the right */
/* phones and the app: the text takes the full width, so the shade covers the whole photo (text was hard to read on bright photos; full QA 2026-11-14) */
@media (max-width: 720px) { .page-hero::before { background: linear-gradient(180deg, rgba(14, 18, 40, .74) 0%, rgba(14, 18, 40, .66) 100%); } }
.page-hero:not(:has(.ph)) { background: var(--bg); color: var(--fg); border-bottom: 1px solid var(--line); }
.page-hero:not(:has(.ph))::before { content: none; }
.page-hero:not(:has(.ph)) h1, .page-hero:not(:has(.ph)) .lead { color: var(--fg); }
.page-hero:not(:has(.ph)) .crumbs, .page-hero:not(:has(.ph)) .crumbs a, .page-hero:not(:has(.ph)) .doc-meta { color: var(--muted); }
.page-hero-inner { padding-top: 30px; padding-bottom: 30px; }
.page-hero .btn-light { color: #fff; border-color: rgba(255,255,255,.5); }
.page-hero .btn-light:hover { background: rgba(255,255,255,.18); color: #fff; }

/* documents: a rail, key facts as a definition row */
.toc { background: transparent; border: 0; border-right: 1px solid var(--line); border-radius: 0; padding: 0 18px 0 0; box-shadow: none; }
.toc-title { color: var(--fg); }
.toc li a { border-radius: 2px; }
.key-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--fg); border-bottom: 1px solid var(--line); margin: 0 0 6px; background: transparent; padding: 0; box-shadow: none; border-radius: 0; }
.key-facts > div { padding: 12px 14px 12px 0; }
.key-facts > div + div { border-left: 1px solid var(--line); padding-left: 14px; }
.key-facts .kf-label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.key-facts .kf-label .icon { display: none; }
.key-facts p { margin: 4px 0 0; font-weight: 500; }
.kf-line { margin: 0 0 22px; color: var(--muted); font-size: .9rem; }
.doc h2 { border-top: 1px solid var(--fg); padding-top: 14px; }
.doc table th, .table-wrap th { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.table-wrap { border-radius: var(--radius-sm); }

/* tools and member pages: forms read as forms, results as findings */
.tool-form.card { box-shadow: none; }
.q-num { border-radius: 2px; background: var(--fg); color: var(--bg); }
.tool-form .choices label, .choices label { border-radius: 3px; }
.choices label:has(input:checked) { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.result::before { width: 3px; }
.meter, .meter span { border-radius: 2px; }
.meter span { background: var(--fg); }
.tabs { background: var(--bg); border-bottom: 1px solid var(--line); gap: 0; }
.tabs a { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; }
.tabs a.active, .tabs a[aria-current="page"] { background: transparent; color: var(--fg); border-color: var(--fg); }
.tiles { gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tile { border: 0; border-radius: 0; background: transparent; padding: 12px 16px 12px 0; }
.tile + .tile { border-left: 1px solid var(--line); padding-left: 16px; }
.tile:hover { border-color: var(--line); }
.tile-value { font-family: var(--serif); font-weight: 650; }
.tile .meter span { background: var(--fg); }
details.card > summary h2 { font-family: var(--serif); }

/* home */
.hero::before { background: linear-gradient(100deg, rgba(10, 14, 32, .88) 0%, rgba(10, 14, 32, .6) 40%, rgba(10, 14, 32, .18) 72%, rgba(10, 14, 32, .04) 100%); }
.hero .ph img { object-position: 70% 40%; }
.hero h1 { font-weight: 700; max-width: 17ch; }
.hero h1 span { background: none; -webkit-text-fill-color: #ffc46b; color: #ffc46b; }
.hero .eyebrow { color: #ffc46b; }
.hero .lead { color: rgba(255,255,255,.9); }
.hero .btn-light { color: #fff; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.08); }
.hero .btn-light:hover { background: rgba(255,255,255,.2); color: #fff; }
.hero-inner { min-height: 0; grid-template-rows: auto auto; row-gap: 18px; align-items: stretch; padding-top: 34px; padding-bottom: 84px; }
.hero-inner > .hero-text { align-self: end; }
.hero-inner > .hero-search { grid-column: 1; margin: 0; }
.hero-inner > aside { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; min-height: 0; }
.hero-trust { margin-top: 18px; }
.hero-trust span::before { border-radius: 2px; }
.hero-search .search-box { border-radius: var(--radius); box-shadow: none; }
.glass { border-radius: var(--radius); padding: 14px 18px; background: rgba(10, 14, 32, .55); border-color: rgba(255,255,255,.22); }
.glass h2 { font-size: 1.05rem; }
.glass h2::before { content: none; }
.glass .vt-list { list-style: none; margin: 0 0 10px; padding: 0; flex: 1 1 0; height: 0; min-height: 0; overflow: hidden; }
.glass .vt-list li { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.16); font-size: .9rem; line-height: 1.35; }
.glass .vt-list strong { color: #fff; font-weight: 650; white-space: nowrap; }
.glass .vt-list em { display: block; font-style: normal; color: rgba(255,255,255,.7); font-size: .8rem; }
.glass .note { margin: 0; }
.vt-roll { list-style: none; margin: 0; padding: 0; animation: vt-roll var(--vt-roll, 70s) linear infinite; }
.glass:hover .vt-roll, .glass:focus-within .vt-roll { animation-play-state: paused; }
@keyframes vt-roll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) { .vt-roll { animation: none; } .glass .vt-list { overflow-y: auto; } }
@media (max-width: 920px) { .hero-inner > aside, .hero-inner > .hero-search { grid-column: auto; grid-row: auto; } .hero-inner > aside { height: 300px; } }
.stats { margin-top: -30px; }   /* 40 px under the search bar (hero padding 84) */
.stats-inner { border-radius: var(--radius); box-shadow: none; }
.stat-item strong { background: none; -webkit-text-fill-color: var(--fg); color: var(--fg); font-family: var(--serif); font-weight: 650; }
.sp-section { border-top: 1px solid var(--fg); padding-top: 18px; margin-top: 44px; }
.sp-section > h2 { margin: 0 0 4px; }
.sp-section .section-head { margin-bottom: 18px; }
.sp-section .eyebrow { color: var(--accent-ink); }
.sp-sub { color: var(--muted); margin: 0 0 18px; max-width: 70ch; }
.sp-changes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.sp-changes li { display: grid; grid-template-columns: 6.2em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .93rem; line-height: 1.45; }
.sp-changes time { font-weight: 650; }
.sp-example { display: grid; grid-template-columns: minmax(220px, 290px) minmax(0, 1fr); gap: 36px; }
.sp-profile dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .95rem; }
.sp-profile dt { color: var(--muted); } .sp-profile dd { margin: 0; }
.sp-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.sp-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sp-cols h3 { margin: 0 0 8px; border-bottom: 1px solid var(--fg); padding-bottom: 4px; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.sp-cols h3 .badge { font-family: var(--font); font-size: .72rem; font-weight: 600; letter-spacing: 0; }
.sp-cols dl { margin: 0; font-size: .92rem; }
.sp-cols dt { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.sp-cols dd { margin: 2px 0 0; }
.sp-also { margin: 14px 0 0; color: var(--muted); font-size: .92rem; }
.sp-method { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; font-size: .95rem; color: var(--muted); }
.sp-method p { margin: 0; }
.sp-method strong { color: var(--fg); display: block; margin-bottom: 4px; font-family: var(--serif); font-size: 1.05rem; }
.dest-card { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.dest-ph { margin: -16px -18px 10px; }
.dest-name { font-family: var(--serif); font-size: 1.15rem; }
.dest-card .dest-flag { font-size: 1.2rem; }
.dest-head { display: flex; align-items: center; gap: 8px; }
.dest-facts { margin: 6px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; font-size: .86rem; }
.dest-facts dt { color: var(--muted); }
.dest-facts dd { margin: 0; color: var(--fg); }
.cta-band { border-radius: var(--radius); }
.cta-band::before { background: linear-gradient(100deg, rgba(10, 14, 32, .88), rgba(10, 14, 32, .55)); }
.band { background: transparent; border-top: 1px solid var(--line); }

/* the cost of a month as a bar: rent and the rest (.rent-bar: app.css .cost-bar is the afford tool's) (country page, destination cards) */
.rent-bar { margin: 6px 0 0; }
.rent-bar .cb-track { display: flex; height: 8px; border-radius: 2px; overflow: hidden; background: var(--surface-2); }
.rent-bar .cb-rent { background: var(--brand); } .rent-bar .cb-rest { background: var(--accent); }
.rent-bar .cb-legend { display: flex; gap: 14px; font-size: .78rem; color: var(--muted); margin-top: 4px; flex-wrap: wrap; }
.rent-bar .cb-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

/* the plan: the next twelve months on one line (dots from the plan's dated steps) */
.year-strip { margin: 0 0 22px; }
.year-strip .ys-title { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.ys-line { position: relative; height: 2px; background: var(--line); margin: 22px 0 8px; }
.ys-months { display: grid; grid-template-columns: repeat(12, 1fr); font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.ys-months span.now { color: var(--fg); font-weight: 700; }
.ys-dot { position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); transform: translate(-50%, -50%); }
.ys-dot.ys-key { background: var(--accent); border-color: var(--accent); }
.ys-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 24px; font-size: .9rem; }
.ys-list li { display: grid; grid-template-columns: 6.5em 1fr; gap: 8px; }
.ys-list time { font-weight: 650; }

@media (max-width: 900px) {
  .sp-example { grid-template-columns: 1fr; }
  .sp-cols, .sp-changes { grid-template-columns: 1fr; }
  .sp-method { grid-template-columns: 1fr; gap: 16px; }
  .key-facts { grid-template-columns: 1fr; } .key-facts > div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .tiles { grid-template-columns: 1fr 1fr; } .tile + .tile { border-left: 0; padding-left: 0; } .tile:nth-child(even) { border-left: 1px solid var(--line); padding-left: 14px; }
  .ys-months span:nth-child(odd) { visibility: hidden; }
}
.sp-changes a { color: var(--fg); text-decoration: none; }
.sp-changes a:hover { text-decoration: underline; }
.sp-section .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .sp-section .grid-3 { grid-template-columns: 1fr; } }
.sp-note { margin: 0 0 6px; color: var(--muted); font-size: .85rem; }
.tip { background: transparent; border: 1px solid var(--line); }
.tip::after { border-radius: 4px; background: #15192a; box-shadow: none; }
.cta-band .btn-light { color: #fff; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.08); }
.cta-band .btn-light:hover { background: rgba(255,255,255,.2); color: #fff; }
.key-facts, .key-facts > div { height: auto; min-height: 0; max-height: none; overflow: visible; }
.key-facts { align-items: start; }
.key-facts p a { color: var(--fg); text-decoration: none; }
.key-facts p a:hover { text-decoration: underline; }
.sr-note { padding: 0 18px; margin: 0 0 6px; }
.tool-card .ph img, .country-card .cc-top img { filter: saturate(1.12) contrast(1.03); }   /* livelier card photos (owner, 2026-10-30) */

/* the full logo (owner 2026-11-02: the R with the plane, the name spelled by the logo itself, no separate text); the footer is always dark */
.logo-full { display: block; line-height: 0; }
.logo-full img { height: 38px; width: auto; display: block; }
.logo-full .lm-dark { display: none; }
:root[data-theme="dark"] .logo-full .lm-light { display: none; }
:root[data-theme="dark"] .logo-full .lm-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-full .lm-light { display: none; } :root:not([data-theme="light"]) .logo-full .lm-dark { display: block; } }
.site-footer .logo-full .lm-light { display: none; }
.site-footer .logo-full .lm-dark { display: block; }
@media (max-width: 480px) { .site-header .logo-full img { height: 29px; } }

/* home banners chosen in the dashboard (Content > Home banners, 2026-11-05, as uniacross and treatacross): the slides share one grid cell, so the
   text block is as tall as the tallest slide and the search bar never moves; photos cross-fade, texts fade out then in */
.hero .hero-title { color: #fff; max-width: 17ch; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; margin: .2em 0 .35em; }
.hero .hero-title span { background: none; -webkit-text-fill-color: #ffc46b; color: #ffc46b; }
.hero-carousel .ph { opacity: 0; transition: opacity 1.2s ease-in-out; }
.hero-carousel .ph.is-active { opacity: 1; }
.hero-carousel .hero-slides { display: grid; min-width: 0; }
.hero-slide { grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: flex-end; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .35s ease-in, transform .35s ease-in, visibility 0s linear .35s; }
.hero-slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .7s ease-out .3s, transform .7s ease-out .3s, visibility 0s linear .3s; }
.hero:not(.hero-carousel) .hero-slide { opacity: 1; visibility: visible; transform: none; }
.hero-points { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; max-width: 58ch; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255,255,255,.9); font-size: .95rem; }
.hero-points .icon { flex: none; width: 20px; height: 20px; margin-top: 2px; color: #ffc46b; }
.hero-nav { display: flex; align-items: center; gap: 6px; margin-top: 14px; }
.hero-dot { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); background: transparent; cursor: pointer; transition: width .35s ease, background .35s ease, border-color .35s ease; }
.hero-dot.is-active { width: 22px; border-radius: 5px; background: #ffc46b; border-color: #ffc46b; }
.hero-arrow { display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 0; background: transparent; color: rgba(255,255,255,.85); cursor: pointer; }
.hero-arrow:first-child { margin-left: -6px; }
.hero-arrow:hover { color: #fff; background: rgba(255,255,255,.14); }
.hero-arrow svg { width: 15px; height: 15px; }
.hero-arrow[data-hero-prev] svg { transform: rotate(180deg); }
.hero-pause .hp-play, .hero-pause[aria-pressed="true"] .hp-pause { display: none; }
.hero-pause[aria-pressed="true"] .hp-play { display: block; }
.hero-dot:focus-visible, .hero-arrow:focus-visible { outline: 2px solid #ffc46b; outline-offset: 2px; }
@media (max-width: 920px) { .hero-nav [data-hero-prev], .hero-nav [data-hero-next] { display: none; } }
@media (pointer: coarse) { .hero-nav { gap: 4px; } .hero-arrow { width: 36px; height: 36px; } .hero-dot { width: 12px; height: 12px; margin: 0 4px; } .hero-dot.is-active { width: 28px; } }
@media (prefers-reduced-motion: reduce) { .hero-slide, .hero-slide.is-active, .hero-carousel .ph { transition: none; } }

/* Home carousels and the three worked examples, as on the uniacross home (2026-11-07): guides and destinations in an .hs-track
   (app.js "Horizontal card carousels"), "What a retiree sees" with chips (app.js sp-ex) */
.sp-ex-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 18px; }
.sp-ex-head .sp-sub { margin-bottom: 0; }
.sp-ex-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.sp-ex-chip { font: inherit; font-size: .9rem; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--fg); cursor: pointer; }
.sp-ex-chip[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.sp-ex-name { font-family: var(--serif); font-size: 1.15rem; margin: 0 0 12px; }
.sp-ex-slides { position: relative; }
.hs-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hs-btns { display: inline-flex; gap: 6px; }
.hs-btns[hidden] { display: none; }
.hs-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; transition: border-color .15s, background .15s, opacity .15s; }
.hs-btn .icon { width: 18px; height: 18px; }
.hs-btn:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.hs-btn:disabled { opacity: .35; cursor: default; }
.hs-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 16px) / 4); gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; padding: 4px 2px 14px; margin: 0 -2px; scrollbar-width: none; }
.hs-track::-webkit-scrollbar { display: none; }
.hs-track > * { scroll-snap-align: start; min-width: 0; }
@media (max-width: 1000px) { .hs-track { grid-auto-columns: calc((100% - 2 * 16px) / 2.5); } }
@media (max-width: 600px) { .hs-track { grid-auto-columns: 82%; gap: 12px; } .hs-btns { display: none; } }
.hs-track .tool-card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }   /* one long summary no longer stretches the whole row */
.hs-track .dest-card { height: 100%; }
@media (max-width: 900px) { .sp-ex-head { align-items: flex-start; } }

/* City by city (country page, place_details.json, 2026-11-07) */
.city-detail { padding: 0 18px; margin-bottom: 12px; }
.city-detail > summary { cursor: pointer; margin: 0 -18px; padding: 14px 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.city-detail[open] { padding-bottom: 16px; }
.city-detail[open] > summary { border-bottom: 1px solid var(--line); }
.city-detail h4 { margin: 14px 0 6px; font-size: 1rem; }
.city-facts { list-style: none; padding: 0; margin: 0; }
.city-facts li { margin: 4px 0; }
.city-facts .st { vertical-align: middle; }
.city-say { border-left: 3px solid var(--line); padding-left: 12px; }
.city-say h4 .badge { font-size: .75rem; margin-left: 6px; vertical-align: middle; }

/* city photo at the top of a City by city fold (owner 2026-11-09) */
.city-photo { position: relative; width: 100%; max-width: 100%; aspect-ratio: 3 / 2; max-height: 320px; margin: 0 0 14px; border-radius: 8px; overflow: hidden; }   /* .ph places the picture absolutely: the figure gives the height */
.city-photo figcaption { position: absolute; right: 0; bottom: 0; margin: 0; padding: 3px 8px; font-size: .68rem; color: #fff; background: rgba(0, 0, 0, .45); border-top-left-radius: 6px; }
.city-photo figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }


/* ===== Folded sections with a summary (owner 2026-11-13: less text at once; lib/folds.php, as uniacross) ===== */
.doc-card, .fold-card { border: 1px solid var(--line); border-radius: var(--radius, 6px); background: var(--surface); padding: 0; margin: 12px 0 0; scroll-margin-top: calc(var(--header-h) + 16px); }
.doc .doc-card { border-top: 1px solid var(--line); padding: 0; }
.doc-card > summary, .fold-card > summary, .origin-row > summary { list-style: none; cursor: pointer; pointer-events: auto; padding: 16px 20px; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; }
.doc-card > summary::-webkit-details-marker, .fold-card > summary::-webkit-details-marker, .origin-row > summary::-webkit-details-marker, .qa > summary::-webkit-details-marker { display: none; }
.doc .doc-card > summary h2, .doc .doc-card[open] > summary h2, .doc .fold-card > summary h2, .fold-card > summary h2 { grid-column: 1; margin: 0; padding: 0; border: 0; font-size: 1.2rem; line-height: 1.25; display: block; }
.doc .doc-card > summary h2::after, .doc .doc-card[open] > summary h2::after { content: none; }
.sec-sum { grid-column: 1; margin: 0; color: var(--muted); font-size: .95rem; font-weight: 400; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.doc .sec-sum { margin: 0; max-width: none; }
.sec-more { grid-column: 2; grid-row: 1 / span 2; white-space: nowrap; font-weight: 600; font-size: .9rem; color: var(--brand); display: inline-flex; align-items: center; gap: 4px; }
.sec-more::after { content: "›"; font-size: 1.25em; line-height: 1; transition: transform .15s; }
.sec-more .sm-less { display: none; }
details[open] > summary .sec-more .sm-more { display: none; }
details[open] > summary .sec-more .sm-less { display: inline; }
details[open] > summary .sec-more::after { transform: rotate(90deg); }
details[open] > summary .sec-sum { display: none; }
.doc-card > summary:hover, .fold-card > summary:hover, .origin-row > summary:hover { background: var(--surface-2, rgba(0,0,0,.025)); }
.doc-card > summary:focus-visible, .fold-card > summary:focus-visible, .origin-row > summary:focus-visible, .qa > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.doc-card[open] > summary, .fold-card[open] > summary, .origin-row[open] > summary { border-bottom: 1px solid var(--line); }
.doc-card > .sec-body, .fold-card > .sec-body, .origin-row > .sec-body { padding: 16px 20px 20px; }
.doc-card > .sec-body > :first-child, .fold-card > .sec-body > :first-child, .origin-row > .sec-body > :first-child { margin-top: 0; }
.doc-card > .sec-body > :last-child, .fold-card > .sec-body > :last-child, .origin-row > .sec-body > :last-child { margin-bottom: 0; }
/* Taxes: one row per home country (the reader's own one open, app.js) */
.card.route.origin-row { padding: 0; margin: 8px 0; }
.origin-row > summary { padding: 12px 16px; }
.doc .origin-row > summary h3, .origin-row > summary h3 { grid-column: 1; margin: 0; font-size: 1rem; line-height: 1.3; }
.origin-row > summary .sec-sum { display: block; -webkit-line-clamp: none; overflow: visible; font-size: .9rem; }   /* the whole line, never cut (owner 2026-11-14) */
.origin-row > .sec-body { padding: 14px 16px 16px; }
/* a question that opens its answer */
.country-faq { margin-top: 28px; }
.qa { border-top: 1px solid var(--line); }
.qa:last-of-type { border-bottom: 1px solid var(--line); }
.qa > summary { list-style: none; cursor: pointer; padding: 12px 0; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.doc .qa > summary h3, .qa > summary h3 { margin: 0; font-size: 1rem; line-height: 1.4; }
.qa > summary::after { content: "+"; color: var(--brand); font-weight: 600; font-size: 1.2rem; line-height: 1; flex: none; }
.qa[open] > summary::after { content: "–"; }
.qa > p { margin: 0 0 14px; max-width: 75ch; }
@media (max-width: 720px) {
  .doc-card > summary, .fold-card > summary, .origin-row > summary { padding: 14px 16px; grid-template-columns: 1fr; }
  .sec-more { grid-column: 1; grid-row: auto; }
  .sec-sum { display: block; -webkit-line-clamp: none; overflow: visible; }   /* a phone shows the summary whole: no clipped text */
  .origin-row > summary .sec-sum { display: block; -webkit-line-clamp: none; }
  .doc-card > .sec-body, .fold-card > .sec-body { padding: 14px 16px 16px; }
}
@media print { .doc-card > .sec-body, .fold-card > .sec-body, .origin-row > .sec-body { display: block !important; } }
/* inside the mobile app (cookie ra_app): the page starts right under the app's own header */
body.in-app main { padding-top: 0; }
/* the closed sections are the contents list there */
body.in-app .toc-fold { display: none; }
/* no divider left over beside or above the page buttons once the contents list is gone or stacked (full QA 2026-11-14) */
body.in-app .toc { border-right: 0; padding-right: 0; } body.in-app .toc-tools { border-top: 0; padding-top: 0; }
@media (max-width: 960px) { .toc { border-right: 0; padding-right: 0; } }
/* round 2 (2026-11-13): a sub-block that opens inside a section (climate table), and the sources behind one line */
.sub-fold { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 18px 0; scroll-margin-top: calc(var(--header-h) + 16px); }
.sub-fold > summary { list-style: none; cursor: pointer; padding: 12px 0; display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: center; }
.sub-fold > summary::-webkit-details-marker, .src-fold > summary::-webkit-details-marker { display: none; }
.doc .sub-fold > summary h3, .sub-fold > summary h3 { grid-column: 1; margin: 0; font-size: 1.05rem; }
.sub-fold > .sec-body { padding: 0 0 14px; }
.sub-fold > summary:focus-visible, .src-fold > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.src-fold { margin: 12px 0 0; color: var(--muted); }
.src-fold > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 600; }
.src-fold > summary::after { content: "›"; font-size: 1.2em; line-height: 1; transition: transform .15s; }
.src-fold[open] > summary::after { transform: rotate(90deg); }
.src-fold > p { margin: 6px 0 0; }
@media (max-width: 720px) { .sub-fold > summary { grid-template-columns: 1fr; } }
@media print { .sub-fold > .sec-body { display: block !important; } }
/* round 3 (2026-11-13): member pages at a glance. Everything here is scoped to .member (on uniacross a clamp leaked to the home page) */
.fold-card > summary h3, .doc .fold-card > summary h3 { grid-column: 1; margin: 0; padding: 0; border: 0; font-size: 1.05rem; line-height: 1.3; display: block; }
.member .fold-card { margin: 12px 0 0; }
.member .mp-folds { display: grid; gap: 0; }
.member .more-fold { margin: 6px 0 0; }
.member .more-fold > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 600; font-size: .9rem; }
.member .more-fold > summary::-webkit-details-marker, .member .add-fold > summary::-webkit-details-marker { display: none; }
.member .more-fold > summary::after { content: "›"; font-size: 1.2em; line-height: 1; transition: transform .15s; }
.member .more-fold[open] > summary::after { transform: rotate(90deg); }
.member .more-fold > summary:focus-visible, .member .add-fold > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.member .add-fold { margin-top: 12px; }
.member .add-fold > summary { list-style: none; display: inline-flex; gap: 6px; cursor: pointer; }
.member .add-fold[open] > summary { margin-bottom: 10px; }
.member .next-step-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; justify-content: space-between; }
.member .family-share > summary { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.member #next .next-title, .member #own-dates .next-title, .member .ov-timeline li > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }   /* a very long title: two lines, the whole text on hover (title) */
@media print { .member .more-fold > *, .member .fold-card > .sec-body { display: block !important; } }
.member .family-share > summary h2 { font-size: 1.2rem; }

/* ===== Readability job 2026-11-22 (owner: "readability and clearness is a must on all the across sites"; ported from uniacross spike.css) ===== */
/* text pieces: paragraph, lead line, bullets, numbered steps, one small "Source: ..., checked ..." line after a text */
.txt-p { margin: 0 0 8px; } .txt-p:last-child { margin-bottom: 0; }
.txt-lead { margin: 0 0 6px; font-weight: 600; }
.txt-list { margin: 0 0 10px; padding-left: 0; list-style: none; }
.txt-list li { position: relative; padding: 0 0 0 18px; margin: 0 0 6px; line-height: 1.55; }
.txt-list li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); opacity: .55; }
.txt-steps { margin: 0 0 10px; padding-left: 1.5em; }
.txt-steps li { margin: 0 0 6px; padding-left: 4px; line-height: 1.55; }
li > .txt-list { margin: 6px 0 0; }
.src-note { margin: 8px 0 0; color: var(--muted); font-size: .85rem; line-height: 1.45; }
span.src-note { display: block; }
.city-facts li .src-note { margin: 4px 0 0; }
.route-verdict { margin: 0 0 8px; }
.route-more { margin: 10px 0 0; border-top: 1px solid var(--line); }
.route-more > summary { list-style: none; cursor: pointer; padding: 10px 0 4px; color: var(--brand); font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; }
.route-more > summary::-webkit-details-marker { display: none; }
.route-more > summary::after { content: "›"; font-size: 1.2em; line-height: 1; transition: transform .15s; }
.route-more[open] > summary::after { transform: rotate(90deg); }
.route-more > .txt-p, .route-more > .txt-lead, .route-more > .txt-list { margin-top: 6px; }
.disclaimer, .lead, .sec-sum, .doc p { max-width: 72ch; }

/* one gap between the cards of every page (12 px) */
.card.route, .card.route.origin-row, .card.city-detail, .doc-card, .fold-card { margin: 12px 0 0; }
.card.route.origin-row { margin: 12px 0 0; }
.doc .card, .wrap > .card { margin-bottom: 12px; }
.doc .grid > .card, .wrap > .grid > .card { margin-bottom: 0; }
@media (max-width: 700px) { .grid { gap: 12px; } }

/* text at least 12 px on a desktop, 13 px on a phone */
.beta-badge, .kf-label, th, .toc-title, .ph-credit, figcaption, .eyebrow, .badge, sup.cite, .cc-facts dt, .site-footer h2, .ff-label { font-size: max(.75rem, 12px); }
@media (max-width: 600px) {
  .beta-badge, .kf-label, th, table th, .toc-title, .ph-credit, figcaption, .eyebrow, .badge, sup.cite, .cc-facts dt, .site-footer h2, .ff-label, .cb-legend span, .crumbs, abbr.gl,
  .sr-chip, .legend, .small, .muted.small, .src-note, .sources, .hint, dt, .doc-meta { font-size: max(.8125rem, 13px); }
  .ph-credit { right: 8px; bottom: 4px; max-width: calc(100% - 16px); text-align: right; line-height: 1.25; }
  /* tap targets at least 40 px */
  .logo { position: relative; } .logo::before { content: ""; position: absolute; inset: -6px 0; }   /* a 40 px tap area without changing the header's height */
  .beta-badge { padding: 3px 4px; letter-spacing: 0; margin-left: 0; }
  .header-inner { gap: 2px; }
  .nav-toggle { min-height: 40px; padding-inline: 6px; }
  .header-search, .theme-toggle { min-width: 40px; min-height: 40px; }
  .header-lang { min-width: 40px; height: 40px; }
  .btn, .btn-small, .chip-link, .sr-chip, .btn-ghost { min-height: 40px; }
  .crumbs a { display: inline-flex; align-items: center; min-height: 40px; padding-inline: 2px; }
  .toc li a { min-height: 40px; align-items: center; }
  summary { min-height: 40px; box-sizing: border-box; }
  .toc-title, .src-fold > summary, .route-more > summary, summary.or { display: flex; align-items: center; min-height: 40px; }
  .site-footer a, .site-footer .linklike, .linklike { display: inline-flex; align-items: center; min-height: 40px; }
  .site-footer .footer-social { gap: 4px 14px; }
  .changes a.badge, a.badge { display: inline-flex; align-items: center; min-height: 40px; }
  .hero-dot { position: relative; } .hero-dot::after { content: ""; position: absolute; inset: -16px -10px; }
  .hero-arrow { min-width: 40px; min-height: 40px; }
}

/* cookie box on phones: about a third of the screen, not half (R-003): the same text, tighter, Reject and Accept on one row, Customize as a link under them */
@media (max-width: 600px) {
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; }
  .cookie-inner { padding: 12px 14px; border-radius: 16px; }
  .cookie-inner h2 { font-size: 1rem; margin: 0 0 4px; }
  .cookie-inner p { font-size: .84rem; line-height: 1.35; margin: 0 0 8px; }
  .cookie-actions { flex-wrap: wrap; gap: 6px; }
  .cookie-actions .btn { padding: 8px 6px; font-size: .88rem; min-height: 44px; flex: 1 1 40%; order: 1; }
  .cookie-actions #cookie-customize { order: 2; flex: 1 1 100%; min-height: 40px; background: none; border: 0; box-shadow: none; text-decoration: underline; font-weight: 600; }
  .cookie-actions #cookie-save { order: 3; flex: 1 1 100%; }
}
/* leftovers of the phone pass: small labels that a more specific rule kept under 13 px, and links that were 16 to 20 px high */
@media (max-width: 600px) {
  .site-footer .ff-label, .key-facts .kf-label, .kf-label, figcaption, .city-photo figcaption, table th, .tag-group-title, .q-num, .badge.badge-warn, .cc-facts dt, .tool-form .sub, .badge, dt, main em { font-size: max(.8125rem, 13px) !important; }
  .sp-ex-chip { min-height: 40px; }
  h3 > a, th > a { display: inline-block; padding-block: 10px; }
  .doc p > a:only-child, .doc li > a:only-child, .small > a:only-child { display: inline-block; padding-block: 11px; }
}
/* a travel or safety warning stays in the hero as a second short line (owner 2026-11-22) */
.lead-warn { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 0; font-size: 1rem; font-weight: 600; }
.lead-warn .icon { flex: none; width: 1.1em; height: 1.1em; margin-top: .25em; }
/* city by city: name, one figure, one short line, the rest behind "More details" (owner 2026-11-22) */
.fold-card.city-detail > summary .city-fig { grid-column: 1; margin: 0; font-weight: 650; color: var(--brand-2); }
.fold-card.city-detail > .sec-body > .muted.small:first-child { margin-bottom: 10px; }

/* ===== Members audit R-M, 2026-11-22: member area and tool results ===== */
/* "More details" folds inside results and comparison cells: the short line stays until the fold opens */
.dc-more > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: start; }
.dc-more > summary::-webkit-details-marker { display: none; }
.dc-more > summary .sec-more { grid-column: 2; grid-row: 1; }
.dc-sum { color: var(--muted); }
.dc-more[open] > summary .dc-sum { display: none; }
.dc-more[open] > summary { grid-template-columns: 1fr; justify-items: end; }
.ev-more .ev-body, .res-more .ev-body, .tl-more .ev-body, .cell-more .ev-body { margin-top: 6px; max-width: 80ch; }
.res-more { margin: 8px 0 0; }
.res-more > summary, .tl-more > summary, .cell-more > summary { min-height: 40px; align-content: center; }
.tl-more { margin: 2px 0 0; }
.show-more { margin: 12px 0 0; }
.show-more > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 40px; }
.show-more > summary::-webkit-details-marker { display: none; }
.show-more[open] > summary { margin-bottom: 12px; }
.tl-rest .tl-group:first-of-type { margin-top: 0; }
.route-text { margin: 6px 0; }
.route-text > .ev-more { margin: 0; }
/* compare table: cells with a short line; on a phone one block per topic, the countries stacked under it */
.mc-table td .cell-more { margin: 0; }
.mc-table td .cell-more > summary { grid-template-columns: 1fr; justify-items: start; }
.mc-table td .cell-more[open] > summary { justify-items: start; }
.mc-table td .cell-more > summary .sec-more { grid-column: 1; grid-row: 2; }
.mc-table td .tax-main p:last-child, .mc-table td .ev-body > :last-child { margin-bottom: 0; }
@media (max-width: 700px) {
  .mc-scroll { overflow-x: visible; }
  .mc-table { min-width: 0; display: block; }
  .mc-table thead { display: none; }
  .mc-table tbody, .mc-table tr { display: block; }
  .mc-table tr { margin: 12px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
  .mc-table tbody th { display: block; width: auto; padding: 0 0 6px; border: 0; font-size: 1rem; }
  .mc-table td { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .mc-table td:last-child { border-bottom: 0; padding-bottom: 0; }
  .mc-table td:not(.is-sel) { display: none; }
  .mc-table td { border-bottom: 0; padding: 0; }
  .mc-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
  .mc-sw { min-height: 40px; }
  .mc-sw.on { background: var(--brand); border-color: var(--brand); color: #fff; }
}
.mc-switch { display: none; }
@media (max-width: 700px) { .mc-switch { display: flex; } }
/* tick boxes of the plan: a 40 px hit area (the box is drawn by the label) */
.mp-check { position: relative; display: flex; gap: 10px; align-items: center; min-height: 40px; cursor: pointer; }
.mp-check input { position: absolute; left: -9px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; margin: 0; opacity: .01; cursor: pointer; z-index: 1; }
.mp-check .mp-box { flex: none; width: 22px; height: 22px; box-sizing: border-box; border: 2px solid var(--muted); border-radius: 6px; background: var(--surface); display: inline-grid; place-items: center; margin-left: 2px; }
.mp-check input:checked + .mp-box { background: var(--brand); border-color: var(--brand); }
.mp-check input:checked + .mp-box::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.mp-check input:focus-visible + .mp-box { outline: 2px solid var(--brand); outline-offset: 2px; }
.mp-check input:disabled + .mp-box { opacity: .6; }
/* plan sources: a status dot, the title, then "checked 23 Oct 2026" */
.mp-sources ul { list-style: none; padding-left: 0; }
.mp-sources li { margin: 0 0 6px; }
.mp-sources .st { display: inline-block; vertical-align: middle; margin-right: 4px; }
/* one 12 px gap between the cards and the step rows of the member pages */
.tl-item, .member .tl-item, .mp-step { margin-bottom: 12px; }
.member .card, .member .fold-card, .member .tiles, .member .mp-head, .member-tabs, .member .stage-card, .member .own-dates, .member #timeline, .member #changes, .mp-banner, .tab-head:not(.card) { margin-top: 0; margin-bottom: 12px; }
.member .card.mp-head { margin-bottom: 12px; }
.mc-section { margin-top: 12px; }
.mp-sub + .mp-sub { margin-top: 12px; }
/* one heading scale for the member pages: h1 as the site's, h2 1.4rem (22.4 px), h3 1.1rem */
.member .mp-h, .member .ms-h, .member h2.mp-h { font-size: 1.4rem; }
.share-head h1 { font-size: clamp(1.75rem, 5vw, 3rem); }
.share-wrap .card h2, .share-wrap h2 { font-size: 1.4rem; }
.member h3 { font-size: 1.1rem; }
/* a photo credit never lies on the hero's text on a phone: room under the lead */
@media (max-width: 600px) { .page-hero:has(.ph-credit) .page-hero-inner { padding-bottom: 46px; } }
/* text at least 13 px on phones */
@media (max-width: 600px) {
  .tab-n, .ys-title, .ab-title, .ab-n, .pc-head, small, .year-strip .ys-title, .mp-count, .tile-sub, .tile-label { font-size: max(.8125rem, 13px); }
  .ab-reset { min-height: 40px; padding: 8px 10px; }
  .mp-check { min-height: 44px; }
}
.member #next .next-title, .member #own-dates .next-title, .member .ov-timeline li > span { display: block; -webkit-line-clamp: unset; overflow: visible; }   /* no title cut with an ellipsis */
.member .card h2, .member .fold-card > summary h2, .member .family-share > summary h2, .member details > summary > h2, .member h2 { font-size: 1.4rem; }
@media (max-width: 600px) { .dash-tabs .tab-n, .verdict-chip, .ys-months, .ys-months span { font-size: max(.8125rem, 13px); letter-spacing: 0; } .dash-tabs .tab-n { width: 22px; height: 22px; } }
.member .grid > .card, .member .grid-3 > .card { margin-bottom: 0; }
/* phones: links and inputs of the member pages are at least 40 px high */
@media (max-width: 600px) {
  .sub-steps a, .sub-steps span { display: inline-flex; align-items: center; min-height: 40px; box-sizing: border-box; }
  .ms-actions a, .result-links a, .mp-step .meta a, .mp-head .small a, .mp-sources a { display: inline-flex; align-items: center; min-height: 40px; }
  .mp-move input[type="month"], .own-dates input, .mp-head input { min-height: 40px; box-sizing: border-box; }
}

/* Key facts as three cards (owner 2026-11-25: "very basic and ugly ... do better"): soft card, padding on every side, a round
   Lucide icon, the figure large, the detail grey. Phone: icon on the left of the text, cards stacked. Same block on the other
   across sites (sent to their sessions). */
.key-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; border: 0; padding: 0; margin: 0 0 18px; background: transparent; }
.key-facts > .kf { display: flex; flex-direction: column; gap: 12px; padding: 18px 18px 16px; border: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 12px; background: var(--surface); min-width: 0; }
.key-facts > .kf + .kf { border-left: 1px solid var(--line); padding-left: 18px; }
.kf-ico { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.kf-ico .icon, .kf-ico svg { display: block; width: 19px; height: 19px; }
.kf-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.key-facts .kf-label { font-size: max(.72rem, 12px); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.key-facts .kf p { margin: 0; font-size: 1.18rem; line-height: 1.3; font-weight: 700; }
.key-facts .kf p a { color: var(--fg); text-decoration: none; }
.key-facts .kf p a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.kf-sub { color: var(--muted); font-size: .92rem; line-height: 1.4; }
.key-facts .rent-bar { margin-top: 8px; }
@media (max-width: 760px) {
  .key-facts { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .key-facts > .kf, .key-facts > .kf + .kf { flex-direction: row; align-items: flex-start; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); }
  .key-facts .kf p { font-size: 1.08rem; }
}

/* Tables, one look on the whole site (owner 2026-11-25: "this kind of tables, with text completly on the left, is very basic and
   ugly. do better"): a rounded card, a light header on one rule, row labels in plain text (no grey block), figures right-aligned
   with even digits (td.num, set by app.js), a soft stripe on every other row, tighter on a phone so small tables fit the screen. */
.table-wrap { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow-x: auto; margin: 1em 0 1.2em; }
.table-wrap table, .doc table, main table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .95rem; }
.table-wrap th, .table-wrap td, main th, main td { padding: 11px 16px; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); vertical-align: top; text-align: left; }
.table-wrap thead th, main thead th { background: transparent; color: var(--muted); font-size: max(.74rem, 12px); font-weight: 650; letter-spacing: .07em; text-transform: uppercase; vertical-align: bottom; border-bottom: 1px solid var(--line); padding-top: 13px; padding-bottom: 10px; }
main thead tr + tr th { padding-top: 2px; }
.table-wrap tbody th, main tbody th { background: transparent; color: var(--fg); font-size: .95rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.table-wrap tbody tr:nth-child(even) > *, main table:not(.mc-table) tbody tr:nth-child(even) > * { background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
main tbody tr:last-child > * { border-bottom: 0; }
main td.num, main th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
main tr.total > *, main tbody tr:last-child > th:first-child:has(+ td strong) { font-weight: 700; }
main table caption { caption-side: top; text-align: left; color: var(--fg); font-weight: 700; font-size: 1rem; padding: 12px 16px 2px; }
.cost-cities { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 1em 0 1.2em; }
.cost-cities .table-wrap { margin: 0; }
main tr.total > * { border-top: 1px solid var(--line); background: var(--brand-soft) !important; }
@media (max-width: 600px) {
  .table-wrap table, main table { font-size: .9rem; }
  .table-wrap th, .table-wrap td, main th, main td { padding: 9px 10px; }
  .table-wrap thead th, main thead th { letter-spacing: .04em; }
}

/* Charts (owner 2026-11-25: "use pictures and graphics where ever you can"): inline SVG from app/lib/charts.php */
.cchart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin: 12px 0 8px; }
.cchart { margin: 0; padding: 14px 16px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); min-width: 0; }
.cchart figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; margin: 0 0 6px; font-size: 1rem; color: var(--fg); }
.cc-key { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: max(.8rem, 12px); }
.cc-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.cc-key-t { background: linear-gradient(90deg, #4f8fd6, #e9c23d, #e3742f, #c8392b); margin-left: 4px; } .cc-key-r { background: color-mix(in srgb, var(--brand) 45%, transparent); margin-left: 8px; }
.cchart svg { display: block; width: 100%; height: auto; }
.cchart text { font-size: 12.5px; font-weight: 650; font-family: inherit; } .cchart .cc-lo { font-size: 11.5px; font-weight: 500; }
.cc-hi { fill: var(--fg); } .cc-lo, .cc-m { fill: var(--muted); } .cc-m { font-weight: 700; }
.cc-rain { fill: color-mix(in srgb, var(--brand) 45%, transparent); } .cc-base { stroke: var(--line); stroke-width: 1; }
.cc-w0 { fill: #4f8fd6; } .cc-w1 { fill: #5fb0c9; } .cc-w2 { fill: #7cc0a0; } .cc-w3 { fill: #c9c95a; } .cc-w4 { fill: #e9c23d; } .cc-w5 { fill: #ec9a35; } .cc-w6 { fill: #e3742f; } .cc-w7 { fill: #c8392b; }
.cc-note { margin: 4px 0 0; color: var(--muted); font-size: max(.82rem, 13px); }
.cc-numbers { margin-top: 6px; }
.cw-head { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 6px; }
.cw-head > strong { font-size: 1.05rem; }
.cost-mix svg { display: block; width: 100%; height: 12px; border-radius: 6px; overflow: hidden; }
.cm0 { fill: var(--brand); background: var(--brand); } .cm1 { fill: var(--accent); background: var(--accent); } .cm2 { fill: hsl(160 45% 42%); background: hsl(160 45% 42%); }
.cm3 { fill: hsl(45 80% 52%); background: hsl(45 80% 52%); } .cm4 { fill: color-mix(in srgb, var(--brand) 45%, var(--surface)); background: color-mix(in srgb, var(--brand) 45%, var(--surface)); } .cm5 { fill: var(--muted); background: var(--muted); }
.cm-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: max(.8rem, 12px); }
.cm-legend li { display: inline-flex; align-items: center; gap: 5px; } .cm-legend b { color: var(--fg); font-weight: 650; }
.cm-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.cost-cities .table-wrap table { margin-top: 4px; }

/* Readability pass 2026-11-25 (deep QA A-012, A-013): one title size on every inner page (about and sign-in pages were
   smaller), and the hero byline parts separated by space instead of a "·" that dangled at a line end. */
.page-hero h1, .auth-main h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
.doc-meta .dm { white-space: normal; }

/* Tool results (deep QA 2026-11-25, A-003 and A-004): the answers bar shows every chip in full, on two or more rows on a phone
   (it scrolled sideways with a chip cut at the edge, and cut words with "…" on a computer); on a phone the finder shows the
   ranked cards only, not the podium strip above them that repeated the same three countries. */
.ab-v { max-width: none; white-space: normal; overflow: visible; }
@media (max-width: 760px) {
  .ab-bar { padding: 12px 14px; }
  .ab-chips { flex-wrap: wrap; overflow-x: visible; padding: 2px 0 4px; scroll-snap-type: none; }
  .ab-chip { flex: 0 1 auto; }
  .ab-v { max-width: none; }
}
@media (max-width: 560px) { .podium { display: none; } }

/* Official travel advice block (2026-11-25, app/views/partials/_advice.php) */
/* "Official travel advice" card (partials/_advice.php). Same card look as .key-facts > .kf. To fold into look.css. Strict CSP: classes only. */
.adv { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 18px; padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); min-width: 0; }
.adv-ico { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.adv-ico .icon, .adv-ico svg { display: block; width: 19px; height: 19px; }
.adv-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.adv-label { font-size: max(.72rem, 12px); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.adv-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.adv-row { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.adv-src { font-weight: 700; }
.adv-row a { color: var(--fg); text-decoration: none; line-height: 1.5; }
.adv-row a:hover .adv-txt { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.adv-date { color: var(--muted); font-size: .92rem; }
.adv-note { margin: 4px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.4; }
/* status colours only: 1 green, 2 amber, 3 orange, 4 red (chip = text + dot colour on a tint, readable in both themes) */
.adv-chip { --adv: #1f7a3d; display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .8125rem; font-weight: 700; color: var(--adv); background: color-mix(in srgb, var(--adv) 14%, transparent); border: 1px solid color-mix(in srgb, var(--adv) 40%, transparent); }
.adv-l2 { --adv: #8a5a00; } .adv-l3 { --adv: #b4470a; } .adv-l4 { --adv: #b3261e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .adv-chip { --adv: #5fd08a; } :root:not([data-theme="light"]) .adv-l2 { --adv: #f0c14b; } :root:not([data-theme="light"]) .adv-l3 { --adv: #f59a5b; } :root:not([data-theme="light"]) .adv-l4 { --adv: #ff8a80; } }
:root[data-theme="dark"] .adv-chip { --adv: #5fd08a; } :root[data-theme="dark"] .adv-l2 { --adv: #f0c14b; } :root[data-theme="dark"] .adv-l3 { --adv: #f59a5b; } :root[data-theme="dark"] .adv-l4 { --adv: #ff8a80; }
@media (max-width: 760px) { .adv { padding: 14px 16px; } .adv-list { grid-template-columns: minmax(0, 1fr); gap: 10px; } }

/* People from your country + agreements rows (2026-11-25, app/views/partials/_expats.php) */
/* People from your country + tax treaty / social security rows (2026-11-25). Merge into look.css. Cards like the "At a glance" ones. */
.xp-card { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); min-width: 0; }
.xp-row { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.xp-card .xp-row + .xp-row { padding-top: 14px; border-top: 1px solid var(--line); }
.xp-ico { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.xp-ico .icon, .xp-ico svg { display: block; width: 19px; height: 19px; }
.xp-yes .xp-ico { background: var(--brand-soft); color: var(--ok); }
.xp-no .xp-ico { background: var(--accent-soft); color: var(--accent-ink); }
.xp-unk .xp-ico { background: var(--surface-2); color: var(--muted); }
.xp-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 auto; }
.xp-label { font-size: max(.75rem, 12px); font-weight: 750; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.xp-body p { margin: 0; font-size: .95rem; line-height: 1.45; }
.xp-num { font-size: 1.35rem; font-weight: 750; color: var(--fg); }
.xp-sub { font-size: .85rem; color: var(--muted); line-height: 1.45; }
.xp-sub a { color: var(--brand-2); }
.xp-svg { display: block; width: 100%; max-width: 420px; height: auto; margin: 4px 0; }
.xp-lab { font-size: 12px; font-weight: 650; fill: var(--muted); }
.xp-val { font-size: 12px; fill: var(--fg); }
.xp-na { fill: var(--muted); font-style: italic; }
.xp-bar { fill: var(--brand); }
.xp-bar-gb { fill: var(--teal); }
.xp-bar-ca { fill: var(--accent); }
.xp-bar-au { fill: var(--brand-2); }
.xp-bar-nz { fill: var(--accent-2); }

.adv-date, .adv-txt { display: block; }   /* UK row: the alert text and its date sit inside one link: one line each (2026-11-25) */
.xp-lab, .xp-val { font-size: 11.5px; } .xp-svg { max-width: 360px; } .xp-chart .xp-bar { fill: var(--brand); }   /* one colour, readable sizes (2026-11-25) */
@media (max-width: 600px) { .xp-chart .xp-ico { display: none; } .xp-chart .xp-svg { max-width: none; } }   /* the chart takes the full card width on a phone */
