/* Franklin County Halloween & Fall Events
   Look: everything is pulled from the banner art. Sunset sky up top, cream paper below,
   chunky outlined lettering in the banner's orange, yellow, green and purple.
   Layout: sky header with the banner, filter card straddling the ridge line, then a day-by-day
   list with the map and planner pinned beside it. On phones those open as full-screen sheets. */
:root {
  --ink: #1c1024;        /* the banner's black outline, warmed toward purple */
  --night: #27114a;      /* top of the sunset sky */
  --dusk: #5e2484;       /* purple cloud band */
  --plum: #5a2382;       /* text-safe purple for links */
  --grape: #b460e4;      /* the "&" */
  --berry: #b8325c;      /* pink cloud band, text-safe */
  --pumpkin: #fc6c00;    /* "HALLOWEEN" */
  --amber: #ffae1a;      /* "FALL" and the sun */
  --lime: #84c060;       /* "EVENTS" */
  --paper: #fff4de;      /* "FRANKLIN COUNTY" cream */
  --card: #fffbf1;
  --away: #ffecc9;
  --lilac: #f2e2fb;
  --muted: #5f5466;
  --rule: #dccfc0;
  --line: 2px solid var(--ink);
  --bar-height: 58px;
  --form-height: 3900px;
  font-size: 16px;
  color-scheme: light;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; background: var(--night); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Archivo, system-ui, sans-serif; line-height: 1.55; }
