:root {
  --accent: #d15c22;
  --surface: #f7f4ee;
  --surface-muted: #f3ede4;
  --text-strong: #171717;
  --text-muted: #6f655d;
  --display-font: Georgia, serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text-strong);
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 12%, transparent), transparent 28%),
    linear-gradient(180deg, var(--surface) 0%, var(--surface-muted) 100%);
  font-family: system-ui, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

a[href],
button,
select,
summary,
[role="button"] {
  cursor: pointer;
}

.page {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 20px 0 48px;
}

.page-query {
  width: min(1320px, calc(100vw - 32px));
}

.page-narrow {
  width: min(860px, calc(100vw - 32px));
}

.card {
  border: 1px solid rgba(15, 15, 15, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 80px rgba(24, 19, 15, 0.08);
}

.hero {
  display: grid;
  gap: 20px;
  padding: 28px;
}

.hero-query {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 420px);
  align-items: start;
}

.hero-panel {
  border-radius: 24px;
  border: 1px solid rgba(15, 15, 15, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 241, 232, 0.88));
  padding: 18px;
}

.hero-panel-head {
  margin-bottom: 14px;
}

.panel-label,
.section-kicker {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.panel-copy {
  margin: 8px 0 0;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.92rem;
}

.hero-title,
.detail-title {
  margin: 8px 0 0;
  line-height: 0.96;
  font-family: var(--display-font);
  font-size: clamp(2.8rem, 7vw, 4.8rem);
}

.hero-summary,
.detail-summary {
  margin: 18px 0 0;
  max-width: 72ch;
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 1rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  border: 1px solid rgba(15, 15, 15, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  padding: 8px 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.pill-strong {
  color: white;
  background: var(--accent);
  border-color: transparent;
}

.section-block {
  margin-top: 18px;
  padding: 24px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.8rem;
  font-family: Georgia, serif;
}

.status {
  margin-bottom: 16px;
  color: var(--text-muted);
  line-height: 1.7;
}

.status-error {
  color: #b3261e;
}

.story-grid,
.card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.featured-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.quick-picks-block {
  margin-top: 20px;
}

.lead-layout {
  display: grid;
  gap: 16px;
}

.lead-story {
  display: block;
  border-radius: 26px;
  border: 1px solid rgba(15, 15, 15, 0.08);
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--accent) 16%, transparent), transparent 36%),
    rgba(255, 255, 255, 0.9);
  padding: 22px;
}

.lead-story h3 {
  margin: 18px 0 0;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.02;
}

.lead-story p {
  margin: 14px 0 0;
  max-width: 60ch;
}

.story-note {
  margin-top: 18px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent) 8%, white);
  padding: 14px 16px;
  color: var(--text-muted);
  line-height: 1.7;
}

.side-stack {
  display: grid;
  gap: 12px;
}

.story-card,
.result-card,
.featured-card,
.stream-item,
.section-card {
  display: block;
  border-radius: 24px;
  border: 1px solid rgba(15, 15, 15, 0.08);
  background: rgba(255, 255, 255, 0.88);
  padding: 18px;
  transition: transform 120ms ease, border-color 120ms ease;
}

.featured-card-rich {
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--accent) 14%, transparent), transparent 34%),
    rgba(255, 255, 255, 0.92);
}

.featured-top h3 {
  margin-top: 12px;
}

.featured-card-empty {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.compact-card h3 {
  font-size: 1.05rem;
}

.story-card:hover,
.result-card:hover,
.featured-card:hover,
.stream-item:hover,
.section-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 30%, rgba(15, 15, 15, 0.08));
}

.story-card h3,
.result-card h3,
.featured-card h3,
.section-card h3,
.stream-item h3 {
  margin: 14px 0 0;
  font-size: 1.22rem;
  line-height: 1.35;
  font-family: var(--display-font);
}

.story-card p,
.result-card p,
.featured-card p,
.section-card p,
.stream-item p {
  margin: 12px 0 0;
  color: var(--text-muted);
  line-height: 1.72;
  font-size: 0.94rem;
}

.section-stack {
  display: grid;
  gap: 20px;
}

.section-group {
  display: grid;
  gap: 14px;
}

