*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1.0625rem/1.5 var(--body); }
img { display: block; max-width: 100%; }
button, input, select, textarea { color: inherit; font: inherit; }
button, summary, select { cursor: pointer; }
a { color: var(--blue); text-underline-offset: .19em; }
button { background: none; border: 0; }
a:hover, .text-link:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
[hidden], html:not(.interactive) .enhanced { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.16; text-wrap: balance; }
h1, h2 { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 650; letter-spacing: -.018em; }
h3 { font-weight: 650; letter-spacing: -.008em; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 1rem; left: 1rem; z-index: 20; padding: 1rem; background: var(--paper); }
.section-inner, .wrap, #entry-studio { width: min(calc(100% - 2 * var(--gutter)), var(--page)); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.overline, .field-label, .card-date, .timeline small { font-size: .9375rem; font-weight: 600; color: var(--muted); }
.overline, .text-link, .pill, .brand, .search-field, .locator summary, .extra-filters summary { display: inline-flex; align-items: center; gap: .6rem; }
.overline { margin-bottom: 1rem; }
.overline .icon { width: 1rem; height: 1rem; }
.pill, .extra-filters summary, .locator summary, .list-event { min-height: var(--control); padding: .55rem 1.1rem; border: 1px solid var(--line); border-radius: var(--pill); background: var(--paper); color: var(--ink); font-size: .9375rem; font-weight: 650; text-decoration: none; justify-content: center; }
.pill:hover, .extra-filters summary:hover, .locator summary:hover { text-decoration: none; border-color: var(--blue); color: var(--blue); }
.pill.solid, .list-event { background: var(--active); color: var(--on-active); border-color: var(--active); }
.pill.solid:hover { background: var(--blue); color: var(--on-active); }
.brand { font-size: 1.52rem; font-weight: 750; gap: .5rem; color: var(--ink); text-decoration: none; letter-spacing: -.028em; }
.brand b { font-weight: 490; color: var(--blue); }
.brand:hover { text-decoration: none; }
.text-link { color: var(--blue); padding: .4rem 0; font-weight: 650; font-size: .9375rem; text-decoration: none; }
.split-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.locator, .extra-filters { position: relative; width: fit-content; pointer-events: auto; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
.locator summary { gap: .7rem; min-width: 13.25rem; justify-content: start; box-shadow: var(--shadow); }
.locator-shortcut { margin-left: auto; border: 1px solid var(--line); border-radius: .25rem; font-size: .75rem; padding: 0 .37rem; color: var(--muted); }
.locator-popover, .filter-popover, .world-preview { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.locator-popover, .filter-popover { z-index: 5; position: absolute; margin-top: .5rem; padding: .85rem; width: min(19rem, 83vw); }
.locator-popover { max-height: min(18rem, 36svh); overflow-y: auto; }

input:not([type=checkbox]), select, textarea { border: 1px solid var(--line); border-radius: .5rem; padding: .65rem .8rem; background-color: var(--paper); min-height: var(--control); max-width: 100%; min-width: 0; }
.locator input { width: 100%; }
.locator-result { width: 100%; text-align: left; min-height: 2.65rem; display: flex; align-items: center; justify-content: space-between; gap: .8rem; font-size: .9375rem; }
.locator-result:hover { background: var(--sky); }
.locator-result small { color: var(--muted); }
.camera-controls, .card-place, .inline-actions, .preview-actions { display: flex; align-items: center; }
.camera-controls { border-radius: var(--pill); padding: .16rem; border: 1px solid var(--line); background: var(--paper); }
.camera-controls button, .map-action, .preview-close { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; color: var(--blue); }
.camera-controls button:hover, .map-action:hover, .preview-close:hover { background: var(--ice); }
.camera-controls button:disabled { opacity: .55; }
.world-preview img { width: 4.25rem; height: 5rem; object-fit: cover; border-radius: .4rem; }
.world-preview h3 { margin: .15rem 0; font-size: 1.05rem; }
.preview-title { color: inherit; text-decoration: none; }
.world-preview p { font-size: .85rem; color: var(--muted); }
.preview-actions { flex-wrap: wrap; gap: .1rem .75rem; }
.preview-actions > * { font-size: .85rem; }
.preview-close { position: absolute; right: .05rem; top: .05rem; font-size: 1.35rem; }
.split-heading { align-items: end; margin-bottom: 2rem; }
.section-lede { color: var(--muted); max-width: 54ch; margin-block: 1rem 2rem; font-size: 1.08rem; }
.filter-bar { display: flex; gap: .65rem; align-items: center; flex-wrap: wrap; }
.filter-bar > .search-field { flex: 1; }
.search-field { border: 1px solid var(--line); border-radius: var(--pill); padding-inline: 1rem; min-width: min(12rem, 100%); color: var(--muted); background: var(--paper); }
.search-field input { width: 100%; border: 0; background: transparent; padding-left: 0; }
.search-field:focus-within { outline: 2px solid var(--blue); }
.search-field input:focus { outline: 0; }
.select-field { position: relative; display: grid; }
.select-field select { appearance: none; padding-right: 2.3rem; border-radius: var(--pill); font-size: .9375rem; font-weight: 550; }
.select-field .icon { position: absolute; pointer-events: none; right: .8rem; bottom: .87rem; width: .85rem; height: .85rem; }
.filter-popover { right: 0; width: min(24rem, 86vw); display: grid; gap: .8rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.filter-popover label { display: grid; gap: .25rem; }
.filter-popover select { border-radius: .5rem; }
.program-tabs { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); margin: 1rem 0 1.5rem; color: var(--muted); font-size: .875rem; }
.program-tabs > div { display: flex; gap: 1.45rem; }
.program-tabs a { padding-block: .85rem; margin-bottom: -1px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; }
.program-tabs a.current { border-color: var(--blue); font-weight: 700; color: var(--blue); }
.event-grid { display: grid; gap: 2.6rem 1.6rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.event-photo { display: block; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ice); }
.event-photo img { width: 100%; height: auto; aspect-ratio: 1.82; object-fit: cover; transition: transform .35s var(--ease); }
.event-photo:hover img { transform: scale(1.035); }
.photo-label { position: absolute; bottom: .7rem; left: .75rem; border-radius: var(--pill); padding: .23rem .65rem; background: var(--paper); color: var(--ink); font-size: .875rem; font-weight: 600; }
.card-copy { position: relative; padding: .9rem 0 0; }
.card-date { padding-right: 2rem; font-variant-numeric: tabular-nums; }
.card-date span { margin-left: .5rem; }
.event-card h3 { margin-block: .45rem; font-size: clamp(1.25rem, 1.6vw, 1.75rem); }
.selected-event .event-photo { outline: 2px solid var(--blue); outline-offset: 3px; }
.event-card h3 a, .community-card h3 a, .timeline a { text-decoration: none; color: inherit; }
.event-card a:hover, .community-card a:hover { text-decoration: underline; }
.card-place, .card-end, .community-card p { color: var(--muted); font-size: .92rem; }
.card-place { gap: .35rem; }
.card-end { display: flex; align-items: baseline; justify-content: space-between; gap: .65rem; margin-top: .75rem; border-top: 1px solid var(--line); padding-top: .65rem; }
.card-end a { color: var(--blue); font-weight: 550; text-decoration: none; }
.map-action { width: 2.75rem; height: 2.75rem; position: absolute; right: 0; top: -.04rem; text-decoration: none; }
.empty-state { text-align: center; padding: 2.5rem 1rem; background: var(--sky); border-radius: var(--radius); }
.empty-state p, .empty-state h3 { margin: .5rem; }
.empty-state .inline-actions { justify-content: center; }
#clear-active { margin-top: 1rem; }
.communities { background: var(--sky); border-block: 1px solid var(--line); }
.community-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.3rem; margin-block: 1.65rem .9rem; }
.community-card { display: flex; align-items: flex-start; gap: .85rem; padding-block: 1.25rem; border-top: 1px solid var(--line); }
.community-mark { flex: none; height: 3rem; width: 3rem; display: grid; place-items: center; color: var(--blue); background: var(--ice); border: 1px solid var(--line); border-radius: .75rem; font-weight: 650; letter-spacing: 0; }
.community-mark img { width: 100%; height: 100%; min-height: 0; object-fit: contain; border-radius: inherit; }
.community-card h3 { font-size: 1.15rem; margin: .17rem 0 .3rem; }
.community-card small { color: var(--blue); }
.activity-layout, .detail-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: var(--gutter); align-items: start; }
.timeline a { position: relative; display: flex; gap: 1rem; align-items: baseline; padding: 0 0 1.6rem; }
.timeline a:not(:last-child)::before { content: ""; position: absolute; top: .85rem; bottom: -.68rem; left: .22rem; width: 1px; background: var(--line); }
.timeline a > .icon { margin-left: auto; align-self: center; }
.timeline a:hover h3 { text-decoration: underline; }
.timeline-dot { position: relative; flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: var(--blue); }
.timeline h3 { margin: .4rem 0 .25rem; }
.timeline div > span { font-size: .9375rem; color: var(--muted); }
.detail-page, .wrap, #entry-studio { padding-block: var(--section-space); }
.detail-layout, .community-profile { margin: 2rem 0; }
.detail-layout { grid-template-columns: 1.08fr .92fr; }
.detail-image { width: 100%; aspect-ratio: 1.3; object-fit: cover; border-radius: var(--radius); }
figcaption { font-size: .81rem; margin-top: .5rem; color: var(--muted); }
.detail-facts { display: grid; gap: .6rem; }
.detail-facts p { display: flex; align-items: center; gap: .65rem; }
.detail-facts .icon { color: var(--blue); }
.inline-actions { flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.community-profile > .community-mark { width: 5rem; height: 5rem; font-size: 2rem; margin-bottom: 1.5rem; }
.related-events { margin-top: 2.5rem; max-width: 54rem; }
.related-events h2, .notice-settings h2 { font-size: 1.7rem; margin-bottom: 1rem; }
.related-events > a { display: flex; align-items: baseline; gap: 1rem; border-top: 1px solid var(--line); padding-block: 1rem; }
.related-events > a .icon { margin-left: auto; }
.notice-settings { max-width: 42rem; padding-block: 2rem; }
.notice-settings p { margin-block: 1rem; }
@media (max-width: 920px) {
  .event-grid, .community-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .split-heading { align-items: start; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.4rem; }
  .filter-bar { display: grid; grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .extra-filters { width: 100%; }
  .extra-filters summary { width: 100%; }
  .filter-popover { right: auto; left: 0; }
  .activity-layout, .detail-layout { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 520px) {
  .event-grid, .community-grid { grid-template-columns: 1fr; }
  .community-grid { gap: 0; }
  .event-grid { gap: 2rem; }
  .brand { font-size: 1.3rem; }
  .brand img { width: 1.85rem; height: 1.85rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
html[data-motion="off"] .event-photo img { transition: none; }
.credit-line { display: flex; align-items: center; gap: .75rem; }
