/* EscoLocos — palette: rosa mexicano, agave, marigold, indigo ink on bright paper */
:root {
  /* Pulled from the EscoLocos logo: sky, clouds, rolling hills, olive "LOCOS" */
  --paper: #FFFFFF;
  --paper-2: #F1F8FC;          /* pale sky */
  --sky: #C6E9FB;
  --sky-deep: #2A7DB4;
  --hill-light: #C6DF85;
  --grass: #88A201;
  --leaf: #668241;
  --ink: #263022;
  --ink-2: #49543F;
  --muted: #5F6858;
  --line: #E1E7DA;
  --rosa: #56722F;             /* primary action (darkened leaf for readable white text) */
  --rosa-ink: #3F5620;
  --agave: #2A7DB4;
  --marigold: #88A201;
  --marigold-ink: #566800;
  --live: #1F8A4C;
  --focus: #2A7DB4;
  --radius: 10px;
  --display: 'Bricolage Grotesque', 'Arial Narrow', system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.55 var(--body); }
img { max-width: 100%; height: auto; }
a { color: var(--rosa-ink); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 680px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
h1, h2, h3 { font-family: var(--display); font-optical-sizing: auto; margin: 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 44px; padding: .55em 1.1em;
  background: var(--rosa); color: #fff; border: 2px solid var(--rosa); border-radius: 999px; font: 650 1rem/1.1 var(--body);
  text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--rosa-ink); border-color: var(--rosa-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper-2); border-color: var(--ink-2); color: var(--ink); }
