:root {
  --bg: #f4f8fb;
  --surface: #ffffff;
  --ink: #172433;
  --muted: #5b6b7d;
  --line: #e1e8f0;
  --accent: #0a6fd6;
  --accent-ink: #ffffff;
  --accent-soft: #e6f0fb;
  --happy: #ffd966;
  --happy-ink: #172433;
  --danger: #c62828;
  --danger-soft: #fdeceb;
  --chip: #eaf0f6;
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101820; --surface: #1b2733; --ink: #f3f7fc; --muted: #b2c0d0; --line: #364657;
    --accent: #80b8ff; --accent-ink: #101820; --accent-soft: #223449;
    --happy: #ffd966; --happy-ink: #172433; --danger: #ffaaa3; --danger-soft: #3a2422; --chip: #24313f;
  }
}
:root[data-theme="dark"] {
  --bg: #101820; --surface: #1b2733; --ink: #f3f7fc; --muted: #b2c0d0; --line: #364657;
  --accent: #80b8ff; --accent-ink: #101820; --accent-soft: #223449;
  --happy: #ffd966; --happy-ink: #172433; --danger: #ffaaa3; --danger-soft: #3a2422; --chip: #24313f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 Inter, Heebo, system-ui, -apple-system, "Segoe UI", sans-serif;
}
[dir="rtl"] body, [dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .card h3, [dir="rtl"] .brand-name { font-family: Heebo, system-ui, sans-serif; letter-spacing: 0; }
[dir="rtl"] .lang button { font-family: Heebo, Inter, sans-serif; }
h1, h2, h3 { font-family: Manrope, Heebo, Inter, system-ui, sans-serif; font-weight: 800; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
a { color: var(--accent); }
.muted { color: var(--muted); font-size: .95rem; margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Header + language switch */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--happy); color: var(--happy-ink);
  font: 800 17px/1 Manrope, sans-serif;
}
.brand-name { font-weight: 700; font-family: Manrope, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang { display: flex; background: var(--chip); border-radius: 999px; padding: 3px; flex: none; }
.lang button {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font: 700 13px/1 Inter, sans-serif; letter-spacing: .04em;
  padding: 12px 12px; border-radius: 999px; min-width: 44px; min-height: 44px;
}
.lang button[aria-checked="true"] { background: var(--accent); color: var(--accent-ink); }

main { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.hero { padding: 28px 0 8px; position: relative; }
main { overflow-x: hidden; }
.hero::after {
  content: ""; position: absolute; inset-inline-end: -30px; top: -6px; width: 150px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, var(--happy), transparent 70%); opacity: .8; pointer-events: none; z-index: -1;
}
.eyebrow { margin: 0 0 6px; font-weight: 600; color: var(--muted); font-size: .95rem; }
.hero h1 { font-size: clamp(2.1rem, 8vw, 2.75rem); }
.stay {
  display: inline-block; margin: 12px 0 0; padding: 6px 12px; border-radius: 999px;
  background: var(--happy); color: var(--happy-ink); font-size: .9rem; font-weight: 600;
}
.name-box { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.name-box input { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); min-width: 0; flex: 1 1 180px; max-width: 260px; }
.qbtn-ghost { background: var(--chip); color: var(--ink); padding: 10px 14px; }
.quick { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.qbtn { text-decoration: none; font-weight: 700; font-size: 1rem; padding: 12px 18px; min-height: 46px; border-radius: 14px; display: inline-flex; align-items: center; gap: 6px; }
.qbtn[hidden] { display: none; }
.qbtn-wa { background: #25d366; color: #0b2b16; }
.qbtn-sos { background: var(--surface); color: var(--danger); border: 2px solid var(--danger); }
.sos-static { margin: 12px 0 0; font-size: .9rem; color: var(--muted); }
.sos-static a { font-weight: 700; color: var(--danger); }
.sos-static a.sos-link { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 10px 0 0; display: grid; gap: 12px; }
.steps li { position: relative; padding-inline-start: 46px; font-size: 1.05rem; line-height: 1.45; min-height: 34px; }
.steps li::before {
  counter-increment: step; content: counter(step); position: absolute; inset-inline-start: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink, #fff);
  font: 800 1rem/34px Manrope, Inter, sans-serif; text-align: center;
}
.ext-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ext-links a { display: inline-block; padding: 10px 14px; border-radius: 12px; background: var(--chip); color: var(--accent); font-weight: 600; text-decoration: none; min-height: 44px; box-sizing: border-box; }
.stay-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; font-size: .95rem; }
.stay-pick input[type="date"] { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); }
.linkish { border: 0; background: none; color: var(--accent); font: inherit; font-size: .9rem; cursor: pointer; padding: 10px 0; min-height: 44px; text-decoration: underline; }
.jump { display: flex; gap: 8px; padding: 24px 0 4px; flex-wrap: wrap; }
.jump a {
  text-decoration: none; color: var(--ink); background: var(--chip);
  padding: 10px 16px; border-radius: 999px; font-size: .95rem; font-weight: 600;
}
.block { padding: 36px 0 4px; scroll-margin-top: 64px; }
.block > h2, .week-head h2 { font-size: 1.65rem; margin-bottom: 14px; }
.week-head { margin-bottom: 14px; }
.week-head h2 { margin-bottom: 4px; }

/* First-hour strip */
.first-block { padding-top: 28px; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 0 10px; scrollbar-width: none; margin: 0 -16px; padding-inline: 16px; }
.strip::-webkit-scrollbar { display: none; }
@media (min-width: 620px) { .strip { grid-auto-columns: 40%; } }
.tile { scroll-snap-align: start; position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--chip); text-decoration: none; color: #fff; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-ico { display: grid; place-items: center; height: 100%; font-size: 3rem; }
.tile-txt { position: absolute; inset: auto 0 0 0; padding: 40px 14px 12px; display: flex; flex-direction: column; gap: 2px;
  background: linear-gradient(to top, rgba(10,24,40,.85), rgba(10,24,40,0)); }
.tile-txt strong { font-family: Manrope, Heebo, sans-serif; font-weight: 800; font-size: 1.15rem; line-height: 1.2; }
.tile-txt span { font-size: .85rem; opacity: .9; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile:active { transform: scale(.98); }

/* House cards */
.group-title { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 800; margin: 22px 0 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
[dir="rtl"] .group-title { letter-spacing: 0; }
.group-title:first-child { margin-top: 0; }
.group-title .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.group-title[data-group="safe"] .dot { background: var(--danger); }
.group-title[data-group="local"] .dot { background: var(--happy); }
.cards { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
}
.card summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 18px 20px; min-height: 64px;
}
.card summary::-webkit-details-marker { display: none; }
.card .ico {
  width: 56px; height: 56px; flex: none; display: grid; place-items: center; font-size: 26px; line-height: 1; border-radius: 14px; background: var(--chip);
}
.card .thumb { width: 56px; height: 56px; flex: none; object-fit: cover; border-radius: 14px; background: var(--chip); }
.card summary:active { background: var(--accent-soft); }
.card .chev { transition: transform .16s; }
.card[open] .body { animation: rise .18s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .card[open] .body { animation: none; } .card .chev { transition: none; } }
.card h3 { font-size: 1.125rem; font-family: Inter, sans-serif; font-weight: 600; }
.card .sub { color: var(--muted); font-size: .93rem; line-height: 1.4; }
.card .chev { margin-inline-start: auto; color: var(--muted); transition: transform .2s; }
.card[open] .chev { transform: rotate(180deg); }
.card .body { padding: 4px 20px 20px; border-top: 1px solid var(--line); }
.card .body ul { margin: 14px 0 0; padding-inline-start: 20px; }
.card .body ul.plain { list-style: none; padding: 0; }
.card .body li.row { margin: 10px 0; }
.card .body li.row-img { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0; }
.row-pic { flex: none; width: 72px; height: 72px; border-radius: 14px; overflow: hidden; background: var(--chip); }
.row-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.row-txt { min-width: 0; flex: 1; }
.row-links { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; }
.row-links a { text-decoration: none; font-weight: 600; }
.row-links .credit-link { font-weight: 400; }
.card .body li.row a { font-weight: 600; text-decoration: none; }
.small { font-size: .9rem; }
.card-video { display: block; width: 100%; border-radius: 12px; margin: 14px 0 4px; background: #000; }
.sec-title { margin: 18px 0 4px; font-size: 1rem; font-weight: 700; }
.card-img-tall { max-height: 360px; }
.card-img { display: block; width: 100%; max-height: 260px; object-fit: contain; margin: 14px 0 0; border-radius: 12px; background: var(--chip); }
.card .body li { margin: 8px 0; }
.card.emergency { box-shadow: inset 4px 0 0 var(--danger); }
[dir="rtl"] .card.emergency { box-shadow: inset -4px 0 0 var(--danger); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 12px 0 0; }
.kv dt { color: var(--muted); font-size: .9rem; }
.kv dd { margin: 0; font-weight: 600; word-break: break-word; }
.copy {
  margin-inline-start: 8px; border: 1px solid var(--line); background: var(--chip); color: var(--ink);
  border-radius: 8px; font: 500 12px Inter, sans-serif; padding: 3px 8px; cursor: pointer;
}
.tel { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tel a {
  text-decoration: none; background: var(--danger); color: #fff;
  padding: 10px 14px; border-radius: 12px; font-weight: 700; font-size: .95rem;
}
:root[data-theme="dark"] .tel a { color: #101820; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tel a { color: #101820; } }

/* Places we love */
.lead { margin: -6px 0 14px; }
.places { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .places { grid-template-columns: 1fr 1fr; } }
.place {
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.place-media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--chip); }
.place-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.place-media .walk {
  position: absolute; inset-inline-start: 12px; bottom: 12px; font-size: .8rem; font-weight: 700; color: var(--happy-ink);
  background: var(--happy); padding: 5px 10px; border-radius: 999px;
}
.place-body { padding: 14px 20px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.place-body h3 { font-size: 1.125rem; font-family: Inter, sans-serif; font-weight: 600; }
.place-body p { margin: 0; font-size: 1rem; }
.place-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: auto; padding-top: 10px; font-size: .85rem; }
.credit-link { color: var(--muted); text-decoration: none; font-size: .75rem; line-height: 1.3; }
.credit-link:hover { text-decoration: underline; }
.map-link { flex: none; font-weight: 700; text-decoration: none; }

/* Heads-up notes */
.headsup { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.headsup li { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border-inline-start: 4px solid var(--happy); border-radius: 12px; padding: 12px 14px; font-size: .95rem; }
.hu-ico { flex: none; font-size: 1.1rem; line-height: 1.3; }

/* Weekly events */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: none; border: 0; background: var(--chip); color: var(--ink);
  font: 600 .95rem Inter, sans-serif; padding: 10px 16px; min-height: 40px; border-radius: 999px; cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.events { display: grid; gap: 12px; margin-top: 14px; }
.ev {
  background: var(--surface); border-radius: var(--radius);
  padding: 18px 20px; overflow: hidden;
}
.ev-media {
  position: relative; margin: -18px -20px 14px; aspect-ratio: 16 / 7; overflow: hidden;
  background: var(--chip);
}
.ev-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-media .credit {
  position: absolute; inset-inline-end: 8px; bottom: 6px; font-size: .7rem; color: #fff;
  background: rgba(0,0,0,.45); padding: 2px 7px; border-radius: 999px;
}
.ev-media.ph { display: grid; place-items: center; font-size: 1.8rem; aspect-ratio: 16 / 4; }
.ph-food { background: #fff3cc; }
.ph-culture { background: var(--accent-soft); }
.ph-nightlife { background: #ece6fb; }
.ev-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ev h3 { font-size: 1.125rem; font-family: Inter, sans-serif; font-weight: 600; }
.ev .when { flex: none; font-size: .8rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .03em; }
.ev .where { color: var(--muted); font-size: .9rem; margin: 2px 0 6px; }
.ev p { margin: 0; }
.ev .foot-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: .9rem; }
.ev .src { color: var(--muted); }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--happy); color: var(--happy-ink); margin-inline-start: 6px; vertical-align: middle; }
.empty { color: var(--muted); padding: 20px 0; }

.foot { text-align: center; color: var(--muted); font-size: .9rem; padding: 40px 16px calc(40px + env(safe-area-inset-bottom)); }

/* Auto-links inside text */
a.auto { color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-underline-offset: 3px; font-weight: 600; }
a.auto.out { text-decoration-style: dotted; }

/* Decorative blobs down the page (the hero has the sun) */
.block { position: relative; }
.block::before { content: ""; position: absolute; z-index: -1; width: 180px; aspect-ratio: 1; border-radius: 50%; pointer-events: none; opacity: .55;
  background: radial-gradient(circle at 40% 40%, var(--accent-soft), transparent 70%); inset-inline-start: -60px; top: -20px; }
#places::before { background: radial-gradient(circle at 40% 40%, var(--happy), transparent 70%); inset-inline-start: auto; inset-inline-end: -50px; top: 0; }
#week::before { inset-inline-start: -40px; top: 40px; width: 220px; }
#first::before { background: radial-gradient(circle at 40% 40%, var(--happy), transparent 72%); inset-inline-start: auto; inset-inline-end: -40px; top: -10px; width: 140px; opacity: .45; }

/* Bottom tab bar (app-like section switcher) */
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; width: 100%; z-index: 20; display: flex;
  background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: .72rem; font-weight: 600; padding: 4px 2px; border-radius: 12px; min-height: 48px; justify-content: center; }
.tabbar a svg { display: block; }
.tabbar a[aria-current="true"] { color: var(--accent); background: var(--accent-soft); }
.tabbar a[hidden] { display: none; }
body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
.foot { padding-bottom: 12px; }
@media (min-width: 760px) { .tabbar { max-width: 760px; margin: 0 auto; border-radius: 16px 16px 0 0; border: 1px solid var(--line); border-bottom: 0; } }
.block { scroll-margin-top: 64px; }

/* Narrow phones: short brand next to the 4 language buttons */
@media (max-width: 430px) {
  .brand-name { display: none; }
  .lang button { min-width: 40px; padding: 10px 9px; }
  .top { gap: 8px; }
}

/* Belt and braces against horizontal scroll on phones */
html, body { max-width: 100vw; }
.strip { max-width: 100vw; }
/* Softer decorative blobs in dark mode */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .block::before, :root:not([data-theme="light"]) .hero::after { opacity: .5; } }
:root[data-theme="dark"] .block::before, :root[data-theme="dark"] .hero::after { opacity: .5; }

a.auto.page { text-decoration-style: solid; }

/* The bottom tab bar replaces the section chips */
.jump { display: none; }

/* SOS brand mark in the sticky header (always reachable) */
.brand-mark.sos { background: var(--danger); color: #fff; font-size: 15px; text-decoration: none; }
.badge.sat { background: var(--happy); color: var(--happy-ink); margin-inline-start: 8px; }

/* ===== Design pass 2026-09-29 (design review): depth, dark-mode red, blobs, tab bar, type ===== */
:root {
  --bg: #eef3f8;
  --ring: rgba(23,36,51,.05);
  --shadow: 0 1px 2px rgba(23,36,51,.05), 0 10px 30px -14px rgba(10,111,214,.22);
  --shadow-hi: 0 2px 4px rgba(23,36,51,.06), 0 18px 40px -16px rgba(10,111,214,.32);
  --danger-fill: #c62828;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1219; --surface: #1a2632; --accent-soft: #24405e;
    --ring: rgba(255,255,255,.07);
    --shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 12px 28px -16px rgba(0,0,0,.7);
    --shadow-hi: inset 0 1px 0 rgba(255,255,255,.07), 0 20px 44px -18px rgba(0,0,0,.85);
    --danger-fill: #e5484d;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1219; --surface: #1a2632; --accent-soft: #24405e;
  --ring: rgba(255,255,255,.07);
  --shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 12px 28px -16px rgba(0,0,0,.7);
  --shadow-hi: inset 0 1px 0 rgba(255,255,255,.07), 0 20px 44px -18px rgba(0,0,0,.85);
  --danger-fill: #e5484d;
}
.card, .place, .ev { box-shadow: var(--shadow), 0 0 0 1px var(--ring); }
.card { transition: box-shadow .2s; }
.card[open] { box-shadow: var(--shadow-hi), 0 0 0 1px var(--ring); }
.card.emergency { box-shadow: var(--shadow), 0 0 0 1px var(--ring), inset 4px 0 0 var(--danger-fill); }
[dir="rtl"] .card.emergency { box-shadow: var(--shadow), 0 0 0 1px var(--ring), inset -4px 0 0 var(--danger-fill); }

.brand-mark.sos { background: var(--danger-fill); color: #fff; font-size: 0; }
.brand-mark.sos::after { content: "SOS"; font: 800 11px/1 Manrope, Inter, sans-serif; letter-spacing: .06em; }
.tel a { background: var(--danger-fill); color: #fff; }
:root[data-theme="dark"] .tel a { color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tel a { color: #fff; } }
.qbtn-sos { background: var(--danger-soft); color: var(--danger); border: 2px solid var(--danger-fill); }
.sos-static { font-size: .85rem; margin-top: 16px; }
.sos-static strong { display: none; }

.hero::after { width: 220px; inset-inline-end: -50px; top: -30px; opacity: 1; filter: blur(6px); }
.block::before { display: none; }
#places::before { display: block; width: 260px; opacity: .6; filter: blur(12px); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero::after,
  :root:not([data-theme="light"]) #places::before { opacity: .32; mix-blend-mode: screen; }
}
:root[data-theme="dark"] .hero::after,
:root[data-theme="dark"] #places::before { opacity: .32; mix-blend-mode: screen; }

.tabbar { padding: 8px 4px calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(23,36,51,.05); }
.tabbar a { gap: 4px; font-size: .75rem; border-radius: 0; }
.tabbar a svg { width: 22px; height: 22px; padding: 4px 16px; box-sizing: content-box; border-radius: 999px; transition: background .18s; }
.tabbar a[aria-current="true"] { color: var(--accent); background: none; font-weight: 700; }
.tabbar a[aria-current="true"] svg { background: var(--accent-soft); stroke-width: 2.4; }

.block > h2, .week-head h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.015em; }
.hero h1 { line-height: 1.1; }
.group-title { font-size: .78rem; font-weight: 700; letter-spacing: .1em; gap: 8px; margin: 26px 0 10px; }
.group-title .dot { width: 8px; height: 8px; }
[dir="rtl"] .group-title { font-size: .9rem; letter-spacing: 0; }
[dir="rtl"] h1, [dir="rtl"] h2 { font-weight: 700; }
[dir="rtl"] .hero h1 { line-height: 1.2; }

.card summary { padding: 16px 18px; }
.card summary > span:not(.chev):not(.ico) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.card h3 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.card .sub { font-size: .875rem; line-height: 1.35; }
.card .thumb, .card .ico, .row-pic { border-radius: 12px; outline: 1px solid var(--ring); outline-offset: -1px; }
.card .chev {
  width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--chip); color: var(--ink);
  display: grid; place-items: center; font-size: 12px; line-height: 1;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), background .15s, color .15s;
}
.card[open] .chev { background: var(--accent-soft); color: var(--accent); }

.card .body li.row-img { gap: 14px; margin: 16px 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.card .body li.row-img:last-child { border-bottom: 0; padding-bottom: 0; }
.row-pic { width: 76px; height: 76px; }
.row-txt > a:first-child { color: var(--ink); font-weight: 700; font-size: 1.02rem; }
.row-txt > .muted { font-size: .875rem; display: block; }
.row-links a { font-size: .875rem; }

.strip { grid-auto-columns: 68%; gap: 10px; scroll-snap-type: x mandatory; }
.tile { box-shadow: 0 0 0 1px var(--ring); transition: transform .15s cubic-bezier(.2,.8,.2,1); }
.tile:active { transform: scale(.97); }
.tile-txt {
  padding: 56px 14px 14px;
  background: linear-gradient(to top, rgba(8,20,36,.92) 0%, rgba(8,20,36,.55) 50%, rgba(8,20,36,0) 100%);
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.tile-txt strong { font-size: 1.2rem; letter-spacing: -.01em; }
.tile-txt span { opacity: .92; }
.tile-ico { background: linear-gradient(135deg, var(--accent-soft), var(--chip)); }

a, button, summary, .tile { -webkit-tap-highlight-color: transparent; }
.card summary { transition: background .15s; }
.card summary:active { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.card[open] .body { animation: rise .24s cubic-bezier(.2,.8,.2,1); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .card, .tile, .card summary, .tabbar a svg { transition: none; } }

/* Anchored cards land just below the sticky header */
.card, .place { scroll-margin-top: 84px; }

.brand-mark.sos::after { display: block; letter-spacing: .04em; padding-inline-start: .04em; }

/* Listing logo in the header */
.brand-mark.logo { background: none; width: 36px; height: 36px; }
.brand-mark.logo svg { display: block; }
.brand-short { display: none; font-weight: 700; font-family: Manrope, Heebo, sans-serif; white-space: nowrap; }
@media (max-width: 430px) { .brand-short { display: inline; } }
[dir="rtl"] .brand-short { font-family: Heebo, sans-serif; }

/* Wordmark logo */
.wordmark { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1; text-decoration: none; color: var(--ink); padding: 2px 0; position: relative; z-index: 0; }
.wm-top { font-family: Fredoka, Manrope, sans-serif; font-weight: 700; font-size: 1.35rem; letter-spacing: -.01em; position: relative; padding: 0 4px; }
.wm-top::before { content: ""; position: absolute; inset: 72% -3px -3px -3px; background: var(--happy); border-radius: 4px; z-index: -1; transform: rotate(-1.2deg); }
.wm-sub { font-family: Inter, Heebo, sans-serif; font-weight: 700; font-size: .58rem; letter-spacing: .26em; text-transform: uppercase; color: var(--accent); margin-top: 3px; padding-inline-start: 4px; }
[dir="rtl"] .wordmark { align-items: flex-start; direction: ltr; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wm-top::before { opacity: .85; } }

/* Wordmark v2 (ChatGPT): Sora 600 + Inter 600, no yellow */
.wordmark { --logo-name: #172433; --logo-place: #0a6fd6; display: flex; flex-direction: column; justify-content: center; gap: 4px; flex: 0 1 190px; min-width: 145px; height: 44px; padding: 0; white-space: nowrap; direction: ltr; text-align: left; }
.wm-top { font-family: Sora, Manrope, sans-serif; font-weight: 600; font-size: 24px; letter-spacing: -1px; line-height: 27px; color: var(--logo-name); padding: 0; }
.wm-top::before { display: none; }
.wm-sub { font-family: Inter, sans-serif; font-weight: 600; font-size: 10px; letter-spacing: 2px; line-height: 12px; color: var(--logo-place); margin: 0; padding: 0; text-transform: uppercase; }
:root[data-theme="dark"] .wordmark { --logo-name: #f3f7fc; --logo-place: #80b8ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wordmark { --logo-name: #f3f7fc; --logo-place: #80b8ff; } }
.top { padding-left: 12px; padding-right: 12px; gap: 8px; }

/* Wordmark v3: QUIET ROOM (Manrope) + Florentin (Caveat) rising across, on a soft plate with a sun */
.wordmark { --wm-bg: var(--bg); --wm-script: var(--accent); --wm-plate: #e6f0fb; --wm-sun: #ffd966;
  position: relative; z-index: 0; display: inline-block; height: auto; min-width: 0; flex: 0 1 auto;
  padding: 9px 14px 34px 12px; border-radius: 14px; background: var(--wm-plate); overflow: hidden; direction: ltr; text-align: left; white-space: nowrap; line-height: 1; }
.wordmark::before { content: ""; position: absolute; right: -14px; bottom: -18px; width: 52px; height: 52px; border-radius: 50%; background: var(--wm-sun); z-index: 0; opacity: .9; }
.wm-caps { display: block; font: 800 15px/1 Manrope, Inter, sans-serif; letter-spacing: .24em; text-transform: uppercase; color: var(--ink); position: relative; z-index: 1; }
.wm-script { position: absolute; left: 10px; top: 29px; font: 700 31px/1 Caveat, cursive; letter-spacing: .04em; color: var(--wm-script);
  transform: rotate(-4deg); transform-origin: left 60%; z-index: 2;
  text-shadow: 1px 0 0 var(--wm-plate), -1px 0 0 var(--wm-plate), 0 1px 0 var(--wm-plate), 0 -1px 0 var(--wm-plate); }
.wm-top, .wm-sub { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wordmark { --wm-plate: #243242; --wm-script: #ffd966; --wm-sun: rgba(255,217,102,.28); } }
:root[data-theme="dark"] .wordmark { --wm-plate: #243242; --wm-script: #ffd966; --wm-sun: rgba(255,217,102,.28); }
.top { padding-top: calc(8px + env(safe-area-inset-top)); padding-bottom: 8px; }
