/* Howick 06: shared layout, typography and control tokens. */
:root {
  color-scheme: light;
  --navy: #18344e;
  --salmon: #f48d90;
  --blue: #dceaf2;
  --paper: #fffdf8;
  --surface: #fff;
  --soft: #f2f6f8;
  --muted: #526b7c;
  --line: #d8e1e6;
  --focus: #a13c46;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 24px;
  --control-height: 48px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-space: clamp(48px, 6vw, 80px);
  --content-width: 1240px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--navy); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; color: inherit; }
button, input, select, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
button, input, select { min-height: var(--control-height); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
input, select { width: 100%; min-width: 0; max-width: 100%; padding: 11px 14px; }
input::placeholder { color: #62727e; opacity: 1; }
button { padding: 10px 18px; }
a, button, input, select { transition: background-color .16s ease, border-color .16s ease, color .16s ease; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.045em; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.2vw, 64px); line-height: 1.04; }
h2 { font-size: clamp(28px, 3.3vw, 40px); line-height: 1.12; }
h3 { font-size: 24px; line-height: 1.2; letter-spacing: -.03em; }
p { max-width: 65ch; }
p + p { margin-top: 16px; }
.wrap { width: min(var(--content-width), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.preview { padding: 9px 0; background: var(--blue); font-size: 10px; line-height: 1.4; letter-spacing: .035em; }
.preview .wrap { display: flex; justify-content: space-between; gap: 24px; }
header { display: flex; align-items: center; justify-content: space-between; min-height: 108px; gap: 24px; padding-block: 24px; }
.logo { display: block; width: 176px; max-width: 100%; height: auto; }
#navigation { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
#navigation a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
#navigation a:hover, #navigation a[aria-current] { background: var(--blue); text-decoration: none; }
#navigation .pill { margin-left: 8px; padding-inline: 20px; border: 1px solid #b8c7d1; }
.menu { display: none; }
.hero { display: grid; grid-template-columns: 42% 58%; overflow: hidden; border-radius: var(--radius-lg); background: var(--navy); color: white; }
.hero-copy { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px; }
.eyebrow { font-size: 11px; line-height: 1.5; letter-spacing: .1em; font-weight: 650; text-transform: uppercase; }
.hero h1 { font-size: clamp(46px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -.05em; }
.hero em { font-style: normal; color: var(--salmon); }
.hero-copy > p:not(.eyebrow) { font-size: 17px; line-height: 1.6; max-width: 30ch; color: #e6edf2; }
.hero-copy > a { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; font-size: 14px; font-weight: 600; text-decoration: none; border-bottom: 1px solid #7890a4; }
.hero-copy > a:hover { border-color: var(--salmon); color: var(--salmon); }
figure { margin: 0; position: relative; overflow: hidden; background: var(--blue); }
figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
figcaption { position: absolute; bottom: 10px; left: 10px; right: 10px; width: fit-content; max-width: calc(100% - 20px); padding: 5px 8px; border-radius: 5px; background: rgba(255,253,248,.94); color: var(--navy); font-size: 10px; line-height: 1.45; }
figcaption a { white-space: nowrap; }
.hero figure { height: 480px; }
.hero img { object-position: 50% 50%; }
/* Explicit grids keep native date and select controls aligned at every width. */
.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 20px 16px; padding: 24px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); }
.filters-home { display: none; margin-bottom: 28px; }
.js .filters-home { display: grid; }
.filters label, .periods legend { font-size: 12px; line-height: 1.4; font-weight: 600; }
.field, .search { display: flex; min-width: 0; flex-direction: column; gap: 8px; }
.search { grid-column: span 2; }
.search-control { display: flex; height: var(--control-height); background: var(--surface); border: 1px solid #bacad4; border-radius: var(--radius-sm); }
.search input { border: 0; border-radius: inherit; background: transparent; min-height: 0; padding-right: 8px; }
.search button { flex: 0 0 46px; min-height: 0; border: 0; border-radius: 0 9px 9px 0; padding: 0; background: var(--navy); color: white; font-size: 22px; }
.search button:hover { background: #2b4d69; }
.search-control:focus-within { border-color: var(--navy); outline: 3px solid var(--focus); outline-offset: 3px; }
.search input:focus-visible { outline: none; }
.filters input, .filters select { font-size: 16px; font-weight: 400; line-height: 1.3; height: var(--control-height); }
.select-control { position: relative; display: block; min-width: 0; }
.select-control select { appearance: none; -webkit-appearance: none; padding-right: 40px; text-overflow: ellipsis; border-color: #bacad4; }
.select-chevron { position: absolute; width: 7px; height: 7px; right: 18px; top: 19px; border-right: 1.5px solid var(--navy); border-bottom: 1.5px solid var(--navy); transform: rotate(45deg); pointer-events: none; }
select option { background: var(--surface); color: var(--navy); font: inherit; }
select:hover, input:hover { border-color: #8da5b6; }
input[type=date] { border-color: #bacad4; color-scheme: light; }
.periods { grid-column: span 2; min-width: 0; margin: 0; padding: 0; border: 0; }
.periods legend { margin-bottom: 8px; padding: 0; }
.period-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: var(--control-height); gap: 4px; padding: 4px; background: #e6edf1; border: 1px solid var(--line); border-radius: 12px; }
.periods label { position: relative; display: flex; align-items: stretch; justify-content: center; min-width: 0; cursor: pointer; }
.periods span { display: flex; align-items: center; justify-content: center; width: 100%; padding: 6px 8px; border-radius: 8px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.periods input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; opacity: 0; cursor: pointer; }
.periods input:checked + span { background: var(--navy); color: white; }
.periods input:not(:checked):hover + span { background: #f8fafb; }
.periods input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.filter-hint { grid-column: 1 / -1; font-size: 11px; line-height: 1.5; color: var(--muted); margin: -6px 0 0; }
.filter-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 4px; }
.check-label { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.filters .check-label input { width: 18px; height: 18px; min-height: 18px; margin: 0; accent-color: var(--navy); }
.reset { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 8px 12px; min-height: 44px; border-color: transparent; background: transparent; font-size: 13px; }
.reset:hover { border-color: #bacad4; background: var(--surface); }
.results-summary { margin: 24px 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.results-summary:empty { display: none; }
/* Shared section rhythm and editorial cards. */
.section { padding-block: var(--section-space); }
.section + .section { padding-top: 0; }
.section > h2 { margin-bottom: 28px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.section-heading h2 + .eyebrow { margin-top: 12px; color: var(--muted); }
.section-heading > a { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; text-decoration: none; }
.section-heading > a:hover { text-decoration: underline; }
.event-discovery { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
.card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; }
.card figure { height: 220px; flex-shrink: 0; }
.card-copy { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 24px; gap: 14px; }
.card h3 { width: 100%; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.card p + p { margin-top: 0; }
.card .eyebrow { font-size: 10px; line-height: 1.5; letter-spacing: .08em; color: var(--muted); }
.card-meta { display: flex; flex-direction: column; gap: 6px; padding-block: 2px; }
.card-meta p { font-size: 12px; line-height: 1.55; }
.card-meta .place { font-weight: 600; color: var(--navy); }
.arrow-link { width: 100%; min-height: 44px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 13px; font-weight: 600; text-decoration: none; }
.card .arrow-link { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }
.arrow-link:hover { text-decoration: underline; }
.arrow-link span { font-size: 20px; font-weight: 400; }
.featured { background: var(--salmon); border-color: transparent; }
.featured figure { height: clamp(280px, 30vw, 380px); }
.featured .card-copy { padding: 28px; }
.featured h3 { font-size: 32px; }
.featured .card-copy p { color: var(--navy); }
.featured .arrow-link { border-color: rgba(24,52,78,.22); }
.compact { display: grid; grid-template-rows: 1fr 1fr; gap: 24px; }
.compact .card { display: grid; grid-template-columns: 32% minmax(0,1fr); border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding-bottom: 24px; gap: 24px; }
.compact .card.text-card { grid-template-columns: minmax(0,1fr); }
.featured.text-card { display: flex; }
.compact .card:last-child { padding-bottom: 0; border-bottom: 0; }
.compact .card figure { height: 100%; min-height: 200px; border-radius: 12px; }
.compact .card-copy { padding: 0; gap: 12px; }
.compact h3 { font-size: 24px; }
.compact .card-summary { font-size: 14px; }
.compact .card .arrow-link { border: 0; padding-top: 0; }
.compact figcaption { font-size: 9px; left: 7px; right: 7px; bottom: 7px; max-width: calc(100% - 14px); }
.note { margin-top: 20px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.practical { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 32px; padding: 36px; background: var(--blue); border-radius: var(--radius); }
.practical h2 { font-size: 32px; }
.practical h3 { font-size: 20px; }
.practical p { margin-top: 16px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.practical .eyebrow { margin-top: 24px; font-size: 10px; }
.practical a { display: flex; flex-direction: column; text-decoration: none; border-left: 1px solid #b7cad6; padding-left: 24px; }
.practical a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.practical a span { align-self: flex-end; margin-top: auto; padding-top: 20px; font-size: 20px; }
.practical-links { display: contents; }
.business-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.business-intro figure { height: 360px; border-radius: var(--radius); }
.business-intro .eyebrow { margin-bottom: 20px; color: var(--muted); }
.business-intro h2 { margin-bottom: 24px; }
.business-intro p { font-size: 16px; color: var(--muted); }
.category-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-block: 24px; }
.category-links a { min-height: 48px; display: flex; align-items: center; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 14px; font-weight: 500; }
.category-links a:hover { border-color: var(--navy); }
.grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; padding: 0 0 var(--section-space); }
.grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.grid:empty { padding-bottom: 0; }
.section .grid { padding-bottom: 0; }
.grid .text-card { background: #f1f5f7; }

.grid .card figure { height: 220px; }
.page-heading { padding: 48px 0 40px; }
.page-heading .eyebrow { color: var(--muted); margin-bottom: 20px; }
.page-heading h1 { max-width: 20ch; margin-bottom: 24px; }
.page-heading > p:last-child { font-size: 18px; color: var(--muted); max-width: 60ch; }
/* Detail and utility templates share the same gutters and text rhythm. */
.back { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; font-size: 13px; text-decoration: none; color: var(--muted); }
.back:hover { color: var(--navy); text-decoration: underline; }
.detail-heading { max-width: 900px; padding: 32px 0 40px; }
.detail-heading .eyebrow { color: var(--muted); margin-bottom: 20px; }
.detail-heading h1 { margin-bottom: 24px; }
.lead { color: var(--muted); font-size: clamp(18px,2vw,22px); line-height: 1.6; }
.detail-heading .status { margin-top: 24px; }
.detail-layout { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(280px,1fr); align-items: start; gap: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.detail-layout article { min-width: 0; }
.detail-layout article figure { height: 400px; border-radius: var(--radius); margin-bottom: 32px; }
.detail-layout article h2 { font-size: 28px; margin: 32px 0 16px; }
.detail-layout article > h2:first-child { margin-top: 0; }
.detail-layout article p { font-size: 17px; line-height: 1.75; }
.detail-layout article .note { font-size: 13px; }
.detail-layout aside { padding: 28px; background: var(--blue); border-radius: var(--radius); }
.detail-layout aside h2 { font-size: 26px; margin-bottom: 24px; }
.detail-layout aside p { font-size: 15px; line-height: 1.65; margin-bottom: 20px; }
.detail-layout aside p + p { margin-top: 0; }
.detail-layout aside p strong { display: inline-block; margin-bottom: 3px; font-size: 12px; letter-spacing: .02em; }
.detail-layout aside small { font-size: 12px; color: var(--muted); }
.detail-layout aside .note { font-size: 12px; margin: 16px 0 0; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border-radius: 999px; background: var(--navy); color: white; text-decoration: none; font-weight: 600; font-size: 14px; }
.button:hover { background: #2b4d69; text-decoration: none; }
.external-icon { display: inline-block; flex-shrink: 0; position: relative; width: 9px; height: 9px; margin-left: 8px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; }
.external-icon:after { content: ''; position: absolute; width: 11px; border-top: 1.5px solid currentColor; right: -2px; top: 3px; transform: rotate(-45deg); }
.detail-layout .button { width: 100%; }
.sessions { margin-top: 32px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.sessions h2 { margin-top: 0!important; }
.sessions p + p { padding-top: 16px; border-top: 1px solid var(--line); }
.footerline { display: flex; justify-content: space-between; gap: 32px; padding-block: 28px; font-size: 11px; line-height: 1.6; color: var(--muted); }
.footerline p { margin: 0; }
footer { padding-top: 8px; }
.empty { margin: 0 0 var(--section-space); padding: 64px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); text-align: center; }
.empty p { margin: 16px auto 24px; }
.empty button { background: var(--navy); color: white; border-radius: 999px; }
.credit { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.8fr); gap: 40px; padding: 32px 0; border-top: 1px solid var(--line); }
.credit figure { height: 250px; border-radius: var(--radius); }
.credit h2 { font-size: 28px; margin-bottom: 20px; }
.credit p { font-size: 15px; }
.credit:last-of-type + p { margin: 16px 0 var(--section-space); color: var(--muted); font-size: 14px; }
.prose { max-width: 760px; padding: 56px 0 80px; }
.prose .eyebrow { margin-bottom: 20px; color: var(--muted); }
.prose h1 { margin-bottom: 32px; }
.prose h2 { margin: 40px 0 20px; font-size: 32px; }
.prose p { font-size: 18px; line-height: 1.75; color: var(--muted); }
.prose .button { margin-top: 16px; }
/* Shared native disclosures follow the same controls and spacing rhythm. */
.prose details { margin-block: 24px; padding-inline: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.prose summary { min-height: var(--control-height); padding-block: 16px; font-size: 15px; line-height: 1.6; font-weight: 600; cursor: pointer; }
.prose summary::marker { color: var(--muted); }
.prose summary:hover { color: var(--focus); }
.prose summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.prose details[open] summary { border-bottom: 1px solid var(--line); }
.prose details > p { margin: 0; padding-block: 16px 24px; font-size: 16px; line-height: 1.7; }
@media (max-width: 640px) { .prose details { padding-inline: 20px; } }

.status { display: inline-block; width: fit-content; max-width: 100%; border-radius: 6px; padding: 5px 8px; background: var(--blue); color: var(--navy)!important; font-size: 10px!important; line-height: 1.5!important; font-weight: 600; letter-spacing: .005em; }
.status-sold_out, .status-cancelled { background: #f6d5d4; }
.status-ended { background: #e3e6e8; }
.featured .status { background: rgba(255,253,248,.65); }
.skip { position: fixed; top: 8px; left: 16px; z-index: 20; transform: translateY(-150%); background: var(--surface); border-radius: 8px; padding: 12px 20px; }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
[hidden] { display: none!important; }
@media (max-width: 1050px) {
  .logo { width: 168px; }
  #navigation { gap: 0; font-size: 13px; }
  #navigation a { padding-inline: 10px; }
  #navigation .pill { padding-inline: 14px; }
  .event-discovery { gap: 24px; }
  .compact .card { gap: 18px; }
  .compact h3 { font-size: 22px; }
  .practical { grid-template-columns: 1fr 1fr; gap: 28px; }
  .practical a { border-left: 0; border-top: 1px solid #b7cad6; padding: 20px 0 0; }
  .business-intro, .detail-layout { gap: 36px; }
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  header { flex-wrap: wrap; min-height: 92px; gap: 0; padding-block: 20px; }
  .js .menu { display: inline-flex; align-items: center; gap: 12px; padding: 8px 12px; min-height: 44px; border-color: transparent; background: transparent; font-size: 13px; }
  .menu:hover { background: var(--soft); }
  .menu-icon { width: 16px; height: 10px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; position: relative; }
  .menu[aria-expanded=true] .menu-icon { border-bottom: 0; transform: rotate(45deg); height: 0; }
  .menu[aria-expanded=true] .menu-icon:after { content: ''; position: absolute; width: 16px; border-top: 1px solid currentColor; transform: rotate(90deg); top: -1px; left: 0; }
  #navigation { width: 100%; align-items: stretch; flex-direction: column; gap: 4px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
  .js #navigation { display: none; }
  .js #navigation.open { display: flex; }
  #navigation a { padding: 12px 16px; border-radius: 10px; font-size: 15px; }
  #navigation .pill { margin-left: 0; padding: 12px 16px; }
  .hero { grid-template-columns: 1fr 1fr; }
  .hero-copy { padding: 32px; gap: 20px; }
  .hero h1 { font-size: 48px; }
  .hero figure { height: 440px; }
  .event-discovery { grid-template-columns: 1fr; }
  .featured { display: grid; grid-template-columns: 45% 55%; }
  .featured figure { height: 100%; min-height: 320px; }
  .compact { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .compact .card { display: flex; border: 1px solid var(--line); border-radius: var(--radius); padding: 0; gap: 0; }
  .compact .card:last-child { border: 1px solid var(--line); }
  .compact .card figure { height: 200px; min-height: 0; border-radius: 0; }
  .compact .card-copy { padding: 24px; }
  .compact .card .arrow-link { border-top: 1px solid var(--line); padding-top: 8px; }
  .business-intro { gap: 32px; }
  .detail-layout { grid-template-columns: minmax(0,1.3fr) minmax(260px,1fr); gap: 28px; }
  .detail-layout aside { padding: 24px; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; --section-space: 48px; --radius-lg: 18px; }
  .preview { font-size: 8px; letter-spacing: .02em; }
  .preview span { display: none; }
  .logo { width: 144px; }
  header { min-height: 88px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 28px; }
  .hero h1 { font-size: clamp(44px,11vw,60px); }
  .hero-copy > p:not(.eyebrow) { font-size: 16px; }
  .hero figure { height: 260px; }
  .filters { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 12px; padding: 20px; }
  .search, .periods { grid-column: 1 / -1; }
  .filters-businesses .search { grid-column: 1 / -1; }
  .filters input, .filters select { padding-inline: 12px; font-size: 16px; }
  .select-control select { padding-right: 32px; }
  .select-chevron { right: 14px; }
  .periods span { font-size: 12px; padding-inline: 3px; }
  .filter-actions { flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; }
  .filter-actions .reset { margin-left: auto; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 24px; }
  .section-heading > a { min-height: 36px; font-size: 13px; }
  .section-heading .eyebrow { font-size: 10px; }
  .featured { display: flex; }
  .featured figure { height: 230px; min-height: 0; }
  .featured .card-copy { padding: 24px; }
  .featured h3 { font-size: 30px; }
  .compact { grid-template-columns: 1fr; gap: 20px; }
  .compact .card figure { height: 230px; }
  .compact h3 { font-size: 25px; }
  .compact .card-summary { font-size: 15px; }
  .compact figcaption { font-size: 10px; }
  .practical { grid-template-columns: 1fr; padding: 28px; gap: 24px; }
  .practical .eyebrow { margin-top: 16px; }
  .business-intro { grid-template-columns: 1fr; gap: 28px; }
  .business-intro figure { height: 260px; order: 2; }
  .category-links { gap: 0 20px; }
  .category-links a { font-size: 13px; }
  .grid, .grid.two { grid-template-columns: 1fr; gap: 20px; }
  .grid .card figure { height: 230px; }
  .page-heading { padding: 32px 0; }
  .page-heading .eyebrow { margin-bottom: 16px; }
  .page-heading h1 { font-size: 42px; margin-bottom: 20px; }
  .page-heading > p:last-child { font-size: 16px; }
  .detail-heading { padding: 24px 0 32px; }
  .detail-heading h1 { font-size: 40px; }
  .detail-layout { grid-template-columns: 1fr; gap: 32px; padding-top: 24px; }
  .detail-layout article figure { height: 260px; }
  .detail-layout article p { font-size: 16px; }
  .detail-layout article h2 { font-size: 26px; }
  .footerline { flex-direction: column; gap: 16px; padding-block: 24px; }
  .credit { grid-template-columns: 1fr; gap: 24px; padding-block: 28px; }
  .credit figure { height: 240px; }
  .credit h2 { font-size: 26px; }
  .prose { padding: 36px 0 56px; }
  .prose h1 { font-size: 40px; }
  .prose p { font-size: 17px; }
  .prose h2 { font-size: 28px; }
  .empty { padding: 44px 24px; }
}
@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .logo { width: 136px; }
  .filters { padding: 16px; gap: 16px 10px; }
  .field { grid-column: 1 / -1; }
  .filters input, .filters select { padding-inline: 9px; font-size: 16px; }
  .select-control select { padding-right: 27px; }
  .select-chevron { right: 11px; }
  .periods span { font-size: 11px; }
  .hero-copy { padding: 24px; }
  .hero h1 { font-size: 43px; }
  .page-heading h1, .detail-heading h1, .prose h1 { font-size: 36px; }
  .card-copy, .featured .card-copy, .compact .card-copy { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { transition: none!important; scroll-behavior: auto!important; }
}
@media (forced-colors: active) {
  .select-control select { appearance: auto; }
  .select-chevron { display: none; }
  .periods input:checked + span { outline: 2px solid Highlight; }
}
/* Submission form uses the same control, colour and spacing tokens. */
textarea { font: inherit; color: inherit; width: 100%; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); line-height: 1.6; resize: vertical; }
textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.submission-heading { max-width: 780px; }
.submission-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; padding-bottom: var(--section-space); }
.submission-layout > div { min-width: 0; }
.submission-form { display: grid; gap: 24px; }
.submission-form fieldset { display: grid; gap: 20px; min-width: 0; margin: 0; padding: 24px 0 0; border: 0; border-top: 1px solid var(--line); }
.submission-form legend { padding: 0 12px 0 0; font-size: 22px; font-weight: 600; letter-spacing: -.025em; }
.submission-form .field { font-size: 13px; font-weight: 600; }
.submission-form input, .submission-form select, .submission-form textarea { font-size: 16px; font-weight: 400; }
.form-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.form-help, .field-help { font-size: 12px; color: var(--muted); line-height: 1.6; font-weight: 400; }
.submission-form .field-help { margin-top: 0; }
.consent-label { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.6; cursor: pointer; }
.consent-label input { flex: 0 0 20px; width: 20px; height: 20px; min-height: 20px; padding: 0; margin: 2px 0 0; accent-color: var(--navy); }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.submission-form .button { justify-self: start; }
.submission-form button:disabled { opacity: .6; cursor: not-allowed; }
.submission-feedback { font-size: 14px; line-height: 1.6; margin: 0; padding: 16px; border-radius: var(--radius-sm); background: var(--soft); }
.submission-feedback:focus-visible, .submission-success:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.submission-feedback.is-error { color: #7b2631; background: #fff0f0; }
.submission-aside, .submission-success, .submission-test-note { padding: 28px; border-radius: var(--radius); background: var(--blue); }
.submission-aside h2, .submission-success h2 { font-size: 28px; margin-bottom: 20px; }
.submission-aside p { font-size: 14px; }
.submission-test-note { margin-bottom: 32px; background: #fff0f0; border: 1px solid #e5bec1; }
.submission-test-note p { margin-top: 8px; font-size: 14px; }
.submission-form [readonly] { background: var(--soft); }
.submission-success .note { overflow-wrap: anywhere; }
[data-turnstile] { min-width: 0; }
@media (max-width: 720px) { .submission-layout { grid-template-columns: 1fr; } .submission-aside { padding: 24px; } }
@media (max-width: 420px) { .form-pair { grid-template-columns: 1fr; } .submission-test-note { padding: 20px; } }

/* Browse long listings without losing the active filters or keyboard position. */
.results-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-block: 24px; }
.results-toolbar .results-summary { margin: 0; }
.results-summary:focus { outline: 3px solid var(--focus); outline-offset: 5px; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination a, .pagination .page-disabled, .page-position { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 13px; line-height: 1.5; white-space: nowrap; }
.pagination a { background: var(--surface); }
.pagination a:hover { background: var(--blue); }
.pagination a[aria-current] { background: var(--navy); color: white; border-color: var(--navy); }
.pagination .page-disabled { color: var(--muted); border-color: transparent; }
.page-position { border-color: transparent; padding-inline: 2px; }
.page-numbers { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.page-gap { align-self: center; padding-inline: 4px; }
.pagination-bottom { margin-bottom: var(--section-space); }
.js .listing-results:not(:empty) { padding-bottom: 32px; }
@media (max-width: 600px) {
  .results-toolbar { align-items: flex-start; flex-direction: column; gap: 12px; }
  .results-toolbar [data-pagination] { width: 100%; }
  .pagination-top { justify-content: space-between; gap: 4px; }
  .pagination-bottom { column-gap: 12px; row-gap: 12px; }
  .pagination-bottom .page-numbers { flex-basis: 100%; order: -1; }
}
