/* Layout idea: a calm listing board. Sticky header, filter bar, then events grouped under date headings, like a printed "what's on" column. */
:root {
  --bg: #f8f4fc;
  --surface: #ffffff;
  --ink: #1f1430;
  --muted: #6c5f80;
  --line: #e9ddf5;
  --accent: #7b2cbf;
  --accent-ink: #ffffff;
  --accent-soft: #f2e6fc;
  --accent-text: #6a1fae;
  --ok: #0b7a5c;
  --mint: #3ddbb4;
  --mint-soft: #e1f8f1;
  --mint-ink: #04342c;
  --head-bg: #3c1361;
  --head-ink: #ffffff;
  --head-muted: #d9c6ef;
  --logo: #d8b4fe;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(28, 23, 48, .05), 0 4px 16px rgba(28, 23, 48, .05);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #140c1e;
    --surface: #1e132d;
    --ink: #f1eaf9;
    --muted: #b3a2c9;
    --line: #33244a;
    --accent: #c084fc;
    --accent-ink: #1d0b33;
    --accent-soft: #2e1a48;
    --accent-text: #d4a8ff;
    --ok: #7eebd0;
    --mint: #4fe3c0;
    --mint-soft: #12352d;
    --mint-ink: #04342c;
    --head-bg: #24103d;
    --head-ink: #ffffff;
    --head-muted: #cdb6ea;
    --logo: #d8b4fe;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #140c1e;
  --surface: #1e132d;
  --ink: #f1eaf9;
  --muted: #b3a2c9;
  --line: #33244a;
  --accent: #c084fc;
  --accent-ink: #1d0b33;
  --accent-soft: #2e1a48;
  --accent-text: #d4a8ff;
  --ok: #7eebd0;
  --mint: #4fe3c0;
  --mint-soft: #12352d;
  --mint-ink: #04342c;
  --head-bg: #24103d;
  --head-ink: #ffffff;
  --head-muted: #cdb6ea;
  --logo: #d8b4fe;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--font-body);
}
a { color: var(--accent-text); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 1.35rem; font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 600; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 420px) { .wrap { padding: 0 16px; } }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: var(--head-bg);
  color: var(--head-ink);
}
.head-row { display: flex; align-items: center; gap: 20px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--logo); }
.logo { width: 34px; height: 34px; }
.wordmark { font: 700 1.55rem/1 var(--font-display); color: var(--head-ink); letter-spacing: -.02em; }
.country-nav { display: flex; gap: 4px; }
.country-nav a, .how-link {
  text-decoration: none; color: var(--head-muted); font-weight: 600;
  padding: 8px 12px; border-radius: 999px;
}
.country-nav a:hover, .how-link:hover { color: var(--head-ink); background: rgba(255, 255, 255, .1); }
.country-nav a[aria-current="page"], .how-link[aria-current="page"] { color: var(--head-ink); background: rgba(255, 255, 255, .18); }
.site-head :focus-visible { outline-color: var(--logo); }
.how-link { margin-left: auto; font-size: .9rem; }
@media (max-width: 640px) {
  .head-row { gap: 4px 12px; padding-top: 8px; padding-bottom: 8px; }
  .how-link { margin-left: auto; padding: 6px 8px; }
  .country-nav { order: 3; width: 100%; margin: 0 -8px; }
}

main.wrap { padding-top: 28px; padding-bottom: 64px; display: block; }
main:focus { outline: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: 600 .9rem/1 var(--font-body);
  background: var(--accent); color: var(--accent-ink);
  border: 1px solid var(--accent); border-radius: 999px;
  padding: 10px 16px; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--accent-text); border-color: var(--line); }
