/* Public site styles. Brand colours come from /brand.css (--brand-primary, --brand-accent). */
:root {
  --text: #1f2937;
  --muted: #4b5563;
  --line: #e5e7eb;
  --surface: #ffffff;
  --page: #f9fafb;
  --card-border: var(--ink, #000);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #e5e7eb;
    --muted: #9ca3af;
    --line: #374151;
    --surface: #111827;
    --page: #030712;
    --card-border: var(--line);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 16px/1.5 var(--font-body);
  color: var(--text);
  background: var(--page);
}
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 8px; top: 8px; padding: 8px 12px; background: var(--surface); }
.plain-main { max-width: var(--content-width); margin: 0 auto; padding: 12px 16px; }
a { color: var(--link-color); }
h1, h2, h3 { font-family: var(--font-heading); }
h1 { margin: 16px 0 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: var(--surface); }
.pill.active { background: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg); }
.filters { display: grid; gap: 6px 12px; grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr)); align-items: start; margin-bottom: 24px; }
.filters .field { display: flex; flex-direction: column; justify-content: flex-start; gap: 4px; }
.filters .field:last-child { align-self: end; }  /* the button cell lines up with the controls */
.filters label { font-size: 0.875rem; color: var(--muted); display: block; }
.filters input, .filters select, .filters button { width: 100%; min-height: 44px; padding: 8px; font: inherit; }
.filters input:not([type="checkbox"]), .filters select { height: 44px; }
.filters select { padding-right: 4px; }
.filters button { background: var(--btn-bg); color: var(--btn-text); font: 700 0.75rem var(--font-heading); letter-spacing: 0.04em; text-transform: var(--btn-transform); border: 0; border-radius: 6px; cursor: pointer; }
.filters .check { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 1rem; color: var(--text); }
.filters input[type="checkbox"] { width: 1.25rem; height: 1.25rem; min-height: 0; margin: 0; }
.badge { display: inline-block; padding: 0 8px; border-radius: 999px; font-size: 0.8125rem; font-weight: 700; border: 1px solid var(--accent); }
.badge.boosted { background: var(--surface); color: var(--text); border-width: 2px; }
.pinned h2 { font-size: 1.125rem; border-bottom: 2px solid var(--accent); }
.day-heading { margin: 24px 0 8px; font-size: 1.125rem; border-bottom: 1px solid var(--line); }
.ongoing h2 { font-size: 1.125rem; border-bottom: 2px solid var(--accent); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.event-card { padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.event-title { margin: 0 0 4px; font-size: 1.0625rem; }
.meta, .summary { margin: 0; color: var(--muted); }
.empty, .more { margin: 24px 0; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.card-link { color: inherit; text-decoration: none; }
.card-link:hover .event-title { text-decoration: underline; }
.crumbs { margin: 8px 0; color: var(--muted); font-size: 0.875rem; }
.event-page h1 { font-size: 1.75rem; }
.event-page h2, .related h2 { font-size: 1.125rem; margin: 20px 0 6px; border-bottom: 1px solid var(--line); }
.event-page .description, .event-page .summary, .event-page .note { max-width: 42rem; }
.map-link, .ticket-link, .gcal-link, .ics-link, .online-link { display: inline-block; min-width: 44px; min-height: 44px; padding: 10px 0; }
.event-image { display: block; max-width: 100%; height: auto; border-radius: 8px; margin: 12px 0; }
.banner { margin: 12px 0; padding: 10px 14px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); }
.banner.cancelled { border-color: #b91c1c; color: #b91c1c; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.chip { padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 0.875rem; background: var(--surface); }
.pick { margin: 4px 0; font-weight: 700; color: var(--accent); }
.note { padding: 8px 12px; border-left: 4px solid var(--accent); background: var(--surface); }
.showings { list-style: none; margin: 0; padding: 0; }
.showing { padding: 2px 0; }
.venue, .price { margin: 0 0 6px; }
.calendar-links { display: flex; flex-wrap: wrap; gap: 16px; margin: 20px 0; }
.related { margin-top: 32px; }
.related-item { padding: 6px 0; }

/* ---- Chrome: header, footer, buttons (themes set the --header-*, --footer-*, --btn-* variables) */
:root {
  --header-bg: var(--surface);
  --header-border: 3px solid var(--brand-primary);
  --footer-bg: var(--surface);
  --footer-text: var(--muted);
  --section-bg: var(--surface);
  --section-border: 1px solid var(--line);
  --btn-bg: var(--brand-primary);
  --btn-text: #ffffff;
  --btn-transform: none;
  --link-color: var(--brand-primary);
  --accent: var(--brand-accent);
  --btn-light-text: var(--brand-primary);
}
.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; }
.site-header { background: var(--header-bg); border-bottom: var(--header-border); }
.header-inner, .footer-inner { max-width: var(--content-width); margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; }
.logo-img { display: block; height: 48px; width: auto; max-width: 100%; }
.wordmark { font: 700 1.25rem var(--font-heading); line-height: 1.1; }
.footer-logo { display: block; height: 40px; width: auto; max-width: 100%; }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 0; font-family: var(--font-ui); font-size: 0.8125rem; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; padding: 0 12px; }
.main-nav a:hover { text-decoration: underline; }
.main-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.site-footer { background: var(--footer-bg); color: var(--footer-text); margin-top: 32px; }
.site-footer a { color: inherit; }
.footer-inner { padding: 36px 16px; align-items: flex-end; }
.footer-name { margin: 0; font: 700 1.25rem var(--font-heading); }
.footer-tagline { margin: 4px 0 0; font-size: 0.875rem; }
.footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.socials a { display: inline-flex; align-items: center; min-height: 44px; }
.socials { display: flex; gap: 12px; list-style: none; margin: 0; padding: 0; font-size: 0.875rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px; background: var(--btn-bg); color: var(--btn-text); border: 1px solid var(--btn-bg); border-radius: 3px; font: 700 0.75rem var(--font-heading); letter-spacing: 0.04em; text-transform: var(--btn-transform); text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.12); }
.btn-small { padding: 10px 14px; }
.btn-wide { display: flex; text-align: center; }
.btn-light, .site-footer .btn-light { background: var(--white); color: var(--btn-light-text); border-color: var(--white); }