.btn-light { background: var(--paper); color: #263022; border-color: var(--paper); }
.btn-light:hover { background: var(--hill-light); border-color: var(--hill-light); color: #263022; }
.btn-big { min-height: 52px; font-size: 1.0625rem; padding-inline: 1.6em; }
.btn-danger { background: transparent; color: #B3261E; border-color: #E8B4B0; }
.btn-danger:hover { background: #B3261E; color: #fff; border-color: #B3261E; }

/* ---------- masthead ---------- */
.masthead { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
.masthead-row { display: flex; align-items: center; gap: 20px; min-height: 84px; }
.brand { display: block; color: inherit; text-decoration: none; flex: none; padding: 6px 0; }
.logo-img { display: block; width: auto; height: 88px; }
.wordmark { font: 800 1.75rem/1 var(--display); font-stretch: 80%; letter-spacing: -0.01em; color: var(--ink); }
.wordmark span { color: var(--leaf); }
.mainnav { display: flex; gap: 2px; margin-inline-start: auto; }
.mainnav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 10px 12px; border-radius: 8px; }
.mainnav a:hover { background: var(--paper-2); }
.mainnav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--grass); border-radius: 0; }
.btn-add { flex: none; }
.langswitch { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 650; font-size: .9375rem; }
.langswitch:hover { border-color: var(--ink-2); background: var(--paper-2); }
.footer .langswitch { color: #fff; border-color: rgba(255,255,255,.3); min-height: 36px; }
.footer .langswitch:hover { background: rgba(255,255,255,.08); }
@media (max-width: 860px) {
  .masthead-row { flex-wrap: wrap; gap: 0 12px; padding-top: 6px; min-height: 0; }
  .logo-img { height: 60px; }
  .masthead .langswitch { margin-inline-start: auto; min-height: 38px; padding: 0 10px; font-size: .875rem; }
  .btn-add { min-height: 40px; padding: .4em .9em; font-size: .9375rem; }
  .mainnav { order: 3; width: 100%; margin: 2px -12px 0; padding: 0 12px; overflow-x: auto; scrollbar-width: none; }
  .mainnav::-webkit-scrollbar { display: none; }
  .mainnav a { white-space: nowrap; padding: 10px 10px; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 40px 0 92px; background: linear-gradient(180deg, var(--sky) 0%, #E6F6FE 70%, #F4FBFF 100%); overflow: hidden; }
.hero > .wrap { position: relative; z-index: 1; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-hills { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 84px; display: block; }
.hero-h { font-size: clamp(2.4rem, 7.2vw, 4.75rem); font-weight: 800; font-stretch: 78%; line-height: .95; letter-spacing: -0.02em; max-width: 14ch; }
.hero-sub { margin: 14px 0 22px; color: var(--ink-2); font-size: 1.125rem; max-width: 46ch; }
.daystrip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin: 0 -2px; scrollbar-width: thin; }
.daystrip a { flex: none; display: grid; justify-items: center; gap: 2px; min-width: 62px; padding: 8px 10px 10px; border: 2px solid #fff; box-shadow: 0 1px 0 rgba(38,48,34,.08);
  border-radius: 12px; text-decoration: none; color: var(--ink); background: var(--paper); }
.daystrip a span { font-size: .8125rem; font-weight: 600; color: var(--muted); }
.daystrip a b { font: 800 1.5rem/1 var(--display); }
.daystrip a:hover { border-color: var(--ink-2); }
.daystrip a[aria-current="date"] { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.daystrip a[aria-current="date"] span { color: #E4F2B5; }
.daystrip .daystrip-more { align-content: center; font-weight: 650; color: var(--rosa-ink); }
.search { display: flex; gap: 8px; margin-top: 14px; max-width: 560px; }
.search input { flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border: 2px solid #fff; border-radius: 999px; font: inherit; background: var(--paper); color: var(--ink); }
.search input:focus { border-color: var(--ink-2); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 35%, transparent); }
.search-inline { margin-top: 16px; }

/* ---------- home layout ---------- */
.home-grid { margin-top: 8px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; padding-bottom: 48px; }
@media (max-width: 860px) { .home-grid { grid-template-columns: 1fr; gap: 28px; } }
.side { position: sticky; top: 16px; }
.hh-box { border: 2px solid var(--ink); border-radius: var(--radius); padding: 18px 18px 14px; background: var(--paper); box-shadow: 5px 5px 0 var(--sky); }
.side-h { font-size: 1.375rem; font-weight: 750; font-stretch: 85%; margin-bottom: 8px; }
.hh-list { list-style: none; margin: 0 0 10px; padding: 0; }
.hh-list a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.hh-list b { font-weight: 650; }
.hh-list span { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.more { font-weight: 650; }

/* ---------- event rows ---------- */
.evlist { list-style: none; margin: 0; padding: 0; }
.ev > a { display: grid; grid-template-columns: 5.6rem minmax(0, 1fr) auto; gap: 4px 16px; align-items: start; padding: 16px 4px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.ev:first-child > a { border-top: 0; }
.ev > a:hover .ev-title { color: var(--rosa-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
.ev-when { display: grid; gap: 2px; }
.ev-day { font-size: .8125rem; font-weight: 650; color: var(--muted); }
.ev-time { font: 750 1.25rem/1.15 var(--display); font-stretch: 85%; font-variant-numeric: tabular-nums; }
.ev-main { display: grid; gap: 3px; }
.ev-title { font-weight: 650; font-size: 1.125rem; line-height: 1.3; }
.evlist-big .ev-title { font-size: 1.25rem; }
.ev-venue { color: var(--ink-2); }
.ev-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: 4px; font-size: .875rem; color: var(--muted); }
.ev-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.is-cancelled .ev-title { text-decoration: line-through; color: var(--muted); }
.tag-cancel { display: inline-block; text-decoration: none; font-size: .75rem; font-weight: 700; color: #fff; background: #B3261E; border-radius: 4px; padding: 1px 6px; vertical-align: 2px; }
@media (max-width: 520px) {
  .ev > a { grid-template-columns: 4.4rem minmax(0, 1fr); }
  .ev-thumb { display: none; }
  .ev-time { font-size: 1.0625rem; }
}

.chip { display: inline-block; font-size: .8125rem; font-weight: 650; padding: 2px 9px; border-radius: 999px; line-height: 1.5; }
.chip-rosa { background: color-mix(in srgb, var(--rosa) 13%, transparent); color: var(--rosa-ink); }
.chip-agave { background: color-mix(in srgb, var(--agave) 14%, transparent); color: var(--agave); }
.chip-marigold { background: color-mix(in srgb, var(--marigold) 22%, transparent); color: var(--marigold-ink); }
.chip-ink { background: color-mix(in srgb, var(--ink) 9%, transparent); color: var(--ink-2); }

/* ---------- day groups ---------- */
.day + .day { margin-top: 12px; }
.day-h { position: sticky; top: 0; z-index: 2; display: flex; align-items: baseline; gap: 10px; padding: 14px 0 8px; background: var(--paper); border-bottom: 3px solid var(--ink); font-size: 1.5rem; font-weight: 800; font-stretch: 82%; }
.day-h small { font: 500 1rem var(--body); color: var(--muted); }
.listwrap { padding-bottom: 56px; }
.later { margin-top: 24px; }
.empty { padding: 28px 0; color: var(--muted); font-size: 1.0625rem; }

/* ---------- lotería cards ---------- */
.cats { background: var(--paper-2); padding: 48px 0 56px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-h { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; font-stretch: 80%; margin-bottom: 20px; letter-spacing: -0.01em; }
.loteria-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
@media (min-width: 1000px) { .loteria-grid { grid-template-columns: repeat(7, 1fr); gap: 14px; } .loteria-grid .lot-name { font-size: 1.1rem; } }
@media (max-width: 520px) {
  .loteria-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .loteria-grid .loteria { padding: 6px 6px 8px; border-width: 2px; }
  .loteria-grid .lot-name { font-size: .95rem; margin-top: 5px; }
  .loteria-grid .lot-sub { display: none; }
  .loteria-grid .lot-num { top: 10px; left: 10px; font-size: .75rem; }
}
.loteria { --c: var(--rosa); position: relative; display: grid; grid-template-rows: 1fr auto auto; aspect-ratio: 5 / 7;
  padding: 9px 9px 12px; background: #FFFFFF; color: #263022; text-decoration: none; text-align: center;
  border: 3px solid #263022; border-radius: 6px; box-shadow: 0 0 0 4px #FFFFFF inset, 0 0 0 5px #263022 inset; transition: transform .15s ease; }
.loteria::before { content: ''; grid-row: 1; grid-column: 1; margin: 6px; border-radius: 3px; background: var(--c); }
.lot-icon { grid-row: 1; grid-column: 1; align-self: center; justify-self: center; width: 58%; height: auto; color: #FFFFFF; z-index: 1; }
.lot-num { position: absolute; top: 14px; left: 14px; z-index: 2; min-width: 1.6em; padding: 0 .3em; font: 800 1rem/1.5 var(--display); background: #FFFFFF; color: #263022; border: 2px solid #263022; border-radius: 4px; }
.lot-name { font: 800 1.3rem/1.05 var(--display); font-stretch: 75%; margin-top: 8px; letter-spacing: -0.005em; }
.lot-sub { font-size: .75rem; color: #5F6858; margin-top: 3px; }
.lot-rosa { --c: #668241; } .lot-agave { --c: #2A7DB4; } .lot-marigold { --c: #88A201; } .lot-ink { --c: #263022; }
a.loteria:hover { transform: rotate(-2deg) translateY(-3px); }
a.loteria:hover .lot-name { color: #3F5620; }
@media (prefers-reduced-motion: reduce) { a.loteria:hover { transform: none; } }
.loteria-static { width: 112px; flex: none; padding: 6px 6px 8px; border-width: 2px; }
.loteria-static .lot-name { font-size: .95rem; margin-top: 4px; }
.loteria-static .lot-num { top: 10px; left: 10px; font-size: .75rem; }

/* ---------- weekend & pitch ---------- */
.wknd { padding: 48px 0; }
.wknd .more { display: inline-block; margin-top: 16px; }
.pitch { background: var(--leaf); color: #fff; padding: 36px 0; }
.pitch-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.pitch p { margin: 0; font: 700 clamp(1.25rem, 3vw, 1.625rem)/1.25 var(--display); font-stretch: 88%; max-width: 32ch; }

/* ---------- page heads ---------- */
.pagehead { padding: 36px 0 18px; }
.pagehead-row { display: flex; gap: 24px; align-items: center; }
.page-h { font-size: clamp(2rem, 5.5vw, 3.5rem); font-weight: 800; font-stretch: 80%; line-height: 1; letter-spacing: -0.015em; }
.page-sub { margin: 10px 0 0; color: var(--ink-2); max-width: 60ch; }
@media (max-width: 520px) { .pagehead-row { align-items: flex-start; gap: 14px; } .pagehead-cat .loteria-static { width: 84px; } .pagehead-cat .lot-name { font-size: .8rem; } }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0 6px; scrollbar-width: thin; }
.chip-link { flex: none; padding: 7px 14px; border: 1.5px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9375rem; }
.chip-link:hover { border-color: var(--ink-2); }
.chip-link.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- happy hour page ---------- */
.hh-table { list-style: none; margin: 0; padding: 0; }
.hh-table a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 14px 4px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.hh-table li:first-child a { border-top: 0; }
.hh-venue { font-weight: 650; font-size: 1.125rem; }
.hh-time { font: 700 1.0625rem var(--display); font-variant-numeric: tabular-nums; text-align: right; }
.hh-deal { grid-column: 1 / -1; color: var(--muted); font-size: .9375rem; }
.is-live .hh-time { color: var(--live); }
.live-dot { font: 700 .75rem var(--body); color: #fff; background: var(--live); border-radius: 999px; padding: 2px 8px; vertical-align: 2px; }

/* ---------- calendar ---------- */
.cal-head { display: flex; align-items: center; gap: 14px; }
.cal-head .btn { min-width: 44px; padding: 0; font-size: 1.5rem; }
.cal-filter { margin-top: 14px; display: flex; gap: 10px; align-items: center; }
.cal-filter select { min-height: 42px; border: 2px solid var(--line); border-radius: 8px; padding: 0 10px; font: inherit; background: var(--paper); color: var(--ink); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 3px solid var(--ink); border-left: 1px solid var(--line); margin-bottom: 56px; }
.cal-dow { padding: 8px 6px; font-weight: 700; font-size: .875rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.cal-cell { min-height: 118px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .8125rem; }
.cal-cell.is-past { background: color-mix(in srgb, var(--paper-2) 60%, transparent); }
.cal-cell.is-past .cal-date, .cal-cell.is-past ul { opacity: .55; }
.cal-date { display: inline-flex; gap: 6px; align-items: center; font: 800 1.125rem var(--display); color: var(--ink); text-decoration: none; padding: 2px 4px; border-radius: 6px; }
.is-today .cal-date { background: var(--rosa); color: #fff; }
.cal-count { display: none; font: 700 .75rem var(--body); color: var(--muted); }
.cal-cell ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 3px; }
.cal-cell li a { display: block; color: var(--ink); text-decoration: none; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; padding-left: 7px; border-left: 3px solid var(--c, var(--rosa)); }
.cal-cell li a:hover { color: var(--rosa-ink); }
.dot-rosa { --c: var(--rosa); } .dot-agave { --c: var(--agave); } .dot-marigold { --c: var(--marigold); } .dot-ink { --c: var(--ink-2); }
.cal-more a { border: 0 !important; color: var(--rosa-ink) !important; font-weight: 650; }
@media (max-width: 700px) {
  .cal-cell { min-height: 64px; padding: 4px 2px; text-align: center; }
  .cal-cell ul { display: none; }
  .cal-date { display: grid; justify-items: center; gap: 0; width: 100%; font-size: 1rem; }
  .cal-count { display: block; color: var(--rosa-ink); }
  .is-today .cal-count { color: #fff; }
  .cal-dow { font-size: .75rem; text-align: center; padding: 6px 2px; }
}

/* ---------- event page ---------- */
.event { padding: 28px 0 64px; }
.crumbs { margin: 0 0 10px; font-weight: 650; }
.event-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 40px; align-items: start; }
@media (max-width: 860px) { .event-grid { grid-template-columns: 1fr; gap: 24px; } .flyer { order: -1; } }
.event-h { font-size: clamp(2rem, 5.5vw, 3.25rem); font-weight: 800; font-stretch: 80%; line-height: 1.02; letter-spacing: -0.015em; }
.facts { margin: 22px 0; display: grid; gap: 14px; }
.facts div { display: grid; grid-template-columns: 4.5rem 1fr; gap: 12px; }
.facts dt { font-weight: 700; color: var(--muted); }
.facts dd { margin: 0; }
.desc { max-width: 64ch; }
.desc p { margin: 0 0 1em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.sub-h { font-size: 1.375rem; font-weight: 750; font-stretch: 85%; margin: 28px 0 10px; }
.moredates { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.moredates a { display: inline-block; padding: 6px 12px; border: 1.5px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; }
.flyer { margin: 0; }
.flyer img { display: block; width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.banner-cancel { background: #B3261E; color: #fff; font-weight: 700; padding: 10px 14px; border-radius: 8px; margin: 0 0 14px; }

/* ---------- venues ---------- */
.venue-list { list-style: none; padding: 0; margin: 0 0 56px; columns: 2 320px; column-gap: 32px; }
.venue-list li { break-inside: avoid; }
.venue-list a { display: grid; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.venue-list b { font-weight: 650; font-size: 1.0625rem; }
.venue-list span { color: var(--muted); font-size: .9375rem; }
.venue-list em { font-style: normal; color: var(--rosa-ink); font-size: .875rem; font-weight: 650; }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; margin: 8px 0 56px; }
.f { display: grid; gap: 6px; min-width: 0; }
.f label, .f legend { font-weight: 650; }
.f small { color: var(--muted); }
.f input:not([type=checkbox]):not([type=file]), .f select, .f textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 8px; font: inherit; background: var(--paper); color: var(--ink); }
.f textarea { resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--ink-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent); }
.f-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 16px; border-radius: 8px; background: var(--paper-2); border-left: 4px solid var(--ink-2); }
.notice h2 { font-size: 1.375rem; margin-bottom: 4px; }
.notice p { margin: 0; }
.notice-ok { border-color: var(--live); }
.notice-err { border-color: #B3261E; }
.prose p { max-width: 64ch; }

/* ---------- footer ---------- */
.footer { background: #263022; color: #DCE3D3; padding: 44px 0 24px; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 2fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.footer-brand { margin: 0; }
.footer-brand .wordmark { color: #fff; font-size: 2rem; } .footer-brand .wordmark span { color: var(--hill-light); }
.footer-line { margin: 8px 0 0; color: var(--hill-light); font-weight: 600; }
.footer-h { font: 750 1.125rem var(--display); color: #fff; margin-bottom: 10px; }
.footer-cats { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 20px; }
.footer-cats li, .footer-links li { padding: 3px 0; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.legal { margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); font-size: .8125rem; color: #AAB4A1; }
/* Spanish times ("6:30 p.m.") need a slightly wider time column */
html[lang="es"] .ev > a { grid-template-columns: 6.6rem minmax(0, 1fr) auto; }
@media (max-width: 520px) { html[lang="es"] .ev > a { grid-template-columns: 5.4rem minmax(0, 1fr); } html[lang="es"] .ev-time { font-size: 1rem; } }

/* Jump-to-day links on the weekend page */
.daynav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.daynav a { display: flex; flex: 1 1 0; flex-direction: column; min-width: 5.5rem; max-width: 11rem; padding: 8px 14px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper); color: var(--ink); text-decoration: none; line-height: 1.25; }
.daynav a:hover { background: var(--sky); }
.daynav b { font-family: var(--display); font-size: 1.1rem; }
.daynav small { color: var(--muted); font-size: 0.85rem; }
.day { scroll-margin-top: 8px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Floating back-to-top button */
.totop { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 50; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: var(--rosa); color: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.25); cursor: pointer; }
.totop[hidden] { display: none; }
.totop:hover { background: var(--rosa-ink); }
@media print { .totop { display: none; } }

/* Screenshots trimmed on display: only the flyer part of the picture shows */
.crop { display: block; position: relative; overflow: hidden; }
.crop > img { position: absolute; max-width: none; border: 0 !important; border-radius: 0 !important; }
.flyer .crop { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.ev-thumb.crop { flex: none; }
