:root {
  color-scheme: light dark;
  --ink: #182821;
  --muted: #52625a;
  --forest: #14352b;
  --deep: #0e291f;
  --lime: #daf58a;
  --paper: #f6f7f2;
  --white: #fff;
  --line: #dbe2d9;
  --soft: #edf3e9;
  font-family: Inter, "Segoe UI", Roboto, system-ui, sans-serif;
  font-size: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
button,input,select,textarea { font: inherit; }
.removal-form, .removal-form label { display: grid; gap: .45rem; }
.removal-form { gap: 1.15rem; margin-top: 1.3rem; }
.removal-form label { font-weight: 650; }
.removal-form select, .removal-form textarea { width: 100%; padding: .7rem; border: 1px solid var(--line); border-radius: .6rem; color: var(--ink); background: var(--white); font-weight: 400; }
.removal-form textarea { resize: vertical; }
.report-page .text-button, .report-page .detail-actions a { align-self: center; }
.report-page .detail-actions { flex-wrap: wrap; align-items: center; }
.report-page h2 { margin-top: 1.75rem; }
.removal-row { border-top: 1px solid var(--line); padding-block: 1rem; }
.removal-row h3 { margin: 0; overflow-wrap: anywhere; }
.removal-note { white-space: pre-wrap; overflow-wrap: anywhere; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
a { color: inherit; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline: 3px solid #547c40; outline-offset: 3px;
}
button,input,select,textarea,a { -webkit-tap-highlight-color: transparent; }
input[type="checkbox"] { accent-color: var(--forest); width: 1rem; height: 1rem; margin: 0; }
svg { vertical-align: middle; flex-shrink: 0; }
.site-header { border-bottom: 1px solid #e1e7de; background: rgba(255,255,255,.94); }
.header-inner { max-width: 1256px; padding: 0 28px; height: 74px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--forest); font-size: 2rem; font-weight: 840; line-height: 1; letter-spacing: -.105em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; color: var(--lime); background: var(--forest); border-radius: 12px; transform: rotate(-5deg); }
.brand-dot { color: #619544; }
nav { display: flex; align-items: center; gap: 26px; }
nav a, nav button { font-size: .91rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.nav-link { padding: .55rem 0; border: 0; background: transparent; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.nav-editor { display: flex; align-items: center; gap: 7px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--forest); background: white; }
.nav-link:hover,.nav-editor:hover { color: #1b4d38; background: var(--soft); }
.container { width: min(1200px, calc(100% - 56px)); margin-inline: auto; }
.hero { overflow: hidden; position: relative; min-height: 354px; margin-top: 25px; isolation: isolate; display: flex; align-items: center; border-radius: 24px; background: var(--forest); color: white; }
.hero-visual { position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, #21392a, #355541); }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #102e23 5%, #102e23 28%, rgba(16,46,35,.93) 40%, rgba(16,46,35,.38) 62%, rgba(16,46,35,.08) 100%); }
.hero-content { padding: 45px 50px 62px; width: min(630px, 83%); }
.hero-area { display: inline-flex; align-items: center; gap: 6px; border-radius: 100px; padding: 6px 10px; background: #274a3b; color: #e6f4de; font-size: .76rem; letter-spacing: .125em; font-weight: 740; }
.hero h1 { font-size: clamp(2.6rem, 6.5vw, 5.05rem); line-height: .99; letter-spacing: -.079em; margin: 15px 0 16px; font-weight: 820; text-wrap: balance; }
.hero h1 span { color: var(--lime); }
.hero p { max-width: 450px; margin: 0; color: #e0e9de; line-height: 1.6; font-size: 1.02rem; }
.searchbar { display: grid; grid-template-columns: 1.65fr 1fr 1.05fr auto; gap: 13px; align-items: end; width: calc(100% - 78px); margin: -27px auto 0; padding: 16px; border: 1px solid var(--line); border-radius: 17px; background: var(--white); box-shadow: 0 12px 28px #122b1d13; position: relative; z-index: 2; }
.searchbar label,.searchbar > div > label { display: block; margin-bottom: 6px; padding-left: 1px; color: #30493b; font-size: .86rem; font-weight: 720; }
.location-control { position: relative; min-width: 0; }
.search-field { display: flex; align-items: center; min-height: 48px; border: 1px solid var(--line); border-radius: 9px; gap: 9px; padding: 0 10px; background: #fafbf8; color: #456151; position: relative; }
.search-field input,.search-field select { width: 100%; min-width: 0; height: 46px; background: transparent; color: var(--ink); border: none; padding: 0; font-size: .95rem; font-weight: 620; }
.search-field input::placeholder { color: #576d61; opacity: 1; }
.search-field select { appearance: none; padding-right: 20px; cursor: pointer; }
.search-field select:disabled { color: #52665b; cursor: default; opacity: 1; }
.select-chevron { position: absolute; right: 10px; pointer-events: none; }
.places-list { background: white; box-shadow: 0 15px 28px #19332820; border: 1px solid var(--line); border-radius: 12px; position: absolute; inset: auto 0; top: calc(100% + 6px); padding: 5px; z-index: 3; max-height: 320px; overflow: auto; min-width: min(280px,80vw); }
.places-list button { width: 100%; text-align: left; display: flex; align-items: center; gap: 8px; padding: 10px 9px; border: none; color: var(--ink); background: white; border-radius: 7px; font-size: .9rem; }
.places-list button:hover,.places-list button[aria-selected="true"] { background: var(--soft); }
.places-list p { font-size: .9rem; padding: 5px 9px; }
.radius-field { gap: 6px; }
.radius-field span { font-size: .85rem; font-weight: 650; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 13px; font-size: .89rem; font-weight: 710; text-decoration: none; border: 1px solid transparent; border-radius: 9px; line-height: 1.24; white-space: nowrap; }
.primary { background: var(--forest); color: white; }
.primary:hover { background: #255340; }
.secondary { color: var(--forest); background: white; border-color: var(--line); }
.secondary:hover,.soft:hover { background: #e3eedf; }
.soft { color: #214e3b; background: #eaf1e6; }
.find-button { min-height: 48px; padding: 0 19px; background: var(--lime); color: var(--deep); border-color: #d2ed7f; }
.find-button:hover { background: #c4e96c; }
.icon-button { display: grid; place-items: center; flex: 0 0 auto; background: transparent; border: none; border-radius: 8px; width: 34px; height: 34px; color: #3d5b4a; }
.icon-button:hover { background: var(--soft); }
.clear-input { width: 26px; }
.date-fields { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 15px; align-items: end; border-top: 1px solid var(--line); padding-top: 12px; }
.searchbar .date-fields label { margin: 0; }
.date-fields input { display: block; margin-top: 6px; }
input[type="date"],input[type="time"],.term-select select { min-height: 42px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: white; }
.text-button { border: none; color: #2d643f; background: transparent; text-decoration: underline; text-underline-offset: 3px; font-size: .9rem; font-weight: 670; padding: 8px 0; }
.text-button:hover { color: #102e22; }
.filter-strip { margin: 25px 0 23px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.quick-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: #374c3f; background: white; border: 1px solid var(--line); border-radius: 100px; padding: 0 12px; min-height: 40px; font-size: .86rem; font-weight: 690; white-space: nowrap; }
.chip:hover { background: var(--soft); }
.chip.selected { color: #142f22; background: #e3eddb; border-color: #9cb69a; }
.quick-filters .chip:first-child.selected { color: white; background: var(--forest); border-color: var(--forest); }
.filter-button { border-radius: 9px; }
.filter-panel { display: grid; grid-template-columns: 1.45fr 1fr 1.1fr; gap: 20px; padding: 20px; margin-top: -10px; margin-bottom: 20px; background: white; border: 1px solid var(--line); border-radius: 13px; }
.filter-panel fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.filter-panel legend { padding: 0; font-weight: 750; margin-bottom: 10px; }
.filter-options { display: flex; flex-wrap: wrap; gap: 9px 14px; }
.filter-options label { display: flex; align-items: center; gap: 6px; font-size: .87rem; line-height: 1.4; }
.filter-panel .text-button { justify-self: start; }
.results { scroll-margin-top: 24px; }
.result-header { display: flex; justify-content: space-between; gap: 10px; align-items: end; margin-bottom: 12px; }
.result-header h2 { margin: 0 0 5px; font-weight: 800; letter-spacing: -.057em; font-size: clamp(1.85rem,4vw,2.55rem); scroll-margin: 14px; }
.result-header h2 span { color: #466953; }
.result-header p { margin: 0; color: var(--muted); font-size: .9rem; }
.sort-control { display: flex; align-items: center; gap: 7px; background: white; padding: 0 8px; min-height: 38px; border: 1px solid var(--line); border-radius: 8px; }
.sort-control select { border: none; background: transparent; color: var(--ink); font-size: .86rem; }
.coverage,.alert,.notice { border-radius: 9px; padding: 10px 13px; font-size: .88rem; line-height: 1.5; }
.coverage { display: flex; align-items: center; gap: 8px; margin: 13px 0; background: #e6eee2; color: #234434; }
.alert { background: #fae6e3; color: #74261e; }
.notice { background: #f5eed8; color: #5d4818; margin: 12px 0; }
.notice.good { color: #194d36; background: #e5f2e7; }
.day-section { margin-bottom: 24px; }
.day-heading { display: flex; align-items: center; gap: 9px; color: #436251; margin: 21px 0 11px; }
.day-heading h3 { font-size: .9rem; font-weight: 760; margin: 0; }
.day-heading h3::first-letter { text-transform: uppercase; }
.day-line { height: 1px; background: var(--line); flex: 1; margin-left: 4px; }
.event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.distance-grid { margin-top: 16px; }
.event-card { display: flex; flex-direction: column; min-width: 0; padding: 15px 15px 12px; border: 1px solid var(--line); background: var(--white); border-radius: 13px; box-shadow: 0 2px 3px #172b1d05; }
.event-card:hover { border-color: #a5b9a7; }
.card-top { display: flex; justify-content: space-between; gap: 6px; align-items: flex-start; min-height: 26px; }
.category,.status { display: inline-flex; align-items: center; gap: 5px; border-radius: 100px; padding: 5px 8px; font-size: .76rem; line-height: 1.2; font-weight: 750; }
.tone-plum { color: #603b82; background: #efe8f8; }
.tone-rose { color: #843954; background: #f6e9ee; }
.tone-sky { color: #25556b; background: #e5f1f6; }
.tone-mint { color: #276042; background: #e4f0e6; }
.tone-sand { color: #775017; background: #f8efd9; }
.card-time { display: inline-flex; align-items: center; gap: 4px; color: #40594a; white-space: nowrap; font-size: .80rem; font-weight: 720; padding: 4px 0; }
.event-card h4 { margin: 11px 0 5px; font-size: 1.19rem; font-weight: 790; letter-spacing: -.03em; line-height: 1.24; }
.event-card h4 button { padding: 0; border: 0; background: transparent; color: inherit; text-align: left; font-weight: inherit; font-size: inherit; letter-spacing: inherit; line-height: inherit; }
.event-card h4 button:hover { color: #38634a; }
.card-place { color: #3c5848; font-size: .86rem; line-height: 1.4; display: flex; gap: 5px; align-items: baseline; margin: 3px 0 0; }
.card-place svg { align-self: flex-start; margin-top: 1px; }
.card-summary { font-size: .9rem; line-height: 1.5; color: #506258; margin: 9px 0 12px; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; row-gap: 5px; font-size: .8rem; color: var(--muted); margin-top: auto; margin-bottom: 11px; }
.price { display: inline-flex; gap: 4px; align-items: center; font-weight: 750; color: #2f493c; }
.free-price { color: #235c38; }
.muted { color: #69756e; }
.card-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid #e6ebe4; padding-top: 10px; }
.card-actions .button { min-height: 36px; }
.card-actions a { display: inline-flex; align-items: center; gap: 5px; color: #355345; text-decoration: none; font-size: .82rem; font-weight: 690; white-space: nowrap; min-height: 36px; }
.card-actions a:hover { text-decoration: underline; text-underline-offset: 3px; }
.status { color: #365e41; background: #edf3e9; }
.status-incomplete,.status-moved { color: #76501c; background: #f8ecd5; }
.status-cancelled { color: #8c2920; background: #fae6e3; }
.cancelled-card { border-color: #e6b5ad; }
.empty { display: grid; justify-items: center; text-align: center; gap: 9px; padding: 29px 16px; border: 1px dashed #b8c8bb; border-radius: 13px; background: #fbfcfa; color: var(--muted); margin-top: 16px; }
.empty h2,.empty h3,.empty p { margin: 0; }
.empty h2,.empty h3 { color: var(--forest); }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 13px; border-top: 1px solid var(--line); padding: 17px 0; margin: 27px 0 12px; }
.site-footer .brand { font-size: 1.45rem; }
.site-footer .brand-mark { width: 30px; height: 30px; border-radius: 9px; }
.site-footer p { font-size: .85rem; color: var(--muted); margin: 0; text-align: center; }
.detail-dialog { border: none; padding: 0; width: min(590px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border-radius: 18px; background: white; color: var(--ink); box-shadow: 0 24px 65px #071e24aa; }
.detail-dialog::backdrop { background: #0a1d17a8; }
.dialog-inner { padding: 28px; position: relative; }
.close-dialog { position: absolute; top: 15px; right: 15px; }
.dialog-inner h2 { margin: 10px 29px 11px 0; font-size: clamp(1.6rem,5vw,2.25rem); letter-spacing: -.053em; line-height: 1.12; }
.dialog-inner p { line-height: 1.55; }
.detail-summary,.source-note { color: var(--muted); }
.detail-facts { background: #f2f5ef; padding: 8px 12px; border-radius: 10px; }
.detail-facts p { display: flex; gap: 8px; align-items: center; margin: 6px 0; font-size: .95rem; }
.detail-facts svg { color: #50725b; }
.detail-status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .8rem; }
.detail-actions,.calendar-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.calendar-actions { border-block: 1px solid var(--line); padding: 7px 0; column-gap: 15px; }
.calendar-actions strong { display: flex; align-items: center; gap: 4px; font-size: .92rem; }
.calendar-actions a { font-size: .88rem; color: #2d643f; text-underline-offset: 3px; font-weight: 670; }
.detail-sources h3 { font-size: 1rem; margin: 13px 0 5px; }
.detail-sources a { display: flex; align-items: center; gap: 6px; font-size: .87rem; padding: 5px 0; color: #355e47; text-underline-offset: 3px; }
.source-note { font-size: .86rem; overflow-wrap: anywhere; }
.term-select { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .9rem; font-weight: 650; }
.editor-page { padding: 25px 0 35px; }
.editor-intro { padding: 27px 26px; margin-bottom: 17px; background: var(--forest); color: white; border-radius: 15px; }
.eyebrow { color: var(--lime); font-size: .86rem; letter-spacing: .07em; }
.editor-intro h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 5px 0; letter-spacing: -.06em; }
.editor-intro p { margin: 0; color: #dfe9df; line-height: 1.48; }
.editor-layout { display: grid; grid-template-columns: minmax(220px, 290px) minmax(0, 1fr); gap: 13px; }
.editor-list-wrapper,.editor-form { align-self: start; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.editor-toolbar { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 10px; }
.editor-search { min-height: 40px; }
.editor-search input { height: 38px; }
.editor-filter { display: grid; gap: 5px; font-size: .83rem; font-weight: 700; margin-block: 9px; }
.editor-filter select,.form-fields input:not([type="checkbox"]),.form-fields select,.form-fields textarea,.source-fields input,.source-fields select { min-width: 0; min-height: 39px; width: 100%; border: 1px solid var(--line); background: #f9fbf8; color: var(--ink); border-radius: 7px; padding: 7px 8px; font-size: .92rem; }
.editor-filter select { min-height: 36px; }
.editor-list { display: grid; gap: 3px; max-height: 540px; overflow: auto; }
.editor-list button { display: grid; gap: 2px; text-align: left; padding: 8px; border: 1px solid transparent; border-radius: 7px; background: white; color: var(--ink); }
.editor-list button:hover,.editor-list .current { border-color: var(--line); background: #edf4e9; }
.editor-list span { color: var(--muted); font-size: .77rem; }
.editor-list strong { font-size: .88rem; }
.editor-list p { color: var(--muted); font-size: .85rem; }
.form-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.form-heading h2,.form-heading h3,.form-heading h4 { margin: 0; }
.form-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 10px; }
.form-fields > label,.source-fields label { display: grid; gap: 4px; font-size: .83rem; font-weight: 670; color: #354e40; }
.form-fields textarea { resize: vertical; }
.form-fields > .wide { grid-column: 1 / -1; }
.form-fields .check,.inline-options label { display: inline-flex; align-items: center; gap: 7px; margin-right: 12px; }
.inline-options { font-size: .89rem; border: 0; padding: 6px 0; margin: 0; }
.inline-options legend { font-weight: 720; margin-bottom: 5px; }
.visibility { padding: 9px; background: #f0f5ec; border-radius: 7px; display: flex; flex-wrap: wrap; gap: 7px; }
.terms-heading { margin: 14px 0 6px; }
.term-box { border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-top: 8px; }
.source-fields { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.6fr) minmax(0,1fr) auto; gap: 7px; align-items: end; margin-top: 6px; }
.form-bottom { justify-content: flex-end; margin-top: 14px; }
@media(max-width: 1020px) {
  .event-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero-visual { background-size: 88% auto; }
}
@media(max-width: 760px) {
  .container { width: calc(100% - 28px); }
  .header-inner { height: 60px; padding: 0 14px; }
  .brand { font-size: 1.75rem; gap: 7px; }
  .brand-mark { width: 33px; height: 33px; }
  nav { gap: 12px; }
  .nav-events { display: none; }
  .hero { margin-top: 12px; min-height: 258px; border-radius: 15px; }
  .hero-content { padding: 24px 18px 37px; width: 100%; }
  .hero-visual { background-size: cover; background-position: center 54%; }
  .hero-visual::after { background: linear-gradient(90deg, rgba(16,46,35,.98) 4%, rgba(16,46,35,.83) 58%, rgba(16,46,35,.55) 100%); }
  .hero h1 { font-size: clamp(2.75rem,10vw,4.2rem); margin: 12px 0; }
  .hero p { max-width: 360px; font-size: .95rem; line-height: 1.44; }
  .searchbar { grid-template-columns: 1fr 1fr; width: calc(100% - 12px); gap: 8px; padding: 10px; margin-top: -16px; border-radius: 12px; }
  .location-control,.find-button { grid-column: 1 / -1; }
  .searchbar .find-button { min-height: 43px; }
  .filter-strip { margin-top: 16px; margin-bottom: 15px; align-items: flex-start; }
  .quick-filters { gap: 5px; }
  .chip { min-height: 39px; padding: 0 9px; font-size: .8rem; }
  .chip svg { width: 14px; }
  .filter-panel { grid-template-columns: 1fr; gap: 14px; padding: 13px; margin-top: 0; }
  .result-header h2 { font-size: 1.72rem; }
  .result-header p { font-size: .83rem; }
  .sort-control { padding: 0 4px; }
  .sort-control select { max-width: 86px; }
  .day-heading { margin: 16px 0 8px; }
  .event-grid { gap: 8px; }
  .event-card { padding: 12px 11px 9px; }
  .event-card h4 { font-size: 1.13rem; }
  .site-footer p { font-size: .78rem; }
  .editor-page { padding-top: 12px; }
  .editor-intro { padding: 14px; }
  .editor-layout { grid-template-columns: minmax(0,1fr); }
  .editor-list { max-height: 215px; }
}
@media(max-width: 525px) {
  .event-grid { grid-template-columns: 1fr; }
  .results { margin-top: 0; }
  .card-actions .button,.card-actions a { min-height: 40px; }
  .dialog-inner { padding: 18px; }
  .source-fields { grid-template-columns: 1fr 1fr; }
  .source-fields label:nth-child(2) { grid-row: 2; grid-column: 1 / -1; }
  .nav-link,.nav-editor { font-size: .83rem; }
}
@media(prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.nav-family { display:inline-flex; align-items:center; gap:6px; }
.hero { min-height:205px; }
.hero-content { padding:34px 45px 48px; }
.hero h1 { margin:9px 0 0; font-size:clamp(3.1rem,6.1vw,4.8rem); }
.hero-area { padding:0; border:0; background:none; font-size:.81rem; }
.searchbar { grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) auto; margin-bottom:24px; }
.distance-control,.date-fields { grid-column:1 / -1; }
.searchbar .distance-control { max-width:360px; width:100%; }
.filters-trigger { height:48px; color:#f7faf4; background:var(--forest); border:none; padding:0 22px; }
.filters-trigger.on { background:#386147; }
.filter-panel { margin:0 0 22px; }
.word-filter { grid-column:1 / -1; font-size:.91rem; font-weight:650; display:grid; gap:5px; }
.word-filter input { border:1px solid var(--line); border-radius:8px; padding:9px 12px; }
.term-count { color:var(--muted); font-size:.86rem; }
.show-more { display:flex; margin:18px auto; }
.family-page { padding-block:26px; }
.family-page h1 { font-size:clamp(2.4rem,6vw,4.1rem); letter-spacing:-.07em; margin:8px 0; }
.family-intro { color:var(--muted); max-width:52rem; line-height:1.6; }
.family-date,.family-links a { display:inline-flex; align-items:center; gap:8px; }
.family-date { margin:0 0 20px; font-weight:700; }
.family-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr)); gap:15px; }
.family-grid h2 { letter-spacing:-.045em; margin:9px 0 0; }
.family-grid p { margin:.42rem 0; line-height:1.48; }
.family-type { font-size:.9rem; font-weight:650; color:#416742; }
.family-hours { background:#eef3e8; border-radius:7px; padding:9px 10px; font-weight:680; }
.family-links { display:flex; gap:4px 14px; flex-wrap:wrap; margin-top:12px; }
.family-links a { color:#27533b; min-height:38px; font-size:.9rem; }
.status-soldout { background:#fff0d4; color:#74451b; }
.card-actions a, .card-actions .button { min-height:44px; }
.event-card h4 button { text-align:left; }
@media (max-width:760px) {
  .hero { min-height:128px; margin-top:10px; }
  .hero-content { padding:18px 18px 26px; }
  .hero h1 { font-size:clamp(2.45rem,10vw,3.6rem); margin:4px 0 6px; }
  .hero-area { font-size:.75rem; }
  .searchbar { width:100%; margin:10px 0 15px; padding:9px; gap:7px; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) auto; }
  .location-control { grid-column:auto; }
  .searchbar .search-field { padding:0 6px; gap:4px; min-height:44px; }
  .search-field input,.search-field select { min-width:0; width:100%; }
  .filters-trigger { font-size:.88rem; height:45px; padding:0 9px; gap:4px; }
  .nav-editor { padding:8px; } .nav-editor span,.nav-link span { display:none; }
  .searchbar .select-chevron { right:3px; width:12px; }
  .places-list { min-width:min(83vw,340px); }
}
@media(max-width:390px) {
 .searchbar .period-control .search-field>svg:first-child { display:none; }
 .filters-trigger { padding:0 7px; } .header-inner nav { gap:10px; }
}
.town-options {display:grid;position:absolute;z-index:2;max-height:230px;overflow-y:auto;background:white;border:1px solid #d9d9d0;border-radius:12px}
.town-options button {padding:.55rem .75rem;text-align:left;background:white}
.coverage-page {padding-block:36px 70px}
.coverage-page table {border-collapse:collapse;width:100%;margin:1rem 0}
.coverage-page th,.coverage-page td {text-align:left;padding:9px 10px;border-bottom:1px solid #d9d9d0}
.coverage-page thead{color:#12483a;background:#edf3e9}
.coverage-scroll{overflow:auto}.coverage-page h1 {font-size:clamp(2rem,5vw,4rem)}.coverage-page p{max-width:70ch}

.visitor-quick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -11px 0 17px; }
.visitor-quick .chip { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; color: var(--forest); }
.visitor-quick .chip[aria-pressed="true"] { background: var(--forest); color: white; border-color: var(--forest); }
@media (max-width: 600px) { .visitor-quick { margin: -3px 0 12px; } }

.family-search { display:grid; grid-template-columns:minmax(210px,1.5fr) minmax(155px,1fr) minmax(165px,1fr) minmax(110px,.72fr); align-items:end; gap:12px; margin:18px 0 14px; }
.family-search > div { min-width:0; }
.family-search label { display:block; font-size:.9rem; font-weight:690; margin-bottom:5px; }
.family-search .place-control { position:relative; }
.family-search .search-field { min-height:46px; }
.family-search .search-field input { border:0; background:transparent; min-width:0; width:100%; min-height:42px; padding:0; }
.family-search .places-list { z-index:20; }
.family-search .places-list button { min-height:43px; }
.family-top,.family-distance { display:flex; gap:7px; align-items:center; }
.family-top { justify-content:space-between; }
.family-distance { color:var(--forest); font-size:.84rem; white-space:nowrap; font-weight:700; }
.family-card .venue-address { color:var(--muted); font-size:.9rem; }
.family-result-summary { color:var(--forest); font-weight:690; margin:16px 0; }
.family-method { margin:-5px 0 18px; color:var(--muted); font-size:.88rem; line-height:1.55; }
.family-method a { color:var(--forest); }
.family-details { margin:5px 0 8px; }
.family-details summary { color:var(--forest); font-weight:650; cursor:pointer; padding:8px 0; }
.family-actions { margin-top:auto; padding-top:7px; }
.family-actions a { display:inline-flex; align-items:center; gap:4px; }
@media(max-width:850px) { .family-search {grid-template-columns:repeat(2,minmax(0,1fr));} }
@media(max-width:440px) { .family-search {column-gap:8px;} .family-search .place-control {grid-column:1/-1;} .family-day {grid-column:1/-1;} .family-card .family-top {flex-wrap:wrap;} }

.search-shell { position:relative; z-index:2; width:calc(100% - 78px); margin:-27px auto 22px; background:var(--white); border:1px solid var(--line); border-radius:17px; box-shadow:0 10px 24px #122b1d12; }
.search-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:46px; padding:3px 14px; }
.search-summary { min-width:0; color:var(--muted); font-size:.9rem; line-height:1.45; overflow-wrap:anywhere; }
.compact .search-summary { font-weight:680; color:var(--ink); }
.collapse-search,.locate-button { border:0; background:transparent; color:var(--forest); font-weight:680; display:inline-flex; align-items:center; justify-content:center; gap:6px; white-space:nowrap; border-radius:8px; }
.collapse-search { min-height:44px; padding:4px 7px; font-size:.9rem; flex-shrink:0; }
.collapse-search[aria-expanded="true"] svg:last-child { transform:rotate(180deg); }
.collapse-search:hover,.locate-button:hover { background:var(--soft); }
.search-shell [hidden] { display:none !important; }
.search-shell .searchbar { padding:2px 14px 14px; width:100%; margin:0; background:transparent; box-shadow:none; border:none; border-radius:0; }
.place-label { display:flex; justify-content:space-between; align-items:center; gap:6px; }
.search-shell .place-label label { margin:0; }
.locate-button { min-height:36px; font-size:.88rem; padding:3px 6px; }
.place-label + .search-field { margin-top:1px; }
.location-message { font-size:.87rem; line-height:1.45; color:var(--muted); margin:7px 0 0; }
.search-shell .visitor-quick { margin:0; padding:0 14px 12px; }
.search-shell .filter-panel { border:0; border-top:1px solid var(--line); margin:0; border-radius:0 0 17px 17px; }
.family-page .search-shell { margin:14px 0; width:100%; }
.search-shell .family-search { margin:0; padding:1px 14px 14px; }
.time-badge { align-self:flex-start; display:inline-flex; width:fit-content; margin:9px 0 0; border-radius:6px; padding:4px 8px; color:#214c38; background:#e4f0e5; font-size:.85rem; line-height:1.35; font-weight:720; }
.dialog-inner .time-badge { display:inline-flex; margin:0 8px 8px 0; }
.phase-ended,.phase-started { color:var(--ended-ink); background:var(--ended-badge); }
.ended-card,.ended-detail { background:var(--ended-surface); border-color:var(--ended-line); }
.ended-card h4,.ended-detail h2 { color:var(--ended-title); }
.ended-card .category,.ended-detail .category,.ended-card .soft,.ended-card .price { color:var(--ended-ink); }
.ended-card .category,.ended-detail .category,.ended-card .soft { background:var(--ended-badge); }
.next-visit { display:block; margin-bottom:6px; }
:root { --ended-surface:#eef0ef; --ended-line:#c7cdc9; --ended-badge:#dce1de; --ended-ink:#48514d; --ended-title:#4e5652; }
@media(max-width:760px) {
  .search-shell { width:100%; margin:10px 0 16px; }
  .search-toolbar { padding:2px 8px; }
  .search-shell .searchbar { grid-template-columns:minmax(0,1fr) auto; gap:8px; padding:0 10px 10px; }
  .search-shell .location-control { grid-column:1 / -1; }
  .search-shell .visitor-quick { padding:0 10px 10px; }
  .search-shell .family-search { padding:0 10px 10px; }
  .search-shell .filter-panel { grid-template-columns:1fr; }
  .locate-button { min-height:44px; }
}
@media (prefers-color-scheme: dark) {
  :root { color-scheme:dark; --paper:#111916; --white:#1b2520; --ink:#f0f5f0; --muted:#b5c3ba; --forest:#bdddc1; --deep:#102319; --soft:#2c3b32; --line:#48574e; --lime:#daf58a; --ended-surface:#242826; --ended-line:#555e58; --ended-badge:#373d39; --ended-ink:#d3d9d5; --ended-title:#c3ccc6; }
  button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible { outline-color:#c8ed93; }
  input[type="checkbox"] { accent-color:#a6d9a8; }
  .site-header { background:var(--paper); border-color:var(--line); }
  .brand-mark,.hero,.editor-intro { background:#173b2c; }
  .hero-visual::after { background:linear-gradient(90deg,#10251c 5%,#102b21 30%,#102d23db 48%,#112a2166 75%,#10241c40 100%); }
  .nav-link:hover,.nav-editor:hover,.text-button:hover,.event-card h4 button:hover { color:#e4f7d8; }
  .nav-editor,.places-list,.places-list button,.filter-panel,.sort-control,.secondary,.detail-dialog,.editor-list-wrapper,.editor-form,.editor-list button,.town-options,.town-options button,.chip { background:var(--white); color:var(--ink); border-color:var(--line); }
  .places-list button:hover,.places-list button[aria-selected="true"],.secondary:hover,.soft:hover,.chip:hover,.editor-list button:hover,.editor-list .current { background:var(--soft); }
  .search-field,.word-filter input,input[type="date"],input[type="time"],.term-select select,.editor-filter select,.form-fields input:not([type="checkbox"]),.form-fields select,.form-fields textarea,.source-fields input,.source-fields select { background:#17211b; border-color:var(--line); color:var(--ink); }
  select option { color:var(--ink); background:var(--white); }
  .search-field input::placeholder,.word-filter input::placeholder,.search-field select:disabled { color:#aab8ad; }
  .searchbar label,.searchbar > div > label,.search-field,.icon-button,.form-fields > label,.source-fields label,.price,.card-time,.card-place,.card-summary,.day-heading { color:var(--muted); }
  .muted { color:#aab7af; }
  .filters-trigger,.primary,.quick-filters .chip:first-child.selected,.visitor-quick .chip[aria-pressed="true"] { background:#bad8b9; border-color:#bad8b9; color:#14291c; }
  .filters-trigger.on,.primary:hover { background:#d0e7c7; color:#14291c; }
  .soft,.coverage,.visibility,.detail-facts,.family-hours,.status,.chip.selected,.coverage-page thead { background:#2b3c30; color:#d5e8d5; }
  .result-header h2 span,.text-button,.detail-facts svg,.calendar-actions a,.detail-sources a,.family-type,.family-links a,.card-actions a,.free-price { color:#bcdac0; }
  .time-badge.phase-running,.notice.good { color:#c7eccc; background:#294631; }
  .notice,.status-incomplete,.status-moved,.status-soldout { color:#f5dcad; background:#463922; }
  .alert,.status-cancelled { color:#ffd0c9; background:#492c29; }
  .cancelled-card { border-color:#815751; }
  .tone-plum { color:#e1c8f4; background:#40334a; } .tone-rose { color:#f6cbdb; background:#4a313c; }
  .tone-sky { color:#c5e5f4; background:#273e49; } .tone-mint { color:#c8e9d8; background:#294136; }
  .tone-sand { color:#f1ddad; background:#463b28; }
  .card-actions,.coverage-page th,.coverage-page td { border-color:var(--line); }
  .empty { color:var(--muted); background:#17221a; border-color:#526456; }
  .detail-dialog::backdrop { background:#050b08bd; }
  .ended-detail,.ended-card { background:var(--ended-surface); border-color:var(--ended-line); }
}


/* Shorter first screen and a consistent reading order for both event views. */
.active-view { font-weight:760; color:var(--forest); text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:6px; }
.header-inner nav > a, .header-inner nav > button { min-height:44px; display:inline-flex; align-items:center; }
.hero { min-height:145px; }
.hero-content { padding:18px 34px 32px; }
.hero h1 { font-size:clamp(2.4rem,4vw,3.8rem); }
.day-heading { position:sticky; top:0; z-index:1; background:var(--paper); padding:8px 0; margin-bottom:5px; }
.card-top { align-items:center; gap:8px; flex-wrap:wrap; }
.card-time { font-variant-numeric:tabular-nums; color:var(--forest); font-size:.97rem; }
.event-card h4 { margin:2px 0; }
.event-card h4 button { min-height:44px; }
.card-meta { align-items:center; }
.card-meta .time-badge { margin:0; }
.admission-note { font-weight:700; }
.empty-actions,.term-sharing,.family-days,.share-header { display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; }
.empty-actions { justify-content:center; margin:10px 0; }
.term-sharing { margin:14px 0; }
.share-preview { display:inline-flex; align-items:center; min-height:44px; font-size:.9rem; color:var(--forest); }
.share-feedback { flex-basis:100%; overflow-wrap:anywhere; }
.family-hours > span { display:block; font-size:.875rem; font-weight:500; margin-bottom:2px; }
.family-days { padding:0 12px 12px; }
.family-days .chip { min-height:44px; }
.family-days .chip[aria-pressed="true"] { background:var(--ink); color:var(--paper); }
.shared-term { width:min(42rem,calc(100% - 28px)); margin:1.5rem auto; }
.share-header { justify-content:space-between; margin:0 0 1.5rem; }
.shared-card { background:var(--white); border:1px solid var(--line); padding:clamp(1rem,4vw,2rem); border-radius:18px; }
.shared-card h1 { margin:.6rem 0; line-height:1.1; font-size:clamp(1.85rem,5vw,3rem); overflow-wrap:anywhere; }
.shared-card p { line-height:1.5; }
.shared-date { color:var(--forest); font-weight:750; font-variant-numeric:tabular-nums; }
.shared-card .status { display:inline-flex; margin:6px 0; }
.shared-card.ended-card { background:var(--ended-surface); color:var(--ended-title); }
.shared-card .detail-sources h2 { font-size:1rem; }
@media (max-width:760px) {
  .header-inner { min-height:54px; height:auto; gap:8px; padding:4px 12px; }
  .header-inner nav { gap:10px; }
  .nav-family { font-size:.875rem; white-space:nowrap; }
  .nav-family svg { display:none; }
  .hero { min-height:62px; margin-top:10px; border-radius:12px; }
  .hero-content { padding:9px 16px; }
  .hero h1 { margin:0; font-size:clamp(2rem,7.5vw,2.7rem); }
  .search-shell { margin:9px 0 12px; }
  .results .day-heading { margin-top:9px; }
  .card-actions a,.card-actions .button { min-height:44px; }
}

/* Unified quick choices */
.visitor-quick { display:flex; flex-wrap:wrap; align-items:center; gap:7px; }
.visitor-quick .chip { display:inline-flex; align-items:center; gap:5px; min-height:44px; }
.visitor-quick .chip[aria-pressed="true"] { background:var(--ink); color:var(--paper); border-color:var(--ink); }
@media(max-width:410px) { .visitor-quick .chip { gap:3px; padding-inline:8px; font-size:.875rem; } .visitor-quick .chip svg { width:14px; } }
.catalogue-search { display:flex; align-items:center; gap:9px; min-height:44px; margin:0 14px 10px; padding:0 12px; border:1px solid var(--line); border-radius:9px; color:var(--muted); background:var(--white); }
.catalogue-search input { font:inherit; color:var(--ink); background:transparent; min-width:0; width:100%; min-height:42px; border:none; }
.visit-facts { margin:.6rem 0; display:grid; gap:.3rem; }
.visit-facts div { display:grid; grid-template-columns:5.2rem 1fr; gap:.5rem; }
.visit-facts dt { font-weight:700; color:var(--forest); }
.visit-facts dd { margin:0; overflow-wrap:anywhere; }
.family-events-link { display:inline-flex; align-items:center; min-height:44px; font-weight:700; }
@media(max-width:760px) {
  .hero {min-height:0;}
  .hero-content {padding:6px 14px;}
  .hero h1 {font-size:1.75rem;}
  .search-shell .location-control {grid-column:1/-1;}
  .search-shell .catalogue-search {margin:0 10px 6px;}
  .search-shell .visitor-quick {margin-block:0;padding-bottom:6px;}
  .result-header {margin-bottom:4px;}
  .event-card h4 {overflow-wrap:anywhere;}
}