/* Dark mode, after the chrome defaults above (the same specificity, so the later rule wins): the
   brand colour is too dark for links on a near-black page, so links use a tint of it that is at
   least 4.5:1 whatever the brand colour is (a mix with 55% white is never darker than mid grey).
   The fixed colour is for browsers without color-mix. The Raleighwood theme is light only and sets
   its own values after this file. */
@media (prefers-color-scheme: dark) {
  :root { --link-color: #93b4ff; }
  @supports (color: color-mix(in srgb, red, blue)) {
    :root { --link-color: color-mix(in srgb, var(--brand-primary) 45%, #ffffff); }
  }
}

/* ---- CMS pages: sections, boxes and the page blocks */
.cms-main { padding-bottom: 8px; }
.pg-inner { max-width: var(--content-width); margin: 0 auto; padding: 16px; position: relative; }
.pg-box { background: var(--section-bg); border: var(--section-border); border-radius: 3px; padding: 16px; position: relative; overflow: hidden; }
.box-heading { margin: 4px 0; text-align: center; font-size: 1.5rem; }
.box-sub { margin: 0 0 16px; text-align: center; font-style: italic; }
.box-cta { text-align: center; margin: 20px 0 4px; }
.pg-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.18; pointer-events: none; z-index: 0; }
.pg-hero { position: relative; overflow: hidden; }
.pg-hero .pg-inner { z-index: 1; padding-top: 40px; padding-bottom: 56px; }
.hero-headline { max-width: 36rem; font-size: clamp(1.75rem, 5vw, 2.75rem); line-height: 1.2; margin: 8px 0 20px; }
.hero-headline em { text-decoration: underline; }
.pg-typewriter { padding-bottom: 0; }
.news-card { max-width: 22rem; margin-left: auto; text-align: center; }
.card-heading { margin: 4px 0 10px; font-style: italic; font-size: 1.125rem; }
.news-image, .news-card .img-placeholder { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border: 1px solid var(--card-border); }
.news-title { margin: 8px 0; font: italic 700 1rem var(--font-heading); }
.news-title a { color: inherit; text-decoration: none; }
.news-note { margin: 0; font-style: italic; font-size: 0.875rem; }
.img-placeholder { background: var(--line); min-height: 8rem; }
.story-grid, .quote-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.story-card { background: var(--surface); border: 1px solid var(--card-border); border-radius: 3px; overflow: hidden; }
.story-media { position: relative; }
.story-media img, .story-media .img-placeholder { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.story-tag { position: absolute; top: 8px; left: 8px; background: var(--btn-bg); color: var(--btn-text); font: 700 0.625rem var(--font-heading); text-transform: uppercase; padding: 3px 7px; border-radius: 2px; }
.story-text { padding: 10px 12px 14px; }
.story-text h3 { margin: 0 0 6px; font-size: 1rem; }
.story-text a { color: inherit; text-decoration: none; }
.story-text p { margin: 0; font-size: 0.875rem; }
.quote-card { background: var(--surface); border: 1px solid var(--card-border); border-radius: 3px; padding: 12px 14px; display: flex; gap: 10px; justify-content: space-between; align-items: center; font-style: italic; font-size: 0.875rem; }
.quote-card blockquote { margin: 0; }
.quote-card p { margin: 0; }
.quote-by { text-align: center; font-size: 0.75rem; }
.quote-by span { display: block; }
.avatar { border-radius: 50%; display: block; margin: 0 auto 4px; }
.promo { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); align-items: center; }
.promo-media img, .promo-media .img-placeholder { width: 100%; display: block; }
.promo-text h2 { font-size: 1.5rem; margin: 0 0 12px; }
.pg-band { text-align: center; padding: 28px 16px; }
.band-text { position: relative; z-index: 1; }
.band-text h2 { margin: 0; font-size: 1.75rem; }
.band-text p { margin: 4px 0 14px; font-style: italic; }
.accordion-layout { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); align-items: end; }
.accordion details { background: var(--surface); border: 1px solid var(--card-border); border-radius: 3px; margin-bottom: 8px; }
.accordion summary { cursor: pointer; min-height: 44px; padding: 12px; font: 700 1rem/1.25 var(--font-heading); text-align: center; list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "\25BE"; float: right; }
.accordion details[open] summary::after { content: "\25B4"; }
.accordion details p { margin: 0; padding: 0 12px 12px; }
.sponsor-title { text-align: center; font-size: 1.5rem; margin: 20px 0; }
.points { list-style: none; padding: 0; margin: 12px auto; max-width: 36rem; font-size: 0.9375rem; }
.points li { margin-bottom: 10px; }
.pg-offers .offer-row { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.offer-media img, .offer-media .img-placeholder { width: 100%; max-height: 18rem; object-fit: contain; display: block; }
.offer-text h3 { font-size: 1.25rem; margin: 0 0 8px; }
.offer-quote { font-style: italic; }
.inquiry-layout { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.inquiry-map img, .inquiry-map .img-placeholder { width: 100%; min-height: 12rem; object-fit: cover; display: block; }

@media (max-width: 40rem) {
  .header-inner { justify-content: center; }
  .news-card { margin: 0 auto; }
  .footer-inner, .footer-links { align-items: flex-start; }
}

/* ---- Public event submission form (ADR 0070): no JavaScript, so every field is always shown */
.submit-form fieldset { margin: 0 0 20px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.submit-form legend { padding: 0 6px; font: 700 1rem var(--font-heading); }
.submit-form .field { margin: 0 0 12px; border: 0; padding: 0; }
.submit-form label { display: block; font-size: 0.9375rem; margin-bottom: 4px; }
.submit-form input[type="text"], .submit-form input[type="email"], .submit-form input[type="url"],
.submit-form input[type="date"], .submit-form input[type="time"], .submit-form select, .submit-form textarea { width: 100%; max-width: 40rem; padding: 8px; font: inherit; color: var(--text); background: var(--page); border: 1px solid var(--line); border-radius: 4px; }
.submit-form .choice-list { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.submit-form label.choice { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.submit-form .hint { margin: 4px 0; color: var(--muted); font-size: 0.875rem; }
.submit-form .error, .error { margin: 4px 0; color: #b91c1c; font-weight: 700; }
@media (prefers-color-scheme: dark) { .submit-form .error, .error { color: #fca5a5; } }
.submit-form .has-error input, .submit-form .has-error select, .submit-form .has-error textarea { border-color: #b91c1c; border-width: 2px; }
.banner.problem { border-color: #b91c1c; }
.submit-link { margin: 4px 0 12px; }

/* ---- Recurring series (ADR 0069): list tag, Also line, detail summary and next showing */
.series { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: 0.875rem; color: var(--muted); }
.badge.repeats { font-weight: 600; border-color: var(--line); }
.also-dates { color: var(--link-color); }
.series-summary { margin: 0 0 6px; font-weight: 600; }
.badge.next-showing { border-color: var(--accent); margin-right: 4px; }
.showing:has(.next-showing) { font-weight: 700; }

/* ---- Directory and neighborhoods (ADR 0077): listing grid and cards, listing page, hours, contact links */
.biz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.biz-card { padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; height: 100%; }
.biz-name { margin: 0 0 4px; font-size: 1.0625rem; }
.biz-card .card-link:hover .biz-name { text-decoration: underline; }
.badge.featured { background: var(--surface); color: var(--text); border-width: 2px; }
.badge.favorite { background: var(--surface); color: var(--text); font-weight: 600; border-color: var(--muted); }
.biz-page h1 { font-size: 1.75rem; }
.biz-page h2 { font-size: 1.125rem; margin: 20px 0 6px; border-bottom: 1px solid var(--line); }
.biz-page .description, .biz-page .summary { max-width: 42rem; }
.biz-page .favorite-note { color: var(--muted); font-size: 0.875rem; }
.biz-page .address { margin: 0 0 6px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; }
.contact-links a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.hours-table { border-collapse: collapse; width: 100%; max-width: 28rem; }
.hours-table th, .hours-table td { padding: 6px 8px; text-align: left; border-bottom: 1px solid var(--line); font-weight: inherit; }
.hours-table tr.today { font-weight: 700; background: var(--surface); }
.hours-table .today-mark { color: var(--muted); font-weight: 400; }
