@charset "UTF-8";

@font-face {
  font-family: "After Class Hero";
  src: url("/hero-title.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+3002, U+4E00, U+4E0B, U+4E4B, U+53BB, U+53D1, U+540E, U+65B0, U+70B9, U+73B0, U+8BFE, U+9C9C, U+FF0C;
}

:root {
  color-scheme: light;
  --paper: #fff9ef;
  --card: #fffdf8;
  --ink: #34323d;
  --muted: #625b69;
  --line: #e8dfe0;
  --accent: #b9553e;
  --accent-dark: #a84530;
  --accent-soft: #fae7dc;
  --green: #597468;
  --green-soft: #eaf1e9;
  --lavender-soft: #f0eaf8;
  --blue-soft: #eaf4f8;
  --apricot-soft: #fff0df;
  --paper-shadow: 0 5px 18px #65506b08, 0 1px 2px #65506b06;
  --display-font: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --body-font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background-color: var(--paper); background-image: radial-gradient(ellipse at 88% 4%, #eee4f780, transparent 35%), radial-gradient(ellipse at 3% 37%, #dfedf780, transparent 34%), radial-gradient(#8a6b4f0b .65px, transparent .65px); background-size: auto, auto, 6px 6px; color: var(--ink); font-family: var(--body-font); font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
body[data-art-light="dusk"] { --paper: #fff4e9; --card: #fffaf3; --line: #eadbd9; --accent-soft: #fbe2d4; --lavender-soft: #f1e5f1; --blue-soft: #ebeff6; --apricot-soft: #ffead7; background-image: radial-gradient(ellipse at 86% 4%, #f7d9e38c, transparent 38%), radial-gradient(ellipse at 4% 38%, #f5dfcd80, transparent 34%), radial-gradient(#8a6b4f0b .65px, transparent .65px); }
button, input, select { font: inherit; }
input, select { font-size: 16px; }
button, select { cursor: pointer; }
button { color: inherit; }
a { color: inherit; text-underline-offset: 3px; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease; }
button:disabled { cursor: wait; opacity: .6; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
::selection { background: #f3d3bd; color: var(--ink); }
[hidden] { display: none !important; }
.page-width { width: min(1220px, calc(100% - 80px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 30; top: 12px; left: 12px; padding: 10px 18px; background: var(--ink); color: white; transform: translateY(-150%); border-radius: 6px; }
.skip-link:focus { transform: translateY(0); }

.site-header { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; flex-shrink: 0; }
.brand-mark img { display: block; width: 100%; height: 100%; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 19px; font-weight: 750; letter-spacing: 1px; line-height: 1.3; }
.brand-copy > span { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 1px; }
.location-controls { display: flex; gap: 22px; align-items: center; }
.location-copy { display: grid; gap: 1px; text-align: right; }
.location-kicker { font-size: 13px; color: var(--muted); letter-spacing: .5px; }
.location-copy strong { font-size: 14px; font-weight: 600; }
.location-button { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-shadow: 0 2px 0 #65506b06; font-size: 14px; }
.location-button:hover { background: var(--green-soft); border-color: var(--green); }
.location-button svg { width: 17px; height: 17px; stroke: var(--green); stroke-width: 1.6; }
.origin-reset { min-height: 44px; border: 0; padding: 9px 2px; background: transparent; color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.origin-reset:hover { color: var(--accent-dark); }
.origin-reset:disabled { cursor: default; opacity: .45; }
.origin-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 24px; margin: 0 0 30px; padding: 19px 24px; border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; background: linear-gradient(115deg, var(--blue-soft), var(--card) 72%); box-shadow: var(--paper-shadow); }
.origin-heading h2 { margin: 4px 0 0; font-size: 16px; font-weight: 600; }
.origin-inputs { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; min-width: 0; }
.origin-inputs label { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.origin-inputs select { width: 260px; max-width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--ink); font-size: 16px; }
.origin-panel .location-status { grid-column: 1 / -1; max-width: none; margin: 2px 0 0; font-size: 14px; }
.origin-source { grid-column: 1 / -1; justify-self: start; color: var(--green); font-size: 14px; }

.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: center; padding: 38px 0 32px; }
.hero-copy { min-width: 0; padding-left: 2px; }
.hero-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; letter-spacing: .6px; }
.pilot-badge { display: inline-block; padding: 4px 10px; background: var(--lavender-soft); color: #69517e; border: 1px solid #dfd2eb; font-size: 13px; letter-spacing: 1px; border-radius: 6px 6px 6px 2px; }
h1 { margin: 20px 0 18px; font-family: var(--display-font); font-size: clamp(36px, 4.2vw, 57px); font-weight: 700; letter-spacing: 1px; line-height: 1.3; overflow-wrap: anywhere; }
#hero-title { font-family: "After Class Hero", var(--display-font); }
.accent-word { position: relative; color: var(--accent); white-space: nowrap; }
.accent-word::after { content: ""; position: absolute; height: 5px; left: 0; right: 5px; bottom: -5px; background: #edbc92; border-radius: 50%; transform: rotate(-2deg); }
.hero-description { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.9; }
.location-status { color: var(--muted); font-size: 14px; max-width: 530px; margin: 10px 0 0; }
.hero-art { align-self: stretch; position: relative; min-width: 0; min-height: 320px; height: 320px; display: flex; flex-direction: column; justify-content: center; padding: 0; }

.discovery { padding-top: 25px; border-top: 1px solid var(--line); }
.discovery-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.section-kicker { margin: 0 0 5px; font-size: 11px; color: var(--muted); font-weight: 650; letter-spacing: 1.8px; }
.discovery-heading h2 { margin: 0; font-family: var(--display-font); font-size: 28px; letter-spacing: .5px; line-height: 1.35; }
.curation-note { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); font-size: 13px; padding-bottom: 3px; }
.curation-note > span { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.search-form { display: flex; align-items: center; gap: 13px; min-height: 64px; padding: 6px 7px 6px 20px; border: 1px solid #ded1d3; border-radius: 16px; background: var(--card); box-shadow: 0 4px 0 #e7dce65c, 0 8px 24px #65506b06; }
.search-form:focus-within { border-color: #a48db8; box-shadow: 0 0 0 3px #a48db81a; }
.search-icon { width: 20px; height: 20px; stroke: var(--green); stroke-width: 1.6; flex-shrink: 0; }
.search-form input { flex: 1; width: 0; min-width: 0; border: 0; background: transparent; outline: none; padding: 10px 0; font-size: 16px; color: var(--ink); }
.search-form input::placeholder { color: var(--muted); }
.search-form input:focus-visible { outline: 0; }
.search-button { align-self: stretch; display: flex; align-items: center; justify-content: center; gap: 19px; min-width: 115px; min-height: 44px; padding: 10px 18px; border: 0; border-radius: 11px; background: var(--accent); color: #fffaf1; font-weight: 650; font-size: 16px; }
.search-button:hover { background: var(--accent-dark); }
.search-button > span { font-size: 20px; font-weight: 400; }
.search-support { display: flex; flex-wrap: wrap; gap: 7px 18px; align-items: center; margin: 10px 0 20px; }
.search-support > p { margin: 0; font-size: 14px; color: var(--muted); }
.activity-mode { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.activity-mode > label, .theme-heading > span:first-child { font-size: 15px; font-weight: 650; }
.activity-mode select { min-height: 44px; max-width: 100%; padding: 8px 32px 8px 12px; border: 1px solid #a996ba; border-radius: 8px; background: var(--lavender-soft); color: var(--ink); font-size: 16px; }
.activity-mode > p { flex-basis: 100%; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.theme-picker { width: 100%; padding-top: 7px; }
.theme-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 8px; }
.theme-heading > span:last-child { color: var(--muted); font-size: 13px; }
.preset-list { display: flex; gap: 6px; flex-wrap: wrap; }
.preset-list button { min-height: 44px; border: 1px solid #e3d9eb; border-radius: 20px; background: var(--lavender-soft); color: #62516f; padding: 6px 12px; font-size: 14px; }
.preset-list button:hover { color: var(--accent-dark); border-color: var(--accent); }
.preset-list button[aria-pressed="true"] { border-color: var(--accent-dark); background: var(--accent-dark); color: #fffaf1; font-weight: 650; box-shadow: inset 0 0 0 1px var(--accent-dark); }
.preset-list button[aria-pressed="true"]:hover { background: var(--accent); color: #fffaf1; }

.discovery-layout { display: grid; grid-template-columns: minmax(0, 1fr) 294px; gap: 28px; align-items: start; }
.results-column { min-width: 0; }
.results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; margin-bottom: 11px; }
.results-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.results-title h3 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: .3px; }
#results-count { color: var(--muted); font-size: 14px; }
.catalogue-status { margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: var(--card); font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.results-actions { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.saved-toggle { display: inline-flex; gap: 4px; align-items: center; min-height: 44px; background: transparent; border: 0; padding: 5px 0; font-size: 14px; color: var(--muted); }
.saved-toggle svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.4; }
.saved-toggle:hover, .saved-toggle[aria-pressed="true"] { color: var(--accent-dark); }
.saved-toggle[aria-pressed="true"] svg { fill: var(--accent-soft); }
.sort-label select { min-height: 44px; border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 5px 14px 5px 11px; color: var(--ink); font-size: 16px; background: transparent; max-width: 156px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.active-filters:not(:empty) { margin-bottom: 14px; }
.filter-chip { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; border: 1px solid #d7e2dc; border-radius: 8px; padding: 4px 9px; background: var(--green-soft); color: #4e6e61; font-size: 14px; max-width: 100%; overflow-wrap: anywhere; }
.filter-chip button { min-width: 36px; min-height: 36px; border: 0; background: transparent; padding: 0 3px; color: inherit; line-height: 1; }
button.filter-chip:hover { border-color: var(--green); }
.results-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.activity-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 17px 17px 17px 7px; overflow: hidden; box-shadow: var(--paper-shadow); transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease; }
.activity-card:hover { border-color: #cdbbd7; box-shadow: 0 12px 28px #65506b12, 0 3px 0 #e8dfe5; }
.card-art { position: relative; display: block; width: 100%; height: 132px; flex-shrink: 0; padding: 0; border: 0; border-radius: 0; appearance: none; overflow: hidden; background-color: #e6efdf; background-image: radial-gradient(circle at 77% 27%, #fff1cc 0 24px, transparent 25px), linear-gradient(130deg, transparent 55%, #c4d9c3 56%, #c4d9c3 72%, transparent 73%), linear-gradient(35deg, #d6e6cf 40%, transparent 41%); }
.card-art::before { content: ""; position: absolute; width: 190px; height: 140px; border: 2px dashed #f8f7edb0; border-radius: 45%; top: 15px; left: 20%; transform: rotate(-24deg); }
.card-art::after { content: ""; position: absolute; width: 12px; height: 12px; border: 4px solid #faf8ed; border-radius: 50%; left: 26%; top: 70px; background: #768966; }
.card-art > * { position: relative; z-index: 1; }
[data-category="culture"] .card-art, .card-art[data-category="culture"] { background-color: #f7e3d4; background-image: linear-gradient(90deg, transparent 65%, #dfb9a2 65% 69%, transparent 69% 76%, #dfb9a2 76% 80%, transparent 80%), linear-gradient(150deg, #f9ebdd 50%, #edd0b8 51%); }
[data-category="culture"] .card-art::before { width: 100px; height: 150px; top: 20px; left: 20%; border: 2px solid #fcf8ee; border-radius: 80px 80px 0 0; transform: rotate(8deg); }
[data-category="light"] .card-art, .card-art[data-category="light"] { background-color: #eae3f5; background-image: radial-gradient(ellipse at 67% 100%, #c4addc70 0 45%, transparent 46%), linear-gradient(120deg, #fce7d6 35%, transparent 36%); }
[data-category="light"] .card-art::before { border: 2px solid #f8f3e6; width: 65px; height: 73px; border-radius: 40px 40px 8px 8px; top: 31px; left: 42%; transform: rotate(-12deg); }
[data-category="acgn"] .card-art, .card-art[data-category="acgn"] { background-color: #e8e1f1; background-image: linear-gradient(135deg, transparent 25%, #d1c3e3 25% 50%, transparent 50%), radial-gradient(circle at 80% 80%, #f8eaf3 0 55px, transparent 56px); }
[data-category="acgn"] .card-art::before { width: 65px; height: 65px; border-radius: 12px; border: 2px solid #f8f3e9; transform: rotate(-15deg); top: 30px; left: 40%; }
[data-category="market"] .card-art, .card-art[data-category="market"] { background-color: #f8e7bb; background-image: repeating-linear-gradient(110deg, transparent 0 26px, #e9cc9870 26px 53px); }
[data-category="market"] .card-art::before { width: 83px; height: 63px; border: 2px solid #fcf6e9; border-radius: 8px 8px 22px 22px; top: 34px; left: 38%; transform: rotate(7deg); }
[data-category="food"] .card-art, .card-art[data-category="food"] { background-color: #f9e6d0; background-image: radial-gradient(circle at 76% 28%, #efc195 0 37px, transparent 38px), linear-gradient(135deg, #fff1dd 35%, transparent 36%); }
[data-category="entertainment"] .card-art { background-color: #f2dfe7; background-image: linear-gradient(90deg, #d8a9c160 0 15%, transparent 15% 85%, #d8a9c160 85%), linear-gradient(145deg, #f7e8df 45%, #e7c9dd 46%); }
[data-category="sport"] .card-art { background-color: #dcebe9; background-image: linear-gradient(155deg, #f2f6e9 40%, transparent 41%), linear-gradient(25deg, transparent 60%, #bddad780 61%); }
[data-category="science"] .card-art { background-color: var(--blue-soft); background-image: radial-gradient(ellipse at 78% 30%, var(--apricot-soft) 0 24%, transparent 25%), linear-gradient(135deg, transparent 48%, var(--lavender-soft) 49% 72%, transparent 73%); }
[data-category="science"] .card-art::before { width: 160px; height: 76px; top: 40px; left: 25%; border: 2px solid var(--card); border-radius: 50%; transform: rotate(-24deg); }
.card-art svg { max-width: 100%; max-height: 100%; }
.card-art > svg { display: block; height: 100%; width: 100%; color: var(--green); }
.card-art .art-label { display: inline-block; margin: 13px; padding: 3px 7px; border-radius: 3px; background: #fcf8ecbd; color: var(--ink); font-size: 13px; letter-spacing: .5px; }
.card-body { padding: 20px 20px 17px; display: flex; flex: 1; flex-direction: column; }
.card-eyebrow { margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 13px; color: var(--green); letter-spacing: .5px; }
.card-title { margin: 0 0 10px; font-family: var(--display-font); font-weight: 700; font-size: 21px; line-height: 1.5; letter-spacing: .3px; overflow-wrap: anywhere; }
.card-summary { color: var(--muted); margin: 0 0 16px; font-size: 16px; line-height: 1.8; }
.event-schedule { margin: 0 0 10px; color: var(--ink); font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.card-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 13px; }
.tag { display: inline-block; border: 1px solid #e4dceb; border-radius: 5px; padding: 3px 7px; color: #62536e; background: var(--lavender-soft); font-size: 13px; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.card-meta strong { font-size: 16px; color: var(--ink); font-weight: 650; }
.card-meta svg { width: 15px; height: 15px; vertical-align: middle; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 13px; }
.detail-button { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--accent-dark); background: transparent; border: 0; padding: 6px 0; font-size: 16px; font-weight: 600; }
.detail-button:hover { color: var(--ink); }
.save-button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 44px; min-height: 44px; padding: 6px 9px; background: transparent; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 14px; }
.save-button svg { width: 16px; height: 16px; stroke: currentColor; }
.save-button:hover { border-color: var(--green); background: var(--green-soft); }
.save-button.saved, .save-button[aria-pressed="true"] { color: var(--accent-dark); border-color: #e6b7a2; background: var(--accent-soft); }
.save-button.saved svg { fill: #edc2ad; }

.discovery-sidebar { display: grid; gap: 20px; min-width: 0; padding-top: 2px; }
.filter-panel { border: 1px solid var(--line); border-radius: 17px 7px 17px 17px; padding: 19px; background: linear-gradient(155deg, var(--lavender-soft), var(--card) 75%); box-shadow: var(--paper-shadow); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.panel-heading h3 { font-size: 17px; font-weight: 650; margin: 0; }
.panel-heading > span { color: var(--green); font-size: 20px; line-height: 1; }
.filter-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 9px; }
.filter-fields.filter-primary-fields { grid-template-columns: minmax(0, 1fr); }
.filter-group { min-inline-size: 0; min-width: 0; margin: 0; padding: 0; border: 0; grid-column: 1 / -1; }
.filter-group > legend { margin-bottom: 6px; padding: 0; font-size: 14px; color: var(--muted); }
.filter-refinement, .filter-more { min-width: 0; }
.filter-refinement > summary, .filter-more > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 0; color: var(--muted); font-size: 14px; cursor: pointer; list-style: none; }
.filter-refinement > summary::after, .filter-more > summary::after { content: "+"; margin-left: auto; font-size: 16px; color: var(--green); }
.filter-refinement[open] > summary::after, .filter-more[open] > summary::after { content: "−"; }
.filter-refinement > summary::-webkit-details-marker, .filter-more > summary::-webkit-details-marker { display: none; }
.filter-refinement[open] > .filter-fields, .filter-more[open] > .filter-fields { padding: 3px 0 10px; }
.filter-more { margin-top: 12px; border-top: 1px solid var(--line); }
.filter-more > summary { min-height: 44px; font-size: 15px; color: var(--ink); }
.filter-count { color: var(--green); font-size: 13px; font-weight: 500; }
.filter-field { min-width: 0; }
.budget-preference { margin-top: 12px; }
.filter-field label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--muted); }
.filter-field select { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 4px 8px 8px; background: var(--card); color: var(--ink); font-size: 16px; }
.filter-field select:hover { border-color: #a996ba; }
.planning-field { grid-column: 1 / -1; }
.filter-help { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.checkbox-label { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 12px 0; font-size: 14px; cursor: pointer; }
.checkbox-label input { width: 18px; height: 18px; accent-color: var(--green); margin: 0; }
.checkbox-leaf { color: var(--green); margin-left: auto; font-size: 17px; }
.filter-buttons { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.reset-button { min-height: 44px; border: 0; padding: 9px; color: var(--muted); background: transparent; font-size: 14px; }
.reset-button:hover { color: var(--accent-dark); }
.empty-state { padding: 50px 26px; min-height: 300px; text-align: center; border: 1px dashed #cdbbd7; border-radius: 16px; background: linear-gradient(140deg, var(--lavender-soft), var(--apricot-soft)); }
.empty-illustration { display: block; color: #879974; font-size: 42px; line-height: 1; margin-bottom: 14px; }
.empty-state h3 { font-family: var(--display-font); font-size: 22px; margin: 0 0 10px; }
.empty-state p { color: var(--muted); font-size: 16px; margin: 0 auto 18px; max-width: 350px; }
.secondary-button { min-height: 44px; border: 1px solid #d3c9db; background: var(--card); border-radius: 9px; padding: 9px 16px; font-size: 16px; color: var(--green); }
.secondary-button:hover { background: var(--green-soft); }
.noscript-note { border: 1px solid #dfbb9d; background: #f6e7d3; padding: 18px; border-radius: 8px; }

.site-footer { margin: 40px 0 0; padding: 22px 0 26px; border-top: 1px solid var(--line); display: flex; gap: 20px; align-items: baseline; justify-content: space-between; }
.footer-brand { font-size: 14px; font-weight: 650; white-space: nowrap; }
.footer-brand > span { margin-left: 13px; color: var(--muted); font-size: 13px; font-weight: 400; }
.footer-icp { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 13px; text-decoration: none; }
.footer-icp:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }

.detail-dialog { --dialog-header-height: 71px; --dialog-action-height: 70px; padding: 0; border: 1px solid var(--line); border-radius: 21px; background: var(--card); color: var(--ink); width: min(650px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); box-shadow: 0 30px 100px #42354d38; }
.detail-dialog::backdrop { background: #39304373; backdrop-filter: blur(5px); }
.dialog-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; z-index: 3; padding: 13px 22px; border-bottom: 1px solid var(--line); background: var(--card); }
.dialog-topline > span { color: var(--muted); font-size: 14px; }
.dialog-close { width: 44px; height: 44px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 50%; font-size: 25px; background: var(--apricot-soft); line-height: 1; display: grid; place-items: center; }
.dialog-close:hover { color: var(--accent-dark); background: var(--accent-soft); border-color: #e9c0aa; }
.map-dialog { width: min(780px, calc(100vw - 32px)); }
.map-dialog h2 { margin: 0; font-size: 16px; }
.map-body { padding: 14px 18px 18px; }
.map-body > p { margin: 0 0 10px; font-size: 14px; }
.map-stage { position: relative; isolation: isolate; }
#origin-map { height: min(44dvh, 380px); min-height: 200px; border: 1px solid var(--line); border-radius: 8px; }
.map-crosshair { position: absolute; z-index: 1000; width: 32px; height: 32px; left: calc(50% - 16px); top: calc(50% - 16px); pointer-events: none; color: var(--accent-dark); stroke: currentColor; stroke-width: 2; fill: var(--card); filter: drop-shadow(0 1px 2px #fff); }
.map-crosshair path { fill: none; }
.map-body .map-coordinates { margin-top: 10px; font-variant-numeric: tabular-nums; }
.map-status, .map-privacy { color: var(--muted); }
.map-actions { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 10px; }
.map-actions label { display: grid; flex: 1 1 180px; gap: 4px; font-size: 14px; }
.map-actions input { width: 100%; min-height: 44px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--ink); }
.map-actions button:disabled { opacity: .5; cursor: not-allowed; }
.map-privacy a { color: var(--green); }
#detail-content { padding: 24px 28px 30px; overflow-wrap: anywhere; }
#detail-content h2 { font-family: var(--display-font); font-size: 28px; margin: 0 0 14px; line-height: 1.45; }
#detail-content h3 { font-size: 18px; margin: 24px 0 10px; line-height: 1.5; }
#detail-content p, #detail-content li { font-size: 16px; line-height: 1.85; color: var(--muted); }
.trust-badge { display: inline-block; align-self: flex-start; margin: 8px 0; padding: 3px 9px; border: 1px solid var(--line); border-radius: 5px; font-size: 13px; font-weight: 650; color: var(--green); background: var(--green-soft); }
.trust-badge[data-confidence="corroborated"], .trust-badge[data-confidence="platform"], .trust-badge[data-confidence="community"] { color: var(--accent-dark); background: var(--accent-soft); }
.planning-match { margin: 4px 0; font-size: 14px; color: var(--green); }
.event-format { margin: 8px 0; color: var(--green); font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
#detail-session-filter { display: block; width: 100%; min-height: 44px; margin-top: 8px; padding: 6px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 5px; }
#detail-content ul { padding-left: 19px; }
#detail-content li { margin-bottom: 7px; }
#detail-content a { color: var(--accent-dark); }
#detail-content a:hover { color: var(--ink); }
#detail-content .card-art { border-radius: 8px; margin-bottom: 20px; height: 145px; }
#detail-content dl { display: grid; gap: 16px; margin: 18px 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--blue-soft); font-size: 16px; }
#detail-content dl > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
#detail-content dt { color: var(--muted); }
#detail-content dd { margin: 0; }
#detail-content .detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
#detail-content .detail-section { padding-top: 6px; border-top: 1px solid var(--line); margin-top: 20px; }
#detail-content .detail-caveats, #detail-content .caveats { padding: 14px 18px; background: #f8eddd; border: 1px solid #ebd7ba; border-radius: 8px; }
#detail-content .detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
#detail-content .source-list a { font-weight: 600; }
#detail-content small { color: var(--muted); font-size: 14px; line-height: 1.8; }
#detail-content .booking-section { padding: 14px 16px; border: 1px solid #e7c8a7; border-radius: 8px; background: #faf0df; }
#detail-content .booking-section h3 { margin-top: 0; }
#detail-content .booking-section .detail-actions { margin-top: 12px; }
#detail-content .booking-section .detail-actions a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border: 1px solid #cfad86; border-radius: 5px; background: var(--card); font-weight: 600; }
.external-links { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 14px; }
.source-entry { margin-bottom: 16px; }
.copy-button { min-height: 44px; margin-top: 16px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); font-size: 14px; }
.is-warning { color: var(--accent-dark) !important; }

.student-summary { color: var(--green); font-size: 14px; line-height: 1.8; }
.student-summary { border-left: 2px solid var(--line); padding-left: 10px; }
.filter-field input { width: 100%; min-width: 0; min-height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); }
.student-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.student-fields label { display: grid; gap: 5px; min-width: 0; font-size: 14px; }
.student-fields input, .student-fields select, .share-url { width: 100%; min-width: 0; min-height: 44px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); }
.date-input { position: relative; isolation: isolate; display: flex; align-items: stretch; gap: 6px; min-width: 0; width: 100%; }
.date-input > input[type="date"] { flex: 1 1 0; min-width: 0; }
.date-input__choose, .date-input__clear { min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font-size: 16px; }
.date-input__choose { flex: 1 1 0; min-width: 0; padding: 8px 10px; text-align: left; }
.date-input__choose::after { content: "⌄"; float: right; margin-left: 8px; color: var(--green); }
.date-input--empty .date-input__choose { color: var(--muted); }
.date-input__clear { flex: 0 0 auto; min-width: 44px; padding: 8px; color: var(--accent-dark); }
.date-input__choose:hover:not(:disabled), .date-input__clear:hover:not(:disabled) { border-color: var(--green); background: var(--green-soft); }
.date-input button:disabled { cursor: not-allowed; }
.date-input.date-input--enhanced > input[type="date"] { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.student-check { display: flex; align-items: start; gap: 8px; min-height: 44px; margin: 12px 0; font-size: 14px; }
.student-check input { flex: 0 0 auto; margin-top: 4px; accent-color: var(--green); }
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block: 14px; }
.detail-actions button, .share-status button { min-height: 44px; padding: 9px 12px; background: var(--green-soft); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.detail-actions button:disabled { opacity: .6; cursor: wait; }
.student-jumps { position: sticky; top: calc(var(--dialog-header-height) - 1px); background: var(--card); padding-block: 8px; z-index: 2; }
#detail-content .student-jumps > a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 12px; border: 1px solid #cfad86; border-radius: 8px; background: var(--accent-soft); font-size: 14px; font-weight: 600; text-decoration: none; }
#detail-content :is(.student-route, .student-share, .student-plan) > summary, .student-secondary > summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 0; font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; }
#detail-content :is(.student-route, .student-share, .student-plan) > summary::after, .student-secondary > summary::after { content: "+"; margin-left: auto; color: var(--green); font-size: 18px; font-weight: 400; }
#detail-content :is(.student-route, .student-share, .student-plan)[open] > summary::after, .student-secondary[open] > summary::after { content: "−"; }
#detail-content :is(.student-route, .student-share, .student-plan) > summary::-webkit-details-marker, .student-secondary > summary::-webkit-details-marker { display: none; }
#detail-content :is(.student-route, .student-share, .student-plan)[open] > .student-fields { margin-top: 10px; }
.student-secondary { margin-top: 16px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--blue-soft); }
.student-secondary > summary { min-height: 44px; font-size: 14px; color: var(--muted); }
.student-secondary[open] { padding-bottom: 12px; }
.student-facts, .student-plan, .student-route, .student-share { scroll-margin-top: calc(var(--dialog-header-height) + var(--dialog-action-height)); }
.student-route, .student-share { overflow-wrap: anywhere; }
.share-url { font-family: ui-monospace, monospace; font-size: 16px; }
.share-status { overflow-wrap: anywhere; }
.share-status button { margin: 4px 8px 4px 0; }
.trip-fits { color: var(--green); }
.trip-misses, .trip-unknown { color: var(--accent-dark); }

@media (min-width: 1500px) {
  .page-width { width: min(1280px, calc(100% - 120px)); }
  .hero { padding-block: 44px 36px; }
  .discovery-layout { grid-template-columns: minmax(0, 1fr) 308px; gap: 30px; }
  .card-art { height: 135px; }
}

.filter-disclosure > summary { display: none; }
@media (max-width: 1080px) {
  .page-width { width: calc(100% - 48px); }
  .hero { gap: 18px; }
  h1 { font-size: 44px; }
  .filter-fields { gap: 12px 8px; }
  .discovery-layout { display: flex; flex-direction: column; gap: 19px; }
  .results-column { width: 100%; }
  .discovery-sidebar { display: contents; }
  .filter-panel { order: -1; width: 100%; padding: 13px 15px; }
  .filter-disclosure { order: -1; width: 100%; }
  .filter-disclosure > summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--lavender-soft); box-shadow: var(--paper-shadow); font-size: 15px; cursor: pointer; }
  .filter-disclosure > summary::marker { content: ""; }
  .filter-disclosure > summary::-webkit-details-marker { display: none; }
  .filter-disclosure > summary span::after { content: "+"; font-size: 18px; }
  .filter-disclosure[open] > summary span::after { content: "−"; }
  .filter-disclosure[open] > summary { margin-bottom: 8px; }
  .card-body { padding: 17px; }
  .card-title { font-size: 20px; }
  .results-toolbar { align-items: start; }
  .results-title { gap: 1px 8px; }
  .results-title h3 { width: 100%; }
  .results-actions { padding-top: 4px; gap: 8px; }
  .site-footer { align-items: start; }
  .footer-brand > span { display: block; margin: 4px 0 0; }
  .filter-fields.filter-primary-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .filter-primary-fields > .planning-field, .filter-primary-fields > .filter-group { grid-column: auto; }
  .filter-primary-fields .filter-fields { grid-template-columns: minmax(0, 1fr); }
  .filter-more > .filter-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-more .planning-field { grid-column: auto; }
}

@media (max-width: 800px) {
  .page-width { width: calc(100% - 40px); }
  .site-header { min-height: 82px; }
  .origin-panel { grid-template-columns: 1fr; padding: 14px 16px; gap: 12px; }
  .origin-inputs { justify-content: space-between; }
  .origin-inputs label { flex: 1 1 100%; min-width: 0; }
  .origin-inputs select { width: 100%; }
  .location-controls { gap: 12px; }
  .location-button { padding: 8px 10px; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 27px 24px; gap: 18px; }
  .hero-art { min-height: 220px; height: 220px; }
  h1 { margin-block: 14px; font-size: 42px; }
  .hero-eyebrow { gap: 8px; }
  .panel-heading { margin-bottom: 10px; }
  .filter-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; }
  .filter-refinement > summary { min-height: 44px; }
  .checkbox-label { display: inline-flex; margin: 13px 20px 0 0; min-height: 44px; }
  .checkbox-leaf { margin-left: 5px; }
  .results-toolbar { align-items: center; }
  .results-title { gap: 10px; }
  .results-title h3 { width: auto; }
  .card-art { height: 128px; }
}

@media (max-width: 560px) {
  .page-width { width: calc(100% - 32px); }
  .site-header { min-height: 78px; gap: 10px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand { gap: 8px; }
  .brand-copy strong { font-size: 16px; letter-spacing: .5px; }
  .brand-copy > span { display: none; }
  .location-copy { display: none; }
  .location-button { gap: 4px; padding: 8px; }
  .location-button svg { width: 15px; height: 15px; }
  .location-controls { min-width: 0; gap: 2px 8px; flex-wrap: wrap; justify-content: flex-end; }
  .origin-reset { padding: 8px 0; flex-shrink: 0; }
  .origin-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); margin: 0 0 22px; padding: 13px 15px; gap: 8px 12px; border-radius: 14px 14px 14px 5px; }
  .origin-heading .section-kicker { display: none; }
  .origin-inputs { display: contents; }
  .origin-inputs label { grid-column: 2; grid-row: 1; }
  .origin-inputs .location-button { grid-column: 1; grid-row: 2; justify-self: start; }
  .origin-inputs .origin-reset { grid-column: 2; grid-row: 2; justify-self: end; }
  .hero { padding: 18px 0 20px; gap: 12px; }
  .hero-copy { position: relative; }
  .hero-description { display: none; }
  h1 { margin: 10px 0 6px; font-size: clamp(28px, 7.4vw, 36px); line-height: 1.35; letter-spacing: .5px; }
  .origin-heading h2 { font-size: 16px; }
  .location-status { margin-top: 10px; max-width: 100%; overflow-wrap: anywhere; }
  .hero-art { display: flex; min-height: 220px; height: 220px; }
  .discovery { padding-top: 18px; }
  .discovery-heading { flex-wrap: wrap; margin-bottom: 13px; gap: 8px; }
  .section-kicker { letter-spacing: 1.2px; }
  .discovery-heading h2 { font-size: 25px; }
  .search-form { min-height: 58px; gap: 9px; padding-left: 12px; border-radius: 13px; }
  .search-icon { width: 17px; height: 17px; }
  .search-button { min-width: 78px; padding: 8px 11px; gap: 5px; }
  .search-button > span { font-size: 17px; }
  .search-support { margin-bottom: 16px; gap: 8px; }
  .preset-list { margin-left: 0; gap: 6px; }
  .preset-list button { padding-block: 5px; }
  .filter-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .filter-fields.filter-primary-fields, .filter-more > .filter-fields { grid-template-columns: minmax(0, 1fr); }
  .results-toolbar { flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
  .results-title { gap: 7px; }
  .results-title h3 { font-size: 18px; }
  .results-actions { max-width: 100%; gap: 8px; margin-left: auto; }
  .sort-label select { padding-left: 8px; }
  .results-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .card-art { height: 130px; }
  .card-body { padding: 19px 19px 17px; }
  .card-title { font-size: 22px; }
  .card-bottom { margin-top: 10px; }
  .detail-button, .save-button { min-height: 44px; }
  .site-footer { display: block; margin-top: 27px; padding-block: 18px; }
  .footer-brand { white-space: normal; }
  .footer-brand > span { display: inline; margin-left: 10px; }
  .detail-dialog { --dialog-header-height: 65px; max-height: calc(100dvh - 24px); width: calc(100vw - 20px); border-radius: 16px; }
  .dialog-topline { padding: 10px 16px; }
  #detail-content { padding: 20px 19px 25px; }
  #detail-content h2 { font-size: 25px; }
  #detail-content .detail-grid { grid-template-columns: 1fr; }
  #detail-content dl { grid-template-columns: 1fr; padding: 13px; gap: 12px; }
  #detail-content dl > div { grid-template-columns: 80px minmax(0, 1fr); gap: 10px; }
}

@media (max-width: 360px) {
  .detail-dialog { --dialog-action-height: 122px; }
  #detail-content .student-jumps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #detail-content .student-jumps > :is(a, button) { justify-content: center; }
}

@media (max-height: 500px) {
  .detail-dialog { --dialog-header-height: 61px; max-height: calc(100dvh - 16px); }
  .dialog-topline { padding: 8px 14px; }
  .map-body { padding: 10px 14px 14px; }
  #origin-map { height: clamp(100px, 32dvh, 160px); min-height: 100px; }
  .map-actions { position: sticky; bottom: 0; z-index: 1001; padding-block: 8px; margin-bottom: 0; background: var(--card); border-top: 1px solid var(--line); }
}

@media (pointer: coarse) {
  body input:not([type="checkbox"]):not([type="radio"]), body select, .date-input__choose { font-size: 16px; }
  :is(.preset-list button, .location-button, .detail-button, .saved-toggle, .sort-label select, .save-button, .filter-refinement > summary, .checkbox-label, .student-check) { min-height: 44px; }
  .save-button { min-width: 44px; }
  .external-links a, .source-entry a { display: inline-flex; align-items: center; min-height: 44px; }
  .leaflet-touch .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .activity-card:hover { transform: none; }
}

.unknown-budget { margin-top: 24px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--lavender-soft); }
.unknown-budget > summary { cursor: pointer; min-height: 44px; font-weight: 600; }
.unknown-budget .results-grid { margin-top: 16px; }
.platform-discovery { margin-top: 24px; padding: 18px; border: 1px solid var(--line); border-radius: 16px 16px 16px 6px; background: linear-gradient(150deg, var(--blue-soft), var(--card) 72%); box-shadow: var(--paper-shadow); }
.platform-discovery-heading { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.platform-discovery h3 { margin: 0; font-family: var(--display-font); font-size: 20px; line-height: 1.35; }
.platform-discovery-badge { flex-shrink: 0; padding: 3px 8px; border: 1px solid #b9ccd8; border-radius: 999px; color: #4d6f80; background: var(--card); font-size: 13px; }
.platform-discovery-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 12px; }
.platform-discovery-controls label { display: grid; flex: 1 1 190px; gap: 5px; min-width: 0; color: var(--muted); font-size: 14px; }
.platform-discovery-controls select { width: 100%; min-height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--ink); font-size: 16px; }
.platform-discovery-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 14px; border: 1px solid #cfad86; border-radius: 9px; background: var(--card); color: var(--accent-dark); font-size: 14px; font-weight: 600; text-decoration: none; }
.platform-discovery-link:hover { border-color: #e2b79f; background: var(--accent-soft); }
.commute-label { color: var(--green); font-size: 14px; margin: 0 0 16px; }
.preview-badge, .calendar-notice { background: var(--blue-soft); border-radius: 8px; padding: 8px 12px; }
.preview-badge { display: inline-block; font-size: 14px; margin: 0 0 12px; }
.place-search-controls { display: flex; gap: 8px; margin-top: 6px; }
.place-search-controls input { flex: 1; min-width: 0; padding: 12px; border: 1px solid var(--line); background: var(--card); border-radius: 10px; font-size: 16px; }
.place-search-results { display: grid; gap: 6px; }
.place-search-results button { display: grid; gap: 3px; text-align: left; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 10px 12px; overflow-wrap: anywhere; }
.place-search-results button[aria-pressed="true"] { border-color: var(--green); background: var(--green-soft); }
.place-search-results span { color: var(--muted); font-size: 14px; }
#commute-retry { margin-bottom: 14px; }
#detail-title { text-wrap: balance; }
@media (max-width: 430px) {
  .unknown-budget { padding: 12px; }
  .unknown-budget .results-grid { grid-template-columns: minmax(0, 1fr); }
  .platform-discovery { padding: 14px; }
  .platform-discovery-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .platform-discovery-controls label { grid-column: 1 / -1; }
  .platform-discovery-link { width: 100%; }
}
