/* Event in Europe
   Ink navy + timetable yellow. Overpass (signage) for UI, Source Serif 4 for long reading. */

:root {
  --ink: #16213E;
  --ink-2: #22305A;
  --ink-3: #3A4A78;
  --paper: #F5F7FA;
  --white: #FFFFFF;
  --signal: #F4C430;
  --signal-deep: #D9A800;
  --route: #2F5DA8;
  --slate: #5B6478;
  --rule: #DCE1EA;
  --rule-soft: #EBEEF4;
  --ok: #1F7A4D;
  --ok-bg: #E6F4EC;
  --warn-bg: #FFF6D6;
  --danger: #B42318;
  --danger-bg: #FDECEA;
  --info-bg: #E8EFFA;

  --sans: "Overpass", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --wrap: 100%;
  --gut: clamp(16px, 3.2vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 16px/1.55 var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
}
img { max-width: 100%; display: block; }
a { color: var(--route); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 2px; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--signal); color: var(--ink); padding: 8px 14px; font-weight: 700; }
.skip:focus { left: 8px; }
.muted { color: var(--slate); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); }
.narrow { max-width: 820px; }
.wrap.narrow { margin-left: 0; }
.page-pad { padding-top: 40px; padding-bottom: 64px; }
.flag { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.flag.big { font-size: 1.1em; }
.nowrap { white-space: nowrap; }
.break { word-break: break-all; }

/* Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 15px/1 var(--sans); padding: 12px 18px 10px;
  border: 1px solid var(--rule); border-radius: var(--r-sm);
  background: var(--white); color: var(--ink); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--ink-2); color: var(--white); }
.btn-signal { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.btn-signal:hover { background: var(--signal-deep); border-color: var(--signal-deep); color: var(--ink); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-ghost-light:hover { border-color: var(--white); color: var(--white); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: var(--white); }
.btn-danger:hover { background: #8f1c13; color: var(--white); }
.btn-ok { background: var(--ok); border-color: var(--ok); color: var(--white); }
.btn-ok:hover { background: #17603c; color: var(--white); }
.btn-lg { font-size: 16px; padding: 15px 22px 13px; }
.btn-sm { font-size: 13px; padding: 7px 11px 5px; }
.btn-block { width: 100%; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--route); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.linklike.danger, a.danger { color: var(--danger); }
.linklike.ok { color: var(--ok); }

/* Header -------------------------------------------------------------- */
.site-header { background: var(--ink); color: var(--white); position: relative; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; }
.logo:hover { color: var(--white); }
.logo-mark svg { width: 30px; height: 30px; display: block; }
.logo-mark rect { fill: var(--signal); }
.logo-mark path { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; fill: none; }
.logo-text { font-weight: 600; font-size: 21px; letter-spacing: -0.02em; }
.logo-text b { color: var(--signal); font-weight: 800; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a:not(.btn) { color: #CDD5E6; text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: var(--r-sm); }
.site-nav a:not(.btn):hover { color: var(--white); background: var(--ink-2); }
.nav-split { width: 1px; height: 24px; background: var(--ink-3); margin: 0 8px; }
.nav-toggle { display: none; margin-left: auto; background: transparent; color: var(--white); border: 1px solid var(--ink-3); border-radius: var(--r-sm); font: 700 14px var(--sans); padding: 8px 12px; cursor: pointer; }

.flash-stack { padding-top: 16px; }

/* Notices ------------------------------------------------------------- */
.notice { padding: 12px 16px; border-radius: var(--r-sm); margin: 0 0 16px; border-left: 4px solid; font-size: 15px; }
.notice-success { background: var(--ok-bg); border-color: var(--ok); }
.notice-error { background: var(--danger-bg); border-color: var(--danger); }
.notice-info { background: var(--info-bg); border-color: var(--route); }

/* Hero + departures board -------------------------------------------- */
.hero { background: var(--ink); color: var(--white); padding: 56px 0 72px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 6px;
  background: repeating-linear-gradient(90deg, var(--signal) 0 48px, transparent 48px 64px);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: start; }
.hero h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.02; letter-spacing: -0.03em; max-width: 12ch; margin-bottom: 18px; }
.hero-sub { color: #C3CCE0; font-size: 18px; max-width: 46ch; }
.hero-search { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 1px; background: var(--ink-3); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--ink-3); }
.hs-field { display: flex; flex-direction: column; background: var(--white); padding: 10px 14px 8px; min-width: 0; }
.hs-field span { font-size: 12px; font-weight: 700; color: var(--slate); }
.hero-search .hs-field input, .hero-search .hs-field select { border: 0; box-shadow: none; border-radius: 0; padding: 4px 0; font: 600 16px var(--sans); color: var(--ink); background: transparent; width: 100%; min-width: 0; }
.hs-field input:focus, .hs-field select:focus { outline: none; }
.hs-field:focus-within { box-shadow: inset 0 -3px 0 var(--signal); }
.hs-q { grid-column: 1 / -1; }
.hero-search .btn { border-radius: 0; height: 100%; grid-column: 3; grid-row: 2; }
.hero-quick { margin-top: 18px; color: #9AA6C2; font-size: 14px; }
.hero-quick a { color: var(--white); margin-left: 10px; text-decoration-color: rgba(255,255,255,.35); }

.board { background: #0E1730; border-radius: var(--r-lg); padding: 20px 20px 14px; border: 1px solid #263459; }
.board-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 12px; border-bottom: 1px solid #263459; }
.board-head h2 { font-size: 20px; margin: 0; color: var(--signal); }
.board-clock { color: #8D9AB9; font-size: 14px; font-weight: 600; }
.board-table { width: 100%; border-collapse: collapse; font-size: 15px; table-layout: fixed; }
.board-table th { text-align: left; color: #6F7EA3; font-size: 12px; font-weight: 600; padding: 10px 6px 6px; }
.board-table th:nth-child(1) { width: 74px; }
.board-table th:nth-child(2) { width: 112px; }
.board-table td { padding: 10px 6px; border-bottom: 1px solid #1C2848; vertical-align: top; }
.board-table tr { animation: flap .5s cubic-bezier(.2,.7,.3,1) both; animation-delay: calc(var(--i) * 70ms + 150ms); }
.b-date { color: var(--signal); font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.b-city { color: #E8ECF5; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-title a { color: #B7C2DC; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.b-title a:hover { color: var(--white); text-decoration: underline; }
.b-empty { color: #8D9AB9; text-align: center; padding: 24px; }
.board-all { display: block; text-align: right; color: var(--signal); font-weight: 700; padding: 12px 4px 2px; font-size: 14px; }
@keyframes flap { from { opacity: 0; transform: perspective(400px) rotateX(-70deg); transform-origin: top; } to { opacity: 1; transform: none; } }

/* Month strip --------------------------------------------------------- */
.months-band { background: var(--white); border-bottom: 1px solid var(--rule); }
.months { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.months a { display: flex; flex-direction: column; padding: 16px 10px 14px; text-decoration: none; color: var(--ink); border-right: 1px solid var(--rule-soft); height: 100%; }
.months li:first-child a { border-left: 1px solid var(--rule-soft); }
.months a:hover { background: var(--warn-bg); }
.m-name { font-weight: 800; font-size: 18px; }
.m-year { font-size: 12px; color: var(--slate); }
.m-n { font-size: 13px; margin-top: 6px; font-weight: 600; color: var(--route); }
.months a.is-empty .m-n { color: #A2AABB; }

/* Home sections ------------------------------------------------------- */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, 24vw, 420px); gap: 48px; padding-top: 48px; padding-bottom: 64px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin: 0 0 20px; }
.sec-head h2 { font-size: 24px; margin: 0; }
.sec-head a { font-weight: 600; font-size: 14px; }
.featured-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 48px; }
.feat { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; }
.feat-img { aspect-ratio: 16 / 8; background: var(--ink-2); display: block; overflow: hidden; }
.feat-img img { width: 100%; height: 100%; object-fit: cover; }
.feat-fallback { display: flex; align-items: center; justify-content: center; gap: 8px; height: 100%; color: var(--white); font-weight: 700; font-size: 18px;
  background: linear-gradient(var(--ink-2), var(--ink-2)) padding-box, repeating-linear-gradient(135deg, #2A3963 0 10px, var(--ink-2) 10px 20px); }
.feat-fallback span { font-size: 52px; font-weight: 800; color: var(--signal); }
.feat-body { padding: 16px 18px 18px; }
.feat-meta { font-size: 14px; color: var(--slate); margin-bottom: 6px; font-weight: 600; }
.feat h3 { font-size: 19px; margin-bottom: 8px; }
.feat h3 a { color: var(--ink); text-decoration: none; }
.feat h3 a:hover { text-decoration: underline; }
.feat p:last-child { margin: 0; color: var(--slate); font-size: 15px; }

.topic-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); column-gap: 32px; }
.topic-grid a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 2px 10px; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); font-weight: 600; }
.topic-grid a:hover { color: var(--route); }
.topic-grid b { color: var(--slate); font-weight: 600; }

.side-block { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 20px; margin-bottom: 24px; }
.side-block h2 { font-size: 18px; margin-bottom: 14px; }
.more { font-weight: 700; font-size: 14px; display: inline-block; margin-top: 10px; }
.deadline-list { list-style: none; margin: 0; padding: 0; }
.deadline-list li { display: grid; grid-template-columns: 56px 1fr; column-gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule-soft); }
.deadline-list li:last-child { border-bottom: 0; }
.dl-days { grid-row: span 2; background: var(--warn-bg); border-radius: var(--r-sm); text-align: center; font-size: 12px; color: var(--slate); padding: 6px 2px 4px; align-self: start; line-height: 1.1; }
.dl-days b { display: block; font-size: 22px; color: var(--ink); }
.deadline-list a { color: var(--ink); font-weight: 700; text-decoration: none; line-height: 1.3; font-size: 15px; }
.deadline-list a:hover { text-decoration: underline; }
.deadline-list small { color: var(--slate); font-size: 13px; }
.country-list { list-style: none; margin: 0; padding: 0; }
.country-list a { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--rule-soft); }
.country-list a:hover { color: var(--route); }
.country-list b { margin-left: auto; color: var(--slate); font-weight: 600; }

.organizer-band { background: var(--signal); padding: 48px 0; }
.org-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.organizer-band h2 { font-size: 30px; letter-spacing: -0.02em; }
.organizer-band p { margin: 0; max-width: 52ch; }
.url-box label { display: block; font-weight: 700; margin-bottom: 8px; }
.url-box small { display: block; margin-top: 10px; font-size: 14px; }
.organizer-band .url-box a { color: var(--ink); }
.organizer-band .btn-signal { background: var(--ink); border-color: var(--ink); color: var(--white); }
.input-row { display: flex; gap: 8px; }
.input-row input { flex: 1; min-width: 0; }

/* Forms ---------------------------------------------------------------- */
input[type=text], input[type=email], input[type=url], input[type=search], input[type=password], input[type=number], input[type=date], input:not([type]), select, textarea {
  font: 400 16px/1.4 var(--sans); color: var(--ink); background: var(--white);
  border: 1px solid #C4CBD8; border-radius: var(--r-sm); padding: 10px 12px 8px; width: 100%;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--route); box-shadow: 0 0 0 3px rgba(47,93,168,.18); }
[aria-invalid=true] { border-color: var(--danger) !important; }
.form { display: block; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.field > span, .field > legend { font-weight: 700; font-size: 14px; }
.field small { font-weight: 400; color: var(--slate); }
.field-error { color: var(--danger); font-size: 14px; font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; font-size: 15px; cursor: pointer; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--ink); flex: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 8px; }
.form-actions form { display: inline; }
.seg { display: flex; flex-wrap: wrap; border: 1px solid #C4CBD8; border-radius: var(--r-sm); overflow: hidden; }
.seg label { flex: 1 1 auto; position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; white-space: nowrap; padding: 8px 6px 6px; font-size: 14px; font-weight: 600; cursor: pointer; border-right: 1px solid var(--rule); background: var(--white); }
.seg label:last-child span { border-right: 0; }
.seg input:checked + span { background: var(--ink); color: var(--white); }
.seg input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: -3px; }

/* Listing page --------------------------------------------------------- */
.list-head { background: var(--white); border-bottom: 1px solid var(--rule); padding: 28px 0 24px; }
.crumbs { font-size: 14px; margin-bottom: 10px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.crumbs li { color: var(--slate); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #A2AABB; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; max-width: 42ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs a { color: var(--slate); text-decoration: none; }
.crumbs a:hover { color: var(--route); text-decoration: underline; }
.page-title { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.02em; margin-bottom: 6px; }
.list-count { color: var(--slate); margin: 0; }
.lead { font-size: 19px; color: var(--slate); }
.chip-row { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; gap: 6px; padding: 6px 12px 4px; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 600; background: var(--paper); }
.chip b { color: var(--slate); font-weight: 600; }
.chip:hover { border-color: var(--ink-3); }
.chip.is-on { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chip.is-on b { color: var(--signal); }

.list-grid { display: grid; grid-template-columns: clamp(260px, 20vw, 320px) minmax(0, 1fr); gap: 40px; padding-top: 32px; padding-bottom: 64px; }
.filters-toggle { display: none; }
.filter-form { position: sticky; top: 16px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 20px; }
.filter-form .field select, .filter-form .field input { font-size: 15px; }
.filter-actions { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--slate); font-size: 14px; margin-bottom: 8px; }
.sort-form label { display: flex; align-items: center; gap: 8px; }
.sort-form select { width: auto; padding: 6px 10px 4px; font-size: 14px; }
.month-divider { font-size: 15px; font-weight: 800; color: var(--slate); margin: 28px 0 0; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.month-divider:first-of-type { margin-top: 8px; }

/* Event row: timetable line */
.ev-row { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px 20px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.ev-row.is-featured { background: linear-gradient(90deg, var(--warn-bg), transparent 70%); padding-left: 12px; margin-left: -12px; border-left: 3px solid var(--signal); }
.ev-row.is-past { opacity: .7; }
.ev-date { display: flex; flex-direction: column; align-items: center; background: var(--ink); color: var(--white); border-radius: var(--r-md); padding: 10px 4px 8px; line-height: 1; height: max-content; }
.ev-day { font-size: 30px; font-weight: 800; color: var(--signal); }
.ev-mon { font-size: 15px; font-weight: 700; margin-top: 4px; }
.ev-yr { font-size: 12px; color: #9AA6C2; margin-top: 4px; }
.ev-title { font-size: 19px; margin: 0 0 4px; line-height: 1.25; }
.ev-title a { color: var(--ink); text-decoration: none; }
.ev-title a:hover { color: var(--route); text-decoration: underline; }
.ev-where { margin: 0 0 6px; font-weight: 600; font-size: 15px; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; }
.ev-when { color: var(--slate); font-weight: 400; }
.ev-when::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: #A2AABB; margin: 0 8px 3px 4px; }
.ev-desc { color: var(--slate); font-size: 15px; margin: 0 0 8px; max-width: 72ch; }
.ev-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 9px 1px; border-radius: var(--r-sm); background: var(--info-bg); color: var(--ink-2); }
.tag a { color: inherit; text-decoration: none; }
.tag-quiet { background: var(--rule-soft); color: var(--slate); }
.tag-mode { background: #EDE7FB; color: #4B2E9A; }
.tag-deadline { background: var(--warn-bg); color: #7A5600; }
.tag-featured { background: var(--signal); color: var(--ink); }

.empty { text-align: center; padding: 48px 20px; }
.empty h2, .empty h3 { font-size: 22px; }
.empty p { color: var(--slate); max-width: 48ch; margin: 0 auto 20px; }
.empty-sm { color: var(--slate); padding: 12px 0; margin: 0; }

.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 32px 0 0; }
.pager a, .pager span { min-width: 40px; padding: 9px 12px 7px; text-align: center; border: 1px solid var(--rule); border-radius: var(--r-sm); background: var(--white); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; }
.pager a:hover { border-color: var(--ink-3); }
.pager [aria-current] { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* Event page ------------------------------------------------------------ */
.event-head { background: var(--ink); color: var(--white); padding: 28px 0 48px; }
.event-head .crumbs a, .event-head .crumbs li { color: #9AA6C2; }
.event-head .crumbs [aria-current] { color: #DCE3F2; }
.event-kicker a { color: inherit; }
.event-head .crumbs a:hover { color: var(--white); }
.event-head-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(340px, 26vw, 420px); gap: 48px; align-items: start; margin-top: 12px; }
.event-kicker { color: var(--signal); font-weight: 700; margin-bottom: 10px; }
.event-head h1 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -0.025em; line-height: 1.06; }
.event-lede { font-family: var(--serif); font-size: 20px; line-height: 1.5; color: #D3DAEA; max-width: 60ch; }
.event-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.ticket { background: var(--white); color: var(--ink); border-radius: var(--r-lg); position: relative; overflow: hidden; }
.ticket-date { background: var(--signal); padding: 18px 22px 14px; display: flex; align-items: baseline; gap: 12px; }
.t-day { font-size: 56px; font-weight: 800; line-height: .9; }
.t-mon { font-size: 18px; font-weight: 700; }
.ticket-facts { margin: 0; padding: 16px 22px 6px; }
.ticket-facts div { display: grid; grid-template-columns: 96px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--rule-soft); }
.ticket-facts div:last-child { border-bottom: 0; }
.ticket-facts dt { color: var(--slate); font-size: 14px; }
.ticket-facts dd { margin: 0; font-weight: 600; font-size: 15px; }
.ticket-tear { height: 0; border-top: 2px dashed var(--rule); margin: 6px 0 0; position: relative; }
.ticket-tear::before, .ticket-tear::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); }
.ticket-tear::before { left: -11px; }
.ticket-tear::after { right: -11px; }
.ticket-links { display: flex; justify-content: space-between; padding: 14px 22px 16px; font-weight: 700; font-size: 15px; }

.event-body-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 24vw, 400px); gap: 48px; padding-top: 40px; padding-bottom: 48px; }
.event-figure { margin: 0 0 32px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--rule); background: var(--white); }
.event-figure img { width: 100%; max-height: 460px; object-fit: cover; }
.event-main h2 { font-size: 22px; margin-top: 8px; }
.prose { font-family: var(--serif); font-size: 18px; line-height: 1.7; max-width: 68ch; margin-bottom: 32px; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { font-family: var(--sans); font-size: 22px; margin-top: 1.6em; }
.prose a { word-break: break-word; }
.disclaimer { font-size: 14px; color: var(--slate); border-top: 1px solid var(--rule); padding-top: 16px; }
.related { padding-bottom: 64px; }

/* Directory pages ------------------------------------------------------- */
.country-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.country-grid a { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 14px 16px 12px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-md); text-decoration: none; color: var(--ink); }
.country-grid a:hover { border-color: var(--ink); }
.country-grid .flag { grid-row: span 2; font-size: 28px; }
.cg-name { font-weight: 700; }
.cg-n { font-size: 14px; color: var(--route); font-weight: 600; }
.country-grid a.is-empty .cg-n { color: #A2AABB; }
.topic-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.topic-cards a { display: flex; flex-direction: column; height: 100%; padding: 20px; background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--ink); border-radius: var(--r-md); text-decoration: none; color: var(--ink); }
.topic-cards a:hover { border-top-color: var(--signal); }
.tc-name { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.tc-desc { color: var(--slate); font-size: 15px; flex: 1; }
.tc-n { margin-top: 14px; font-weight: 700; color: var(--route); font-size: 14px; }

/* Submit / auth / static ------------------------------------------------ */
.submit-hero { background: var(--signal); padding: 56px 0 48px; }
.submit-hero h1 { font-size: clamp(32px, 4.5vw, 52px); letter-spacing: -0.03em; }
.submit-hero .lead { color: var(--ink-2); }
.url-box-lg { margin-top: 28px; }
.url-box-lg input { font-size: 18px; padding: 14px 16px 12px; border-color: var(--ink); }
.submit-hero .btn-signal { background: var(--ink); border-color: var(--ink); color: var(--white); }
.submit-hero a { color: var(--ink); }
.h-sm { font-size: 22px; margin-top: 8px; }
.steps { padding: 0; margin: 0 0 32px; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 52px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -4px; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--signal); font-weight: 800; display: grid; place-items: center; font-size: 17px; padding-top: 3px; }
.search-inline { display: flex; gap: 8px; margin: 24px 0; }
.auth { padding: 56px 16px 80px; display: flex; justify-content: center; }
.auth-card { width: 100%; max-width: 440px; background: var(--white); border: 1px solid var(--rule); border-top: 5px solid var(--signal); border-radius: var(--r-md); padding: 32px; }
.auth-card h1 { font-size: 28px; }
.auth-links { margin: 16px 0 0; font-size: 15px; }
.auth-alt { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--rule-soft); font-size: 15px; }
.prose-page .prose h2 { font-size: 20px; }

/* Footer --------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #B7C2DC; padding-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 40px; padding-bottom: 40px; }
.footer-about p { font-size: 15px; max-width: 44ch; margin-top: 14px; }
.site-footer h2 { color: var(--white); font-size: 15px; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #B7C2DC; text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.subscribe { margin-top: 20px; }
.subscribe label { display: block; color: var(--white); font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.subscribe input { background: var(--ink-2); border-color: var(--ink-3); color: var(--white); }
.subscribe input::placeholder { color: #7F8CAD; }
.footer-base { border-top: 1px solid var(--ink-2); padding-top: 18px; padding-bottom: 28px; font-size: 13px; color: #7F8CAD; }

/* Panel (organizer + admin) -------------------------------------------- */
.panel-body { background: var(--paper); }
.panel { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(90deg, var(--ink) 248px, transparent 248px); }
.panel-side { background: var(--ink); color: #B7C2DC; padding: 20px 14px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.panel-side .logo { padding: 4px 8px 20px; }
.panel-side .logo-text { font-size: 19px; }
.side-label { font-size: 12px; font-weight: 700; color: #6F7EA3; margin: 14px 10px 6px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; justify-content: space-between; align-items: center; color: #CDD5E6; text-decoration: none; padding: 9px 10px 7px; border-radius: var(--r-sm); font-weight: 600; font-size: 15px; }
.side-nav a:hover { background: var(--ink-2); color: var(--white); }
.side-nav a[aria-current] { background: var(--ink-2); color: var(--white); box-shadow: inset 3px 0 0 var(--signal); }
.badge { background: var(--signal); color: var(--ink); font-size: 12px; border-radius: 999px; padding: 2px 8px 0; font-weight: 800; }
.side-foot { margin-top: auto; padding: 16px 10px 4px; border-top: 1px solid var(--ink-2); display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.side-user { color: var(--white); font-weight: 700; display: flex; flex-direction: column; }
.side-user small { color: #7F8CAD; font-weight: 400; overflow: hidden; text-overflow: ellipsis; }
.side-foot a, .side-foot .linklike { color: #B7C2DC; text-align: left; }
.panel-main { padding: 28px 36px 64px; min-width: 0; }
.panel-top { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.panel-top h1 { font-size: 30px; margin: 0; letter-spacing: -0.02em; }
.panel-toggle { display: none; color: var(--ink); border-color: var(--rule); margin-left: 0; }
.lead-panel { font-size: 17px; color: var(--slate); max-width: 70ch; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 16px 18px 14px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
a.stat:hover { border-color: var(--ink-3); }
.stat b { font-size: 30px; font-weight: 800; line-height: 1.1; }
.stat span { color: var(--slate); font-size: 14px; font-weight: 600; }
.stat-alert { border-left: 4px solid var(--signal); }

.panel-card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 20px 22px; margin-bottom: 24px; min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.card-head h2 { font-size: 18px; margin: 0; }
.card-head a { font-size: 14px; font-weight: 600; }
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.panel-grid-wide { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.panel-grid-mail { grid-template-columns: 340px minmax(0, 1fr); align-items: start; }
.panel-form { max-width: 980px; }
.card-section { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 20px 22px 6px; margin: 0 0 20px; }
.card-section > legend { float: left; width: 100%; font-size: 17px; font-weight: 800; margin-bottom: 14px; }
.card-section > legend + * { clear: both; }
.admin-section { border-left: 4px solid var(--signal); }

.table-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
.data th { text-align: left; font-size: 13px; color: var(--slate); font-weight: 700; padding: 8px 10px; border-bottom: 2px solid var(--rule); white-space: nowrap; }
.data td { padding: 12px 10px 10px; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.data tr:hover td { background: #FAFBFD; }
.data .num { text-align: right; }
.data .cb { width: 32px; }
.data small { display: block; margin-top: 2px; }
.t-strong { font-weight: 700; color: var(--ink); text-decoration: none; }
.t-strong:hover { color: var(--route); text-decoration: underline; }
.t-reason { color: var(--danger); }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions > * { margin-left: 12px; font-size: 14px; }
.row-actions form { display: inline; }
.status { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 9px 1px; border-radius: 999px; white-space: nowrap; }
.status-approved { background: var(--ok-bg); color: var(--ok); }
.status-pending { background: var(--warn-bg); color: #7A5600; }
.status-rejected { background: var(--danger-bg); color: var(--danger); }
.status-draft { background: var(--rule-soft); color: var(--slate); }

.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.toolbar-actions { display: flex; gap: 8px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 4px; }
.tabs a { padding: 7px 12px 5px; border-radius: var(--r-sm); text-decoration: none; color: var(--slate); font-weight: 600; font-size: 14px; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current] { background: var(--ink); color: var(--white); }
.tabs small { opacity: .7; margin-left: 2px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.filter-bar input[type=search] { flex: 1 1 240px; width: auto; }
.filter-bar select { width: auto; flex: 0 1 180px; }
.filter-bar .check { margin: 0 8px; }
.bulk-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.bulk-bar select { width: auto; padding: 6px 10px 4px; font-size: 14px; }

.queue { list-style: none; padding: 0; margin: 0; }
.queue li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule-soft); }
.queue small { display: block; }
.queue-actions { display: flex; gap: 6px; flex: none; }
.queue-actions form { display: inline; }
.mini-list { list-style: none; padding: 0; margin: 0; }
.mini-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule-soft); font-size: 15px; }
.mini-list a { color: var(--ink); font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-list a:hover { color: var(--route); }
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; height: 180px; align-items: end; padding-top: 10px; }
.bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.bar-fill { width: 100%; max-width: 44px; background: var(--ink); border-radius: 3px 3px 0 0; min-height: 2px; }
.bar:last-child .bar-fill { background: var(--signal); }
.bar-n { font-size: 13px; font-weight: 700; }
.bar-l { font-size: 13px; color: var(--slate); }

/* Import panel */
.import-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 8px 32px; align-items: center; background: var(--ink); color: var(--white); border-radius: var(--r-md); padding: 22px 24px; margin-bottom: 24px; }
.import-panel h2 { font-size: 19px; margin-bottom: 4px; color: var(--signal); }
.import-panel p { margin: 0; color: #B7C2DC; font-size: 15px; }
.import-panel input { border-color: var(--ink-3); }
.import-status { grid-column: 1 / -1; }
.import-status .notice { margin: 8px 0 0; color: var(--ink); }
.import-panel.is-loading .btn-signal { opacity: .7; pointer-events: none; }
.import-found { font-size: 14px; color: #B7C2DC; margin-top: 8px; }
.event-form .is-filled { background: #FFFBEA; border-color: var(--signal-deep); transition: background 1.5s; }
.image-row { display: grid; grid-template-columns: 220px 1fr; gap: 20px; }
.image-preview { aspect-ratio: 16 / 9; border-radius: var(--r-sm); background: var(--rule-soft); display: grid; place-items: center; color: var(--slate); font-size: 14px; overflow: hidden; border: 1px solid var(--rule); }
.image-preview img { width: 100%; height: 100%; object-fit: cover; }
.sticky-actions { position: sticky; bottom: 0; background: rgba(245,247,250,.94); backdrop-filter: blur(4px); padding: 14px 0; border-top: 1px solid var(--rule); z-index: 5; }

.inline-edit { display: flex; gap: 6px; align-items: center; }
.inline-edit input { padding: 7px 10px 5px; font-size: 14px; }
.inline-edit input[name=name] { flex: 1 1 40%; font-weight: 700; }
.inline-edit input[name=description] { flex: 1 1 60%; }
.w-num { width: 70px !important; flex: none; }
.danger-zone { max-width: 980px; margin-top: 24px; border: 1px solid #F1B5AE; background: var(--white); border-radius: var(--r-md); padding: 20px 22px; }
.danger-zone h2 { font-size: 17px; color: var(--danger); }
.mono-input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }

.mail-list { list-style: none; padding: 0; margin: -8px -10px; }
.mail-list a { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 10px; border-bottom: 1px solid var(--rule-soft); text-decoration: none; color: var(--ink); border-radius: var(--r-sm); }
.mail-list a:hover, .mail-list .current a { background: var(--info-bg); }
.mail-list span { grid-column: 1 / -1; color: var(--slate); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-list small { color: var(--slate); grid-row: 1; grid-column: 2; }
.mail-list .unread b::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--signal-deep); border-radius: 50%; margin-right: 6px; }

.dialog { border: 0; border-radius: var(--r-md); padding: 24px; width: min(480px, 92vw); box-shadow: 0 24px 60px rgba(22,33,62,.35); }
.dialog::backdrop { background: rgba(22,33,62,.55); }
.dialog h2 { font-size: 20px; }

/* Installer */
.install { background: var(--ink); min-height: 100vh; padding: 40px 16px; }
.install-box { max-width: 640px; margin: 0 auto; background: var(--white); border-radius: var(--r-md); padding: 32px; border-top: 6px solid var(--signal); }
.install-box fieldset { margin-bottom: 20px; border-top: 1px solid var(--rule); padding-top: 16px; }
.install-box legend { font-weight: 800; font-size: 17px; padding-right: 8px; }

/* Page header band ------------------------------------------------------ */
.page-head { background: var(--white); border-bottom: 1px solid var(--rule); padding-block: 26px 30px; position: relative; }
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px;
  background: repeating-linear-gradient(90deg, var(--signal) 0 40px, transparent 40px 54px); }
.page-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 32px; }
.page-head-text { min-width: 0; flex: 1 1 520px; }
.page-head .page-title { margin-bottom: 0; text-wrap: balance; }
.page-desc { font-family: var(--serif); font-size: clamp(17px, 1.3vw, 20px); line-height: 1.5; color: var(--slate); max-width: 70ch; margin: 10px 0 0; text-wrap: pretty; }
.page-meta { margin: 0; color: var(--slate); font-size: 15px; white-space: nowrap; padding-bottom: 4px; }
.page-meta b { color: var(--ink); font-size: 26px; font-weight: 800; margin-right: 4px; }
.page-head .chip-row { margin-top: 18px; }
.page-head-signal { background: var(--signal); border-bottom: 0; padding-block: 32px 40px; }
.page-head-signal::after { background: repeating-linear-gradient(90deg, var(--ink) 0 40px, transparent 40px 54px); }
.page-head-signal .crumbs a, .page-head-signal .page-desc { color: var(--ink-2); }
.page-head-signal .url-box { margin-top: 24px; max-width: 820px; }
.page-head-signal .url-box input { border-color: var(--ink); }
.page-head-signal .url-box a { color: var(--ink); }
.selectable { user-select: all; }


/* SEO, GEO and usability additions ------------------------------------- */
.site-nav a[aria-current]:not(.btn) { color: var(--white); box-shadow: inset 0 -3px 0 var(--signal); border-radius: 0; }
.nav-search { position: relative; margin: 0 6px; }
.nav-search input { width: 190px; background: var(--ink-2); border: 1px solid var(--ink-3); color: var(--white); border-radius: 999px; padding: 8px 34px 6px 14px; font: inherit; font-size: 14px; }
.nav-search input::placeholder { color: #9AA6C2; }
.nav-search input:focus { outline: 2px solid var(--signal); outline-offset: 1px; width: 240px; background: var(--ink); }
.nav-search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 600 12px var(--sans); color: #9AA6C2; border: 1px solid var(--ink-3); border-radius: 4px; padding: 1px 6px 0; pointer-events: none; }
.nav-search input:focus + kbd { display: none; }

.page-meta small { display: block; font-size: 13px; text-align: right; }
.facts { display: flex; flex-wrap: wrap; gap: 0; margin: 20px 0 0; border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--paper); overflow: hidden; }
.facts div { padding: 10px 18px 8px; border-right: 1px solid var(--rule); flex: 0 1 auto; min-width: 0; }
.facts div:last-child { border-right: 0; }
.facts .facts-wide { flex: 1 1 320px; }
.facts dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--slate); }
.facts dd { margin: 2px 0 0; font-weight: 700; font-size: 15px; }
.facts dd a { color: var(--route); }
.facts .muted { font-weight: 400; }
.chip-groups { display: flex; flex-wrap: wrap; gap: 0 48px; }
.chip-groups:empty { display: none; }
.link-chips { margin-top: 14px; min-width: 0; }
.chips-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--slate); margin: 0; }
.link-chips .chip-row { margin-top: 8px; }

.active-filters { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.active-filters a { display: inline-flex; gap: 6px; align-items: center; padding: 5px 12px 3px; border-radius: 999px; background: var(--ink); color: var(--white); text-decoration: none; font-size: 14px; font-weight: 600; }
.active-filters a span { color: #9AA6C2; font-weight: 400; }
.active-filters a b { color: var(--signal); font-size: 16px; line-height: 1; }
.active-filters a:hover { background: var(--ink-3); }
.active-filters a.clear { background: none; color: var(--route); text-decoration: underline; }
.empty-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: none !important; }

.ev-where a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--rule); }
.ev-where a:hover { color: var(--route); border-color: currentColor; }
.ev-rel { font-size: 13px; font-weight: 700; color: var(--ok); background: var(--ok-bg); padding: 1px 8px 0; border-radius: 999px; }
.ev-rel.is-live, .tag-live { background: var(--ok); color: var(--white); }
.tag-soon { background: var(--ok-bg); color: var(--ok); }
.tag a:hover { text-decoration: underline; }

.faq { margin-top: 40px; border-top: 1px solid var(--rule); padding-top: 28px; }
.faq h2 { font-size: 22px; margin-bottom: 8px; }
.faq-summary { font-family: var(--serif); font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 75ch; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 14px 28px 12px 0; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 22px; color: var(--route); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--ink-2); max-width: 75ch; }
.faq-event { margin-top: 32px; }

.summary-box { background: var(--paper); border-left: 4px solid var(--signal); border-radius: 0 var(--r-md) var(--r-md) 0; padding: 16px 20px 6px; margin-bottom: 28px; }
.summary-box h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--slate); margin-bottom: 6px; }
.summary-box p { font-family: var(--serif); font-size: 18px; line-height: 1.55; }
.explore ul { list-style: none; padding: 0; margin: 0; }
.explore li { border-top: 1px solid var(--rule-soft); }
.explore li:first-child { border-top: 0; }
.explore a { display: block; padding: 9px 0 7px; color: var(--route); text-decoration: none; font-weight: 600; }
.explore a::after { content: "\00a0→"; color: var(--slate); }
.explore a:hover { text-decoration: underline; }
.prose a { color: var(--route); }

.action-bar { display: none; }
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 40; background: var(--ink); color: var(--white); text-decoration: none; font-weight: 700; font-size: 14px; padding: 10px 16px 8px; border-radius: 999px; box-shadow: 0 6px 18px rgba(22,33,62,.25); }
.to-top:hover { background: var(--ink-3); }
.to-top[hidden] { display: none; }
:focus-visible { outline: 3px solid var(--route); outline-offset: 2px; }

/* Panel: SEO screen and search preview */
.hint { color: var(--slate); font-size: 14px; margin: 4px 0 12px; }
.plain-list { padding-left: 18px; margin: 0 0 16px; }
.plain-list li { margin-bottom: 6px; }
.check-group { border-top: 1px solid var(--rule-soft); }
.check-group summary { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0 8px; cursor: pointer; font-weight: 600; }
.check-group[disabled] summary { cursor: default; color: var(--slate); }
.check-group b.ok { color: var(--ok); font-size: 13px; }
.check-group ul { margin: 0 0 12px; padding-left: 18px; font-size: 14px; }
.field-more { margin-top: 4px; }
.field-more summary { cursor: pointer; font-weight: 600; color: var(--route); padding: 6px 0; }
.serp { display: grid; gap: 2px; max-width: 620px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--white); font-family: Arial, sans-serif; }
.serp-url { font-size: 13px; color: #4D5156; }
.serp-title { font-size: 20px; color: #1A0DAB; line-height: 1.3; }
.serp-desc { font-size: 14px; color: #4D5156; line-height: 1.5; }
[data-count].is-over { color: var(--danger); font-weight: 700; }
@media (min-width: 1600px) { .featured-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Event rows use the extra width on large screens */
.ev-side { grid-column: 2; min-width: 0; }
@media (min-width: 1280px) {
  .ev-row { grid-template-columns: 76px minmax(0, 1fr) minmax(220px, 26%); column-gap: 32px; }
  .ev-side { grid-column: 3; grid-row: 1; padding-top: 4px; }
  .ev-side .ev-tags { justify-content: flex-end; }
}

/* Admin page headers */
.page-vars { font-size: 14px; margin: -6px 0 12px; }
.page-vars code, .lead-panel code { background: var(--rule-soft); padding: 1px 6px; border-radius: 3px; font-size: 13px; }

/* Responsive ------------------------------------------------------------ */
@media (max-width: 1180px) and (min-width: 861px) { .nav-search { display: none; } }
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { max-width: 16ch; }
  .months { grid-template-columns: repeat(6, 1fr); }
  .months li:nth-child(7) a { border-left: 1px solid var(--rule-soft); }
  .months li:nth-child(n+7) a { border-top: 1px solid var(--rule-soft); }
  .home-grid { grid-template-columns: 1fr; }
  .event-head-grid, .event-body-grid { grid-template-columns: 1fr; }
  .ticket { max-width: 460px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .panel-grid, .panel-grid-wide, .panel-grid-mail { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--ink); flex-direction: column; align-items: stretch; padding: 8px 16px 20px; border-top: 1px solid var(--ink-2); }
  .site-nav.is-open { display: flex; }
  .nav-split { display: none; }
  .site-nav a:not(.btn) { padding: 12px 8px; }
  .site-nav .btn { margin-top: 8px; }
  .nav-search { margin: 8px 0; }
  .nav-search input, .nav-search input:focus { width: 100%; padding-block: 12px 10px; }
  .nav-search kbd { display: none; }
  .site-nav a[aria-current]:not(.btn) { box-shadow: inset 3px 0 0 var(--signal); }
  .list-grid { grid-template-columns: 1fr; gap: 16px; padding-top: 20px; }
  .filters-toggle { display: flex; width: 100%; }
  .filter-form { display: none; position: static; margin-top: 12px; }
  .filter-form.is-open { display: block; }
  .org-grid { grid-template-columns: 1fr; gap: 24px; }
  .featured-list { grid-template-columns: 1fr; }
  .panel { grid-template-columns: 1fr; background: none; }
  .panel-side { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  .panel-side.is-open { transform: none; box-shadow: 0 0 0 100vmax rgba(22,33,62,.5); }
  .panel-toggle { display: inline-block; }
  .panel-main { padding: 20px 16px 48px; }
  .panel-top h1 { font-size: 24px; }
  .import-panel { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --gut: 16px; }
  .hero { padding: 36px 0 48px; }
  .hero-search { grid-template-columns: 1fr; }
  .hero-search .btn { grid-column: 1; grid-row: auto; padding: 16px; }
  .board { padding: 14px 12px 10px; margin: 0 -4px; }
  .board-table th:nth-child(2) { width: 84px; }
  .board-table th:nth-child(1) { width: 60px; }
  .months { grid-template-columns: repeat(4, 1fr); }
  .months li:nth-child(n+5) a { border-top: 1px solid var(--rule-soft); }
  .months li:nth-child(4n+1) a { border-left: 1px solid var(--rule-soft); }
  .topic-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .input-row { flex-direction: column; }
  .ev-row { grid-template-columns: 58px minmax(0, 1fr); gap: 14px; }
  .ev-day { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .image-row { grid-template-columns: 1fr; }
  .search-inline { flex-direction: column; }
  .auth-card { padding: 24px 20px; }
  .ticket-facts div { grid-template-columns: 84px 1fr; }
  .inline-edit { flex-wrap: wrap; }
  .facts div { flex: 1 1 45%; border-right: 0; border-bottom: 1px solid var(--rule); }
  .page-meta small { text-align: left; }
  .action-bar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--rule); box-shadow: 0 -6px 18px rgba(22,33,62,.08); }
  .action-bar .btn { flex: 1; justify-content: center; text-align: center; }
  body:has(.action-bar) .site-footer { padding-bottom: 80px; }
  body:has(.action-bar) .to-top { bottom: 84px; }
  .crumbs [aria-current] { max-width: 24ch; }
  .results-bar { flex-wrap: wrap; }
  .sort-form label { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-header, .site-footer, .event-actions, .ticket-links, .event-side, .related, .action-bar, .to-top, .filters, .faq summary::after { display: none; }
  .event-head { background: none; color: #000; }
}
.panel-form + .panel-grid { margin-top: 32px; }
