:root {
  --bg: #f3ebdd;          /* warm beige */
  --bg-deep: #ebe0cc;
  --ink: #1f2a44;         /* deep Aegean navy */
  --ink-soft: #5b6275;
  --line: #ddd1bb;
  --card: #fffaf2;
  --accent: #d9774b;      /* terracotta */
  --sea: #2f6f8f;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(31, 42, 68, .06), 0 8px 24px rgba(31, 42, 68, .08);
  --shadow-hover: 0 2px 4px rgba(31, 42, 68, .08), 0 14px 36px rgba(31, 42, 68, .13);
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Fraunces", "Didot", "Bodoni 72", Georgia, "Times New Roman", serif;
  /* icon colours (they follow the theme: day, Aegean night, Warm lamp) */
  --il: var(--ink);                                              /* icon line */
  --ia: var(--accent);                                           /* terracotta detail */
  --is: var(--sea);                                              /* sea / dome detail */
  --ifa: color-mix(in srgb, var(--accent) 18%, transparent);     /* soft terracotta fill */
  --ifs: color-mix(in srgb, var(--sea) 16%, transparent);        /* soft sea fill */
  --ifc: color-mix(in srgb, var(--ink) 9%, transparent);         /* soft cloud fill */
  --ir: #c2412a;                                                 /* emergency red */
  --ifr: color-mix(in srgb, #c2412a 15%, transparent);
  --ig1: #e3864e; --ig2: #b86a52; --ig3: #2f6f8f;                /* the shared fade (weather and other one-line icons) */
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--ui);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 50% -10%, #fbf6ec 0%, rgba(251, 246, 236, 0) 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -48px;
  background: var(--ink); color: var(--bg);
  padding: 8px 14px; border-radius: 8px; text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 16px; }

/* ---------- Home layout ---------- */

.home {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(64px, 22vh, 220px);
  transition: padding-top .45s cubic-bezier(.2, .7, .2, 1);
}

body.has-query .home { padding-top: clamp(28px, 6vh, 56px); }
/* phones and narrow windows: the logo and its Beta badge sit below the round buttons at the top (radio, flag, sun/moon) */
@media (max-width: 860px) { body.has-query .home { padding-top: 74px; } }

/* ---------- Logo ---------- */

.brand { text-align: center; margin-bottom: 30px; }

.logo {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: "opsz" 144;
  font-size: clamp(2.15rem, 9.4vw, 5.4rem);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ink);
  white-space: nowrap;
  transition: font-size .45s cubic-bezier(.2, .7, .2, 1);
}
.logo-dot { color: var(--accent); }
.logo-wrap { position: relative; display: inline-block; transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.home.pull-ready .logo-wrap { transform: scale(1.08); }   /* pulled far enough: let go to start again */
.beta {
  position: absolute; top: -1em; right: -1.7em; transform: rotate(8deg);
  font: 700 clamp(.62rem, 1.5vw, .78rem)/1 var(--ui); letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--accent); padding: .38em .7em .36em; border-radius: var(--radius-pill);
  box-shadow: 0 2px 6px rgba(217, 119, 75, .35); cursor: default; user-select: none;
}
body.has-query .beta { top: -1.1em; right: -2.2em; font-size: .6rem; }
@media (max-width: 560px) { .beta { top: -1.5em; right: -.3em; } body.has-query .beta { top: -1.3em; right: -1em; } }
.logo-tld { color: var(--sea); }

.tagline {
  margin: 14px 0 0;
  font-size: clamp(.95rem, 2.4vw, 1.08rem);
  color: var(--ink-soft);
  letter-spacing: .01em;
}