.section-heading h3,
.section-group h3 {
  margin: 0;
  font-size: 1.2rem;
  font-family: var(--display-font);
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.stream-list {
  display: grid;
  gap: 12px;
}

.stream-item {
  display: grid;
  gap: 12px;
}

.stream-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filters-grid {
  display: grid;
  gap: 14px;
}

.filters-form {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.filters-grid-query {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.filter-block {
  display: grid;
  gap: 8px;
}

.filter-field {
  display: grid;
  gap: 8px;
}

.filter-block-wide {
  grid-column: 1 / -1;
}

.filter-label {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 600;
}

.input,
.select {
  min-height: 44px;
  width: 100%;
  border: 1px solid rgba(15, 15, 15, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 14px;
  color: var(--text-strong);
  font: inherit;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  border-radius: 16px;
  padding: 0 16px;
  font-weight: 700;
  cursor: pointer;
}

.button.primary {
  background: var(--accent);
  color: white;
}

.query-submit {
  width: 100%;
  margin-top: 2px;
}

.result-footer {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.result-shell {
  display: grid;
  gap: 14px;
}

.result-shell-rich {
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  align-items: stretch;
}

.result-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.result-visual-frame {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(15, 15, 15, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

.result-visual-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.result-visual-fallback {
  min-height: 220px;
  display: flex;
  align-items: end;
  padding: 18px;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 18%, white), rgba(255, 255, 255, 0.95)),
    rgba(255, 255, 255, 0.92);
}

.result-visual-fallback h4 {
  margin: 8px 0 0;
  font-size: 1.4rem;
  font-family: var(--display-font);
}

.result-card-product.is-active {
  border-color: color-mix(in srgb, var(--accent) 35%, rgba(15, 15, 15, 0.08));
  box-shadow: 0 20px 50px rgba(24, 19, 15, 0.08);
}

.result-card-product h3 {
  font-size: 1.42rem;
}

.visual-eyebrow {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.map-preview-frame {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(15, 15, 15, 0.08);
  background: rgba(255, 255, 255, 0.7);
}

.map-preview {
  display: block;
  width: 100%;
  min-height: 210px;
  border: 0;
}

.detail-map .map-preview {
  min-height: 280px;
}

.result-address {
  margin-top: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.9rem;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.mini-button-subtle {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-strong);
  border: 1px solid rgba(15, 15, 15, 0.08);
}

.results-head {
  align-items: end;
}

.section-head-tight {
  align-items: end;
}

.results-toolbar {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.segmented {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 15, 15, 0.08);
}

.segmented-button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  padding: 8px 12px;
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
}

.segmented-button.is-active {
  background: var(--accent);
  color: white;
}

.result-list {
  display: grid;
  gap: 18px;
}

.results-shell-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 20px;
  align-items: start;
}

.results-shell-grid.is-list-only {
  grid-template-columns: 1fr;
}

.results-shell-grid.is-list-only .map-panel {
  display: none;
}

.results-column {
  min-width: 0;
}

.map-panel {
  position: sticky;
  top: 20px;
  padding: 18px;
}

.map-panel.is-hidden {
  display: none;
}

.map-panel-head h3 {
  margin: 8px 0 0;
  font-size: 1.5rem;
  font-family: var(--display-font);
}

.map-panel-visual {
  margin-top: 14px;
}

.result-visual-frame-panel {
  min-height: 260px;
}

.map-panel-copy {
  margin-top: 14px;
}

.map-panel-summary,
.map-panel-address {
  margin: 12px 0 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.skeleton-card {
  overflow: hidden;
}

.visual-placeholder {
  min-height: 220px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0,0,0,0.05), rgba(0,0,0,0.02));
}

.skeleton-line {
  height: 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  margin-top: 12px;
}

.skeleton-short {
  width: 48%;
}

.empty-card {
  min-height: 120px;
  display: flex;
  align-items: center;
}

.event-list {
  display: grid;
  gap: 14px;
}

.event-card {
  display: grid;
  gap: 14px;
  grid-template-columns: 120px minmax(0, 1fr);
  border-radius: 22px;
  border: 1px solid rgba(15, 15, 15, 0.08);
  background: rgba(255, 255, 255, 0.88);
  padding: 18px;
}

.event-time {
  font-weight: 700;
  color: var(--accent);
  line-height: 1.5;
  font-size: 0.95rem;
}

.event-copy h3 {
  margin: 12px 0 0;
  font-size: 1.24rem;
  line-height: 1.25;
  font-family: var(--display-font);
}

.event-copy p {
  margin: 12px 0 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.detail-shell {
  margin-top: 20px;
  padding: 28px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--text-muted);
  cursor: pointer;
}

button:disabled,
select:disabled,
.button:disabled,
.segmented-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.detail-fields {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.detail-field {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(15, 15, 15, 0.08);
  padding: 14px 16px;
}

.detail-field-label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.detail-field-value {
  margin-top: 8px;
  color: var(--text-muted);
  line-height: 1.7;
}

.detail-actions {
  margin-top: 24px;
}

.detail-shell-rich {
  padding: 22px 22px 28px;
}

.detail-visual {
  margin-top: 18px;
}

.detail-image-frame {
  min-height: 340px;
}

.detail-image-frame .result-visual-image {
  min-height: 340px;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.4fr) 360px;
  }

  .lead-layout {
    grid-template-columns: minmax(0, 1.2fr) 380px;
  }

  .filters-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .result-shell {
    grid-template-columns: minmax(0, 1fr) 250px;
    align-items: start;
  }
}

@media (max-width: 720px) {
  .hero-query {
    grid-template-columns: 1fr;
  }

  .results-toolbar {
    justify-items: start;
  }

  .toolbar-row {
    justify-content: flex-start;
  }

  .filters-grid-query {
    grid-template-columns: 1fr;
  }

  .result-shell-rich {
    grid-template-columns: 1fr;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  .results-shell-grid {
    grid-template-columns: 1fr;
  }

  .map-panel {
    position: static;
  }

  .event-card {
    grid-template-columns: 1fr;
  }
}