.btn.ghost:hover { background: var(--accent-soft); filter: none; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkbtn:hover { color: var(--ink); }

/* Home */
.hero { display: grid; gap: 10px; padding: 12px 0 28px; max-width: 760px; }
.hero p { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.country-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.country-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: grid; gap: 14px; align-content: start; box-shadow: var(--shadow);
}
.country-card header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.country-card .tz { font-size: .8rem; color: var(--muted); }
.stats { display: flex; gap: 18px; flex-wrap: wrap; }
.stat b { display: block; font: 700 1.5rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.stat span { font-size: .8rem; color: var(--muted); }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.mini-list li { border-bottom: 1px solid var(--line); }
.mini-list a { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 10px 0; text-decoration: none; color: var(--ink); }
.mini-list a:hover .mini-title { color: var(--accent-text); }
.mini-date { font-size: .8rem; color: var(--accent-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.mini-title { font-weight: 600; line-height: 1.3; }
.mini-where { font-size: .82rem; color: var(--muted); }
.empty-mini { color: var(--muted); font-size: .9rem; padding: 10px 0; }
.trust-strip {
  margin-top: 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  background: var(--accent-soft); border-radius: var(--radius); padding: 20px;
}
.trust-strip div { display: grid; gap: 4px; align-content: start; }
.trust-strip b { font-family: var(--font-display); font-size: 1rem; }
.trust-strip p { font-size: .9rem; color: var(--muted); }
@media (max-width: 900px) { .trust-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .trust-strip { grid-template-columns: 1fr; } }
.weekend-band {
  margin-top: 16px; border: 1px dashed var(--line); border-radius: var(--radius); padding: 16px 20px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center;
}
.pill-soon { font-size: .78rem; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }

/* Country page */
.page-head { display: grid; gap: 6px; margin-bottom: 18px; }
.page-head .meta { color: var(--muted); font-size: .92rem; }
.cat-nav { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -2px 8px; scrollbar-width: thin; }
.cat-nav a {
  flex: none; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem;
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 14px;
}
.cat-nav a .n { color: var(--muted); font-weight: 500; margin-left: 4px; font-variant-numeric: tabular-nums; }
.cat-nav a:hover { border-color: var(--accent); }
.cat-nav a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cat-nav a[aria-current="page"] .n { color: inherit; opacity: .8; }

.filters {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; display: grid; gap: 12px; margin-bottom: 22px; box-shadow: var(--shadow);
}
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.search { flex: 1 1 260px; position: relative; }
.search input {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px 10px 38px;
}
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
select {
  font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 14px; max-width: 100%;
}
.seg { display: flex; gap: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px; overflow-x: auto; max-width: 100%; }
.seg button {
  flex: none; font: 600 .86rem/1 var(--font-body); color: var(--muted); background: transparent;
  border: 0; border-radius: 999px; padding: 8px 12px; cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--accent-text); box-shadow: 0 1px 3px rgba(28, 23, 48, .12); }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; cursor: pointer; user-select: none; }
.toggle input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.result-line { margin-bottom: 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .9rem; color: var(--muted); }

.day-group { display: grid; gap: 12px; margin-bottom: 28px; }
.day-head { display: flex; align-items: baseline; gap: 10px; border-bottom: 2px solid var(--accent); padding-bottom: 6px; }
.day-head h2 { font-size: 1.1rem; }
.day-head span { color: var(--muted); font-size: .85rem; }
.ev-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .ev-grid { grid-template-columns: 1fr; } }

.ev {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; grid-template-columns: 66px minmax(0, 1fr); overflow: hidden; box-shadow: var(--shadow);
}
.ev-date {
  border-right: 1px dashed var(--line); background: var(--accent-soft);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: 14px 4px; text-align: center; gap: 1px;
}
.ev-date .m { font-size: .72rem; font-weight: 700; letter-spacing: .08em; color: var(--accent-text); text-transform: uppercase; }
.ev-date .d { font: 700 1.6rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.ev-date .w { font-size: .75rem; color: var(--muted); }
.ev-date .to { margin-top: 6px; font-size: .7rem; color: var(--muted); line-height: 1.25; }
.ev-body { padding: 14px 16px; display: grid; gap: 8px; align-content: start; }
.ev-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tag { font-size: .74rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }
.trust { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 700; border-radius: 999px; padding: 2px 9px; text-decoration: none; }
.trust.official { background: var(--accent); color: var(--accent-ink); }
.trust.reported { background: transparent; color: var(--muted); border: 1px dashed var(--muted); }
.trust svg { width: 11px; height: 11px; }
.free-tag { font-size: .74rem; font-weight: 700; color: var(--ok); background: var(--mint-soft); border: 1px solid var(--mint); border-radius: 999px; padding: 2px 9px; }
.facts { display: grid; gap: 2px; font-size: .9rem; margin: 0; }
.facts div { display: grid; grid-template-columns: 52px 1fr; gap: 8px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.desc { font-size: .92rem; color: var(--ink); opacity: .88; }
.ev-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.checked { font-size: .8rem; color: var(--muted); }
.ev-foot .linkbtn { font-size: .8rem; }
.ev-foot .btn { margin-left: auto; }
@media (max-width: 420px) {
  .ev { grid-template-columns: 56px minmax(0, 1fr); }
  .ev-foot .btn { margin-left: 0; width: 100%; }
}

.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.hidden-note { font-size: .85rem; color: var(--muted); margin-top: 8px; }

/* How we check */
.prose { max-width: 70ch; display: grid; gap: 16px; }
.prose h2 { margin-top: 12px; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.label-demo { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); background: var(--surface); padding: 28px 0 36px; }
.foot-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px 32px; }
.foot-brand { font: 700 1.2rem/1 var(--font-display); margin-bottom: 6px; }
.foot-links { display: flex; gap: 8px 16px; flex-wrap: wrap; align-content: start; justify-content: flex-end; }
.foot-note { grid-column: 1 / -1; }
@media (max-width: 640px) { .foot-row { grid-template-columns: 1fr; } .foot-links { justify-content: flex-start; } }
.notice { padding: 20px; background: var(--surface); border-radius: var(--radius); }

/* Report dialog */
dialog { border: 1px solid var(--line); border-radius: 16px; padding: 0; background: var(--surface); color: var(--ink); width: min(520px, calc(100% - 32px)); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
dialog::backdrop { background: rgba(18, 12, 36, .45); }
.report-form { padding: 22px; display: grid; gap: 10px; }
.report-form label { font-weight: 600; }
.report-form textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px; resize: vertical; width: 100%; }
.report-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Section tabs (Events / Places to visit) */
.section-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.section-tabs a { text-decoration: none; color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.section-tabs a:hover { color: var(--ink); }
.section-tabs a[aria-selected="true"] { color: var(--accent-text); border-bottom-color: var(--accent); }
.section-tabs .n { margin-left: 6px; font-size: .8rem; color: var(--muted); font-weight: 500; }
.ev.place { grid-template-columns: minmax(0, 1fr); border-top: 4px solid var(--mint); }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.card-actions .btn { flex: 1 1 auto; }

/* Country menu (12 countries) */
.country-menu { position: relative; }
.country-menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  color: var(--head-ink); font-weight: 600; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14);
}
.country-menu summary::-webkit-details-marker { display: none; }
.country-menu summary svg { width: 12px; height: 12px; }
.country-menu[open] summary { background: rgba(255, 255, 255, .24); }
.menu-panel {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; width: min(560px, calc(100vw - 32px));
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(28, 12, 48, .2); padding: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.menu-group { display: grid; gap: 2px; align-content: start; }
.menu-region { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.menu-panel a { text-decoration: none; color: var(--ink); font-weight: 600; padding: 6px 8px; border-radius: 8px; }
.menu-panel a:hover { background: var(--accent-soft); color: var(--accent-text); }
.menu-panel a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-text); }
@media (max-width: 640px) { .menu-panel { grid-template-columns: 1fr 1fr; position: fixed; top: 64px; left: 16px; } }

/* Home with regions */
.jump { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.jump a { text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--accent-text); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.jump a:hover { border-color: var(--accent); }
.region { display: grid; gap: 12px; margin-bottom: 28px; }
.region-title { font-size: 1.1rem; border-bottom: 2px solid var(--accent); padding-bottom: 6px; }
.country-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.country-card h2 a { color: inherit; text-decoration: none; }
.country-card h2 a:hover { color: var(--accent-text); }
.foot-countries { display: contents; }

/* Mint accent */
.logo .star { fill: var(--mint); }
.weekend-band { border: 1px solid var(--mint); background: var(--mint-soft); border-style: solid; }
.pill-soon { color: var(--ok); border-color: var(--mint); }
.jump a:hover { border-color: var(--mint); }
.stat:nth-child(2) b { color: var(--ok); }