body.has-query .logo { font-size: clamp(1.7rem, 6vw, 2.6rem); }
body.has-query .tagline { display: none; }
/* weather now, under the tagline: quiet, fades in when it arrives (its height is kept so nothing jumps) */
.wx {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 8px;
  min-height: 31px; margin: 12px 0 0; font-size: .86rem;   /* the same height and gap as the finished pill (.wx-pill), so nothing below moves when it arrives */
  color: var(--ink-soft); letter-spacing: .01em;
  opacity: 0; transform: translateY(3px); transition: opacity .6s ease, transform .6s ease; cursor: default;
}
.wx.show { opacity: 1; transform: none; }
.wx b { font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.wx i { font-style: normal; opacity: .45; }
.wx-ico { width: 20px; height: 20px; margin-right: 2px; }
/* the sky pill: the weather line on a soft glow the colour of the sky over Antiparos right now. The glow fades into the
   page at both ends, so it stays subtle; the text and the ring use the page's own colours (23 Nov 2026) */
.wx.wx-pill { position: relative; isolation: isolate; display: inline-flex; flex-wrap: nowrap; gap: 7px; width: auto; max-width: calc(100vw - 32px);
  margin: 12px auto 0; padding: 5px 16px; font-size: .84rem; color: var(--ink-soft); white-space: nowrap; border-radius: 999px; background: none;
  transition: opacity .6s ease, transform .6s ease; }
.wx.wx-pill::before { content: ""; position: absolute; inset: -2px -26px; z-index: -1; border-radius: 999px; background: var(--wxg); opacity: .3;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24%, #000 76%, transparent); mask-image: linear-gradient(90deg, transparent, #000 24%, #000 76%, transparent);
  transition: opacity .3s; }
html[data-theme="dark"] .wx.wx-pill::before { opacity: .42; }
.wx.wx-pill[role="button"]:hover { background: none; color: var(--ink); }
.wx.wx-pill[role="button"]:hover::before { opacity: .45; }
html[data-theme="dark"] .wx.wx-pill[role="button"]:hover::before { opacity: .58; }
.wx.wx-pill b { color: var(--ink); font-weight: 700; }
.wx.wx-pill i { opacity: .5; }
.wx.wx-pill .wx-time { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; padding-right: 8px; border-right: 1px solid color-mix(in srgb, var(--ink-soft) 35%, transparent); }
.wx-ring { width: 21px; height: 21px; flex: none; }
.wx-ring .wr-bg { fill: none; stroke: color-mix(in srgb, var(--ink-soft) 28%, transparent); stroke-width: 3; }
.wx-ring .wr-day { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.wx-ring .wr-now { fill: var(--ink); stroke: var(--bg); stroke-width: .9; }
/* the sky colours (only the glow uses them) */
.wx.wxp-night  { --wxg: linear-gradient(100deg, #0a1229, #1d2f57 55%, #3a5a95); }
.wx.wxp-dawn   { --wxg: linear-gradient(100deg, #6a6fa8, #e09a9a 55%, #f6c39a); }
.wx.wxp-day    { --wxg: linear-gradient(100deg, #1d6aa8, #3f8cc6 55%, #7ab8e2); }
.wx.wxp-golden { --wxg: linear-gradient(100deg, #d0663a, #ec9a5c 55%, #f6c47a); }
.wx.wxp-dusk   { --wxg: linear-gradient(100deg, #3a3f7e, #9a6488 55%, #e48a62); }
html[data-theme="dark"] .wx.wxp-night { --wxg: linear-gradient(100deg, #2a4680, #3d5f9e 55%, #5b7fbf); }   /* a night glow must be lighter than the night page */
@media (max-width: 420px) { .wx.wx-pill { font-size: .8rem; gap: 6px; } .wx.wx-pill .wx-sea, .wx.wx-pill i:has(+ span .wx-sea) { display: none; } }
body.has-query .wx { display: none; }
body.has-query .brand { margin-bottom: 20px; }

/* ---------- Search bar ---------- */

.search { width: 100%; max-width: 640px; }

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  height: 60px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.search-box:hover { box-shadow: var(--shadow-hover); }
.search-box:focus-within {
  box-shadow: var(--shadow-hover), 0 0 0 4px rgba(47, 111, 143, .14);
  border-color: #c9bca3;
}

.search-icon {
  width: 22px; height: 22px; margin-left: 22px; flex: none;
  fill: none; stroke: var(--ink-soft); stroke-width: 2; stroke-linecap: round;
}

.search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 14px;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 1.1rem;
  color: var(--ink);
}
.search input::placeholder { color: #9a9384; }
.search input::-webkit-search-cancel-button { display: none; }

.clear {
  flex: none;
  width: 44px; height: 44px; margin-right: 8px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: transparent; cursor: pointer;
}
.clear:hover { background: var(--bg); }
.clear svg { width: 18px; height: 18px; fill: none; stroke: var(--ink-soft); stroke-width: 2; stroke-linecap: round; }

/* ---------- Category chips ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  max-width: 720px;
}
.chips a, .chips .chip-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px;
  font: inherit; font-size: .93rem;
  color: var(--ink);
  background: rgba(255, 250, 242, .55);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s, transform .15s;
}
.chips a:hover, .chips .chip-btn:hover { background: var(--card); border-color: #cbbda3; transform: translateY(-1px); }
.chips a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Results ---------- */

.results { width: 100%; max-width: 640px; margin-top: 28px; }
.results-meta { margin: 0 0 12px 6px; font-size: .9rem; color: var(--ink-soft); min-height: 1.2em; }

#results { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.card {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  animation: rise .35s cubic-bezier(.2, .7, .2, 1) backwards;
}
.card-icon {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  font-size: 1.35rem;
  background: var(--bg);
  border-radius: 12px;
}
.card-body { min-width: 0; }
.card h3 { margin: 0; font-size: 1.05rem; font-weight: 650; }
.card .cat { margin: 3px 0 0; font-size: .88rem; color: var(--sea); }
.card .desc { margin: 6px 0 0; font-size: .93rem; color: var(--ink-soft); line-height: 1.45; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.badge {
  font-size: .72rem; font-weight: 600; letter-spacing: .02em;
  color: #8a4a26; background: #f6dcc9; border-radius: var(--radius-pill); padding: 3px 9px;
}
.card .area { display: block; margin-top: 2px; color: var(--ink-soft); font-size: .84rem; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; }
.tags li {
  font-size: .78rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 3px 10px;
}
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.act {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px;
  font-size: .86rem; font-weight: 600; color: var(--ink); text-decoration: none;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-pill);
  transition: background .15s, border-color .15s;
}
.act:hover { background: #fff; border-color: #cbbda3; }
.act:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }
.act svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card mark { background: #f6dcc9; color: inherit; border-radius: 3px; padding: 0 1px; }

.empty {
  text-align: center; padding: 28px 16px; color: var(--ink-soft);
  background: rgba(255, 250, 242, .55); border: 1px dashed var(--line); border-radius: 18px;
}

@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */

.foot {
  text-align: center;
  padding: 40px 16px 28px;
  font-size: .85rem;
  color: var(--ink-soft);
}
.foot p { margin: 4px 0; }
.foot-cta {
  display: inline-block; max-width: 100%; margin-bottom: 14px; padding: 10px 18px; line-height: 1.5;
  font-size: .92rem; color: var(--ink); text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-pill);
  transition: background .15s, transform .15s, box-shadow .15s;
}
.foot-cta:hover { background: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.foot-cta strong { color: var(--sea); }
.empty a { display: inline-block; margin-top: 8px; color: var(--sea); font-weight: 600; }
.foot .note { font-size: .8rem; opacity: .85; }

/* ---------- Phone ---------- */

@media (max-width: 560px) {
  .brand { margin-bottom: 24px; }
  .search-box { height: 54px; }
  .search-icon { margin-left: 18px; width: 20px; height: 20px; }
  .search input { font-size: 1rem; padding: 0 10px; }
  .chips { gap: 8px; margin-top: 20px; }
  .chips a { padding: 8px 13px; font-size: .88rem; }
  .card { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.clear[hidden] { display: none; }

/* ---------- Clickable cards ---------- */

.card {
  position: relative;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: #d3c5ab; }
.card:active { transform: scale(.99); }
.card.lifted { visibility: hidden; }
.card-open {
  all: unset; cursor: pointer;
  font: inherit; color: inherit;
}
.card-open::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.card-open:focus-visible::after { outline: 2px solid var(--sea); outline-offset: 3px; }
.card .acts, .card .act { position: relative; z-index: 1; }
.card-body { flex: 1; padding-right: 18px; }
.card-chev {
  position: absolute; top: 18px; right: 14px; width: 20px; height: 20px; color: #b3a78f;
  transition: transform .25s, color .25s;
}
.card-chev svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .card-chev { transform: translateX(3px); color: var(--ink); }

/* ---------- Place details sheet ---------- */

html.sheet-open { overflow: hidden; }

.sheet-backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(31, 42, 68, .22);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  backdrop-filter: blur(10px) saturate(1.1);
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
.sheet-backdrop.show { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed; inset: 0; z-index: 51; margin: auto;
  width: min(600px, calc(100vw - 32px));
  height: fit-content;
  max-height: min(88vh, 860px);
  max-height: min(88svh, 860px);
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 30px 80px rgba(31, 42, 68, .28), 0 6px 18px rgba(31, 42, 68, .12);
  transform-origin: top left;
  overflow: hidden;
  will-change: transform;
}
.sheet[hidden] { display: none; }
.sheet-scroll { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sheet-content { padding: 26px 26px 22px; }

.sheet-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: rgba(255, 250, 242, .9); cursor: pointer; color: var(--ink);
  transition: background .15s, transform .15s;
}
.sheet-close:hover { background: #fff; transform: rotate(90deg); }
.sheet-close:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }
.sheet-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.sheet-head { display: flex; gap: 16px; align-items: center; padding-right: 44px; }
.sheet-icon {
  flex: none; width: 64px; height: 64px; display: grid; place-items: center;
  font-size: 2rem; background: var(--bg); border-radius: 18px;
}
.sheet-head .badge { display: inline-block; margin-bottom: 6px; }
.sheet-head h2 { margin: 0; font-size: clamp(1.35rem, 4.5vw, 1.7rem); line-height: 1.15; font-weight: 750; letter-spacing: -.01em; }
.sheet-cat { margin: 4px 0 0; color: var(--sea); font-size: .95rem; }
.sheet-desc { margin: 18px 0 0; font-size: 1.05rem; line-height: 1.55; color: var(--ink); }
.sheet .tags { margin-top: 14px; }
.sheet-acts { margin-top: 18px; }
.act-lg { min-height: 44px; padding: 0 18px; font-size: .95rem; background: var(--ink); color: var(--bg); border-color: var(--ink); }
.act-lg:hover { background: #2b3a5c; border-color: #2b3a5c; }
.act-lg svg { width: 18px; height: 18px; }

.sheet-sec { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.sheet-sec h3 {
  display: flex; align-items: center; gap: 8px; margin: 0 0 10px;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft);
}
.sheet-sec h3 svg { width: 17px; height: 17px; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sheet-tips { margin: 0; padding-left: 20px; line-height: 1.55; color: var(--ink); }
.sheet-tips li + li { margin-top: 8px; }
.sheet-tips li::marker { color: var(--accent); }
.sheet-info { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sheet-info li { display: flex; align-items: center; gap: 10px; font-size: .98rem; }
.sheet-info svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--sea); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sheet-info a { color: var(--ink); text-underline-offset: 3px; word-break: break-word; }
.near-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.near {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px;
  font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-pill);
  transition: background .15s, transform .15s;
}
.near:hover { background: #fff; transform: translateY(-1px); }
.near:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }
.sheet-note { margin: 22px 0 0; font-size: .82rem; color: var(--ink-soft); text-align: center; }

@media (max-width: 560px) {
  .sheet { width: calc(100vw - 20px); border-radius: 22px; }
  .sheet-content { padding: 20px 18px 18px; }
  .sheet-icon { width: 54px; height: 54px; font-size: 1.7rem; border-radius: 15px; }
  .sheet-head { gap: 12px; }
  .act-lg { flex: 1 1 auto; justify-content: center; }
}

/* ---------- Hand-drawn icons ---------- */

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: url(#ig); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.chips a, .chips .chip-btn { gap: 8px; padding-left: 13px; }
.chips a:hover .ico, .chips .chip-btn:hover .ico { transform: rotate(-8deg) scale(1.12); }
.chips a[aria-current="page"] .ico { --il: currentColor; stroke: currentColor; }
.foot-cta .ico { width: 20px; height: 20px; vertical-align: -4px; margin-right: 6px; }
.foot-cta:hover .ico { transform: rotate(-6deg) scale(1.1); }
.ico-sun { width: 17px; height: 17px; vertical-align: -3px; stroke-width: 1.8; }
.foot:hover .ico-sun { transform: rotate(45deg); }
@media (max-width: 560px) { .chips a { padding-left: 11px; } .ico { width: 20px; height: 20px; } }

/* ---------- Photos: gallery in the large card ---------- */

.gal {
  position: relative; display: grid; gap: 4px; height: 270px;
  margin: -26px -26px 22px; border-radius: 26px 26px 0 0; overflow: hidden; background: var(--bg);
}
.gal-2 { grid-template-columns: 1fr 1fr; }
.gal-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.gal-3 .gal-item:first-child { grid-row: span 2; }
.gal-item { all: unset; position: relative; overflow: hidden; cursor: zoom-in; background: var(--bg-deep); min-height: 0; }
.gal-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.gal-item:hover img { transform: scale(1.045); }
.gal-item:focus-visible { outline: 3px solid var(--sea); outline-offset: -3px; }
.gal-more {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 1.05rem; font-weight: 700; color: #fff; background: rgba(31, 42, 68, .48);
}
.gal-count {
  position: absolute; left: 12px; bottom: 12px; padding: 5px 11px; pointer-events: none;
  font-size: .78rem; font-weight: 600; color: #fff; background: rgba(20, 26, 40, .55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-radius: 999px;
}
.sheet-close { box-shadow: 0 2px 10px rgba(31, 42, 68, .18); }
.card-thumb { overflow: hidden; padding: 0; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Photos: full-screen viewer ---------- */

.lb { position: fixed; inset: 0; z-index: 60; overflow: hidden; color: #fff; }
.lb[hidden] { display: none; }
.lb-bg { position: absolute; inset: 0; background: rgb(12, 16, 26); opacity: 1; }
.lb-track { position: absolute; inset: 0; display: flex; touch-action: none; will-change: transform; cursor: grab; }
.lb-track:active { cursor: grabbing; }
.lb-slide {
  flex: 0 0 100%; height: 100%; margin: 0; display: grid; place-items: center;
  padding: 64px 72px 84px; box-sizing: border-box; will-change: transform;
}
.lb-slide img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  border-radius: 6px; user-select: none; -webkit-user-select: none; -webkit-user-drag: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45); background: rgba(255, 255, 255, .04);
}
.lb-btn {
  position: absolute; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px;
  color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%;
  cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .15s, opacity .15s, transform .15s;
}
.lb-btn:hover { background: rgba(255, 255, 255, .22); }
.lb-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { top: calc(14px + env(safe-area-inset-top)); right: 14px; }
.lb-close:hover { transform: rotate(90deg); }
.lb-nav { top: 50%; margin-top: -23px; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-nav:disabled { opacity: .25; cursor: default; }
.lb-single .lb-nav, .lb-single .lb-count { display: none; }
.lb-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; pointer-events: none;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
  padding: 18px 22px calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(0, 0, 0, .45));
}
.lb-bar p { margin: 0; font-size: .95rem; line-height: 1.4; }
.lb-cap { color: rgba(255, 255, 255, .92); }
.lb-count { flex: none; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
.lb-hint { display: none; }

@media (max-width: 560px) {
  .gal { height: 220px; margin: -20px -18px 18px; border-radius: 22px 22px 0 0; }
  .lb-slide { padding: 60px 0 76px; }
  .lb-slide img { border-radius: 0; }
}
@media (hover: none) {
  .lb-nav { display: none; }
  .lb-hint {
    display: block; position: absolute; z-index: 2; top: calc(26px + env(safe-area-inset-top)); left: 0; right: 0;
    margin: 0; text-align: center; font-size: .8rem; color: rgba(255, 255, 255, .6); pointer-events: none;
  }
}

/* ---------- "Verified" badge (the owner was checked) ---------- */
.verified {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 6px;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em; color: #245e8a;
  background: #e1eef6; border: 1px solid #c6dceb; border-radius: 999px; white-space: nowrap;
}
.verified svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sheet-head .verified { margin: 0 6px 6px 0; }

/* ---------- Pinned quick info: ferries, numbers, emergency ---------- */

.quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; max-width: 640px; }
.qk {
  display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 6px 18px 6px 7px;
  font: inherit; font-size: .95rem; font-weight: 600; color: var(--ink); cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-pill);
  box-shadow: 0 1px 2px rgba(31, 42, 68, .05), 0 6px 18px rgba(31, 42, 68, .07);
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s, border-color .2s;
}
.qk:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: #d3c5ab; }
.qk:active { transform: scale(.97); }
.qk:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; }
.qk-ico {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(135deg, #fbe9da, #e3eff4);
}
.qk .ico { width: 22px; height: 22px; }
.qk:hover .ico { transform: rotate(-8deg) scale(1.1); }
.qk-t b { font-weight: 800; letter-spacing: .02em; }
.qk-sos { color: #9b2c1c; border-color: #f0c8b8; background: #fff6f1; }
.qk-sos .qk-ico { background: #fbe1d6; }
.qk-sos .ico, .sos .ico { stroke: url(#ig-sos); }
.qk-sos:hover { border-color: #e7a990; }
body.has-query .quick { margin-top: 16px; }

@media (max-width: 560px) {
  .quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; margin-top: 20px; }
  .qk { flex-direction: column; justify-content: center; gap: 6px; padding: 10px 4px 9px; border-radius: 18px; font-size: .82rem; line-height: 1.15; text-align: center; }
  .qk-ico { width: 38px; height: 38px; }
  body.has-query .quick { display: none; }   /* more room for results on phones */
}

/* ---------- Info panels ---------- */

.info-head .sheet-icon { background: linear-gradient(135deg, #fbe9da, #e3eff4); }
.info-head .sheet-icon .ico { width: 34px; height: 34px; stroke-width: 1.5; }
.info-head.sos .sheet-icon { background: #fbe1d6; }
.routes { display: grid; gap: 10px; margin-top: 16px; }
.route { padding: 14px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; }
.route h3 { margin: 0; font-size: 1.05rem; }
.route .tags { margin-top: 8px; }
.route .tags li { background: var(--card); }
.route p { margin: 10px 0 0; font-size: .93rem; line-height: 1.5; color: var(--ink-soft); }
.sheet-tips a, .sheet-note a { color: var(--sea); font-weight: 600; }

.nums { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.num {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
}
.num-ico { width: 38px; height: 38px; flex: none; display: grid; place-items: center; font-size: 1.2rem; background: var(--card); border-radius: 11px; }
.num-txt { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.num-txt strong { font-size: .97rem; }
.num-txt small { color: var(--ink-soft); font-size: .8rem; }
.num-tel { justify-self: start; margin-top: 2px; font-size: .86rem; color: var(--sea); text-decoration: none; font-variant-numeric: tabular-nums; }   /* only the number itself is the link */
.num-tel:hover { text-decoration: underline; }
.num.has-more { cursor: pointer; transition: border-color .15s, background .15s; }
.num.has-more:hover { border-color: var(--sea); }
.num-acts { display: flex; gap: 6px; flex: none; }
.act-call { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.act-call:hover { background: #2b3a5c; border-color: #2b3a5c; }
.near.more { min-height: 36px; padding: 0 12px; font-weight: 600; }
/* the Tools chip stands apart from the categories: a terracotta → sea gradient with light text (dark text at night) */
.chips .chip-btn { font-weight: 700; color: #fff; border-color: transparent;
  background: linear-gradient(120deg, var(--accent), var(--sea)); box-shadow: 0 4px 14px color-mix(in srgb, var(--sea) 30%, transparent);
  --il: currentColor; --ia: currentColor; --ifa: color-mix(in srgb, currentColor 25%, transparent); }
.chips .chip-btn .ico { stroke: currentColor; }
.chips .chip-btn:hover { background: linear-gradient(120deg, var(--accent), var(--sea)); filter: brightness(1.06); border-color: transparent; }
html[data-theme="dark"] .chips .chip-btn { color: var(--bg-deep); }
/* Tools card: three big rows */
.tools { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.tool { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; font: inherit; text-align: left; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; cursor: pointer; transition: border-color .15s, transform .2s cubic-bezier(.34, 1.56, .64, 1); }
.tool:hover { border-color: var(--sea); transform: translateY(-1px); }
.tool:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }
.tool-ico { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--sea) 11%, var(--card)); }
.tool-ico .ico { width: 28px; height: 28px; }
.tool-t { flex: 1; display: grid; gap: 2px; min-width: 0; }
.tool-t b { font-size: 1.02rem; }
.tool-t small { font-size: .84rem; color: var(--ink-soft); line-height: 1.35; }
.tool-go { font-size: 1.5rem; line-height: 1; color: var(--ink-soft); }
/* Useful numbers, grouped: island services first, then health, then taxis (23 Nov 2026) */
.nums-sos { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 16px; padding: 10px 14px; font: inherit; font-size: .95rem; text-align: left;
  color: #9b2c1c; background: #fff6f1; border: 1px solid #f0c8b8; border-radius: 14px; cursor: pointer; transition: border-color .15s; }
.nums-sos .ico { width: 24px; height: 24px; }
.nums-sos span:nth-of-type(1) { flex: 1; }
.nums-sos span:last-child { font-size: 1.3rem; line-height: 1; }
.nums-sos:hover { border-color: #e7a990; }
html[data-theme="dark"] .nums-sos { color: #ff9f88; background: #2c1a1c; border-color: #6a3026; }
.nums-sec { margin-top: 20px; }
.nums-sec h3 { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.nums-note { margin: 4px 0 0; font-size: .82rem; color: var(--ink-soft); }
.nums-sec .nums { margin-top: 8px; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.nums-sec .num { background: none; border: 0; border-radius: 0; border-top: 1px solid var(--line); padding: 12px 14px; }
.nums-sec .num:first-child { border-top: 0; }
.nums-sec .num.has-more:hover { background: color-mix(in srgb, var(--sea) 6%, transparent); }
.nums-sec .num-ico { background: color-mix(in srgb, var(--sea) 10%, var(--card)); border-radius: 12px; }
.num-name { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.num-name .num-open { margin: 0; }
a.near.more { display: inline-flex; align-items: center; text-decoration: none; }
.num-acts .near.more { min-width: 68px; justify-content: center; }
.num-open { justify-self: start; margin: 3px 0 1px; padding: 1px 8px; font-size: .72rem; font-weight: 700; border-radius: 999px;
  color: var(--ink-soft); background: color-mix(in srgb, var(--ink-soft) 12%, transparent); }
.num-open.on { color: #2c6b45; background: #dcefe3; }
html[data-theme="dark"] .num-open.on { color: #9fe0b5; background: #1d3a2a; }

.sos-call {
  display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 14px 16px;
  color: #fff; text-decoration: none; border-radius: 18px;
  background: linear-gradient(135deg, #e5603e, #a3301d);
  box-shadow: 0 10px 26px rgba(163, 48, 29, .3);
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1);
}
.sos-call:hover { transform: translateY(-2px); }
.sos-call:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.sos-num { font-size: 2.2rem; font-weight: 800; letter-spacing: .02em; line-height: 1; padding-right: 14px; border-right: 1px solid rgba(255, 255, 255, .35); }
.sos-call span:nth-child(2) { flex: 1; display: grid; gap: 2px; }
.sos-call strong { font-size: 1.1rem; }
.sos-call small { font-size: .82rem; opacity: .9; }
.sos-call svg { width: 26px; height: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sos-grid { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sos-grid a {
  display: grid; justify-items: center; gap: 2px; padding: 10px 4px; text-decoration: none; color: var(--ink);
  font-size: .8rem; background: #fff6f1; border: 1px solid #f0c8b8; border-radius: 14px; transition: background .15s;
}
.sos-grid a:hover { background: #fde9df; }
.sos-grid b { font-size: 1.3rem; color: #9b2c1c; }
@media (max-width: 560px) {
  .sos-grid { grid-template-columns: repeat(2, 1fr); }
  .num { flex-wrap: wrap; }
  .num-acts { width: 100%; padding-left: 50px; }
}

/* ---------- Live ferry times ---------- */

.qk-t { display: grid; justify-items: start; line-height: 1.2; }
.qk-sub:empty::before { content: "\00a0"; }   /* keeps the line for "Next 17:45" before it arrives, so the buttons don't grow */
.qk-sub { font-size: .74rem; font-weight: 600; color: var(--sea); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .qk-t { justify-items: center; } }

.fx { margin-top: 16px; }
.fx-skel { display: grid; gap: 10px; }
/* loading: a faint shimmer in the page's own colours (day and night), slow and soft; it only fades in after a short
   pause, so a quick load never shows it at all */
.fx-skel { opacity: 0; animation: fxskin .4s ease .35s forwards; }
@keyframes fxskin { to { opacity: 1; } }
.fx-skel span { height: 44px; border-radius: 14px; border: 1px solid var(--line);
  background: linear-gradient(90deg, var(--card) 0%, color-mix(in srgb, var(--ink) 5%, var(--card)) 50%, var(--card) 100%);
  background-size: 200% 100%; animation: fxsk 2.2s ease-in-out infinite; }
.fx-skel span:nth-child(2) { height: 120px; }
@keyframes fxsk { to { background-position: -200% 0; } }

.fx-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; }
.fx-seg button {
  display: grid; gap: 1px; padding: 9px 10px; text-align: center; cursor: pointer;
  font: inherit; color: var(--ink); background: transparent; border: 0; border-radius: 14px;
  transition: background .2s, box-shadow .2s, color .2s;
}
.fx-seg button strong { font-size: .98rem; }
.fx-seg button small { font-size: .74rem; color: var(--ink-soft); }
.fx-seg button[aria-selected="true"] { background: var(--card); box-shadow: 0 1px 2px rgba(31, 42, 68, .08), 0 4px 12px rgba(31, 42, 68, .08); }
.fx-seg button:focus-visible, .fx-dir button:focus-visible, .fx-switch:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }

.fx-dir { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fx-dir button {
  flex: 1 1 160px; min-height: 40px; padding: 0 14px; cursor: pointer;
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; transition: background .15s, color .15s;
}
.fx-dir button[aria-pressed="true"] { color: var(--bg); background: var(--ink); border-color: var(--ink); }

.fx-hero {
  position: relative; display: grid; justify-items: start; gap: 2px; margin-top: 14px; padding: 18px 20px 20px; overflow: hidden;
  color: #fff; border-radius: 22px;
  background: radial-gradient(120% 140% at 100% 0%, #3f88a8 0%, #2f6f8f 45%, #1f2a44 100%);
  box-shadow: 0 14px 30px rgba(31, 42, 68, .22);
}
.fx-hero::after {   /* soft waves */
  content: ""; position: absolute; right: -10px; bottom: -6px; width: 220px; height: 70px; opacity: .18; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 70' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M0 20c18 0 18-10 36-10s18 10 36 10 18-10 36-10 18 10 36 10 18-10 36-10 18 10 40 10'/%3E%3Cpath d='M0 45c18 0 18-10 36-10s18 10 36 10 18-10 36-10 18 10 36 10 18-10 36-10 18 10 40 10'/%3E%3C/svg%3E") no-repeat;
}
.fx-k { font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.fx-big { font-size: clamp(2.6rem, 11vw, 3.6rem); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fx-in { display: inline-block; margin-top: 2px; padding: 3px 11px; font-size: .9rem; font-weight: 700; color: #1f2a44; background: #f6dcc9; border-radius: 999px; }
.fx-sub { margin-top: 8px; font-size: .92rem; opacity: .9; font-variant-numeric: tabular-nums; }
.fx-wind {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  padding: 4px 11px 4px 8px; font-size: .8rem; color: #fff; border-radius: 999px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22);
}
.fx-wind b { font-weight: 700; }
.fx-wind svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fx-wind.strong { background: rgba(217, 119, 75, .85); border-color: rgba(255, 255, 255, .35); }
/* darker glass, so the words stay clear where it passes over the white ferry on small phones */
button.fx-wind { font: inherit; font-size: .8rem; cursor: pointer; background: rgba(14, 26, 46, .42); transition: background .15s, transform .15s; }
button.fx-wind:hover { background: rgba(14, 26, 46, .6); transform: translateY(-1px); }
button.fx-wind.strong:hover { background: rgba(217, 119, 75, 1); }
button.fx-wind:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.fx-wind .fx-wind-go { width: 13px; height: 13px; margin-left: -1px; opacity: .75; }
.fx-windwarn { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; padding: 10px 13px; font-size: .86rem; line-height: 1.4; font-weight: 600; color: #8a3f1c; background: #fbe3d4; border: 1px solid #f1c3a6; border-radius: 14px; }
.fx-hero.soon { background: radial-gradient(120% 140% at 100% 0%, #f0915e 0%, #d9774b 40%, #8a3c22 100%); }
.fx-hero.soon .fx-in { animation: fxpulse 1.2s ease-in-out infinite; }
@keyframes fxpulse { 50% { transform: scale(1.06); } }
.fx-night { background: radial-gradient(120% 140% at 100% 0%, #3b4a72 0%, #26304d 50%, #141a2b 100%); }
.fx-night .fx-big { font-size: clamp(2.2rem, 9vw, 3rem); }
.fx-off { color: var(--ink); background: var(--bg); border: 1px solid var(--line); box-shadow: none; }
.fx-off .fx-big { font-size: 1.6rem; }
.fx-off::after { display: none; }
.fx-switch {
  margin-top: 12px; min-height: 40px; padding: 0 16px; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--bg); background: var(--ink); border: 0; border-radius: 999px;
}

.fx-warn { margin: 10px 0 0; padding: 10px 14px; font-size: .88rem; color: #7a3b22; background: #fbe6dd; border: 1px solid #f1c4b2; border-radius: 12px; }
.fx-list { margin-top: 18px; }
.fx-list h4 { margin: 0 0 10px; font-size: 1rem; }
.fx-list h4 small { margin-left: 6px; font-weight: 500; color: var(--ink-soft); font-size: .84rem; }
.fx-times { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; }
.fx-times li {
  padding: 8px 0; text-align: center; font-size: .95rem; font-weight: 600; font-variant-numeric: tabular-nums;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
}
.fx-times li.past { color: #b2a995; background: transparent; border-style: dashed; font-weight: 500; text-decoration: line-through; text-decoration-color: rgba(178, 169, 149, .6); }
.fx-times li.next {
  position: relative; color: #fff; background: var(--sea); border-color: var(--sea);
  box-shadow: 0 0 0 4px rgba(47, 111, 143, .18);
}
.fx-times li.next::before {
  content: ""; position: absolute; top: -4px; right: -4px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px var(--card); animation: fxpulse 1.4s ease-in-out infinite;
}
/* the last ferry of the day: in the next-ferry card and in the times */
.fx-last { position: relative; z-index: 2; max-width: 60%; text-shadow: 0 1px 3px rgba(10, 20, 40, .6); margin-top: 4px; font-size: .86rem; font-weight: 600; color: #ffe2b0; font-variant-numeric: tabular-nums; }
.fx-lasttag { font-style: normal; font-size: .74rem; font-weight: 700; padding: 1px 7px; margin-left: 2px; border-radius: 999px; background: rgba(255, 255, 255, .18); }
.fx-times li.last small { display: block; margin-top: 1px; font-size: .66rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.fx-times li.next.last small { color: #fff; }
/* the wind pill sits on the pier drawing: give it its own dark glass so it stays readable */
.fx-hero .fx-wind { position: relative; z-index: 2; background: rgba(15, 25, 45, .6); }
/* night: the next time is dark text on the light sea colour (white on light blue was hard to read) */
html[data-theme="dark"] .fx-times li.next { color: var(--bg-deep); }
/* today's times already gone, folded away */
.fx-earlier { margin-bottom: 8px; }
.fx-earlier summary { cursor: pointer; font-size: .86rem; font-weight: 600; color: var(--sea); padding: 2px 0 6px; }
.fx-earlier .fx-times { margin-bottom: 4px; }
.fx-more { margin-top: 12px; }
.fx-more summary { cursor: pointer; font-weight: 600; color: var(--sea); padding: 6px 0; }
.fx-more .fx-times { margin-top: 6px; }
.fx-meta { margin: 14px 0 0; font-size: .8rem; color: var(--ink-soft); }
.fx-meta a, .fx-msg a { color: var(--sea); font-weight: 600; }
.fx-msg { margin: 8px 0 0; color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .fx-hero.soon .fx-in, .fx-times li.next::before, .fx-skel span, .sk-load i { animation: none; } .fx-skel { opacity: 1; animation: none; } }
/* the night sky, loading: a few stars twinkling softly and one quiet line */
.sk-load { display: grid; justify-items: center; gap: 12px; margin-top: 14px; padding: 34px 16px 30px; border-radius: 20px; color: #cfd8ea;
  background: radial-gradient(120% 100% at 50% 0%, #1d2f57 0%, #0f1830 60%, #0a1124 100%); opacity: 0; animation: fxskin .4s ease .25s forwards; }
.sk-load .stars { position: relative; width: 120px; height: 40px; }
.sk-load i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff; opacity: .2; animation: sktw 1.8s ease-in-out infinite; }
.sk-load i:nth-child(1) { left: 8px; top: 22px; }
.sk-load i:nth-child(2) { left: 38px; top: 6px; animation-delay: .3s; }
.sk-load i:nth-child(3) { left: 62px; top: 26px; width: 6px; height: 6px; background: #f3ead2; animation-delay: .6s; }
.sk-load i:nth-child(4) { left: 88px; top: 10px; animation-delay: .9s; }
.sk-load i:nth-child(5) { left: 110px; top: 30px; animation-delay: 1.2s; }
@keyframes sktw { 50% { opacity: .95; transform: scale(1.4); } }
.sk-load p { margin: 0; font-size: .88rem; }

/* ---------- Drawn place icons ---------- */
.card-icon .ico { width: 26px; height: 26px; }
.card:hover .card-icon .ico { transform: rotate(-6deg) scale(1.08); }
.sheet-icon .ico { width: 34px; height: 34px; stroke-width: 1.5; }
.sheet-icon { background: linear-gradient(135deg, #fbe9da, #e3eff4); }
.near .near-ico { width: 18px; height: 18px; }
.num-ico .ico { width: 22px; height: 22px; }

/* ---------- Mini map ---------- */
.mm { position: relative; display: block; overflow: hidden; color: var(--ink); text-decoration: none; background: #cfe4ec; }
.mm svg { display: block; width: 100%; height: 100%; }
.mm-sea { fill: #cde3ec; }
.mm-land { fill: #f6efe2; stroke: #d6c4a3; stroke-width: 1.1; stroke-linejoin: round; }
.mm-labels text { font: 600 11px system-ui, -apple-system, sans-serif; fill: #8a7d63; letter-spacing: .04em; text-anchor: middle; }
.mm-shadow { fill: rgba(31, 42, 68, .25); }
.mm-ring { fill: none; stroke: #d9774b; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: mmring 2.2s ease-out .6s infinite; opacity: 0; }
.mm-pin path { fill: #d9774b; stroke: #fff; stroke-width: 1.6; }
.mm-pin circle { fill: #fff; }
.mm-pin { animation: mmdrop .8s cubic-bezier(.34, 1.56, .64, 1) .15s backwards; }
@keyframes mmdrop { from { transform: translateY(-36px); opacity: 0; } 60% { opacity: 1; } }
@keyframes mmring { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
.mm-tag {
  position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 24px);
  padding: 6px 12px 6px 9px; font-size: .82rem; font-weight: 600; color: var(--ink);
  background: rgba(255, 250, 242, .92); border: 1px solid var(--line); border-radius: 999px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 4px 14px rgba(31, 42, 68, .12);
}
.mm-tag svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mm-tag b { margin-left: 4px; color: var(--sea); }
a.mm:hover .mm-tag b { text-decoration: underline; }
a.mm:focus-visible { outline: 3px solid var(--sea); outline-offset: -3px; }
.mm-credit { position: absolute; right: 8px; top: 6px; font-size: .62rem; color: rgba(31, 42, 68, .45); }
.mm-cover { height: 230px; margin: -26px -26px 22px; border-radius: 26px 26px 0 0; }
.mm-small { height: 170px; margin-bottom: 12px; border-radius: 16px; border: 1px solid var(--line); }
.mm-small .mm-tag { font-size: .78rem; }

/* No photo and no map pin: drawn cover */
.ico-cover {
  position: relative; display: grid; place-items: center; height: 150px; margin: -26px -26px 22px; overflow: hidden;
  border-radius: 26px 26px 0 0; background: linear-gradient(135deg, #fbe9da 0%, #f3ebdd 45%, #dcebf1 100%);
}
.ico-cover::before, .ico-cover::after {
  content: ""; position: absolute; left: -10%; right: -10%; height: 40px; opacity: .35;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 20' fill='none' stroke='%232f6f8f' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M0 10c10 0 10-6 20-6s10 6 20 6 10-6 20-6 10 6 20 6 10-6 20-6 10 6 20 6'/%3E%3C/svg%3E") repeat-x 0 0 / 120px 20px;
}
.ico-cover::before { bottom: 26px; }
.ico-cover::after { bottom: 6px; background-position: 60px 0; opacity: .22; }
.ico-cover .cover-ico { width: 76px; height: 76px; stroke-width: 1.3; position: relative; z-index: 1; animation: rise .6s cubic-bezier(.34, 1.56, .64, 1) .1s backwards; }

/* "Is this your place?" */
.own-link {
  display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px;
  font-size: .9rem; color: var(--ink); text-decoration: none;
  background: var(--bg); border: 1px dashed #cbbda3; border-radius: 14px; transition: background .15s, border-color .15s;
}
.own-link:hover { background: #fff; border-color: var(--sea); }
.own-link svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.own-link b { color: var(--sea); }

@media (max-width: 560px) {
  .mm-cover { height: 190px; margin: -20px -18px 18px; border-radius: 22px 22px 0 0; }
  .ico-cover { height: 130px; margin: -20px -18px 18px; border-radius: 22px 22px 0 0; }
}
@media (prefers-reduced-motion: reduce) { .mm-pin, .mm-ring, .ico-cover .cover-ico { animation: none; } .mm-ring { display: none; } }

/* ---------- Ferry "crossing now" (estimated from the timetable) ---------- */
.fx-strait { margin-top: 12px; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
/* shorter than before: the next-ferry card comes first. The map is pinned to its right edge (Pounda side), so on
   wide screens it opens out over Antiparos instead of running past the end of the drawn map. */
.fx-strait svg { display: block; width: 100%; height: clamp(124px, 16vw, 200px); background: var(--card); }
.fx-strait-text { padding: 2px 0 0; }
.fx-route { fill: none; stroke: #2f6f8f; stroke-width: 1.4; stroke-dasharray: 3 3.4; opacity: .55; }
.fx-dock { fill: #fff; stroke: #2f6f8f; stroke-width: 1.4; }
.fx-place { font: 600 8.5px system-ui, -apple-system, sans-serif; fill: #6f6550; letter-spacing: .03em; }
.fx-boat-halo { fill: rgba(255, 255, 255, .55); animation: fxhalo 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.fx-boat-bg { fill: #fff; stroke: #d9774b; stroke-width: 1.4; }
.fx-boat use { fill: none; stroke: url(#ig); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fx-boat-t { font: 700 7.5px system-ui, -apple-system, sans-serif; fill: #1f2a44; paint-order: stroke; stroke: rgba(255, 250, 242, .95); stroke-width: 3px; stroke-linejoin: round; }
@keyframes fxhalo { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(1.7); opacity: 0; } }
.fx-live { display: grid; gap: 6px; margin: 0; padding: 12px 14px 4px; font-size: .92rem; line-height: 1.4; }
.fx-now { display: flex; gap: 8px; align-items: baseline; }
.fx-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(217, 119, 75, .22); animation: fxpulse 1.4s ease-in-out infinite; transform: translateY(1px); }
.fx-wait { color: var(--ink-soft); }
.fx-wait { display: flex; gap: 10px; align-items: center; }
.fx-ic-b { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #fbe9da, #e3eff4); }
.fx-wait .fx-ic { width: 22px; height: 22px; stroke-width: 1.8; }
.fx-wait b, .fx-now b { color: var(--ink); }
.fx-est { margin: 0; padding: 2px 14px 12px; font-size: .74rem; color: var(--ink-soft); }
@media (max-width: 560px) { .fx-strait svg { height: 170px; } }
@media (prefers-reduced-motion: reduce) { .fx-boat-halo, .fx-dot { animation: none; } }

/* ferry on the map: a round badge; it glides, turns around when it leaves, smokes while it sails */
.fx-boat { transition: transform 2s linear; }
.fb-ship { fill: #1f2a44; stroke: #fffaf2; stroke-width: .9; stroke-linejoin: round; paint-order: stroke; transition: fill .6s; }
.fb-ship .fb-glass { fill: #fffaf2; stroke: none; }
.fb-flip { transition: transform .9s cubic-bezier(.45, 0, .25, 1); }
.fx-boat .fx-smoke { opacity: 0; transition: opacity .8s; }
.fx-boat.moving .fx-smoke { opacity: 1; }
.fx-boat.still .fb-ship { fill: #7c8aa0; }
/* the map: an anchor beside a ferry that waits in port (it shows "docked" at a glance) */
.fb-anchor { fill: none; stroke: #1f2a44; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .4s; }
.fx-boat.still .fb-anchor { opacity: 1; }
html[data-theme="dark"] .fb-anchor { stroke: #ece3d3; }
@media (prefers-reduced-motion: reduce) { .fx-boat, .fb-flip { transition: none; } }
.fx-smoke circle { fill: #c9c2b5; opacity: 0; transform-box: fill-box; transform-origin: center; animation: fxsmoke 2.8s ease-out infinite; }
.fx-smoke circle:nth-child(2) { animation-delay: 1.4s; }
@keyframes fxsmoke {
  0% { transform: translate(0, 0) scale(.5); opacity: .85; }
  100% { transform: translate(4px, -9px) scale(1.9); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .fx-smoke circle { animation: none; opacity: .5; } }

/* ---------- Next-ferry card: the ferry from the side, battling the waves ---------- */
.fx-hero.has-ship::after { display: none; }
.fx-hero > :not(.fx-ship) { position: relative; z-index: 1; }
.fx-ship { position: absolute; right: -2px; bottom: -6px; width: min(68%, 350px); aspect-ratio: 2 / 1; pointer-events: none; z-index: 0; }
/* each layer is moved whole by the graphics chip (transform only), nothing inside it is redrawn */
.fx-ship > * { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.fx-seal { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .55) 20%, #000 42%); mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .55) 20%, #000 42%); }
.fx-seasvg { position: absolute; top: 0; left: 0; width: 214.3%; height: 100%; will-change: transform; animation: fxsea 6s linear infinite; }
.fx-seal.front .fx-seasvg { animation-direction: reverse; }
.fx-sea.back { fill: rgba(127, 196, 220, .45); }
.fx-sea.front { fill: rgba(63, 136, 168, .85); stroke: rgba(255, 255, 255, .55); stroke-width: 1.6; }
@keyframes fxsea { to { transform: translateX(-10%); } }
.fx-ship .fx-boat { overflow: visible; transform-origin: 64.3% 71.4%; will-change: transform; animation: fxrock var(--rd, 4s) ease-in-out infinite; }
@keyframes fxrock {
  0%, 100% { transform: translateY(0) rotate(calc(var(--rk, 2.2deg) * -1)); }
  50% { transform: translateY(var(--bob, 3px)) rotate(var(--rk, 2.2deg)); }
}
.fx-hull { fill: #2449a8; }
.fx-stripe { stroke: #b5452f; stroke-width: 2.4; }
.fx-wall { fill: #fffaf2; }
.fx-rail { stroke: #fffaf2; stroke-width: 1.2; fill: none; }
.fx-cut { fill: #2a4a6e; }
.fx-stair { stroke: rgba(255, 255, 255, .8); stroke-width: 1.2; }
.fx-car.c1 { fill: #d9774b; } .fx-car.c2 { fill: #7fc4dc; } .fx-car.c3 { fill: #f2d48a; }
.fx-raft { fill: #e8833a; }
.fx-deck { fill: #fffaf2; }
.fx-bridge { fill: #fffaf2; }
.fx-win { fill: #2f6f8f; }
.fx-port { fill: #9fb3bf; }
.fx-funnel { fill: #fffaf2; }
.fx-band { fill: #d9774b; }
.fx-mast { stroke: #fffaf2; stroke-width: 2; stroke-linecap: round; fill: none; }
.fx-puffs circle { fill: rgba(255, 255, 255, .7); transform-box: fill-box; transform-origin: center; animation: fxpuff 2.4s ease-out infinite; opacity: 0; }
.fx-puffs circle:nth-child(2) { animation-delay: .8s; }
.fx-puffs circle:nth-child(3) { animation-delay: 1.6s; }
@keyframes fxpuff { 0% { transform: translate(0, 0) scale(.6); opacity: .9; } 100% { transform: translate(var(--sx, 18px), var(--sy, -16px)) scale(2.2); opacity: 0; } }
.fx-spray circle { fill: rgba(255, 255, 255, .85); transform-box: fill-box; transform-origin: center; animation: fxspray var(--sp, 2s) ease-out infinite; opacity: 0; }
.fx-ship.calm .fx-spray { display: none; }
.fx-spray circle:nth-child(2) { animation-delay: .5s; }
.fx-spray circle:nth-child(3) { animation-delay: 1.1s; }
@keyframes fxspray { 0% { transform: translate(0, 0); opacity: .9; } 100% { transform: translate(-10px, -9px); opacity: 0; } }
/* docked: engine off, the ferry stays still; only the water moves (as fast as the wind makes it) */
.fx-ship.docked .fx-boat { animation: none; transform: none; }
.fx-ship.docked .fx-puffs, .fx-ship.docked .fx-spray { display: none; }
/* docked: a quay, the bow ramp down, and small cars and people boarding (behind the text, fading out to the left) */
.fx-ship > .fx-quay { left: -60%; width: 160%; overflow: visible; opacity: 0; transition: opacity .6s;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .35) 22%, #000 48%); mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .35) 22%, #000 48%); }
.fx-ship.docked > .fx-quay { opacity: 1; }
.fq-quay { fill: rgba(255, 244, 228, .34); }
.fq-edge { stroke: rgba(255, 250, 242, .75); stroke-width: 1.2; }
.fq-ramp { fill: #fffaf2; opacity: .92; }
.fq-car { opacity: 0; animation: fqcar 14s linear infinite; }
.fq-car.c1 { fill: #f2d48a; } .fq-car.c2 { fill: #fffaf2; } .fq-car.c3 { fill: #7fc4dc; }
.fq-w { fill: #2a3550; }
.fq-man { opacity: 0; fill: #fffaf2; stroke: #fffaf2; stroke-width: 1.1; stroke-linecap: round; animation: fqman 11s linear infinite; }
@keyframes fqcar {
  0% { transform: translate(-200px, 102px); opacity: 0; }
  6% { opacity: 1; }
  52% { transform: translate(-74px, 102px) rotate(0); }
  56% { transform: translate(-64px, 101px) rotate(-23deg); }
  76% { transform: translate(-28px, 86px) rotate(-23deg); opacity: 1; }
  82%, 100% { transform: translate(-20px, 84px) rotate(-23deg); opacity: 0; }
}
@keyframes fqman {
  0% { transform: translate(-190px, 103px); opacity: 0; }
  8% { opacity: 1; }
  60% { transform: translate(-62px, 103px); }
  84% { transform: translate(-28px, 88px); opacity: 1; }
  90%, 100% { transform: translate(-22px, 86px); opacity: 0; }
}
.fx-ship.night .fq-quay { fill: rgba(255, 244, 228, .18); }
@media (prefers-reduced-motion: reduce) { .fq-car, .fq-man { animation: none; } .fq-car.c1 { opacity: 1; transform: translate(-46px, 98px) rotate(-23deg); } }
/* night (no more ferries today): tied up for the night – lights off, no boarding, the ramp up, a rope to the quay */
.fx-ship.night .fx-win, .fx-ship.night .fx-port { fill: #26324a; }
.fx-ship.night .fq-car, .fx-ship.night .fq-man, .fx-ship.night .fq-ramp { display: none; }
.fq-moor { display: none; }
.fx-ship.night .fq-moor { display: inline; }
.fq-rope { fill: none; stroke: #e9d8b4; stroke-width: 1.3; stroke-linecap: round; }
.fq-bollard { fill: #cdd3dc; }
.fx-ship.night .fx-wall, .fx-ship.night .fx-deck, .fx-ship.night .fx-bridge, .fx-ship.night .fx-funnel { opacity: .85; }
.fx-hero.has-ship .fx-sub, .fx-hero.has-ship .fx-k { text-shadow: 0 1px 8px rgba(20, 26, 40, .45); }
@media (max-width: 560px) { .fx-ship { width: 60%; bottom: -8px; right: -10px; } }
/* small phones: the wind label gets short ("4 Bft SW"), so it ends before the ferry's bow; the full words stay in its tooltip */
.fx-wind-short { display: none; }
@media (max-width: 440px) { .fx-wind-long { display: none; } .fx-wind-short { display: inline; } }
@media (prefers-reduced-motion: reduce) { .fx-seasvg, .fx-boat, .fx-puffs circle, .fx-spray circle { animation: none; } .fx-puffs, .fx-spray { display: none; } }

/* ---------- Night mode: from sunset to sunrise on Antiparos (set by the small script in the page head) ---------- */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111827;          /* Aegean night (the default night palette) */
  --bg-deep: #0c121d;
  --ink: #e8e1d4;         /* warm moonlight */
  --ink-soft: #a7afbf;
  --line: #2a3549;
  --card: #1b2436;
  --accent: #e8a07c;
  --sea: #8cc3db;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-hover: 0 2px 4px rgba(0, 0, 0, .35), 0 14px 36px rgba(0, 0, 0, .45);
  --dk-glow: #1a2640; --dk-line2: #34405c; --dk-line3: #3d4a68; --dk-surf: #26324b;
  --dk-mute1: #8f9bb0; --dk-mute2: #6f7789; --dk-mute3: #4b5367;
  --ifa: color-mix(in srgb, var(--accent) 22%, transparent);
  --ifs: color-mix(in srgb, var(--sea) 20%, transparent);
  --ifc: color-mix(in srgb, var(--ink) 13%, transparent);
  --ir: #f08a6a; --ifr: color-mix(in srgb, #f08a6a 20%, transparent);
  --ig1: #f0a57c; --ig2: #dba58f; --ig3: #8cc3db;               /* lighter fade so it reads on the night blue */
}
/* the second night palette, chosen with the switch in the footer: Warm lamp (a taverna at night) */
html[data-theme="dark"][data-night="warm"] {
  --bg: #1b1814; --bg-deep: #14110e; --ink: #ece3d3; --ink-soft: #b5aa98; --line: #3a332b; --card: #25211c;
  --accent: #e8a274; --sea: #93c0d3;
  --dk-glow: #2a241d; --dk-line2: #463e34; --dk-line3: #4a4238; --dk-surf: #332d26;
  --dk-mute1: #a89e8f; --dk-mute2: #7d7468; --dk-mute3: #5a5249;
}
html[data-theme="dark"] body {
  background: radial-gradient(1200px 600px at 50% -10%, var(--dk-glow) 0%, transparent 60%), var(--bg);
}
/* hover and pale surfaces */
html[data-theme="dark"] .chips a { background: color-mix(in srgb, var(--card) 75%, transparent); }
html[data-theme="dark"] .chips a:hover,
html[data-theme="dark"] .card:hover,
html[data-theme="dark"] .qk:hover { border-color: var(--dk-line3); }
html[data-theme="dark"] .act:hover,
html[data-theme="dark"] .foot-cta:hover,
html[data-theme="dark"] .near:hover,
html[data-theme="dark"] .own-link:hover { background: #232e45; }
html[data-theme="dark"] .sheet-close { background: color-mix(in srgb, var(--card) 90%, transparent); }
html[data-theme="dark"] .sheet-close:hover { background: var(--dk-surf); }
html[data-theme="dark"] .act-lg:hover,
html[data-theme="dark"] .act-call:hover { background: #fff; border-color: #fff; }
html[data-theme="dark"] .own-link { border-color: var(--dk-line3); }
html[data-theme="dark"] .sheet-backdrop { background: color-mix(in srgb, var(--bg-deep) 60%, transparent); }
/* soft orange tags and marks */
html[data-theme="dark"] .card mark { background: #5a3624; }
html[data-theme="dark"] .badge { color: #f2c09f; background: #45291d; }
/* round icon tiles */
html[data-theme="dark"] .qk-ico,
html[data-theme="dark"] .sheet-icon,
html[data-theme="dark"] .info-head .sheet-icon,
html[data-theme="dark"] .fx-ic-b { background: linear-gradient(135deg, #3a2a26, #1e3443); }
/* emergency */
html[data-theme="dark"] .qk-sos { color: #ff9f88; border-color: #6a3026; background: #2c1a1c; }
html[data-theme="dark"] .qk-sos .qk-ico,
html[data-theme="dark"] .info-head.sos .sheet-icon { background: #4a2420; }
html[data-theme="dark"] .sos-grid a { background: #2c1a1c; border-color: #6a3026; }
html[data-theme="dark"] .sos-grid a:hover { background: #3a2022; }
html[data-theme="dark"] .sos-grid b { color: #ff9f88; }
/* big card header picture and maps */
html[data-theme="dark"] .ico-cover { background: linear-gradient(135deg, #2c2430 0%, #1a2233 45%, #15303b 100%); }
html[data-theme="dark"] .mm { background: #17303e; }
html[data-theme="dark"] .mm-sea { fill: #17303e; }
html[data-theme="dark"] .mm-land { fill: #273042; stroke: #46526b; }
html[data-theme="dark"] .fx-place { fill: #c9bfa9; }
html[data-theme="dark"] .fx-route { stroke: #93c0d3; }
html[data-theme="dark"] .fx-dock { fill: #ece3d3; stroke: #93c0d3; }
html[data-theme="dark"] .mm-tag { background: color-mix(in srgb, var(--card) 92%, transparent); }
/* ferry panel bits */
.fx-windwarn.is-stop { color: #7d1f12; background: #f9d9d0; border-color: #e9a896; }
.fx-windwarn a { color: inherit; text-decoration: underline; white-space: nowrap; }
html[data-theme="dark"] .fx-windwarn.is-stop { color: #ffb4a3; background: #42201a; border-color: #7a3527; }
html[data-theme="dark"] .fx-windwarn { color: #f4b892; background: #3a2419; border-color: #6b3d29; }
html[data-theme="dark"] .fx-off { background: var(--bg-deep); }
html[data-theme="dark"] .verified { color: #9fd0ec; background: #17324a; border-color: #2a4d68; }

/* Day / night switch (top right). The icon shows the mode you will get. */
.theme-btn {
  position: absolute; top: 16px; right: 16px; z-index: 5;
  width: 40px; height: 40px; display: grid; place-items: center; padding: 0; cursor: pointer;
  color: var(--ink); background: rgba(255, 250, 242, .7); border: 1px solid var(--line); border-radius: 50%;
  box-shadow: var(--shadow); transition: background .15s, transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.theme-btn:hover { background: var(--card); transform: rotate(-20deg) scale(1.06); }
.theme-btn:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }
.theme-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .tb-sun { display: none; }
html[data-theme="dark"] .theme-btn { background: color-mix(in srgb, var(--card) 80%, transparent); color: #f6c27a; }
html[data-theme="dark"] .theme-btn .tb-sun { display: inline; }
html[data-theme="dark"] .theme-btn .tb-moon { display: none; }
@media (max-width: 560px) { .theme-btn { top: 12px; right: 12px; } }
/* a soft fade when switching by hand */
html.theme-fade body, html.theme-fade .card, html.theme-fade .qk, html.theme-fade .chips a, html.theme-fade .search-box {
  transition: background-color .4s, color .4s, border-color .4s;
}
html[data-theme="dark"] .fb-ship { fill: #ece3d3; stroke: #17303e; }
html[data-theme="dark"] .fb-ship .fb-glass { fill: #17303e; }
html[data-theme="dark"] .fx-boat.still .fb-ship { fill: var(--dk-mute1); }
html[data-theme="dark"] .empty { background: color-mix(in srgb, var(--card) 70%, transparent); border-color: var(--dk-line2); color: var(--ink-soft); }
html[data-theme="dark"] .empty a { color: var(--sea); }
.empty-ico { display: inline-block; width: 20px; height: 20px; margin-left: 4px; vertical-align: -4px; }

/* Language switch (flag), next to the day/night switch */
.lang-btn {
  position: absolute; top: 16px; right: 64px; z-index: 6;
  width: 40px; height: 40px; display: grid; place-items: center; padding: 0; cursor: pointer;
  background: rgba(255, 250, 242, .7); border: 1px solid var(--line); border-radius: 50%; box-shadow: var(--shadow);
  transition: transform .2s, background .15s;
}
.lang-btn:hover { background: var(--card); transform: scale(1.06); }
.lang-btn:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }
.flag { width: 22px; height: 22px; border-radius: 50%; display: block; box-shadow: 0 0 0 1px rgba(31, 42, 68, .14); }
.lang-menu {
  position: absolute; top: 62px; right: 16px; z-index: 30; min-width: 190px; margin: 0; padding: 6px; list-style: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-hover);
  animation: rise .25s cubic-bezier(.2, .8, .2, 1);
}
.lang-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; font: inherit; font-size: .95rem; color: var(--ink);
  text-align: left; background: none; border: 0; border-radius: 10px; cursor: pointer;
}
.lang-menu button:hover, .lang-menu button:focus-visible { background: var(--bg); outline: none; }
.lang-menu button[aria-checked="true"] { font-weight: 700; }
.lang-menu button[aria-checked="true"]::after { content: "✓"; margin-left: auto; color: var(--sea); }
html[data-theme="dark"] .lang-btn { background: color-mix(in srgb, var(--card) 80%, transparent); }
html[data-theme="dark"] .flag { box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); }
@media (max-width: 560px) { .lang-btn { top: 12px; right: 60px; } .lang-menu { top: 58px; right: 12px; } }
/* while a language's texts load (a split second), keep the English hidden */
html.i18n-wait body { visibility: hidden; }
html[data-theme="dark"] .chips a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
html[data-theme="dark"] .chips a[aria-current="page"]:hover { background: #fff; border-color: #fff; }

/* Cycladic radio: a third round button next to the flag; small moving bars while it plays */
.radio-btn {
  position: absolute; top: 16px; right: 112px; z-index: 6;
  width: 40px; height: 40px; display: grid; place-items: center; padding: 0; cursor: pointer; color: var(--ink);
  background: rgba(255, 250, 242, .7); border: 1px solid var(--line); border-radius: 50%; box-shadow: var(--shadow);
  transition: transform .2s, background .15s;
}
.radio-btn:hover { background: var(--card); transform: scale(1.06); }
.radio-btn:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }
.radio-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.radio-btn .rb-bars { display: none; }
.radio-btn .rb-bars rect { fill: var(--accent); stroke: none; transform-box: fill-box; transform-origin: 50% 100%; animation: rbar 1s ease-in-out infinite; }
.radio-btn .rb-bars rect:nth-child(2) { animation-delay: -.35s; }
.radio-btn .rb-bars rect:nth-child(3) { animation-delay: -.7s; }
@keyframes rbar { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.radio-btn.playing .rb-radio { display: none; }
.radio-btn.playing .rb-bars { display: inline; }
.radio-btn.loading .rb-radio { animation: rpulse 1.8s ease-in-out infinite; }
@keyframes rpulse { 50% { opacity: .55; } }
html[data-theme="dark"] .radio-btn { background: color-mix(in srgb, var(--card) 80%, transparent); }
.radio-menu { min-width: 250px; max-height: calc(100vh - 90px); max-height: calc(100svh - 90px); overflow-y: auto; }
.radio-menu .radio-head { padding: 6px 12px 4px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.radio-menu button { align-items: flex-start; }
.radio-ico { flex: none; width: 26px; height: 26px; display: grid; place-items: center; margin-top: 1px; font-size: .7rem; color: #fff; background: var(--sea); border-radius: 50%; }
.radio-menu button[aria-checked="true"] .radio-ico { background: var(--accent); }
.radio-menu button[aria-checked="true"]::after { content: none; }
.radio-txt { display: grid; gap: 1px; }
.radio-txt b { font-weight: 650; }
.radio-txt small { font-size: .78rem; color: var(--ink-soft); }
.radio-err { padding: 6px 12px 8px; font-size: .8rem; color: #b5452f; max-width: 250px; }
@media (max-width: 560px) { .radio-btn { top: 12px; right: 108px; } }
@media (prefers-reduced-motion: reduce) { .radio-btn .rb-bars rect, .radio-btn.loading .rb-radio { animation: none; } }
.radio-btn.resume { color: var(--accent); border-color: var(--accent); }
.radio-btn.resume::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 2px solid rgba(217, 119, 75, .5); pointer-events: none; animation: rring 1.6s ease-out infinite; }
@keyframes rring { from { transform: scale(1); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.radio-hint {
  position: absolute; top: 62px; right: 96px; z-index: 6; padding: 7px 13px; font: inherit; font-size: .82rem; font-weight: 600;
  color: #fff; background: var(--accent); border: 0; border-radius: 999px; box-shadow: var(--shadow); cursor: pointer;
  animation: rise .35s cubic-bezier(.2, .8, .2, 1);
}
.radio-hint[hidden] { display: none; }
@media (max-width: 560px) { .radio-hint { top: 58px; right: 92px; } }
@media (prefers-reduced-motion: reduce) { .radio-btn.resume::after { animation: none; opacity: .6; } }

/* ---------- Weather: the line under the tagline opens the full forecast ---------- */
.wx[role="button"] { cursor: pointer; border-radius: 999px; padding: 3px 10px; transition: background .15s, color .15s; }
.wx[role="button"]:hover { background: rgba(31, 42, 68, .05); color: var(--ink); }
.wx[role="button"]:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }
html[data-theme="dark"] .wx[role="button"]:hover { background: rgba(255, 255, 255, .06); }
.wxp { margin-top: 12px; }
.wxp-now {
  padding: 16px 18px; color: #fff; border-radius: 22px;
  background: radial-gradient(120% 140% at 100% 0%, #3f88a8 0%, #2f6f8f 45%, #1f2a44 100%);
  box-shadow: 0 14px 30px rgba(31, 42, 68, .22);
}
/* ---------- The sky now, behind the weather card (see skyScene in app.js) ---------- */
.wxp-now { position: relative; overflow: hidden; isolation: isolate; text-shadow: 0 1px 2px rgba(10, 25, 45, .18); }
.wxp-now > :not(.sky) { position: relative; z-index: 1; }
.wxp-now.sky-day.sky-clear  { background: linear-gradient(165deg, #1d6aa8 0%, #3f8cc6 55%, #6eaedb 100%); }
.wxp-now.sky-day.sky-partly { background: linear-gradient(165deg, #2c6795 0%, #5288b3 55%, #7ea6c6 100%); }
.wxp-now.sky-day.sky-cloudy { background: linear-gradient(165deg, #4f6276 0%, #6f8396 55%, #8d9eae 100%); }
.wxp-now.sky-day.sky-rain   { background: linear-gradient(165deg, #364452 0%, #52606e 55%, #6c7987 100%); }
.wxp-now.sky-day.sky-fog    { background: linear-gradient(165deg, #5d6b78 0%, #7d8994 55%, #96a1aa 100%); }
.wxp-now.sky-day.sky-snow   { background: linear-gradient(165deg, #56708a 0%, #7891aa 55%, #98adc0 100%); }
.wxp-now.sky-storm          { background: linear-gradient(165deg, #1c222d 0%, #303947 55%, #444e5d 100%); }
.wxp-now.sky-night.sky-clear, .wxp-now.sky-night.sky-partly { background: linear-gradient(165deg, #0a1229 0%, #18274a 60%, #283c66 100%); }
.wxp-now.sky-night.sky-cloudy, .wxp-now.sky-night.sky-fog, .wxp-now.sky-night.sky-snow { background: linear-gradient(165deg, #161c27 0%, #2a3443 60%, #3b4758 100%); }
.wxp-now.sky-night.sky-rain { background: linear-gradient(165deg, #10151d 0%, #232b37 60%, #333d4b 100%); }
.wxp-now .wxp-stats li { background: rgba(10, 25, 45, .2); border-color: rgba(255, 255, 255, .18); }   /* no live blur: the sky moves behind */

.sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sky i { position: absolute; display: block; }
.sky-sun { top: -105px; right: -95px; width: 230px; height: 230px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 240, 190, .9) 0 16%, rgba(255, 215, 130, .38) 28%, rgba(255, 210, 120, .1) 48%, transparent 66%);
  animation: sky-glow 7s ease-in-out infinite alternate; }
@keyframes sky-glow { to { transform: scale(1.08); opacity: .85; } }
.sky-moon { top: 12px; right: 20px; width: 30px; height: 30px; filter: drop-shadow(0 0 10px rgba(243, 234, 210, .45)); }
.sky-moon svg { width: 100%; height: 100%; }
.sky-moon .mn-dark { fill: rgba(243, 234, 210, .1); }
.sky-moon .mn-lit { fill: #f3ead2; }
.sky-stars { inset: 0; opacity: .9; animation: sky-twinkle 4s ease-in-out infinite alternate;
  background:
    radial-gradient(2px 2px at 12% 18%, #fff 45%, transparent 55%),
    radial-gradient(1.6px 1.6px at 28% 9%, #fff 45%, transparent 55%),
    radial-gradient(1.8px 1.8px at 44% 26%, #fff 45%, transparent 55%),
    radial-gradient(1.5px 1.5px at 58% 12%, #fff 45%, transparent 55%),
    radial-gradient(2px 2px at 70% 34%, #fff 45%, transparent 55%),
    radial-gradient(1.6px 1.6px at 86% 44%, #fff 45%, transparent 55%),
    radial-gradient(1.7px 1.7px at 6% 52%, #fff 45%, transparent 55%),
    radial-gradient(1.5px 1.5px at 36% 60%, #fff 45%, transparent 55%),
    radial-gradient(1.9px 1.9px at 62% 70%, #fff 45%, transparent 55%),
    radial-gradient(1.5px 1.5px at 92% 78%, #fff 45%, transparent 55%),
    radial-gradient(1.6px 1.6px at 20% 84%, #fff 45%, transparent 55%),
    radial-gradient(1.8px 1.8px at 78% 90%, #fff 45%, transparent 55%),
    radial-gradient(1.4px 1.4px at 50% 44%, #fff 45%, transparent 55%),
    radial-gradient(1.5px 1.5px at 16% 36%, #fff 45%, transparent 55%),
    radial-gradient(1.6px 1.6px at 82% 16%, #fff 45%, transparent 55%),
    radial-gradient(1.4px 1.4px at 40% 88%, #fff 45%, transparent 55%); }
@keyframes sky-twinkle { to { opacity: .55; } }
/* clouds: a wide strip moves across the card; the cloud sits at its left end */
.sky-cw { left: 0; width: 100%; height: 60px; will-change: transform; animation: sky-drift 60s linear infinite; }
.sky-west .sky-cw { animation-direction: reverse; }
@keyframes sky-drift { from { transform: translateX(-35%); } to { transform: translateX(115%); } }
.sky-cloud { left: 0; top: 22px; width: 120px; height: 36px; border-radius: 40px; background: rgba(255, 255, 255, .5);
  transform: scale(var(--s, 1)); transform-origin: left top; }
.sky-cloud::before, .sky-cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.sky-cloud::before { width: 52px; height: 52px; top: -24px; left: 18px; }
.sky-cloud::after { width: 66px; height: 66px; top: -34px; left: 46px; }
.sky-cloudy .sky-cloud, .sky-snow .sky-cloud { background: rgba(235, 240, 246, .34); }
.sky-rain .sky-cloud, .sky-storm .sky-cloud { background: rgba(190, 200, 212, .3); }
.sky-night .sky-cloud { background: rgba(190, 205, 225, .16); }
/* rain and snow, slanted by the wind */
.sky-fall { inset: -20% -15%; }
.sky-drop { top: 0; width: 1.4px; height: 20px; border-radius: 1px; background: linear-gradient(rgba(225, 238, 255, 0), rgba(225, 238, 255, .9));
  animation: sky-rain .7s linear infinite; }
@keyframes sky-rain { from { transform: translateY(-30px); } to { transform: translateY(420px); } }
.sky-flake { top: 0; width: 4px; height: 4px; border-radius: 50%; background: #fff; animation: sky-snow 7s linear infinite; }
@keyframes sky-snow { 0% { transform: translate(0, -20px); } 50% { transform: translate(10px, 200px); } 100% { transform: translate(0, 420px); } }
.sky-flash { inset: 0; background: rgba(235, 240, 255, .55); opacity: 0; animation: sky-flash 9s linear infinite; }
@keyframes sky-flash { 0%, 90%, 92.5%, 94%, 100% { opacity: 0; } 91% { opacity: .9; } 93% { opacity: .5; } }
.sky-fog { left: -20%; width: 140%; height: 46px; border-radius: 50%; background: rgba(235, 240, 244, .22); filter: blur(10px);
  animation: sky-fog 26s ease-in-out infinite alternate; }
.sky-fog.f1 { top: 32%; } .sky-fog.f2 { top: 66%; animation-duration: 34s; animation-direction: alternate-reverse; }
@keyframes sky-fog { to { transform: translateX(12%); } }
/* windy: thin gusts streak past */
.sky-gust { left: 0; width: 90px; height: 1.5px; border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  opacity: 0; animation: sky-gust 3.2s ease-in infinite; }
.sky-west .sky-gust { animation-name: sky-gust-w; }
@keyframes sky-gust { 0% { transform: translateX(-120px); opacity: 0; } 20% { opacity: 1; } 70% { opacity: .8; } 100% { transform: translateX(560px); opacity: 0; } }
@keyframes sky-gust-w { 0% { transform: translateX(560px); opacity: 0; } 20% { opacity: 1; } 70% { opacity: .8; } 100% { transform: translateX(-120px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sky i { animation: none !important; } .sky-flash, .sky-gust { display: none !important; } }

.wxp-big { display: flex; align-items: center; gap: 12px; }
.wxp-big strong { font-size: 3rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.wxp-big span { display: grid; gap: 2px; }
.wxp-big small { opacity: .85; font-size: .88rem; }
.wxp-bigico { width: 56px; height: 56px; stroke: #fff; stroke-width: 1.5; --il: #fff; --ia: #ffd89a; --is: #cfe8f5; --ifa: rgba(255, 216, 154, .28); --ifs: rgba(255, 255, 255, .22); --ifc: rgba(255, 255, 255, .2); }
.wxp-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.wxp-stats li { display: grid; gap: 1px; padding: 8px 11px; border-radius: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); }
.wxp-stats small { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; opacity: .75; }
.wxp-stats b { display: flex; align-items: center; gap: 4px; font-size: 1rem; }
.wxp-stats span { font-size: .76rem; opacity: .8; }
/* tile drawings: a small white sketch in the corner, or a scale under the value */
.wxp-stats li { position: relative; }
.wxp-stats li.has-g > small, .wxp-stats li.has-g > b { padding-right: 30px; }
.wxp-g { position: absolute; top: 9px; right: 9px; width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.wxp-g .wxp-fill { fill: rgba(255, 255, 255, .55); stroke: none; }
.wxp-bar { display: block; position: relative; height: 5px; margin: 7px 2px 3px; border-radius: 3px; opacity: 1 !important; }
.wxp-bar i { position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 2px rgba(20, 35, 55, .45); transform: translate(-50%, -50%); }
.wxp-bar-uv { background: linear-gradient(90deg, #4fb043 0%, #f4e04d 24%, #f39a2b 46%, #e4512e 66%, #b26bb0 88%); }
.wxp-bar-sea { background: linear-gradient(90deg, #7cc0ea 0%, #8fd6cf 50%, #f2c46d 100%); }
/* the Moon tile: tonight's real shape of the moon */
.wxp-mn { width: 18px; height: 18px; flex: none; margin-right: 2px; }
.wxp-mn .mn-dark { fill: rgba(255, 255, 255, .14); stroke: rgba(255, 255, 255, .35); stroke-width: .8; }
.wxp-mn .mn-lit { fill: #fbf3df; }
.wxp-moon b { font-size: .92rem; }
.wxp-arrow { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.wxp-hours { display: flex; gap: 6px; margin: 0; padding: 2px 2px 8px; list-style: none; overflow-x: auto; scroll-snap-type: x proximity; }
.wxp-hours li {
  flex: none; display: grid; justify-items: center; gap: 3px; min-width: 56px; padding: 9px 6px; scroll-snap-align: start;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; font-size: .82rem;
}
.wxp-hours small { color: var(--ink-soft); }
.wxp-ico { width: 24px; height: 24px; }
.wxp-w { display: inline-flex; align-items: center; gap: 2px; font-size: .78rem; color: var(--ink-soft); }
.wxp-w.strong { color: var(--accent); font-weight: 700; }
.wxp-rain { font-size: .72rem; color: var(--sea); font-weight: 600; }
.wxp-days { margin: 0; padding: 0; list-style: none; }
.wxp-days li {
  display: grid; grid-template-columns: minmax(84px, 1.3fr) 26px minmax(52px, .8fr) minmax(110px, 2fr) 64px 62px; align-items: center; gap: 8px;
  padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: .9rem;
}
.wxp-days li:last-child { border-bottom: 0; }
.wxp-day { display: grid; font-weight: 600; text-transform: capitalize; }
.wxp-day em { font-style: normal; font-size: .68rem; font-weight: 600; color: var(--accent); text-transform: none; }
.wxp-rainp { font-size: .74rem; color: var(--sea); font-weight: 600; }
.wxp-t { display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.wxp-t small { color: var(--ink-soft); width: 26px; text-align: right; }
.wxp-t i { position: relative; flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.wxp-t s { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, #7bb7d4, #d9774b); }
/* Waves of the day: only the wave sign; its colour shows calm → rough, the height shows on hover / tap */
.wxp-wave { position: relative; justify-self: end; display: grid; place-items: center; width: 30px; height: 30px; padding: 0;
  border: 0; border-radius: 50%; background: none; cursor: help; }
.wxp-wave:hover, .wxp-wave:focus-visible { background: var(--bg-deep); outline: none; }
.wxp-waveico { width: 18px; height: 18px; }
.wxp-wave.lv1 .wxp-waveico { opacity: .45; }
.wxp-wave.lv2 .wxp-waveico { opacity: .75; }
.wxp-wave.lv3 .wxp-waveico, .wxp-wave.lv4 .wxp-waveico { stroke: var(--accent); }
.wxp-wave.lv4 .wxp-waveico { stroke-width: 2.2; }
.wxp-wave::after {
  content: attr(data-tip); position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 5; width: max-content; max-width: 220px;
  padding: 7px 10px; font: 500 .76rem/1.35 var(--ui); text-align: left; color: var(--bg); background: var(--ink);
  border-radius: 10px; box-shadow: var(--shadow); opacity: 0; transform: translateY(4px); pointer-events: none;
  transition: opacity .15s, transform .15s;
}
.wxp-wave:hover::after, .wxp-wave:focus-visible::after, .wxp-wave.show::after { opacity: 1; transform: none; }
.wxp-wave.show { background: var(--bg-deep); }
.wxp-note { margin: 8px 0 0; font-size: .76rem; color: var(--ink-soft); }
/* ---------- weather panel, redesigned (23 Nov 2026): wind and sea first, a graph for the next 24 hours ---------- */
.wxp-big { flex-wrap: wrap; }
.wxp-big .wxp-hl { font-variant-numeric: tabular-nums; }
.wxp-alert { display: flex; gap: 9px; align-items: flex-start; margin: 14px 0 0; padding: 9px 12px; font-size: .86rem; font-weight: 600; line-height: 1.35;
  color: #ffe6b8; background: rgba(246, 199, 106, .16); border: 1px solid rgba(246, 199, 106, .45); border-radius: 12px; text-shadow: none; }
.wxp-alert svg { flex: none; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wxp-ws { display: grid; grid-template-columns: 118px 1fr; gap: 14px; align-items: center; margin-top: 14px; padding: 12px;
  background: rgba(10, 25, 45, .22); border: 1px solid rgba(255, 255, 255, .18); border-radius: 16px; }
.wxp-dial { width: 118px; height: 118px; }
.wxp-dial-bg { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .22); stroke-width: 1.5; }
.wxp-dial-ring { fill: none; stroke: #8fd0ea; stroke-width: 5; stroke-linecap: round; }
.wxp-dial.mid .wxp-dial-ring { stroke: #f6c76a; }
.wxp-dial.hi .wxp-dial-ring { stroke: #f08a6a; }
.wxp-dial text { fill: rgba(255, 255, 255, .7); font: 700 9px var(--ui); }
.wxp-dial-arrow { fill: none; stroke: #ffe2b0; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.wxp-dial-hub { fill: #fff; }
.wxp-ws-txt { display: grid; gap: 2px; min-width: 0; }
.wxp-ws-txt > small, .wxp-ws-sea small { font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; opacity: .78; }
.wxp-ws-big { font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.wxp-ws-txt > span { font-size: .84rem; opacity: .92; }
.wxp-ws-txt .nw { white-space: nowrap; }
.wxp-ws-sea { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .18); }
.wxp-ws-sea > div + div { padding-left: 14px; margin-left: 14px; border-left: 1px solid rgba(255, 255, 255, .18); }   /* waves | sea, apart */
.wxp-ws-sea > div:first-child { padding-right: 4px; }
.wxp-ws-sea div { display: grid; gap: 1px; min-width: 0; }
.wxp-ws-sea b { font-size: 1.05rem; }
.wxp-ws-sea span { font-size: .76rem; opacity: .88; }
.wxp-ws-sea .wxp-bar { margin: 6px 2px 2px; }
.wxp-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 10px 0 0; padding: 0; list-style: none; }
.wxp-chips li { display: grid; align-content: start; gap: 1px; min-width: 0; padding: 8px 10px; background: rgba(10, 25, 45, .2); border: 1px solid rgba(255, 255, 255, .16); border-radius: 13px; }
.wxp-chips li.wide { grid-column: 1 / -1; }
.wxp-chips li.span2 { grid-column: span 2; }
.wxp-chips small { font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.wxp-chips b { display: flex; align-items: center; gap: 4px; font-size: .95rem; line-height: 1.25; }
.wxp-chips span { font-size: .74rem; opacity: .85; }
@media (max-width: 380px) { .wxp-ws { grid-template-columns: 96px 1fr; gap: 10px; } .wxp-dial { width: 96px; height: 96px; } .wxp-chips { grid-template-columns: 1fr 1fr; } }
/* a drawing in every block (23 Nov 2026) */
.wxp-dial-tick { stroke: rgba(255, 255, 255, .38); stroke-width: 1.3; stroke-linecap: round; }
.wxp-dial-tick.sm { stroke-width: .9; }
.wxp-dial-gust { fill: none; stroke: #f6c76a; stroke-width: 2; stroke-dasharray: 3 3.2; stroke-linecap: round; opacity: .9; }
.wxp-wavesvg { display: block; width: 100%; height: 30px; margin: 2px 0; overflow: visible; }
.wxp-wavesvg .wxp-wv { fill: none; stroke: #8fd0ea; stroke-width: 2.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.wxp-wavesvg .wxp-wl { stroke: rgba(255, 255, 255, .22); vector-effect: non-scaling-stroke; }
.wxp-wavesvg .wxp-wl.dash { stroke-dasharray: 2 2; }
.wxp-wavesvg text { fill: rgba(255, 255, 255, .75); font: 600 9px var(--ui); text-anchor: middle; }
.wxp-seab { display: flex; align-items: center; gap: 8px; margin: 2px 0; }
.wxp-seab b { font-size: 1.05rem; }
.wxp-seag { width: 38px; height: 38px; flex: none; }
.wxp-seag-bg { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .32); stroke-width: 1.2; }
.wxp-seag-w { fill: #5fb3d6; opacity: .9; }
/* the beach map */
.wxp-chips li.wxp-beachmap { display: grid; grid-template-columns: 74px 1fr; gap: 12px; align-items: center; }
.wxp-beachmap > span { display: grid; gap: 1px; }
.wxp-isle { width: 74px; height: 142px; }
.wxp-isle-sea { fill: rgba(95, 179, 214, .14); }
.wxp-isle-land { fill: rgba(255, 255, 255, .16); stroke: rgba(255, 255, 255, .5); stroke-width: 4; stroke-linejoin: round; }
.wxp-isle-dots circle { fill: rgba(255, 255, 255, .38); }
.wxp-isle-dots circle.on { fill: #7ee0a8; stroke: rgba(10, 25, 45, .6); stroke-width: 6; }
.wxp-isle-arrow { fill: none; stroke: #ffe2b0; stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; }
/* sun, moon, UV, humidity, rain */
.wxp-chips li.wxp-gchip b { flex-wrap: wrap; }
.wxp-sunarc { display: block; flex-basis: 100%; width: 100%; height: 44px; margin: 2px 0 2px; overflow: visible; }
.wxp-sunarc .h { stroke: rgba(255, 255, 255, .3); }
.wxp-sunarc .p { fill: none; stroke: rgba(255, 255, 255, .45); stroke-dasharray: 3 3; }
.wxp-sunarc .s { fill: #ffd89a; filter: drop-shadow(0 0 4px rgba(255, 216, 154, .7)); }
.wxp-sunarc .s.down { opacity: .35; filter: none; }
.wxp-sunarc text { fill: rgba(255, 255, 255, .72); font: 600 8.5px var(--ui); text-anchor: middle; }
.wxp-mnrow { display: flex; align-items: center; justify-content: center; flex-basis: 100%; height: 50px; margin: 2px 0; }
.wxp-mnbig { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 0 8px rgba(243, 234, 210, .35)); }
.wxp-mnbig .mn-dark { fill: rgba(255, 255, 255, .12); stroke: rgba(255, 255, 255, .35); stroke-width: .6; }
.wxp-mnbig .mn-lit { fill: #f3ead2; }
.wxp-mname { font-size: .92rem; }
.wxp-uv { display: block; flex-basis: 100%; width: 100%; height: 50px; margin: 2px 0; }
.wxp-uv .g { fill: none; stroke: url(#wxuvg); stroke-width: 9; stroke-linecap: round; }
.wxp-uv .n { stroke: #fff; stroke-width: 3; stroke-linecap: round; }
.wxp-uv .c { fill: #fff; }
.wxp-drop { width: 30px; height: 38px; flex: none; margin: 4px 6px 0 0; }
.wxp-drop .f { fill: #5fb3d6; }
.wxp-drop .o { fill: none; stroke: rgba(255, 255, 255, .7); stroke-width: 1.4; }
.wxp-chips li.wxp-rainchip { grid-column: span 2; }
.wxp-rainbars { display: block; flex-basis: 100%; width: 100%; height: 34px; margin: 6px 0 0; overflow: visible; }
.wxp-raintimes { position: relative; display: block; flex-basis: 100%; height: 15px; margin: 2px 0 4px; }
.wxp-raintimes span { position: absolute; top: 0; transform: translateX(-50%); font-size: .68rem; font-weight: 600; opacity: .75; white-space: nowrap; }
.wxp-raintimes span.first { transform: none; }
.wxp-rainbars rect { fill: #5fb3d6; opacity: .75; }
.wxp-rainbars rect.top { opacity: 1; }
.wxp-rainbars .h { stroke: rgba(255, 255, 255, .22); vector-effect: non-scaling-stroke; }
.wxp-rainbars text { fill: rgba(255, 255, 255, .72); font: 600 9px var(--ui); }
.wxp-rainbars text { text-anchor: middle; }
.wxp-rainbars text.first { text-anchor: start; }
/* the Moon block in the weather card opens the moon card */
.wxp-chips li.wxp-link { cursor: pointer; transition: background .15s, border-color .15s; }
.wxp-chips li.wxp-link:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }
.wxp-chips li.wxp-link:focus-visible { outline: 2px solid #8fd0ea; outline-offset: 2px; }
.wxp-more { float: right; font-size: 1rem; line-height: .8; opacity: .8; letter-spacing: 0; }
/* ---------- the moon card (23 Nov 2026) ---------- */
.mn-hero { position: relative; overflow: hidden; margin: 0 -2px; padding: 26px 18px 20px; text-align: center; color: #fff; border-radius: 22px;
  background: radial-gradient(120% 90% at 70% 8%, #24365f 0%, #121c36 55%, #0a1124 100%); }
.mn-hero > i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; }
.mn-big { position: relative; display: block; width: 150px; height: 150px; margin: 4px auto 12px; filter: drop-shadow(0 0 30px rgba(243, 234, 210, .42)); }
.mn-big .mn-earth { fill: #1c2742; stroke: rgba(255, 255, 255, .12); stroke-width: .6; }
.mn-big .mn-seas circle { fill: #d6c9a6; opacity: .55; }
.mn-hero h2 { position: relative; margin: 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; }
.mn-sub { position: relative; margin: 4px 0 0; color: #b8c4dc; font-size: .9rem; }
.mn-chips { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 12px 0 0; }
.mn-chips span { padding: 3px 11px; font-size: .78rem; font-weight: 600; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; }
.mn-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mn-box { display: grid; gap: 1px; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.mn-box b { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.mn-box small { font-size: .74rem; color: var(--ink-soft); }
.mn-arc { display: block; width: 100%; height: auto; margin-top: 8px; overflow: visible; }
.mn-arc .h { stroke: var(--line); }
.mn-arc .p { fill: none; stroke: color-mix(in srgb, var(--ink-soft) 50%, transparent); stroke-dasharray: 3 4; }
.mn-arc .m { fill: #f3ead2; stroke: color-mix(in srgb, var(--ink) 25%, transparent); stroke-width: 1; filter: drop-shadow(0 0 6px rgba(243, 234, 210, .7)); }
.mn-arc .m.down { opacity: .35; filter: none; }
.mn-arc text { fill: var(--ink-soft); font: 600 10px var(--ui); text-anchor: middle; }
.mn-arc text.w { fill: var(--ink); font-size: 10.5px; }
.mn-note { margin: 4px 0 0; text-align: center; font-size: .82rem; color: var(--ink-soft); }
.mn-phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.mn-phases li { display: grid; justify-items: center; gap: 1px; padding: 10px 4px; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.mn-phases b { font-size: .8rem; line-height: 1.2; margin-top: 4px; }
.mn-phases small { font-size: .72rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.mn-md, .mn-sm { display: block; }
.mn-md { width: 30px; height: 30px; }
.mn-sm { width: 20px; height: 20px; margin: 0 auto 2px; }
.mn-md .mn-dark, .mn-sm .mn-dark { fill: color-mix(in srgb, var(--ink) 14%, transparent); stroke: color-mix(in srgb, var(--ink) 25%, transparent); stroke-width: .6; }
.mn-md .mn-lit, .mn-sm .mn-lit { fill: #e9dcb8; }
html[data-theme="dark"] .mn-md .mn-lit, html[data-theme="dark"] .mn-sm .mn-lit { fill: #f3ead2; }
.mn-cal { list-style: none; margin: 0; padding: 10px 8px; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px 2px; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.mn-cal li { font-size: .68rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.mn-cal li.today { color: var(--accent); font-weight: 700; }
.mn-darknights { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 0; padding: 10px 12px; font-size: .88rem; line-height: 1.4; color: var(--ink);
  background: color-mix(in srgb, var(--sea) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--sea) 35%, var(--line)); border-radius: 14px; }
.mn-darknights svg { flex: none; width: 18px; height: 18px; margin-top: 1px; fill: color-mix(in srgb, var(--sea) 25%, transparent); stroke: var(--sea); stroke-width: 1.6; stroke-linejoin: round; }
@media (max-width: 400px) { .mn-cal { grid-template-columns: repeat(6, minmax(0, 1fr)); } .mn-phases b { font-size: .74rem; } }
/* a link from the weather card to the night sky */
.wxp-skylink { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 8px; padding: 10px 12px; font: inherit; text-align: left; color: #fff;
  background: rgba(10, 25, 45, .25); border: 1px solid rgba(255, 255, 255, .18); border-radius: 13px; cursor: pointer; transition: background .15s; }
.wxp-skylink:hover { background: rgba(10, 25, 45, .4); }
.wxp-skylink .ico { width: 24px; height: 24px; --il: #fff; --is: #cfe8f5; --ia: #ffd89a; --ifs: rgba(207, 232, 245, .22); }
.wxp-skylink > span:nth-of-type(1) { flex: 1; display: grid; gap: 1px; }
.wxp-skylink small { font-size: .74rem; opacity: .8; }
.wxp-skylink > span:last-child { font-size: 1.3rem; opacity: .8; }
/* ---------- the night sky card (24 Nov 2026) ---------- */
.sk-hero { margin-top: 14px; padding: 12px 12px 10px; border-radius: 20px; color: #fff; background: radial-gradient(120% 100% at 50% 0%, #1d2f57 0%, #0f1830 60%, #0a1124 100%); }
/* "Updated 00:24 ↻" at the top of the weather and ferry cards (left, clear of the sheet’s × button) */
.upd-row { display: flex; justify-content: flex-start; margin: 10px 0; padding-right: 48px; }
.upd-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 6px 0 10px; font: inherit; font-size: .74rem; font-weight: 600;
  color: var(--ink-soft); background: none; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; white-space: nowrap; transition: color .15s, border-color .15s; }
.upd-btn:hover { color: var(--ink); border-color: var(--ink-soft); }
.upd-btn:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }
.upd-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.upd-btn.busy { cursor: default; opacity: .75; }
.upd-btn.busy svg { animation: skspin 1.4s linear infinite; }
@media (prefers-reduced-motion: reduce) { .upd-btn.busy svg { animation: none; } }
.sk-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; }
.sk-top .sk-now { margin: 0 2px !important; }
.sk-refresh { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 6px 0 10px; font: inherit; font-size: .72rem; font-weight: 600;
  color: #cfd8ea; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; cursor: pointer; white-space: nowrap; }
.sk-refresh:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.sk-refresh:focus-visible { outline: 2px solid #8fd0ea; outline-offset: 2px; }
.sk-refresh svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sk-refresh.busy { cursor: default; opacity: .8; }
.sk-refresh.busy svg { animation: skspin 1.4s linear infinite; }
@keyframes skspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sk-refresh.busy svg { animation: none; } }
@media (max-width: 380px) { .sk-upd { display: none; } }
.sk-now { margin: 0 2px 8px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #b8c4dc; }
.sk-strip { display: block; width: 100%; height: auto; overflow: visible; }
.sk-sky { fill: rgba(255, 255, 255, .04); }
.sk-stars circle { fill: #fff; opacity: .45; }
.sk-hor { stroke: rgba(255, 255, 255, .45); stroke-width: 1.2; }
.sk-strip text { fill: #e8e1d4; font: 600 9.5px var(--ui); text-anchor: middle; }
.sk-strip text.sk-c { fill: rgba(255, 255, 255, .6); font-size: 9px; }
.sk-moon { fill: #f3ead2; filter: drop-shadow(0 0 8px rgba(243, 234, 210, .7)); }
.sk-pl { filter: drop-shadow(0 0 4px rgba(255, 240, 210, .6)); }
/* the time slider under the sky */
.sk-ctl { display: flex; align-items: center; gap: 8px; margin: 10px 2px 0; }
.sk-range { flex: 1; min-width: 0; height: 28px; accent-color: #ffd89a; cursor: pointer; }
.sk-btn { min-height: 34px; padding: 0 12px; font: inherit; font-size: .82rem; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; cursor: pointer; }
.sk-btn:hover { background: rgba(255, 255, 255, .18); }
.sk-btn:focus-visible, .sk-range:focus-visible { outline: 2px solid #8fd0ea; outline-offset: 2px; }
.sk-btn[aria-pressed="true"] { color: #1f2a44; background: #ffd89a; border-color: #ffd89a; }
.sk-ends { display: flex; justify-content: space-between; margin: 2px 4px 0; font-size: .7rem; color: #b8c4dc; }
.sk-now .sk-t { color: #fff; font-variant-numeric: tabular-nums; }
.sk-hero { transition: background .4s; }
.sk-moonline { margin: 8px 2px 0; font-size: .82rem; color: #cfd8ea; }
.sk-dark { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; }
.sk-dark div { padding: 9px 4px; background: var(--card); border: 1px solid var(--line); border-radius: 13px; }
.sk-dark small { display: block; font-size: .72rem; color: var(--ink-soft); }
.sk-dark b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.sk-planets, .sk-iss, .sk-met { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sk-planets li { display: grid; grid-template-columns: 16px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 13px; }
.sk-planets li.off { opacity: .55; }
.sk-planets i { width: 13px; height: 13px; border-radius: 50%; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 18%, transparent), 0 0 6px rgba(255, 230, 180, .5); }
.sk-planets b { font-size: .95rem; }
.sk-planets em, .sk-iss em, .sk-met em { font-style: normal; font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.sk-planets small { display: block; margin-top: 1px; font-size: .76rem; color: var(--ink-soft); }
.sk-side { font-size: .8rem; font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sk-iss li, .sk-met li { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; padding: 9px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 13px; }
.sk-iss b, .sk-met b { font-size: .92rem; }
.sk-iss span, .sk-met span { flex-basis: 100%; order: 3; font-size: .78rem; color: var(--ink-soft); }
.sk-iss em.lo { color: var(--ink-soft); background: color-mix(in srgb, var(--ink-soft) 12%, transparent); }
.sk-met em.v-great { color: #2c6b45; background: #dcefe3; }
.sk-met em.v-poor { color: var(--ink-soft); background: color-mix(in srgb, var(--ink-soft) 12%, transparent); }
html[data-theme="dark"] .sk-met em.v-great { color: #9fe0b5; background: #1d3a2a; }
.sk-none, .sk-hint { margin: 0; font-size: .82rem; color: var(--ink-soft); }
.sk-hint { margin-top: 6px; }
.sk-moonlink { margin-top: 16px; }
/* the next 24 hours as one graph (scrolls sideways) */
.wxp-graph { overflow-x: auto; padding: 4px 0 2px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; scrollbar-width: none; }
.wxp-graph::-webkit-scrollbar { display: none; }
.wxp-graph.fades { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.wxp-graph svg { display: block; }
.wxp-gline { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.wxp-gdot { fill: var(--card); stroke: var(--accent); stroke-width: 2; }
.wxp-graph text { font: 600 11px var(--ui); text-anchor: middle; font-variant-numeric: tabular-nums; }
.wxp-gt { fill: var(--ink); font-size: 12px !important; font-weight: 700 !important; }
.wxp-gw path { fill: none; stroke: var(--sea); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wxp-gw text { fill: var(--sea); dominant-baseline: central; }
.wxp-gw.strong path { stroke: var(--accent); }
.wxp-gw.strong text { fill: var(--accent); }
.wxp-gr { fill: var(--sea); font-size: 10px !important; }
.wxp-gh { fill: var(--ink-soft); font-weight: 500 !important; }
.wxp-gico { overflow: visible; }
/* stars only in the open sky above the tiles, so none sits beside a number like a stray dot */
.wxp-now .sky-stars { bottom: auto; height: 72px; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.wxp-stats .nw { display: inline; white-space: nowrap; opacity: 1; font-size: inherit; }
.wxp-tag { display: inline-block; margin-left: 2px; padding: 0 6px; border-radius: 6px; font: 700 .68rem/1.5 var(--ui);
  font-style: normal; color: #4a2a00; background: #f6c76a; white-space: nowrap; }
/* the Sun tile: today's arc from sunrise to sunset, the sun on it while it is up */
.wxp-arc { display: block; width: 100%; height: 22px; margin: 3px 0 1px; overflow: visible; }
.wxp-arc-h { stroke: rgba(255, 255, 255, .35); stroke-width: 1; }
.wxp-arc-p { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1.2; stroke-dasharray: 3 3; }
.wxp-arc-s { fill: #ffe7a3; }
.wxp-beach b { font-size: .86rem; line-height: 1.25; }
/* hours: a soft fade at the right edge while more hours wait to be scrolled in */
.wxp-hours.fades { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
/* 7 days: the wave height next to the wave sign, and "now" as a dot on today's temperature bar */
.wxp-wave { width: auto; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 15px; grid-auto-flow: column; gap: 3px; }
.wxp-wave span { font-size: .74rem; font-weight: 600; color: var(--ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wxp-t u { position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--ink);
  box-shadow: 0 0 0 2px var(--card); transform: translate(-50%, -50%); }
@media (max-width: 560px) {
  .wxp-days li { grid-template-columns: minmax(70px, 1fr) 24px minmax(84px, 1.8fr) 56px 58px; gap: 6px; }
  .wxp-rainp { display: none; }
  .wxp-day { font-size: .86rem; }   /* long day names (Wednesday) keep clear of the sky icon */
}

/* "Add your business" as a layer over the home page */
.page-layer { position: fixed; inset: 0; z-index: 55; background: var(--bg); animation: layerIn .3s cubic-bezier(.2, .8, .2, 1); }
.page-layer iframe { display: block; width: 100%; height: 100%; border: 0; }
@keyframes layerIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
html.layer-open { overflow: hidden; }
html.layer-open .theme-btn, html.layer-open .lang-btn, html.layer-open .radio-btn { position: fixed; z-index: 70; }
html.layer-open .lang-menu, html.layer-open .radio-hint { position: fixed; z-index: 71; }
@media (prefers-reduced-motion: reduce) { .page-layer { animation: none; } }

/* "‹ Useful numbers": back to where a place was opened from (mirror of the close button) */
.sheet-back {
  position: absolute; top: 14px; left: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 4px;
  max-width: calc(100% - 90px); height: 40px; padding: 0 14px 0 9px; font: inherit; font-size: .88rem; font-weight: 600; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 250, 242, .9); cursor: pointer;
  box-shadow: 0 2px 10px rgba(31, 42, 68, .18);
  transition: background .15s, transform .15s; animation: rise .3s cubic-bezier(.2, .8, .2, 1);
}
.sheet-back[hidden] { display: none; }
/* with the back pill showing, the card's content starts below it (so it never sits on a title) */
.sheet.has-back .sheet-content { padding-top: 66px; }
.sheet-back:hover { background: #fff; transform: translateX(-2px); }
.sheet-back:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }
.sheet-back svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sheet-back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-theme="dark"] .sheet-back { background: color-mix(in srgb, var(--card) 90%, transparent); }
html[data-theme="dark"] .sheet-back:hover { background: var(--dk-surf); }

/* ---------- A page of its own (/pharmacy, /beaches …): the text is in the page for Google and for anyone without
   JavaScript. On the home page app.js opens the same place or list as usual and removes this. ---------- */
.ssr { width: 100%; max-width: 640px; margin-top: 28px; padding: 24px 24px 18px; background: var(--card); border: 1px solid var(--line);
  border-radius: 22px; box-shadow: var(--shadow); line-height: 1.55; }
.ssr h1 { font-family: var(--display); font-size: 1.7rem; line-height: 1.15; margin: 4px 0 2px; }
.ssr h2 { font-size: 1.02rem; margin: 20px 0 6px; }
.ssr h3 { font-size: .95rem; margin: 14px 0 4px; }
.ssr p, .ssr ul { margin: 6px 0; }
.ssr ul { padding-left: 1.2em; }
.ssr a { color: var(--sea); }
.ssr-cat, .ssr-crumbs { color: var(--ink-soft); font-size: .9rem; }
.ssr-crumbs a { color: inherit; }
.ssr-tags, .ssr-links, .ssr-nav ul { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.ssr-tags li { padding: 2px 10px; border: 1px solid var(--line); border-radius: var(--radius-pill); font-size: .88rem; }
.ssr-list { list-style: none; padding: 0 !important; }
.ssr-list li { padding: 12px 0; border-top: 1px solid var(--line); }
.ssr-list h2 { margin: 0; }
.ssr-nav { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .9rem; }
.ssr-nav h2 { font-size: .9rem; color: var(--ink-soft); font-weight: 600; margin-top: 0; }

/* ---------- Island word / story box (shows for certain searches, e.g. Ωλίαρος, meltemi) ---------- */
.word { position: relative; margin: 0 0 16px; padding: 18px 20px 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: 22px; box-shadow: var(--shadow); text-align: left; animation: wordIn .45s cubic-bezier(.2, .8, .2, 1); }
.word::before { content: ""; position: absolute; left: 20px; right: 20px; top: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--sea)); opacity: .55; }
@keyframes wordIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .word { animation: none; } }
.word-label { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: .72rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.word-label svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.word-title { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.55rem; line-height: 1.15; }
/* Greek words: the display fonts (Fraunces has no Greek; Didot / Bodoni have very thin, hard-to-read Greek letters),
   so Greek uses a sturdy, well-made serif that every phone has: Georgia (Apple, Windows), Noto Serif (Android) */
.word-title [lang="el"], .word-title:lang(el) { font-family: Georgia, "Noto Serif", "Droid Serif", "Times New Roman", serif;
  font-weight: 700; letter-spacing: .005em; }
.word-title small { white-space: nowrap; font-family: var(--ui); font-weight: 500; font-size: .9rem; color: var(--ink-soft); }
.word-sub { margin: 3px 0 10px; font-style: italic; color: var(--ink-soft); font-size: .95rem; }
/* dictionary line: listen button, IPA, syllables (stressed one bold), and how the word is built */
.word-say { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: 4px 0 2px; font-size: .88rem; color: var(--ink-soft); }
.word-speak { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 50%;
  background: var(--bg); color: var(--sea); cursor: pointer; transition: transform .15s, background .15s; }
.word-speak:hover { transform: scale(1.08); }
.word-speak.on { background: var(--sea); color: #fff; }
.word-speak svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.word-ipa { font-family: "Charis SIL", "Doulos SIL", "Gentium Plus", Georgia, "Times New Roman", serif; letter-spacing: .01em; }
.word-syl { letter-spacing: .02em; }
.word-syl b { color: var(--ink); font-weight: 700; }
.word-build { margin: -4px 0 10px; font-size: .9rem; color: var(--ink-soft); }
.word-build span { font-weight: 600; }
.word-build b { color: var(--ink); font-weight: 400; font-family: Georgia, "Noto Serif", serif; }
.no-greek-voice .word-speak { display: none; }
.word-text { margin: 0; font-size: .97rem; line-height: 1.6; }
.word-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.word-src { font-size: .76rem; color: var(--ink-soft); }
.word-src a { color: inherit; }
.word-share { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; margin-left: auto;
  font: inherit; font-size: .85rem; font-weight: 600; color: var(--ink); background: transparent; border: 1px solid var(--line);
  border-radius: var(--radius-pill); cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.word-share:hover { background: var(--bg); border-color: #cbbda3; transform: translateY(-1px); }
.word-share:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }
.word-share svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html[data-theme="dark"] .word-share:hover { background: rgba(255, 255, 255, .06); border-color: #46557a; }

/* ---------- AI answer in the search (Claude Haiku): a quiet card above the results ---------- */
.ai { margin: 0 0 16px; padding: 2px 4px 0; text-align: left; animation: wordIn .35s cubic-bezier(.2, .8, .2, 1); }   /* no frame: a line of text over our normal cards */
.ai-label { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--sea); }
.ai-label svg { width: 18px; height: 18px; }
.ai-text { margin: 0 0 12px; font-size: 1rem; line-height: 1.5; }
.ai-wait { display: flex; align-items: center; gap: 4px; margin: 2px 0 6px; color: var(--ink-soft); font-size: .9rem; }
.ai-wait i { width: 7px; height: 7px; border-radius: 50%; background: var(--sea); opacity: .25; animation: ldot 1.6s ease-in-out infinite; }
.ai-wait i:nth-child(2) { animation-delay: .25s; } .ai-wait i:nth-child(3) { animation-delay: .5s; margin-right: 6px; }
.ai-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ai-note { margin: 8px 4px 0; font-size: .72rem; color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .ai-wait i { animation: none; opacity: .6; } }

/* Theia, the AI concierge: name tag in her answers, and "Ask Theia" with an example question under the search box */
.ai-tag { margin-left: 6px; padding: 1px 6px; border-radius: 999px; border: 1px solid currentColor; font-size: .6rem; letter-spacing: .06em; opacity: .7; }
.ask-hint { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 8px; margin: 10px 0 0; font-size: .86rem; color: var(--ink-soft); }
.ask-name { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--sea); }
.ask-name svg { width: 18px; height: 18px; }
.theia-ico { flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ask-ex { padding: 2px 4px; border: 0; background: none; font: inherit; font-style: italic; color: var(--ink-soft); cursor: pointer;
  text-decoration: underline dotted; text-underline-offset: 3px; transition: opacity .25s, transform .25s; animation: askIn .3s ease-out; }
.ask-ex:hover { color: var(--ink); }
.ask-ex.out { opacity: 0; transform: translateY(-3px); }
@keyframes askIn { from { opacity: 0; transform: translateY(3px); } }
body.has-query .ask-hint { display: none; }
@media (prefers-reduced-motion: reduce) { .ask-ex { animation: none; transition: none; } }

/* ---------- Legal pages (privacy, terms, legal notice): plain, readable, light ---------- */
.legal-page { min-height: 100vh; }
.legal { max-width: 720px; margin: 0 auto; padding: 26px 18px 64px; line-height: 1.62; font-size: 1rem; }
.legal-top { margin: 0 0 18px; }
.legal-logo { font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: .01em; color: var(--ink); text-decoration: none; }
.legal-logo .logo-dot { color: var(--accent); } .legal-logo .logo-tld { color: var(--sea); }
.legal h1 { font-family: var(--display); font-size: 2rem; line-height: 1.15; margin: 8px 0 4px; }
.legal h2 { font-size: 1.08rem; margin: 26px 0 6px; }
.legal-el h1 { font-family: Georgia, "Noto Serif", "Times New Roman", serif; font-weight: 700; }   /* clear Greek letters */
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 1.2em; }
.legal li { margin: 4px 0; }
.legal a { color: var(--sea); }
.legal-date { color: var(--ink-soft); font-size: .88rem; margin-top: 0; }
.legal-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 12px 0; }
.legal-dl dt { font-weight: 600; color: var(--ink-soft); } .legal-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.legal { overflow-wrap: break-word; }
@media (max-width: 560px) { .legal-dl { grid-template-columns: 1fr; gap: 2px; } .legal-dl dt { margin-top: 8px; } }
.legal-nav { margin-top: 34px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .9rem; }
.legal-nav a[aria-current] { color: var(--ink); font-weight: 600; text-decoration: none; }
html[data-legal="el"] .legal-en, html[data-legal="en"] .legal-el, html:not([data-legal]) .legal-el { display: none; }
.legal-only { display: none; margin: 0 0 12px; padding: 8px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: .9rem; }
html[data-visitor="sq"] .legal-only[data-for="sq"], html[data-visitor="fr"] .legal-only[data-for="fr"], html[data-visitor="it"] .legal-only[data-for="it"],
html[data-visitor="no"] .legal-only[data-for="no"], html[data-visitor="sv"] .legal-only[data-for="sv"] { display: block; }
/* Legal pages, redesigned (23 Nov 2026): a bar with the logo and ✕, page tabs, an "In short" card, numbered section cards */
.lg-bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; padding: 10px max(16px, calc(50% - 360px));
  background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.lg-logo { font-family: var(--display); font-weight: 800; font-variation-settings: "opsz" 144; font-size: 1.5rem; line-height: 1; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none; white-space: nowrap; }
.lg-close { margin-left: auto; width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s cubic-bezier(.34, 1.56, .64, 1); }
.lg-close:hover { transform: rotate(90deg); }
.lg-close:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }
.lg-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.legal { padding-top: 16px; }
.lg-tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg-deep); border: 1px solid var(--line); border-radius: 16px; }
.lg-tabs a { flex: 1; min-height: 40px; display: grid; place-items: center; padding: 6px 8px; font-size: .88rem; font-weight: 600; text-align: center;
  color: var(--ink-soft); text-decoration: none; border-radius: 12px; transition: background .15s, color .15s; }
.lg-tabs a:hover { color: var(--ink); }
.lg-tabs a[aria-current="page"] { color: var(--ink); background: var(--card); box-shadow: 0 1px 3px rgba(31, 42, 68, .12); }
.lg-hero { display: flex; align-items: center; gap: 14px; margin: 22px 0 6px; }
.lg-ico { width: 54px; height: 54px; flex: none; display: grid; place-items: center; border-radius: 16px; background: color-mix(in srgb, var(--sea) 12%, var(--card)); border: 1px solid var(--line); }
.lg-ico .ico { width: 30px; height: 30px; }
.lg-hero h1, .legal-el .lg-hero h1 { margin: 0; font-family: var(--ui); font-weight: 800; font-size: 1.9rem; letter-spacing: -.01em; line-height: 1.15; }   /* not the logo font: it only holds the logo's letters */
.lg-date { display: inline-block; margin-top: 6px; padding: 2px 10px; font-size: .78rem; color: var(--ink-soft); background: var(--card); border: 1px solid var(--line); border-radius: 999px; }
.lg-intro { margin-top: 10px; }
.lg-intro:has(dl) { padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--sea); border-radius: 16px; }   /* the owner's details */
.lg-intro:has(dl) > p:first-child { margin-top: 0; }
.lg-short { margin: 16px 0 0; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--sea); border-radius: 16px; }
.lg-short h2 { margin: 0 0 6px; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.lg-short ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lg-short li { position: relative; margin: 0; padding-left: 26px; }
.lg-short li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%;
  background: color-mix(in srgb, #3f9a63 18%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233f9a63' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.lg-toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 4px; }
.lg-toc a { padding: 4px 11px; font-size: .8rem; font-weight: 600; color: var(--sea); text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 999px; }
.lg-toc a:hover { border-color: var(--sea); }
.lg-sec { margin-top: 12px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; scroll-margin-top: 76px; }
.lg-sec h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 1.02rem; }
.lg-n { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: .74rem; font-weight: 700; color: var(--bg); background: var(--sea); }
.lg-sec p { margin: 6px 0 0; }
.lg-sec p:first-of-type { margin-top: 0; }
.lg-sec ul { margin: 6px 0 0; }
.lg-foot { margin: 26px 0 0; text-align: center; }
.lg-back { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; font-weight: 600; color: var(--bg) !important;
  background: var(--ink); border-radius: 999px; text-decoration: none; }
@media (max-width: 560px) { .lg-logo { font-size: 1.2rem; } .lg-tabs a { font-size: .8rem; } .lg-hero h1 { font-size: 1.6rem; } }
/* footer links to the legal pages */
.foot-legal { margin-top: 6px; font-size: .78rem; color: var(--ink-soft); }
.foot-legal a { color: inherit; text-decoration: none; } .foot-legal a:hover { text-decoration: underline; }

/* Opening hours we collected ourselves: a small status in list cards, and a week table on the place card */
.hrs { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: .74rem; font-weight: 600; vertical-align: 1px; white-space: nowrap; }
.hrs.is-open, .hrs-now.is-open { color: #2c6b45; background: #e3f1e8; }
.hrs.is-closed, .hrs-now.is-closed { color: #8f3a22; background: #f6e6e0; }
.hrs.is-soon { color: #8a5a12; background: #fdf0dc; }
[data-theme="dark"] .hrs.is-soon { color: #f1cf8f; background: rgba(210, 160, 60, .16); }
.hrs-now { display: inline-block; margin: 0 0 10px; padding: 4px 12px; border-radius: 999px; font-weight: 600; font-size: .92rem; }
.hrs-week { width: 100%; max-width: 380px; border-collapse: collapse; font-size: .92rem; }
.hrs-week th { padding: 4px 12px 4px 0; text-align: left; font-weight: 400; color: var(--ink-soft); }
.hrs-week td { padding: 4px 0; text-align: right; font-variant-numeric: tabular-nums; }
.hrs-week tr.today th, .hrs-week tr.today td { font-weight: 700; color: var(--ink); }
.hrs-more { margin: 8px 0 0; font-size: .8rem; color: var(--ink-soft); }
[data-theme="dark"] .hrs.is-open, [data-theme="dark"] .hrs-now.is-open { color: #9fd8b3; background: rgba(80, 170, 110, .16); }
[data-theme="dark"] .hrs.is-closed, [data-theme="dark"] .hrs-now.is-closed { color: #f0b3a0; background: rgba(200, 100, 70, .16); }


/* Paros airport card: the weather measured at the airport, quiet tiles */
.apw-h { margin: 16px 0 8px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.apw-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.apw-t { padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 2px; }
.apw-t span { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.apw-t b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.apw-t small { font-size: .78rem; color: var(--ink-soft); }
.apw-note { margin: 8px 2px 0; font-size: .74rem; color: var(--ink-soft); }

/* "When to leave Antiparos" planner: a full-width button under the quick buttons on phones, and the planner card */
@media (max-width: 560px) {
  .qk-leave { grid-column: 1 / -1; flex-direction: row; justify-content: center; gap: 10px; padding: 8px 14px; text-align: left; }
  .qk-leave .qk-ico { width: 32px; height: 32px; }
  .qk-leave .qk-t { justify-items: start; }
}
.lv-q { margin: 16px 0 8px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.lv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lv-chip { min-height: 40px; padding: 6px 14px; font: inherit; font-size: .92rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.lv-chip[aria-checked="true"] { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.lv-when { display: flex; flex-wrap: wrap; gap: 8px; }
.lv-when input { min-height: 44px; padding: 0 12px; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.lv-out:empty { display: none; }
.lv-out { margin-top: 20px; }
.lv-box { padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.lv-big { margin: 0; font-size: 1.15rem; font-weight: 700; line-height: 1.35; }
.lv-small { margin: 6px 0 0; font-size: .86rem; color: var(--ink-soft); line-height: 1.45; }
.lv-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 0; }
.lv-steps li { display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 7px 0; border-top: 1px dashed var(--line); font-size: .92rem; }
.lv-steps li:first-child { border-top: 0; }
.lv-steps b { font-variant-numeric: tabular-nums; color: var(--ink-soft); font-weight: 600; }
.lv-steps .lv-key b, .lv-steps .lv-key span { color: var(--ink); font-weight: 700; }
.lv-warn { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; font-size: .88rem; font-weight: 600; color: #7d1f12; background: #f9d9d0; }
.lv-warn a { color: inherit; }
.lv-notes { margin: 12px 0 0; padding-left: 18px; font-size: .8rem; color: var(--ink-soft); line-height: 1.45; }
.lv-taxi { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.lv-taxi h3 { margin: 0; font-size: .95rem; }
.lv-taxi .acts { margin-top: 6px; }
.act-sm { min-height: 36px; padding: 0 12px; font-size: .85rem; }
.lv-link { padding: 0; font: inherit; color: var(--sea); font-weight: 600; background: none; border: 0; text-decoration: underline; cursor: pointer; }
html[data-theme="dark"] .lv-warn { color: #ffb4a3; background: #42201a; }

.ai-acts { margin: 0 0 12px; }

.lv-clock { display: inline-flex; align-items: center; gap: 4px; }
.lv-clock select { min-height: 44px; padding: 0 10px; font: inherit; font-size: 1.05rem; font-variant-numeric: tabular-nums; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.lv-colon { font-weight: 700; color: var(--ink-soft); }
.lv-fmt { display: inline-flex; margin-left: 4px; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; align-self: center; }
.lv-fmt button { padding: 6px 10px; font: inherit; font-size: .78rem; color: var(--ink-soft); background: none; border: 0; cursor: pointer; }
.lv-fmt button[aria-checked="true"] { color: var(--bg); background: var(--ink); }
.lv-leg { display: block; margin-top: 1px; font-size: .78rem; font-weight: 400; color: var(--ink-soft); }
.lv-steps .lv-key .lv-leg { font-weight: 400; color: var(--ink-soft); }
.lv-total { margin: 8px 0 0; display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--sea); background: rgba(47, 111, 143, .1); }
.lv-cal { max-width: 340px; margin-bottom: 10px; padding: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; }
.lv-cal-head { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 6px; }
.lv-cal-head b { font-size: .95rem; text-transform: capitalize; }
.lv-cal-nav { width: 36px; height: 36px; font: inherit; font-size: 1.3rem; line-height: 1; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.lv-cal-nav:disabled { opacity: .3; cursor: default; }
.lv-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.lv-wd { font-size: .7rem; font-weight: 700; color: var(--ink-soft); padding: 2px 0 4px; }
.lv-day { aspect-ratio: 1; min-height: 36px; font: inherit; font-size: .92rem; font-variant-numeric: tabular-nums; color: var(--ink); background: none; border: 0; border-radius: 50%; cursor: pointer; }
@media (hover: hover) { .lv-day:hover:not(:disabled) { background: var(--card); } }   /* phones: no stuck hover colour after a tap */
.lv-day.today { box-shadow: inset 0 0 0 1.5px var(--sea); font-weight: 700; }
.lv-day[aria-pressed="true"] { color: var(--bg); background: var(--ink); font-weight: 700; }
.lv-day:disabled { color: var(--ink-soft); opacity: .35; cursor: default; }
.lv-go { margin-top: 18px; width: 100%; justify-content: center; min-height: 48px; font-size: 1rem; }
.lv-go:disabled { opacity: .45; cursor: default; }
.lv-working { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-weight: 600; }
/* the site's one "working on it" sign: three soft dots that breathe in turn (slow, never flashing) */
.ldots { display: inline-flex; align-items: center; gap: 5px; }
.ldots i { width: 7px; height: 7px; border-radius: 50%; background: var(--sea); opacity: .25; animation: ldot 1.6s ease-in-out infinite; }
.ldots i:nth-child(2) { animation-delay: .25s; } .ldots i:nth-child(3) { animation-delay: .5s; }
@keyframes ldot { 0%, 100% { opacity: .25; transform: scale(.85); } 45% { opacity: .9; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .ldots i { animation: none; opacity: .6; } }

/* ---------- Departure Planner, redesigned (23 Nov 2026) ---------- */
/* numbered questions: the number turns terracotta once answered */
.lv-q { display: flex; align-items: center; gap: 9px; margin: 20px 0 9px; }
.lv-q:first-child { margin-top: 4px; }
.lv-n { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font: 700 .74rem/1 var(--ui);
  font-style: normal; letter-spacing: 0; color: var(--bg); background: var(--sea); transition: background .25s; }
.lv-n.done { background: var(--accent); }
/* where to: a two-part switch with the site's own icons */
.lv-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; }
.lv-seg button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 6px 8px; font: inherit; font-size: .95rem;
  font-weight: 600; color: var(--ink); background: none; border: 0; border-radius: 12px; cursor: pointer; transition: background .2s, color .2s; }
.lv-seg button .ico { width: 22px; height: 22px; }
.lv-seg button[aria-checked="true"] { color: var(--bg); background: var(--ink); --il: var(--bg); --ia: var(--bg); --is: var(--bg);
  --ifa: color-mix(in srgb, var(--bg) 20%, transparent); --ifs: color-mix(in srgb, var(--bg) 20%, transparent); }
/* the date: the next 7 days as a strip, "Other date" opens the month */
.lv-days { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 6px; margin: 0 -2px; scroll-snap-type: x proximity; scrollbar-width: none; }
.lv-days::-webkit-scrollbar { display: none; }
.lv-dchip { flex: 0 0 auto; min-width: 58px; display: grid; justify-items: center; gap: 1px; padding: 7px 8px; font: inherit; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; scroll-snap-align: start; }
.lv-dchip small { font-size: .7rem; font-weight: 600; color: var(--ink-soft); text-transform: capitalize; white-space: nowrap; }
.lv-dchip b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.lv-dchip[aria-checked="true"] { color: var(--bg); background: var(--sea); border-color: var(--sea); }
.lv-dchip[aria-checked="true"] small { color: inherit; opacity: .85; }
.lv-dmore { place-items: center; min-width: 64px; font-size: .78rem; font-weight: 600; line-height: 1.2; color: var(--sea); background: none; border-style: dashed; text-align: center; }
.lv-dmore[aria-expanded="true"] { border-style: solid; }
.lv-days + .lv-cal { margin-top: 6px; }
/* the time: one big field */
.lv-time { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 6px 16px; background: var(--card);
  border: 1px solid var(--line); border-radius: 16px; cursor: pointer; }
.lv-time:focus-within { border-color: var(--sea); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sea) 25%, transparent); }
.lv-time input { min-width: 0; min-height: 52px; padding: 0; font: 700 2rem/1 var(--ui); font-variant-numeric: tabular-nums; letter-spacing: .02em;
  color: var(--ink); background: none; border: 0; outline: none; }
.lv-time input::-webkit-calendar-picker-indicator { opacity: .6; cursor: pointer; }
html[data-theme="dark"] .lv-time input::-webkit-calendar-picker-indicator { filter: invert(1); }
.lv-time span { display: none; font-size: .82rem; color: var(--ink-soft); }
.lv-time.empty span { display: inline; }
/* the time, tap only: the hour and the minutes are buttons, each opens a grid */
.lv-time { cursor: default; justify-content: space-between; }
.lv-time b { display: flex; align-items: center; gap: 2px; font: 700 2rem/1 var(--ui); font-variant-numeric: tabular-nums; }
.lv-tpart { min-width: 56px; min-height: 52px; padding: 0 6px; font: inherit; color: var(--ink); background: none; border: 0; border-radius: 12px; cursor: pointer; }
.lv-tpart.on { color: var(--bg); background: var(--sea); }
.lv-time.empty .lv-tpart:not(.on) { color: var(--ink-soft); }
.lv-time .lv-colon { color: var(--ink-soft); }
.lv-thint { display: inline !important; padding: 6px 10px; font: inherit; font-size: .84rem; font-weight: 600; color: var(--sea); background: none; border: 0; cursor: pointer; }
.lv-pick { margin-top: 8px; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; animation: lvpop .18s ease-out; }
.lv-pick p { margin: 0 2px 8px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.lv-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.lv-grid button { min-height: 44px; font: inherit; font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 11px; cursor: pointer; }
.lv-pick .lv-grid:has(button:nth-child(12):last-child) { grid-template-columns: repeat(4, 1fr); }   /* minutes: 3 rows of 4 */
.lv-grid button[aria-pressed="true"] { color: var(--bg); background: var(--sea); border-color: var(--sea); }
@media (hover: hover) { .lv-grid button:hover { border-color: var(--ink-soft); } }
@keyframes lvpop { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .lv-pick { animation: none; } }
/* where you stay / how you travel: cards that say what each choice means */
.lv-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 7px; }
.lv-opt { display: flex; align-items: center; gap: 9px; min-height: 52px; padding: 8px 12px; font: inherit; font-size: .9rem; font-weight: 600; line-height: 1.25;
  text-align: left; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .2s, background .2s; }
.lv-opt small { display: block; margin-top: 2px; font-size: .76rem; font-weight: 500; color: var(--ink-soft); }
.lv-opt .lv-oico { width: 22px; height: 22px; }
.lv-opt[aria-checked="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, var(--card)); box-shadow: inset 0 0 0 1px var(--accent); }
.lv-opt[aria-checked="true"] small { color: var(--accent); }
@media (hover: hover) { .lv-opt:hover, .lv-dchip:hover { border-color: var(--ink-soft); } }
.lv-todo { margin: 16px 0 0; padding: 10px 12px; font-size: .84rem; color: var(--ink-soft); text-align: center; border: 1px dashed var(--line); border-radius: 12px; }
/* the plan: the time to leave first, then a timeline */
.lv-plan { padding: 0; overflow: hidden; }
.lv-hero { display: grid; justify-items: start; gap: 2px; padding: 18px 20px 18px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #3f88a8 0%, #2f6f8f 45%, #1f2a44 100%); }
.lv-hk { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.lv-ht { font-size: clamp(2.6rem, 11vw, 3.4rem); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lv-hpill { display: inline-block; padding: 3px 11px; font-size: .84rem; font-weight: 700; color: #1f2a44; background: #f6dcc9; border-radius: 999px; }
.lv-hwhat { margin-top: 6px; font-size: .95rem; font-weight: 600; }
.lv-hero p { margin: 4px 0 0; font-size: .9rem; line-height: 1.45; opacity: .92; }
.lv-htotal { margin-top: 6px; font-size: .78rem; opacity: .8; }
.lv-tl { list-style: none; position: relative; margin: 0; padding: 14px 16px 4px; }
.lv-tl::before { content: ""; position: absolute; left: 76px; top: 24px; bottom: 24px; border-left: 2px dashed var(--line); }
.lv-tl li { display: grid; grid-template-columns: 46px 14px 1fr; gap: 10px; align-items: start; padding: 6px 0; font-size: .92rem; }
.lv-tl b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.lv-dot { position: relative; z-index: 1; width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; background: var(--card); border: 2px solid var(--sea); }
.lv-tl .lv-key b, .lv-tl .lv-key span { color: var(--ink); font-weight: 700; }
.lv-tl .lv-key .lv-dot { background: var(--accent); border-color: var(--accent); }
.lv-tl .lv-fin .lv-dot { background: var(--sea); }
.lv-tl .lv-fin span { font-weight: 600; }
.lv-tl .lv-leg { font-weight: 400; }
.lv-acts { display: flex; gap: 8px; padding: 10px 16px 16px; }
.lv-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 6px 10px; font: inherit; font-size: .88rem; white-space: nowrap;
  font-weight: 600; color: var(--ink); background: none; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.lv-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lv-btn.lv-pri { color: var(--bg); background: var(--ink); border-color: var(--ink); }

/* Food sub-filters (All · Breakfast & coffee · Lunch & dinner · Fine dining) */
.subs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 14px; }
.subs[hidden] { display: none; }   /* "display: flex" above would otherwise keep them on screen */
.sub { padding: 5px 13px; font: inherit; font-size: .86rem; color: var(--ink-soft); background: transparent; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.sub[aria-checked="true"] { color: var(--bg); background: var(--ink); border-color: var(--ink); }
@media (hover: hover) { .sub:hover:not([aria-checked="true"]) { color: var(--ink); } }

/* Night colours switch in the footer (only in night mode) */
.night-pick { display: none; margin: 6px 0 0; font-size: .74rem; color: var(--ink-soft); }
html[data-theme="dark"] .night-pick { display: block; }
.night-pick button { padding: 2px 9px; font: inherit; color: var(--ink-soft); background: none; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.night-pick button[aria-pressed="true"] { color: var(--bg); background: var(--ink); border-color: var(--ink); }

/* A business's own logo instead of the drawn icon (24 Nov 2026): dark lines on a white tile, in both themes */
.card-icon.has-logo, .sheet-icon.has-logo { background: #fff; border: 1px solid var(--line); padding: 7px; box-sizing: border-box; }
.sheet-icon.has-logo { padding: 10px; }
.has-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* ---------- UI polish (2026-11-24): compact result rows, pinned card actions, sort, desktop grid ---------- */

/* Result rows: one line of text, so 4–5 places fit on a phone screen (the full text, features and tips are in the card) */
.card { padding: 14px 16px; }
.card .desc { display: -webkit-box; -webkit-line-clamp: 1; line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; }
.card .acts { margin-top: 10px; gap: 6px; }
.card .cat .hrs { margin-top: 4px; }
.card .km { white-space: nowrap; font-variant-numeric: tabular-nums; }   /* "650 m away" never breaks */

/* The place card: Directions · Call · Website pinned to the bottom edge, always within thumb reach.
   Directions is the one filled button; the others are outlined. */
.sheet-bar {
  position: sticky; bottom: 0; z-index: 3;
  margin: 22px -26px -22px; padding: 12px 26px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--card); border-top: 1px solid var(--line);
  box-shadow: 0 -10px 24px -18px rgba(31, 42, 68, .35);
}
.sheet-bar .act-lg ~ .act-lg { background: transparent; color: var(--ink); border-color: var(--line); }
.sheet-bar .act-lg ~ .act-lg:hover { background: var(--bg); border-color: #cbbda3; }
html[data-theme="dark"] .sheet-bar { box-shadow: 0 -10px 24px -18px rgba(0, 0, 0, .7); }
html[data-theme="dark"] .sheet-bar .act-lg ~ .act-lg { border-color: var(--dk-line3); }
html[data-theme="dark"] .sheet-bar .act-lg ~ .act-lg:hover { background: var(--dk-surf); }
@media (max-width: 560px) {
  .sheet-bar { margin: 20px -18px -18px; padding: 10px 18px calc(10px + env(safe-area-inset-bottom, 0px)); flex-wrap: nowrap; }
  .sheet-bar .act-lg { padding: 0 12px; min-width: 0; }
}

/* Sort: Best match · Nearest (same pills as the Food sub-filters) */
/* sort and the Food sub-filters line up under "29 places found" (left), one row each */
.results .subs { justify-content: flex-start; margin-left: 2px; }
.sort-bar { margin: -4px 0 10px 2px; }
.sort-bar .sub { display: inline-flex; align-items: center; gap: 5px; }
.sort-bar .sub svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sort-note { flex-basis: 100%; margin: 4px 0 0 4px; font-size: .82rem; color: var(--ink-soft); }

/* Tools: its own colour, but outlined, so it never looks like a selected category (selected = filled navy) */
.chips .chip-btn, .chips .chip-btn:hover {
  color: var(--ink); background: var(--card); filter: none;
  border: 1.5px solid color-mix(in srgb, var(--accent) 70%, var(--line)); box-shadow: none;
  --il: var(--ink); --ia: var(--accent); --ifa: color-mix(in srgb, var(--accent) 18%, transparent);
}
.chips .chip-btn .ico { stroke: var(--accent); }
.chips .chip-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
html[data-theme="dark"] .chips .chip-btn { color: var(--ink); background: color-mix(in srgb, var(--card) 80%, transparent); }

/* Large screens: the page widens and the results sit in two columns */
@media (min-width: 1024px) {
  .home { max-width: 1080px; }
  .results { max-width: 1040px; }
  #results { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  #results > .card { height: 100%; }
  #results > :not(.card) { grid-column: 1 / -1; }   /* "no results", notes and the like keep the full width */
}

/* ===== Categories from the admin (2026-11-24) ===== */
/* a group whose icon is an emoji (until it gets a drawn one) */
.ico-emoji { display: inline-grid; place-items: center; width: 22px; height: 22px; font-size: 17px; line-height: 1; flex: none; }
@media (max-width: 560px) { .ico-emoji { width: 20px; height: 20px; font-size: 15px; } }
