/*
Theme Name: WSC Block Theme
Theme URI: https://wsc-staging.netlify.app/
Author: WSC
Description: Lightweight block theme faithfully matching the approved WSC staging design.
Version: 1.0.7
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: wsc-block-theme
*/
/* WSC staging design system. One file, tokens first. No web fonts are loaded: see HANDOVER.md for the
   self-hosted font recommendation. All colour pairs below were chosen for WCAG 2.2 AA contrast. */
:root {
  --ink: #0e1d42;
  --ink-2: #182a4c;
  --bone: #f5f2eb;
  --sand: #eae3d5;
  --paper: #fffdfa;
  --saffron: #a58d62;
  --saffron-deep: #665535; /* 6.3:1 on warm ivory */
  --clay: #977f54;
  --clay-deep: #665535;
  --teal: #0e1d42;
  --muted: #545d70;
  --line: #d5cebf;
  --focus: #665535;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.1rem, 4vw, 3rem);
  --max: 76rem;
  --measure: 40rem;
  --radius: 4px;
  --space: clamp(3rem, 7vw, 6rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bone); color: var(--ink); font: 1.0625rem/1.65 var(--sans); }
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.12; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin: 0 0 1em; }
a { color: var(--teal); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.dark :focus-visible, .site-footer :focus-visible { outline-color: #a58d62; }
.skip { position: absolute; left: .5rem; top: -4rem; background: var(--ink); color: #fffdfa; padding: .7rem 1rem; z-index: 100; }
.skip:focus { top: .5rem; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.measure { max-width: var(--measure); }
.eyebrow { font: 700 .78rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--saffron-deep); margin: 0 0 1rem; }
.dark .eyebrow, .hero .eyebrow { color: var(--saffron); }
.lede { font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.55; max-width: 38rem; }

/* Staging banner */
.staging { background: var(--sand); color: var(--ink); border-bottom: 2px solid var(--clay); font-size: .9rem; line-height: 1.4; padding: .6rem 0; }
.staging strong { text-transform: uppercase; letter-spacing: .08em; margin-right: .5rem; }

/* Header */
.site-header { background: var(--paper); color: var(--ink); position: relative; z-index: 20; border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: block; flex: none; margin: 0; line-height: 0; }
.brand img { display: block; width: clamp(8.5rem, 14vw, 11.25rem); height: auto; }
.nav-toggle { display: none; background: none; color: var(--ink); border: 1px solid var(--line); padding: .55rem .9rem; font: 600 .95rem var(--sans); border-radius: var(--radius); cursor: pointer; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.nav-item { position: relative; }
.nav-item > a, .nav-item > button { color: var(--ink); background: none; border: 0; font: 500 .95rem var(--sans); padding: 1.6rem .7rem; display: inline-flex; gap: .35rem; align-items: center; text-decoration: none; cursor: pointer; }
.nav-item > a:hover, .nav-item > button:hover, .nav-item > a[aria-current] { color: var(--saffron-deep); }
.nav-item > button::after { content: ""; width: .45rem; height: .45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.sub { list-style: none; margin: 0; padding: .5rem; position: absolute; left: 0; top: 100%; min-width: 17rem; background: var(--paper); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0,0,0,.25); display: none; }
.sub a { display: block; padding: .6rem .8rem; color: var(--ink); text-decoration: none; border-radius: 3px; font-size: .95rem; }
.sub a:hover, .sub a:focus-visible { background: var(--sand); }
.sub a:focus-visible { outline-color: var(--focus); }
.nav-item.open > .sub { display: block; }
.nav-item:last-child .sub, .nav-item:nth-last-child(2) .sub { left: auto; right: 0; }
@media (hover: hover) and (min-width: 62.01rem) { .nav-item:hover > .sub { display: block; } }
@media (max-width: 62rem) {
  .nav-toggle { display: inline-block; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); padding: .5rem var(--gutter) 1.5rem; border-top: 1px solid var(--line); max-height: 80vh; overflow: auto; }
  .js .nav.open { display: block; }
  .nav-list { flex-direction: column; }
  .nav-item > a, .nav-item > button { padding: .9rem 0; width: 100%; justify-content: space-between; font-size: 1.05rem; }
  .sub { position: static; box-shadow: none; background: var(--bone); border: 0; color: var(--ink); }
  .sub a { color: var(--ink); }
  .sub a:hover { background: var(--sand); }
  .no-js .sub, .no-js .nav-item .sub { display: block; position: static; background: transparent; box-shadow: none; border: 0; }
  .no-js .nav-item > button { display: none; }
  .no-js .nav-item > a { padding-bottom: .2rem; }
  .no-js .nav-toggle { display: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.4rem; border-radius: var(--radius); font: 700 .98rem/1.2 var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; min-height: 2.75rem; }
.btn-primary { background: var(--saffron); color: var(--ink); }
.btn-primary:hover { background: #977f54; }
.btn-dark { background: var(--ink); color: #fffdfa; }
.btn-dark:hover { background: var(--ink-2); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Hero */
.hero { background: var(--ink); color: #fffdfa; position: relative; overflow: hidden; isolation: isolate; }
.hero .bg { position: absolute; inset: 0; z-index: -1; opacity: .5; }
.hero .bg .ph, .hero .bg svg { height: 100%; width: 100%; }
.hero .bg .home-hero-image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14,29,66,.96) 0%, rgba(14,29,66,.8) 45%, rgba(14,29,66,.25) 100%); }
.hero .wrap { padding-block: clamp(4rem, 12vw, 9rem) clamp(3rem, 7vw, 5rem); }
.hero h1 { max-width: 14ch; margin-bottom: .4em; }
.hero .lede { color: #eae3d5; }
.hero .ph-label { display: none; }
.hero-note { position: absolute; right: var(--gutter); top: .9rem; margin: 0; font-size: .75rem; color: #eae3d5; letter-spacing: .06em; text-transform: uppercase; }
.page-head { background: var(--ink); color: #fffdfa; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); position: relative; overflow: hidden; isolation: isolate; }
.page-head::before { content: ""; position: absolute; right: -8rem; top: -8rem; width: 28rem; height: 28rem; border-radius: 50%; border: 2.5rem solid rgba(151,127,84,.22); z-index: -1; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3.6rem); max-width: 20ch; margin-bottom: .3em; }
.page-head p.lede { color: #eae3d5; margin: 0; }
.crumbs { font-size: .88rem; margin-bottom: 1.4rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.crumbs li + li::before { content: "/"; margin-right: .3rem; color: #d5cebf; }
.crumbs a { color: #eae3d5; }
.crumbs [aria-current] { color: #fffdfa; }

/* Search panel */
.search-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 1.4rem; margin-top: -2.5rem; position: relative; z-index: 2; box-shadow: 0 20px 50px rgba(18,22,28,.14); }
.search-panel h2 { font-size: 1.3rem; margin-bottom: .8rem; }
.search-grid { display: grid; gap: 1rem; grid-template-columns: 2fr 1.2fr 1fr auto; align-items: end; }
@media (max-width: 62rem) { .search-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 38rem) { .search-grid { grid-template-columns: 1fr; } }
.note { font-size: .88rem; color: var(--muted); margin: .8rem 0 0; }

/* Sections */
.section { padding-block: var(--space); }
.section.alt { background: var(--sand); }
.section.dark { background: var(--ink); color: #fffdfa; }
.section.dark a:not(.btn) { color: #a58d62; }
.section.dark .card h3 a { color: var(--ink); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; margin-bottom: 2rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: .6rem 0 0; max-width: 36rem; }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }

/* Grids and cards */
.grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.grid.tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; position: relative; border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(18,22,28,.12); }
.card .ph { aspect-ratio: 16 / 10; }
.card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card h3 { margin: 0; font-size: 1.28rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card h3 a:focus-visible { outline-offset: -3px; }
.card p { margin: 0; color: #545d70; font-size: .98rem; }
.meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .88rem; color: var(--muted); margin: 0; padding: 0; list-style: none; }
.badge { display: inline-block; font: 700 .72rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: .35rem .55rem; border-radius: 2px; background: var(--sand); color: var(--ink); }
.badge.demo { background: var(--ink); color: var(--saffron); }
.badge.state { background: #eae3d5; color: #0e1d42; }
.badge.sold { background: #eae3d5; color: #0e1d42; }
.badge.free { background: #eae3d5; color: #0e1d42; }
.badges { display: flex; flex-wrap: wrap; gap: .4rem; }
.tile { background: var(--paper); padding: 1.5rem; position: relative; min-height: 9rem; display: flex; flex-direction: column; gap: .4rem; }
.tile h3 { margin: 0; font-size: 1.2rem; }
.tile h3 a { color: var(--ink); text-decoration: none; }
.tile h3 a::after { content: ""; position: absolute; inset: 0; }
.tile h3 a::before { content: "→"; float: right; color: var(--clay-deep); transition: transform .2s; }
.tile:hover h3 a::before { transform: translateX(4px); }
.tile p { margin: 0; color: var(--muted); font-size: .95rem; }
.tile:hover { background: #fffdfa; }

/* Placeholder art */
.ph { margin: 0; position: relative; background: var(--ink); }
.ph svg { width: 100%; height: 100%; }
.ph-label { position: absolute; left: .6rem; bottom: .6rem; font: 700 .65rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; background: rgba(18,22,28,.82); color: #fffdfa; padding: .3rem .45rem; border-radius: 2px; }
.detail-hero .ph { aspect-ratio: 21 / 9; border-radius: var(--radius); }
@media (max-width: 40rem) { .detail-hero .ph { aspect-ratio: 16 / 10; } }

/* Callouts, lists */
.callout { border-left: 5px solid var(--saffron); background: #eae3d5; padding: 1.1rem 1.3rem; margin: 1.5rem 0; border-radius: 0 var(--radius) var(--radius) 0; max-width: var(--measure); }
.callout.warning { border-color: var(--clay); background: #eae3d5; }
.callout-title { font: 600 1.1rem var(--serif); margin: 0 0 .3rem !important; }
.callout p { margin: 0; }
.tbc { max-width: var(--measure); }
.tbc ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.tbc li { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tbc .val { font: 700 .75rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; background: var(--sand); color: var(--ink); padding: .3rem .5rem; align-self: center; border-radius: 2px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.steps li { counter-increment: s; background: var(--paper); padding: 1.4rem; }
.steps li::before { content: "0" counter(s); font: 600 1.8rem var(--serif); color: var(--clay-deep); display: block; margin-bottom: .4rem; }
.steps h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.steps p { margin: 0; font-size: .96rem; color: var(--muted); }
.empty { border: 2px dashed var(--line); padding: 2rem; text-align: left; max-width: var(--measure); border-radius: var(--radius); background: rgba(255,255,255,.4); }
.empty h2 { font-size: 1.4rem; }
.stack > * + * { margin-top: var(--space); }
.stack-sm > * + * { margin-top: 2.2rem; }
.cta-band { background: var(--teal); color: #fffdfa; padding: clamp(2rem, 5vw, 3.5rem); border-radius: 6px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { margin: 0 0 .3em; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.cta-band p { margin: 0; max-width: 34rem; }
.staging-note { border: 1px dashed var(--clay); background: #fffdfa; padding: .8rem 1rem; font-size: .88rem; margin-top: 2rem; max-width: var(--measure); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); max-width: var(--measure); }
.faq summary { cursor: pointer; padding: 1rem 2rem 1rem 0; font: 600 1.15rem var(--serif); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: .8rem; font: 400 1.6rem var(--sans); color: var(--clay-deep); }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 0 1.2rem; color: var(--muted); }

/* Forms */
.form { max-width: 40rem; display: grid; gap: 1.1rem; }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .3rem; }
.field input, .field select, .field textarea { width: 100%; font: 1rem var(--sans); padding: .75rem .85rem; border: 2px solid var(--clay); background: var(--paper); border-radius: var(--radius); color: var(--ink); min-height: 2.9rem; }
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.field .help { font-size: .88rem; color: var(--muted); margin-top: .25rem; }
.field .err { color: #9b1c1c; font-weight: 600; font-size: .9rem; margin-top: .25rem; }
.field [aria-invalid="true"] { border-color: #9b1c1c; }
.req { color: var(--clay-deep); }
.demo-box { border: 2px solid var(--ink); background: var(--sand); padding: 1rem 1.2rem; border-radius: var(--radius); font-size: .95rem; }
.confirm { border: 2px solid var(--teal); background: #eae3d5; padding: 1.2rem 1.4rem; border-radius: var(--radius); max-width: 40rem; }
.confirm h3 { margin-top: 0; }
.confirm:focus { outline: 3px solid var(--focus); }
.confirm dl { margin: 1rem 0 0; display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; font-size: .95rem; }
.confirm dt { font-weight: 700; }
.confirm dd { margin: 0; overflow-wrap: anywhere; }

/* Filters */
.filters { background: var(--paper); border: 1px solid var(--line); padding: 1.2rem; border-radius: 6px; display: grid; gap: 1rem; grid-template-columns: 2fr 1.3fr 1fr auto; align-items: end; margin-bottom: 1rem; }
@media (max-width: 62rem) { .filters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 38rem) { .filters { grid-template-columns: 1fr; } }
.results-count { font-weight: 700; margin: 1rem 0; }
.cal-note { font-size: .92rem; color: var(--muted); }
.cat-links { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.cat-links a { display: inline-block; padding: .55rem 1rem; border: 1px solid var(--ink); border-radius: 99px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.cat-links a:hover, .cat-links a[aria-current] { background: var(--ink); color: #fffdfa; }

/* Event detail */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 2rem 0; }
.facts div { background: var(--paper); padding: 1rem 1.2rem; }
.facts dt { font: 700 .72rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.facts dd { margin: 0; font-weight: 500; }
.facts dd.tbcv { color: var(--saffron-deep); font-weight: 700; }
.two-col { display: grid; gap: 3rem; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 62rem) { .two-col { grid-template-columns: 1fr; gap: 2rem; } }
.aside-card { background: var(--paper); border: 1px solid var(--line); padding: 1.4rem; border-radius: 6px; }
.states { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.states button { border: 2px solid var(--ink); background: #fffdfa; color: var(--ink); padding: .5rem .8rem; font: 600 .85rem var(--sans); border-radius: 99px; cursor: pointer; min-height: 2.5rem; }
.states button[aria-pressed="true"] { background: var(--ink); color: #fffdfa; }

/* Footer */
.site-footer { background: var(--ink); color: #eae3d5; padding: 4rem 0 2rem; }
.site-footer a { color: #fffdfa; }
.site-footer h2 { font: 700 .78rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #a58d62; margin-bottom: 1rem; }
.footer-brand { display: inline-block; margin-bottom: 1.25rem; }
.footer-brand img { display: block; width: min(100%, 15rem); height: auto; }
.foot-grid { display: grid; gap: 2.5rem; grid-template-columns: 1.5fr 1fr 1fr; }
@media (max-width: 52rem) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.foot-note { border-top: 1px solid var(--ink-2); margin-top: 3rem; padding-top: 1.5rem; font-size: .88rem; display: grid; justify-items: center; gap: .4rem; color: #d5cebf; text-align: center; }
.foot-note p { margin: 0; }

/* Newsletter */
.newsletter .wrap { max-width: 52rem; text-align: center; }
.newsletter h2 { margin-bottom: .45rem; }
.newsletter .wrap > p:not(.small) { max-width: 43rem; margin-inline: auto; }
.newsletter-form { display: flex; justify-content: center; gap: .75rem; max-width: 40rem; margin: 1.5rem auto .75rem; }
.newsletter-form input { flex: 1; min-width: 0; min-height: 2.9rem; padding: .7rem .9rem; border: 2px solid var(--clay); border-radius: var(--radius); background: var(--paper); color: var(--ink); font: 1rem var(--sans); }
.newsletter-form input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--ink); }
.newsletter-form .btn { flex: none; }
.newsletter-feedback { max-width: 40rem; margin: 0 auto; color: var(--muted); }
@media (max-width: 38rem) { .newsletter-form { flex-direction: column; } .newsletter-form .btn { justify-content: center; } }

/* Staging console */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--paper); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--sand); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
caption { text-align: left; padding: .8rem .9rem; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card:hover { transform: none; }
}
@media (forced-colors: active) {
  .btn, .card, .tile { border: 1px solid CanvasText; }
}
@media print { .site-header, .site-footer, .staging { display: none; } body { background: #fffdfa; } }

/* Nav refinements: link plus separate submenu toggle */
.nav-item { display: flex; flex-wrap: wrap; align-items: center; }
.nav-item > a { padding: 1.6rem .2rem 1.6rem .7rem; }
.nav-item > .sub-toggle { padding: 1.6rem .55rem 1.6rem .2rem; width: auto; }
.nav-item > .sub-toggle::after { margin-left: 0; }
.nav-item > .sub { flex-basis: 100%; }
.no-js .sub-toggle { display: none; }
@media (max-width: 62rem) {
  .nav-item > a { flex: 1; padding: .9rem 0; width: auto; }
  .nav-item > .sub-toggle { padding: .9rem .6rem; width: auto; justify-content: center; }
  .nav-item > .sub { flex-basis: 100%; }
}



/* WordPress editor compatibility: keep source widths and remove theme defaults. */
.wp-site-blocks { overflow: clip; }
.wp-block-post-content { margin-block: 0; }
.wp-block-html { margin-block: 0; }
.site-header .nav.open { display: block; }
.nav-item > .sub.open { display: block; }
@media (max-width: 62rem) {
  .js .nav.open { display: block; }
}

.hero h1, .page-head h1 { color: #fffdfa; }

/* Content type templates use the same card and section system as the staging pages. */
.wsc-card-image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
.wsc-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wsc-card-date { margin-top: auto !important; color: var(--muted) !important; font-size: .9rem !important; }
.wsc-facts { margin-block: 2rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.wsc-facts h2, .wsc-facts h3 { margin-top: 0; }
.wsc-facts dl { display: grid; gap: .75rem; margin: 0; }
.wsc-facts dl > div { display: grid; grid-template-columns: minmax(9rem, .7fr) 2fr; gap: 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.wsc-facts dt { font-weight: 700; }
.wsc-facts dd { margin: 0; }
.wsc-space-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .75rem; margin-block: 1.5rem; }
.wsc-space-gallery img { display: block; width: 100%; height: 100%; max-height: 24rem; object-fit: cover; border-radius: var(--radius); }
.wsc-related-list { padding-left: 1.25rem; }
.wsc-booking-cta { margin-top: 2rem; padding: 2rem; border-radius: var(--radius); }
.wsc-single-event > .wp-block-group > .wp-block-post-featured-image img,
.wsc-single-space > .wp-block-group > .wp-block-post-featured-image img { display: block; width: 100%; max-height: 38rem; object-fit: cover; border-radius: var(--radius); }
.page-head { margin-bottom: 2rem; padding: clamp(2rem, 5vw, 4rem); border-radius: var(--radius); background: var(--ink); color: #fffdfa; }
.page-head .lede { color: #eae3d5; max-width: 45rem; }
.filters select { min-height: 2.8rem; border: 1px solid var(--line); border-radius: 4px; padding: .5rem .7rem; background: var(--paper); color: var(--ink); font: inherit; }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero .button-row .btn-primary { color: var(--ink); background: #a58d62; border-color: #a58d62; box-shadow: 0 8px 24px rgba(0,0,0,.22); }
.hero .button-row .btn-primary:hover { background: #977f54; border-color: #977f54; }
.hero .button-row .btn-ghost { color: #fffdfa; border-color: rgba(255,255,255,.78); background: rgba(18,22,28,.28); }
.hero .button-row .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fffdfa; }
.wsc-empty { padding: 2rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
@media (max-width: 38rem) { .wsc-facts dl > div { grid-template-columns: 1fr; gap: .2rem; } }
.wp-block-group.is-layout-flow > .search-panel { margin-top: -2.5rem !important; }

/* Event detail layout: poster-led layout with event content kept editable in WordPress. */
.wsc-single-event { overflow: clip; }
.wsc-event-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--paper); }
.wsc-event-hero::after { content: ""; position: absolute; z-index: 0; top: -20rem; right: max(-11rem, calc((100vw - 88rem) / 2 - 8rem)); width: clamp(30rem, 54vw, 54rem); aspect-ratio: 1; border: 1px solid rgba(165, 141, 98, .24); border-radius: 50%; box-shadow: 0 0 0 3.5rem rgba(165, 141, 98, .035), 0 0 0 7rem rgba(165, 141, 98, .025); pointer-events: none; }
.wsc-event-hero-grid { position: relative; z-index: 1; display: block !important; width: min(100% - 2 * var(--gutter), 88rem) !important; max-width: 88rem !important; margin-inline: auto !important; padding-block: clamp(3.5rem, 8vw, 7rem); }
.wsc-event-intro { max-width: 58rem !important; }
.wsc-event-breadcrumb { margin: 0 0 1.7rem; color: var(--sand); font-size: .9rem; }
.wsc-event-breadcrumb a { color: var(--paper); text-decoration-color: var(--saffron); text-underline-offset: .2em; }
.wsc-event-breadcrumb a:hover { text-decoration-thickness: 2px; }
.wsc-event-intro .eyebrow, .wsc-event-intro .eyebrow a { color: var(--saffron); }
.wsc-event-intro .eyebrow { margin-bottom: 1rem; font-size: .78rem; letter-spacing: .14em; }
.wsc-event-intro .eyebrow a { text-decoration: none; }
.wsc-event-intro h1 { max-width: 19ch; margin: 0 0 .45em; color: var(--paper); font-size: clamp(2.7rem, 6.5vw, 5.4rem); line-height: 1.02; }
.wsc-event-intro .lede { max-width: 44rem; margin-bottom: 0; color: var(--sand); font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.wsc-event-art-section { padding-block: clamp(2rem, 4vw, 3.5rem); }
.wsc-event-art-wrap { width: min(100% - 2 * var(--gutter), 88rem) !important; max-width: 88rem !important; margin-inline: auto !important; }
.wsc-event-artwork { width: 100%; max-width: none !important; margin: 0; overflow: hidden; aspect-ratio: 21 / 9; border-radius: var(--radius); background: var(--ink-2); }
.wsc-event-artwork img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wsc-event-notice { width: min(100% - 2 * var(--gutter), 88rem) !important; max-width: 88rem !important; margin: 0 auto !important; padding-block: 0 1.5rem; }
.wsc-event-notice p { display: flex; align-items: baseline; gap: 1rem; margin: 0; padding: 1rem 1.25rem; border-left: 4px solid var(--saffron); background: var(--sand); color: var(--ink); }
.wsc-event-notice strong { flex: none; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.wsc-event-main.section { padding-block: 1rem clamp(3rem, 6vw, 5rem); }
.wsc-event-main-wrap { width: min(100% - 2 * var(--gutter), 88rem) !important; max-width: 88rem !important; margin-inline: auto !important; }
.wsc-event-layout { display: grid !important; width: 100% !important; max-width: none !important; margin-inline: 0 !important; grid-template-columns: minmax(0, 1.35fr) minmax(18rem, .75fr); align-items: start; gap: clamp(2rem, 5vw, 4.5rem); }
.wsc-event-layout > .wp-block-group { width: 100% !important; max-width: none !important; margin-inline: 0 !important; }
.wsc-event-story { min-width: 0; }
.wsc-event-story > .wp-block-post-content { margin: 0; }
.wsc-event-story > .wp-block-post-content > * { max-width: 48rem; margin-inline: 0 !important; }
.wsc-event-story > .wp-block-post-content > :first-child { margin-top: 0; }
.wsc-event-facts { width: 100% !important; max-width: none !important; margin: 2rem 0; }
.wsc-event-facts .wsc-facts { margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.wsc-event-facts .wsc-facts h2 { margin: 0; padding: 1.25rem 1.25rem .9rem; font-size: 1.5rem; }
.wsc-event-facts .wsc-facts dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; border-top: 1px solid var(--line); background: var(--line); }
.wsc-event-facts .wsc-facts dl > div { display: block; min-width: 0; padding: 1rem 1.1rem; background: var(--paper); }
.wsc-event-facts .wsc-facts dt { margin-bottom: .4rem; font-size: .69rem; letter-spacing: .1em; }
.wsc-event-facts .wsc-facts dd { font-weight: 650; overflow-wrap: anywhere; }
.wsc-event-sidebar { min-width: 0; }
.wsc-event-sidebar .wsc-booking-cta { position: sticky; top: 1.5rem; margin: 0; padding: clamp(1.4rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.wsc-event-sidebar .wsc-booking-cta h2 { margin: 0 0 1rem; font-size: 1.65rem; }
.wsc-event-sidebar .wsc-booking-cta p { margin: 0 0 1rem; }
.wsc-event-sidebar .wsc-booking-cta p:last-child { margin-bottom: 0; }
.wsc-event-sidebar .wsc-booking-cta .btn { background: var(--saffron); border-color: var(--saffron); color: var(--ink); }
.wsc-event-sidebar .wsc-booking-cta .btn:hover { background: var(--saffron-deep); border-color: var(--saffron-deep); color: var(--paper); }
.wsc-event-sidebar .wsc-booking-cta .btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.wsc-event-sidebar .wsc-booking-cta .section { padding: 0; }
.wsc-event-story > .wp-block-shortcode .wsc-facts { margin-top: 2rem; }
@media (max-width: 62rem) {
  .wsc-event-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .wsc-event-sidebar .wsc-booking-cta { position: static; }
}
@media (max-width: 48rem) {
  .wsc-event-hero-grid { padding-block: 3rem; }
  .wsc-event-intro h1 { font-size: clamp(2.5rem, 11vw, 4.25rem); }
  .wsc-event-artwork { aspect-ratio: 16 / 10; }
  .wsc-event-facts .wsc-facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wsc-event-notice p { display: grid; gap: .3rem; }
}
@media (max-width: 34rem) {
  .wsc-event-facts .wsc-facts dl { grid-template-columns: minmax(0, 1fr); }
  .wsc-event-facts .wsc-facts dl > div { padding: .9rem 1rem; }
}