button, input, select { font: inherit; }
button, a, input, select, summary { touch-action: manipulation; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
a { color: var(--plum); text-underline-offset: 4px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--grape); outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, .footer-mark { font-family: 'Bagel Fat One', Georgia, serif; font-weight: 400; }
h2 { font-size: 2rem; line-height: 1.15; color: var(--ink); margin-bottom: 14px; text-wrap: balance; }
h3 { line-height: 1.25; }
p { margin-bottom: 16px; }
[hidden] { display: none !important; }
input[type=checkbox] { cursor: pointer; }
.wrap { max-width: 1220px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -60px; left: 15px; background: #fff; z-index: 60; padding: 10px; }
.skip-link:focus { top: 10px; }
.eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .12em; line-height: 1.5; margin-bottom: 7px; }

/* Banner-style lettering: bright fill, thick dark outline, hard drop shadow. */
.sticker, .finder h2, .panel-heading h2, .planner h2, .closing h2 {
  color: var(--pumpkin);
  -webkit-text-stroke: 5px var(--ink);
  paint-order: stroke fill;
  text-shadow: 2px 3px 0 var(--ink);
  letter-spacing: .02em;
  line-height: 1.16;
}
.panel-heading h2 { color: var(--lime); -webkit-text-stroke-width: 4px; letter-spacing: .035em; }
.planner h2 { color: var(--grape); -webkit-text-stroke-width: 4px; letter-spacing: .035em; }
.closing h2 { color: var(--amber); }

/* ---------- buttons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; border: var(--line); border-radius: 11px; font-weight: 800; padding: 11px 17px; text-decoration: none; box-shadow: 3px 3px 0 var(--ink); line-height: 1.35; transition: transform .15s, box-shadow .15s; }
.button:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.hot { background: var(--pumpkin); color: var(--ink); }
.dark { background: var(--night); color: var(--paper); }
.plain { background: var(--card); color: var(--ink); }
.full { width: 100%; }
.text-button { border: 0; background: transparent; text-decoration: underline; text-underline-offset: 4px; padding: 10px; font-size: .9rem; font-weight: 600; }

/* ---------- sky header ---------- */
.sky { position: relative; background: linear-gradient(180deg, var(--night) 0%, var(--dusk) 36%, var(--berry) 68%, #f06a2a 92%, var(--amber) 100%); padding-bottom: 118px; overflow: hidden; }
.ridge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 92px; display: block; }
.ridge-far { fill: #2c2468; opacity: .9; }
.ridge-near { fill: var(--paper); }
.title-banner { position: relative; margin: 0; padding-top: 24px; }
.title-banner picture, .title-banner > a { display: block; border: 3px solid var(--ink); border-radius: 16px; overflow: hidden; box-shadow: 5px 6px 0 var(--ink); background: var(--night); }
.title-banner img { display: block; width: 100%; height: auto; }
.guide-summary { position: relative; z-index: 1; display: flex; justify-content: center; gap: 6px 22px; flex-wrap: wrap; width: fit-content; max-width: 100%; margin: 20px auto 0; padding: 7px 20px; border-radius: 99px; background: rgba(28, 16, 36, .78); color: var(--paper); font-size: .9rem; }
.guide-summary b { font-weight: 800; color: var(--amber); font-variant-numeric: tabular-nums; }

/* ---------- filters ---------- */
.finder { position: relative; z-index: 2; border: var(--line); border-radius: 18px; background: var(--card); padding: 26px; box-shadow: 5px 5px 0 var(--ink); margin: -70px 0 32px; scroll-margin-top: 18px; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 17px; }
.section-title h2 { margin-bottom: 0; }
.text-link { font-size: .9rem; font-weight: 700; white-space: nowrap; }
.text-link span { display: inline-flex; min-width: 25px; height: 25px; align-items: center; justify-content: center; border: var(--line); border-radius: 50%; margin-left: 4px; background: var(--amber); color: var(--ink); }
.search-field { display: block; margin-bottom: 16px; }
.search-field span, .filter-fields label, .field-label { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .06em; }
.search-field input, .filter-fields select, .field-label select, .field-label input { display: block; margin-top: 6px; width: 100%; max-width: 100%; font-size: 1rem; font-weight: 500; letter-spacing: 0; min-height: 47px; border: var(--line); border-radius: 9px; padding: 10px 12px; background: #fff; color: var(--ink); }
.filter-fields select, .field-label select { padding-right: 34px; }
.date-presets { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip { border: var(--line); border-radius: 99px; min-height: 40px; padding: 7px 16px; background: var(--paper); font-size: .9rem; font-weight: 700; white-space: nowrap; }
.chip.active { background: var(--pumpkin); color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.chip:hover { box-shadow: 2px 2px 0 var(--ink); }
.filter-toggle { display: none; }
.filter-fields { display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: 16px; }
.filter-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; gap: 10px; }
.check-label { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; }
.check-label input { width: 19px; height: 19px; accent-color: var(--plum); flex-shrink: 0; }

/* ---------- page grid ---------- */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 28px; align-items: start; }
.listings { min-width: 0; }
.results-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: .85rem; }
.results-bar p { font-size: 1rem; font-weight: 800; margin-bottom: 8px; }
.results-bar > span { color: var(--muted); white-space: nowrap; }
.source-note { font-size: .85rem; color: var(--muted); line-height: 1.5; margin-bottom: 10px; }
.submit-note { font-size: .88rem; margin-bottom: 10px; }
.submit-note a { font-weight: 800; }
.past-note { font-size: .85rem; line-height: 1.5; margin-bottom: 8px; padding: 8px 12px; border: 1px dashed var(--ink); border-radius: 9px; background: var(--card); }
.past-note .text-button { padding: 2px 0; font-size: .85rem; color: var(--plum); font-weight: 700; }

/* ---------- day groups ---------- */
.day-group { margin-bottom: 14px; }
.day-heading { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 13px; margin: 0 -6px 14px; padding: 12px 6px 11px; background: var(--paper); border-bottom: 3px solid var(--ink); }
.day-heading h2 { font-size: 1.6rem; margin: 0; flex: 1; min-width: 0; }
.day-heading.today h2 { color: var(--berry); }
.day-count { font-size: .78rem; font-weight: 800; white-space: nowrap; }
.date-stamp { background: var(--amber); border: var(--line); border-radius: 9px; min-width: 50px; text-align: center; padding: 4px 7px; line-height: 1.05; flex-shrink: 0; box-shadow: 2px 2px 0 var(--ink); }
.today .date-stamp { background: var(--pumpkin); }
.date-stamp span { display: block; font-size: .64rem; font-weight: 800; letter-spacing: .05em; }
.date-stamp strong { display: block; font-size: 1.4rem; line-height: 1.1; font-variant-numeric: tabular-nums; }

/* ---------- event cards ---------- */
.event-card { background: var(--card); border: var(--line); border-radius: 15px; margin-bottom: 14px; padding: 20px 22px; position: relative; scroll-margin-top: 80px; overflow-wrap: anywhere; }
.event-card.away { background: var(--away); }
.event-card.selected { box-shadow: 4px 4px 0 var(--pumpkin); }
.saved-card { border-color: var(--plum); box-shadow: 3px 3px 0 var(--grape); }
.card-head { min-width: 0; }
.card-head h3 { font-size: 1.16rem; margin: 0; font-weight: 800; }
.area-tag { font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--plum); margin-bottom: 5px; }
.event-time { font-size: .95rem; font-weight: 800; color: var(--berry); margin-bottom: 3px; font-variant-numeric: tabular-nums; }
.venue { font-size: .93rem; margin: 8px 0 10px; color: var(--muted); line-height: 1.5; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.badge { display: inline-block; border: 1px solid var(--ink); border-radius: 5px; font-size: .73rem; font-weight: 700; line-height: 1.35; padding: 4px 7px; background: var(--paper); }
.badge.free { background: #dcefc9; }
.badge.adult { background: #ecd9f8; }
.event-notes { font-size: .94rem; line-height: 1.55; margin: 12px 0; max-width: 68ch; }
.recurring { font-size: .82rem; color: var(--muted); line-height: 1.45; margin: 10px 0; }
.confirm-note { border-left: 3px solid var(--pumpkin); padding: 3px 0 3px 11px; font-size: .82rem; line-height: 1.45; color: #8a3600; margin: 12px 0; }
.card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 15px; margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--rule); clear: both; }
.card-actions > a, .map-action, .cal-menu summary, .more-button { font-size: .85rem; font-weight: 700; }
.map-action, .more-button { border: 0; background: transparent; text-decoration: underline; text-underline-offset: 4px; color: var(--plum); padding: 4px 0; }
.save-label { margin-left: auto; font-size: .82rem; white-space: nowrap; }

/* Flyer thumbnail: sits at the top right of a card and opens the full flyer. */
.flyer-thumb { float: right; width: 124px; margin: 0 0 12px 18px; padding: 0; border: var(--line); border-radius: 10px; overflow: hidden; background: var(--ink); box-shadow: 3px 3px 0 var(--ink); line-height: 0; transition: transform .15s, box-shadow .15s; }
.flyer-thumb:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.flyer-thumb img { display: block; width: 100%; height: auto; max-height: 190px; object-fit: cover; object-position: top; }
.flyer-thumb span { display: block; padding: 5px 4px; font-size: .68rem; font-weight: 800; letter-spacing: .05em; line-height: 1.3; text-transform: uppercase; color: var(--amber); }
.card-more .flyer-thumb { width: 96px; margin-top: 12px; }
#flyer-dialog { max-width: min(94vw, 640px); }
.flyer-credit { margin: 0; padding: 12px 16px 14px; font-size: .8rem; line-height: 1.45; color: var(--muted); border-top: var(--line); }

/* Add to calendar: a small menu that opens under the link. */
.cal-menu { position: relative; }
.cal-menu summary { list-style: none; cursor: pointer; color: var(--plum); text-decoration: underline; text-underline-offset: 4px; padding: 4px 0; }
.cal-menu summary::-webkit-details-marker { display: none; }
.cal-options { position: absolute; top: calc(100% + 6px); left: 0; z-index: 8; display: grid; min-width: 190px; background: #fff; border: var(--line); border-radius: 10px; box-shadow: 3px 3px 0 var(--ink); overflow: hidden; }
.cal-options a { padding: 11px 14px; font-size: .88rem; font-weight: 700; text-decoration: none; }
.cal-options a + a { border-top: 1px solid var(--rule); }
.cal-options a:hover { background: var(--paper); }

/* Short card for a repeat date of something already listed above. */
.event-card.compact { padding: 13px 18px; }
.compact-row { display: flex; align-items: center; justify-content: space-between; gap: 10px 18px; flex-wrap: wrap; }
.compact-row .card-head { flex: 1 1 260px; }
.compact .card-head h3 { font-size: 1.02rem; }
.repeat-note { font-size: .8rem; color: var(--muted); margin: 4px 0 0; }
.compact-tools { display: flex; align-items: center; gap: 16px; }
.compact-tools .save-label { margin-left: 0; }
.card-more { margin-top: 12px; padding-top: 4px; border-top: 1px solid var(--rule); }

.empty-results { border: var(--line); border-radius: 14px; padding: 35px; text-align: center; background: var(--card); }

/* ---------- sidebar: stays beside the list while it scrolls ---------- */
.sidebar { display: grid; gap: 22px; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 2px 6px 6px 2px; }
.sheet-top { display: none; }
.panel { border: var(--line); border-radius: 16px; background: var(--card); overflow: hidden; }
.sidebar .panel { box-shadow: 3px 3px 0 var(--ink); }
.panel-heading { padding: 23px 23px 0; }
.panel-heading h2 { font-size: 1.75rem; }
.panel-intro { padding: 0 23px; font-size: .85rem; }
.map-frame { height: 230px; background: #e3e2cf; border-top: var(--line); border-bottom: var(--line); }
.map-frame iframe { border: 0; width: 100%; height: 100%; display: block; }
.map-detail { padding: 19px 23px 23px; }
.map-detail h3 { font-size: 1rem; margin-bottom: 8px; }
.map-detail p, .map-detail a { font-size: .82rem; }
.map-detail p { margin-bottom: 10px; color: var(--muted); }
.map-detail a { font-weight: 700; }
.planner { padding: 23px; background: var(--lilac); scroll-margin-top: 16px; }
.planner h2 { font-size: 1.85rem; }
.planner > p:not(.eyebrow) { font-size: .86rem; }
.empty-small { padding: 15px; border: 1px dashed var(--plum); border-radius: 8px; font-size: .85rem; }
.saved-item { display: flex; align-items: flex-start; gap: 10px; padding: 13px 0; border-bottom: 1px solid #d9bfe8; font-size: .83rem; }
.saved-item > div { flex: 1; min-width: 0; }
.saved-item strong, .saved-item span { display: block; }
.saved-item span { font-size: .78rem; color: var(--muted); margin-top: 3px; }
.remove-stop { border: 1px solid var(--ink); border-radius: 5px; background: var(--card); font-size: .75rem; padding: 4px 6px; }
.field-label { margin: 17px 0; }
.planner .button { font-size: .84rem; margin: 5px 0 16px; }
.route-feedback { font-size: .8rem !important; margin-bottom: 0 !important; line-height: 1.5; }
.route-feedback.error { color: #8c1d2f; font-weight: 600; }
.route-feedback a { display: inline-block; margin: 5px 0; font-weight: 800; }

/* ---------- closing call to action: a slice of the night sky ---------- */
.closing { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 26px; margin: 38px 0 40px; padding: 26px 28px; background: linear-gradient(115deg, var(--night) 0%, var(--dusk) 62%, var(--berry) 100%); color: var(--paper); box-shadow: 5px 5px 0 var(--ink); }
.closing .eyebrow { color: var(--amber); }
.closing h2 { margin-bottom: 12px; }
.closing p:last-child { margin-bottom: 0; }
.closing-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.bear-tile { display: block; width: 128px; height: auto; border: 3px solid var(--paper); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); transform: rotate(-3deg); }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: var(--paper); border-top: 3px solid var(--ink); }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 120px; padding-top: 26px; padding-bottom: 34px; }
.footer-mark { font-size: 1.5rem; color: var(--amber); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 2px 2px 0 var(--ink); letter-spacing: .02em; }
.site-footer p, .site-footer a { font-size: .8rem; }
.site-footer p { margin: 0; color: #e6d6ee; }
.site-footer a { color: #c9efab; font-weight: 700; }
.site-footer a:focus-visible { outline-color: var(--amber); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------- dialogs ---------- */
dialog { padding: 0; border: 3px solid var(--ink); border-radius: 15px; max-width: min(90vw, 820px); max-height: 92vh; background: var(--paper); box-shadow: 8px 8px 0 rgba(0, 0, 0, .35); }
dialog::backdrop { background: rgba(28, 12, 44, .82); }
dialog img { display: block; width: 100%; height: auto; }
.dialog-top, .sheet-top { align-items: center; justify-content: space-between; gap: 15px; padding: 14px 16px; position: sticky; top: 0; z-index: 2; background: var(--paper); border-bottom: var(--line); }
.dialog-top { display: flex; }
.dialog-top h2, .sheet-top h2 { font-size: 1.35rem; margin: 0; }
.dialog-top button, .sheet-top button { padding: 7px 13px; border: var(--line); border-radius: 8px; background: #fff; font-weight: 700; }
.mobile-bar { display: none; }

/* ---------- submit page ---------- */
.sky.slim { padding-bottom: 104px; }
.sky.slim .title-banner { max-width: 820px; margin: 0 auto; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; padding: 7px 15px; border: var(--line); border-radius: 99px; background: var(--paper); color: var(--ink); font-size: .88rem; font-weight: 800; text-decoration: none; box-shadow: 2px 2px 0 var(--ink); }
.sky.slim .title-banner { padding-top: 14px; }
.submit-main { max-width: 900px; }
.submit-intro { position: relative; z-index: 2; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 26px; align-items: start; margin: -64px 0 26px; padding: 28px; box-shadow: 5px 5px 0 var(--ink); }
.submit-intro .bear-tile { width: 168px; border-color: var(--ink); margin-top: 4px; }
.submit-intro h1 { font-size: clamp(2.1rem, 6vw, 3.1rem); margin-bottom: 14px; }
.submit-intro p { max-width: 62ch; }
.ready-title { font-size: .78rem; font-weight: 800; letter-spacing: .1em; margin-bottom: 6px; }
.ready-list { margin: 0 0 16px; padding-left: 20px; }
.ready-list li { margin-bottom: 3px; }
.ready-list li::marker { color: var(--pumpkin); }
.deadline { display: inline-block; margin: 0; padding: 8px 13px; border: var(--line); border-radius: 10px; background: var(--amber); font-size: .9rem; font-weight: 700; }
.form-shell { margin-bottom: 40px; box-shadow: 5px 5px 0 var(--ink); background: #fff; }
.form-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 20px; background: var(--card); border-bottom: var(--line); }
.form-top h2 { font-size: 1.4rem; margin: 0; }
.form-top a { font-size: .85rem; font-weight: 700; }
.form-shell iframe { display: block; width: 100%; height: var(--form-height); border: 0; background: #fff; }
.form-shell.sent iframe { height: 520px; }
.form-fallback { margin: 0; padding: 26px 20px; font-size: .95rem; }

/* ---------- tablets ---------- */
@media (max-width: 950px) {
  .content-grid { grid-template-columns: minmax(0, 1fr) 295px; gap: 20px; }
  .closing { grid-template-columns: auto minmax(0, 1fr); }
  .closing-actions { grid-column: 1 / -1; }
  .planner, .panel-heading, .map-detail, .panel-intro { padding-left: 18px; padding-right: 18px; }
  .event-card { padding: 18px; }
}

/* ---------- phones ---------- */
@media (max-width: 740px) {
  :root { --form-height: 4080px; }
  body.sheet-open { overflow: hidden; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .sky { padding-bottom: 92px; }
  .ridge { height: 64px; }
  .title-banner { padding-top: 14px; margin: 0 -6px; }
  .title-banner picture, .title-banner > a { border-radius: 11px; box-shadow: 3px 4px 0 var(--ink); }
  .guide-summary { font-size: .78rem; gap: 2px 14px; margin-top: 14px; padding: 6px 14px; border-radius: 16px; }

  .finder { padding: 16px 15px; margin: -58px 0 22px; box-shadow: 4px 4px 0 var(--ink); }
  .section-title { margin-bottom: 12px; }
  .section-title h2 { font-size: 1.55rem; -webkit-text-stroke-width: 4px; }
  .text-link { display: none; }
  .search-field { margin-bottom: 12px; }
  .search-field span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .search-field input { margin-top: 0; }
  /* Weekend chips sit on one swipeable row. */
  .date-presets { flex-wrap: nowrap; overflow-x: auto; gap: 7px; margin: 0 -15px 10px; padding: 2px 15px 6px; scrollbar-width: none; }
  .date-presets::-webkit-scrollbar { display: none; }
  .chip { font-size: .82rem; padding: 6px 13px; flex-shrink: 0; }
  .filter-toggle { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 6px 0; font-size: .85rem; font-weight: 700; color: var(--plum); text-decoration: underline; text-underline-offset: 4px; }
  .filter-toggle::after { content: '+'; font-weight: 800; text-decoration: none; display: inline-block; }
  .filter-toggle[aria-expanded="true"]::after { content: '−'; }
  .filter-body { display: none; padding-top: 10px; }
  .filter-body.open { display: block; }
  .filter-fields { grid-template-columns: 1fr; gap: 12px; }
  .filter-fields label { font-size: .7rem; }
  .filter-fields select { margin-top: 4px; }
  .check-label { font-size: .85rem; }
  .filter-bottom .text-button { font-size: .85rem; padding-right: 0; }

  .content-grid { display: block; }
  .results-bar p { font-size: .95rem; }
  .results-bar > span { font-size: .75rem; }
  .source-note { font-size: .8rem; }
  .day-heading { margin: 0 -16px 12px; padding: 9px 16px 8px; gap: 10px; }
  .day-heading h2 { font-size: 1.22rem; }
  .date-stamp { min-width: 42px; padding: 3px 5px; }
  .date-stamp strong { font-size: 1.15rem; }
  .date-stamp span { font-size: .58rem; }
  .event-card { padding: 16px; margin-bottom: 12px; }
  .event-card.compact { padding: 12px 14px; }
  .card-head h3 { font-size: 1.08rem; }
  .card-actions { gap: 6px 14px; }
  .card-actions > a, .map-action, .cal-menu summary, .more-button { padding: 7px 0; }
  .save-label { padding: 6px 0; }
  .cal-options a { padding: 13px 14px; }
  .flyer-thumb { width: 88px; margin: 0 0 10px 12px; box-shadow: 2px 2px 0 var(--ink); }
  .flyer-thumb img { max-height: 132px; }
  .flyer-thumb span { font-size: .6rem; padding: 4px 2px; }

  /* The map and planner become full-screen sheets, opened from the bottom bar. */
  .sidebar { display: none; position: fixed; inset: 0; z-index: 50; max-height: none; background: var(--paper); padding: 0 16px calc(24px + env(safe-area-inset-bottom, 0px)); gap: 0; }
  .sidebar.open { display: block; }
  .sidebar .sheet-top { display: flex; margin: 0 -16px 16px; padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
  .sidebar[data-view="map"] .planner, .sidebar[data-view="stops"] .map-panel { display: none; }
  .map-frame { height: min(46vh, 380px); }
  .panel-heading h2, .planner h2 { -webkit-text-stroke-width: 4px; }

  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--night); border-top: 3px solid var(--ink); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .mobile-bar a, .mobile-bar button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: var(--bar-height); border: 0; background: transparent; color: var(--paper); font-size: .9rem; font-weight: 800; text-decoration: none; }
  .mobile-bar > * + * { border-left: 1px solid rgba(255, 244, 222, .25); }
  .mobile-bar span { display: inline-flex; min-width: 23px; height: 23px; align-items: center; justify-content: center; border-radius: 50%; background: var(--amber); color: var(--ink); font-size: .8rem; font-variant-numeric: tabular-nums; }
  .mobile-bar a:focus-visible, .mobile-bar button:focus-visible { outline-color: var(--amber); outline-offset: -5px; }

  .closing { gap: 14px 16px; padding: 20px 18px; margin: 28px 0; align-items: start; }
  .closing h2 { font-size: 1.5rem; -webkit-text-stroke-width: 4px; }
  .bear-tile { width: 76px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; gap: 12px; }
  .has-bar .site-footer .wrap { padding-bottom: calc(30px + var(--bar-height) + env(safe-area-inset-bottom, 0px)); }
  .dialog-top h2 { font-size: 1.1rem; }

  .sky.slim { padding-bottom: 86px; }
  .submit-intro { display: block; margin-top: -54px; padding: 20px 18px; }
  .submit-intro .bear-tile { float: right; width: 92px; margin: 2px 0 10px 14px; }
  .submit-intro h1 { -webkit-text-stroke-width: 4px; }
  .form-top { padding: 12px 16px; }
}
@media (max-width: 400px) { :root { --form-height: 4300px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .flyer-thumb { transition: none; }
}

@media print {
  html, body { background: #fff; font-size: 11pt; }
  .sky { background: none; padding-bottom: 0; }
  .ridge, .finder, .sidebar, .closing, .flyer-thumb, .card-actions, .compact-tools, .skip-link, .mobile-bar, .past-note, .submit-note, .site-footer a { display: none !important; }
  .guide-summary { background: none; color: #000; margin: 12px auto; }
  .guide-summary b { color: #000; }
  .content-grid { display: block; }
  .card-more { display: block !important; }
  .day-heading { position: static; break-after: avoid; background: #fff; }
  .event-card { break-inside: avoid; border-width: 1px; box-shadow: none; }
  .wrap { max-width: none; padding: 0; }
  .title-banner picture { border: 0; box-shadow: none; }
  .title-banner img { max-height: 150px; object-fit: contain; }
  .source-note { color: #333; }
  .site-footer { background: none; color: #000; border: 0; }
  .site-footer p { color: #333; }
  .site-footer .wrap { min-height: 0; }
}
