/* ==========================================================================
   Dance Africa Network
   Brand: yellow #F0C000 (matched to the DAN icon art) and charcoal #1B1919. Merriweather Sans only:
   800 for headings, 400 for reading text, 700 for interface labels. Nothing below 12px.
   The one bold move is the folded map: three slanted panels from the logo.
   ========================================================================== */

@font-face { font-family: "Merriweather Sans"; src: url("../fonts/merriweather-sans-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Merriweather Sans"; src: url("../fonts/merriweather-sans-latin-300-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Merriweather Sans"; src: url("../fonts/merriweather-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Merriweather Sans"; src: url("../fonts/merriweather-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Merriweather Sans"; src: url("../fonts/merriweather-sans-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
	--yellow: #f0c000;
	--yellow-deep: #d6aa00;
	--yellow-soft: #fdf1c2;
	--ink: #1b1919;
	--ink-soft: #3b3836;
	--muted: #66625d;
	--line: #e3e1da;
	--panel: #f5f4f0;
	--paper: #ffffff;
	--danger: #b3261e;
	--ok: #1e7a46;

	--font: "Merriweather Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--measure: 40rem;
	--wide: 76rem;
	--gutter: clamp(1rem, 4vw, 2.5rem);
	--radius: 10px;
	--header-h: 4.5rem;

	--step--1: 0.875rem;
	--step-0: 1.0625rem;
	--step-1: 1.25rem;
	--step-2: 1.625rem;
	--step-3: clamp(1.875rem, 3.6vw, 2.5rem);
	--step-4: clamp(2.375rem, 5.6vw, 3.75rem);
	--step-5: clamp(2.75rem, 7.4vw, 5.5rem);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font);
	font-weight: 400;
	font-size: var(--step-0);
	line-height: 1.7;
	text-rendering: optimizeLegibility;
}
img, video, iframe, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
strong, b { font-weight: 700; }
small { font-size: var(--step--1); }
.sr-only, .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link { position: absolute; left: -999px; top: 0; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--yellow); color: var(--ink); padding: 0.5rem 1rem; font-weight: 700; }
.wrap { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Buttons and links ---------- */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	font: inherit; font-weight: 700; font-size: var(--step--1); line-height: 1.2;
	padding: 0.75rem 1.3rem; border-radius: 999px; border: 2px solid transparent;
	text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #000; }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: var(--yellow-deep); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--big { font-size: var(--step-0); padding: 0.95rem 1.8rem; }
.link-arrow { font-weight: 700; font-size: var(--step--1); text-decoration: none; border-bottom: 2px solid var(--yellow); padding-bottom: 2px; }
.link-arrow:hover { border-color: var(--ink); }

/* ---------- Header ---------- */

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 1000; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--ink); }
.brand-icon { width: 2.4rem; height: auto; color: var(--yellow); flex: none; }
.brand-word { font-size: 1.05rem; line-height: 1; letter-spacing: -0.01em; font-weight: 300; }
.brand-word b { font-weight: 800; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 700; font-size: var(--step--1); padding-block: 0.4rem; }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--yellow); }
.nav-toggle { display: none; }
@media (max-width: 48rem) {
	.nav-toggle {
		display: inline-flex; font: inherit; font-weight: 700; font-size: var(--step--1);
		background: none; border: 2px solid var(--ink); border-radius: 999px; padding: 0.45rem 1rem; color: var(--ink); cursor: pointer;
	}
	.site-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 0;
		background: var(--paper); border-bottom: 1px solid var(--line); padding: 0.5rem var(--gutter) 1.25rem;
	}
	.nav-open .site-nav { display: flex; }
	.site-nav a:not(.btn) { padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: var(--step-0); }
	.site-nav .btn { margin-top: 1rem; }
}

/* ---------- Hero ---------- */

.hero { background: var(--yellow); overflow: hidden; }
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem); }
@media (min-width: 60rem) { .hero-grid { grid-template-columns: 1.15fr 1fr; } }
.hero h1 { font-size: var(--step-5); line-height: 0.98; letter-spacing: -0.04em; max-width: 11ch; }
.hero-lede { font-size: var(--step-1); line-height: 1.5; max-width: 32rem; margin: 1.25rem 0 2rem; font-weight: 400; }
.hero-search {
	display: grid; gap: 0.75rem; grid-template-columns: 1fr; align-items: end;
	background: var(--paper); padding: 1rem; border-radius: calc(var(--radius) + 6px); max-width: 40rem;
}
@media (min-width: 40rem) { .hero-search { grid-template-columns: 1fr 1fr auto; } }
.hero-search .btn { height: 3rem; }
.hero-note { font-size: var(--step--1); margin: 0.85rem 0 0; font-weight: 400; }

/* The folded map: three slanted panels, as in the logo. */
.fold { display: flex; gap: clamp(8px, 1.4vw, 16px); aspect-ratio: 1.1 / 1; width: 100%; max-width: 34rem; justify-self: center; text-decoration: none; }
.fold-panel {
	flex: 1; border-radius: 8px;
	background-color: var(--ink);
	background-image: var(--img, none);
	background-size: cover; background-position: center;
}
.fold-panel:nth-child(1) { clip-path: polygon(0 13%, 100% 0, 100% 87%, 0 100%); }
.fold-panel:nth-child(2) { clip-path: polygon(0 0, 100% 13%, 100% 100%, 0 87%); }
.fold-panel:nth-child(3) { clip-path: polygon(0 13%, 100% 0, 100% 87%, 0 100%); }
@media (prefers-reduced-motion: no-preference) {
	.fold-panel { animation: dan-unfold 800ms cubic-bezier(.2,.75,.2,1) both; transform-origin: left center; }
	.fold-panel:nth-child(2) { animation-delay: 90ms; }
	.fold-panel:nth-child(3) { animation-delay: 180ms; }
	@keyframes dan-unfold { from { transform: scaleX(0.1); opacity: 0; } to { transform: none; opacity: 1; } }
}
@media (max-width: 59.99rem) { .fold { max-width: 22rem; aspect-ratio: 1.3 / 1; } }
@media (max-width: 40rem) { .fold { max-width: 13rem; } .hero-grid { padding-bottom: 2rem; } }

/* ---------- Sections ---------- */

.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--tight { padding-block: clamp(1.5rem, 4vw, 3rem); }
.section--panel { background: var(--panel); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.section-head h2 { font-size: var(--step-3); }

.page-head { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 3vw, 2rem); border-bottom: 1px solid var(--line); }
.page-head--yellow { background: var(--yellow); border-bottom: 0; }
.page-head h1 { font-size: var(--step-4); letter-spacing: -0.03em; }
.lede { font-size: var(--step-1); line-height: 1.5; max-width: 40rem; margin: 0.75rem 0 0; font-weight: 400; }
.page-head .site-search { margin-top: 1.25rem; }

/* Sector list on the home page */
.sector-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); border-top: 2px solid var(--ink); }
.sector-list li { border-bottom: 1px solid var(--line); }
.sector-list a { display: block; padding: 1.1rem 1rem 1.1rem 0; text-decoration: none; height: 100%; }
.sector-list a:hover { background: var(--yellow-soft); padding-left: 0.75rem; transition: padding 150ms ease, background 150ms ease; }
.sector-list strong { display: block; font-size: var(--step-1); font-weight: 800; letter-spacing: -0.01em; }
.sector-list span { display: block; color: var(--muted); font-size: var(--step--1); margin-top: 0.15rem; }

/* Two blocks side by side */
.split { display: grid; gap: 1.25rem; }
@media (min-width: 52rem) { .split { grid-template-columns: 1fr 1fr; } }
.split-block { background: var(--yellow); border-radius: calc(var(--radius) + 6px); padding: clamp(1.5rem, 4vw, 2.5rem); }
.split-block h2 { font-size: var(--step-2); margin-bottom: 0.75rem; }
.split-block p { margin: 0 0 1.5rem; max-width: 30rem; font-weight: 400; }
.split-block--ink { background: var(--ink); color: var(--paper); }
.inline-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.inline-links a { font-weight: 700; color: var(--yellow); }

/* ---------- Cards (stories) ---------- */

.card-grid { display: grid; gap: 2.25rem 1.75rem; grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr)); }
.card { display: flex; flex-direction: column; }
.card-img { display: block; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: var(--panel); margin-bottom: 0.9rem; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-placeholder { width: 40%; height: 100%; margin-inline: auto; color: var(--yellow); display: block; }
.card-kicker { margin: 0 0 0.3rem; font-size: var(--step--1); font-weight: 700; color: var(--muted); }
.card-kicker a { text-decoration: none; }
.card-title { font-size: var(--step-1); font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card-meta { margin: 0.45rem 0 0; font-size: var(--step--1); color: var(--muted); font-weight: 400; }

/* ---------- Chips ---------- */

.chips-bar { border-bottom: 1px solid var(--line); }
.chips { display: flex; gap: 0.5rem; flex-wrap: wrap; padding-block: 1rem; list-style: none; margin: 0; }
.chips--static { padding: 0 0 1.5rem; }
.wrap.chips { margin-inline: auto; } /* .chips resets margin; keep the bar lined up with the page */
.chip {
	display: inline-block; text-decoration: none; font-size: var(--step--1); font-weight: 700; line-height: 1.3;
	padding: 0.4rem 0.9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Story ---------- */

.story-head { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 3vw, 2rem); }
.story-topics { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.story-topics a { display: inline-block; text-decoration: none; font-size: var(--step--1); font-weight: 700; padding: 0.2rem 0.75rem; border-radius: 999px; background: var(--yellow); }
.story-head h1 { max-width: 52rem; font-size: var(--step-4); line-height: 1.06; letter-spacing: -0.03em; }
.story-meta { display: flex; gap: 1.25rem; color: var(--muted); font-size: var(--step--1); margin: 1.25rem 0 0; font-weight: 400; }
.story-feature { max-width: var(--wide); margin: 0 auto clamp(2rem, 4vw, 3rem); padding-inline: var(--gutter); }
.story-feature img { width: 100%; max-height: 78vh; object-fit: contain; border-radius: var(--radius); background: var(--panel); }
.story-foot { margin-top: 3rem; }
.tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag-list a { display: inline-block; text-decoration: none; font-size: var(--step--1); font-weight: 400; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0.15rem 0.65rem; }
.tag-list a:hover { color: var(--ink); border-color: var(--ink); }

/* Long-form reading */
.prose { max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); padding-bottom: 1rem; }
.prose--flush { padding-inline: 0; margin-inline: 0; }
/* One frame for the whole site: text starts on the same left edge as the header and page titles, and keeps a readable line length. */
.prose > * { max-width: var(--measure); }
.prose > * + * { margin-top: 1.2em; }
.prose p { margin: 0; }
.prose p + p { margin-top: 1.05em; }
.prose h2 { font-size: var(--step-2); margin-top: 2.1em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.9em; }
.prose h4 { font-size: var(--step-0); font-weight: 700; margin-top: 1.7em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.35em; }
.prose blockquote { margin-inline: 0; padding: 0.2rem 0 0.2rem 1.25rem; border-left: 4px solid var(--yellow); font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); }
.prose figure { margin-inline: 0; text-align: center; }
.prose figure img { display: block; margin-inline: auto; }
.prose .qa-turn { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 1rem; align-items: start; margin-block: 1.4rem 0; }
.prose .qa-avatar { width: 4rem; height: 4rem; border-radius: 50%; object-fit: cover; }
.prose .qa-answer > :first-child { margin-top: 0; }
.prose .qa-answer > :last-child { margin-bottom: 0; }
@media (min-width: 40rem) { .prose .qa-turn { grid-template-columns: 4.5rem minmax(0, 1fr); } .prose .qa-avatar { width: 4.5rem; height: 4.5rem; } }
.prose img { border-radius: var(--radius); }
.prose figcaption { font-size: var(--step--1); color: var(--muted); margin-top: 0.5rem; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.5em; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.prose td, .prose th { border-bottom: 1px solid var(--line); padding: 0.5rem; text-align: left; vertical-align: top; }
.prose .embed iframe, .prose .embed video { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); background: #000; display: block; }
.prose .embed.audio iframe { aspect-ratio: auto; background: transparent; }
.prose .embed.instagram { margin-inline: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; background: var(--panel); }
.prose .embed.instagram a { font-weight: 700; }
.gallery { display: grid; gap: 6px; margin-block: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); }
.gallery a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: var(--panel); }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }

.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 2.6rem; text-align: center; padding: 0.45rem 0.85rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 700; font-size: var(--step--1); }
.pagination .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Forms ---------- */

.field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.field > span { font-weight: 700; font-size: var(--step--1); line-height: 1.35; }
.field > span em { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 0.25rem; }
.field > span small { display: block; font-weight: 400; color: var(--muted); }
input[type="text"], input[type="search"], input[type="email"], input[type="url"], input[type="tel"], select, textarea {
	font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink);
	width: 100%; min-height: 3rem; padding: 0.65rem 0.85rem;
	background: var(--paper); border: 1px solid #c9c6bd; border-radius: var(--radius);
}
textarea { min-height: 7rem; resize: vertical; line-height: 1.55; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
input[type="file"] { font: inherit; font-size: var(--step--1); padding: 0.5rem 0; }

.site-search { display: flex; gap: 0.5rem; max-width: 36rem; }
.site-search input { flex: 1; }

.form-wrap > * { max-width: 48rem; }
.listing-form fieldset { border: 0; margin: 0 0 2.5rem; padding: 0; display: grid; gap: 1.25rem; }
.listing-form legend { font-size: var(--step-2); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 1.25rem; padding: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.6rem; }
.listing-form legend small { flex-basis: 100%; font-size: var(--step--1); font-weight: 400; letter-spacing: 0; color: var(--muted); }
.step { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--yellow); font-size: var(--step-0); font-weight: 800; flex: none; }
.field-row { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
/* Photo slots on the add-listing form: three cards, one per photo. */
.photo-slots { display: grid; gap: 1rem; }
.photo-slots-intro, .photo-slots-note { margin: 0; font-size: var(--step--1); color: var(--muted); max-width: var(--measure); }
.photo-slot-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.photo-slot { display: grid; gap: 0.75rem; align-content: start; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); min-width: 0; }
.photo-slot-title { margin: 0; font-weight: 800; }
.photo-slot-hint { margin: 0; font-size: var(--step--1); color: var(--muted); }
.photo-slot input[type="file"] { width: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.style-picker { border: 1px solid #c9c6bd; border-radius: var(--radius); }
.style-picker details { border-bottom: 1px solid var(--line); }
.style-picker details:last-child { border-bottom: 0; }
.style-picker summary { cursor: pointer; padding: 0.75rem 1rem; font-weight: 700; font-size: var(--step--1); }
.check-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0 1rem 1rem; }
.check-chips label { position: relative; }
.check-chips input { position: absolute; opacity: 0; }
.check-chips span { display: inline-block; cursor: pointer; font-size: var(--step--1); font-weight: 400; padding: 0.35rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; }
.check-chips input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.check-chips input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 1px; }

.segmented { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: inline-block; cursor: pointer; font-weight: 700; font-size: var(--step--1); padding: 0.65rem 1.1rem; border: 2px solid var(--ink); border-radius: 999px; }
.segmented input:checked + span { background: var(--ink); color: var(--paper); }
.segmented input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.is-area .venue-only { display: none; }

.checks { display: grid; gap: 0.85rem; }
.checks label { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.6rem; align-items: start; font-weight: 400; line-height: 1.5; }
.checks input { width: 1.2rem; height: 1.2rem; margin-top: 0.15rem; accent-color: var(--ink); }
.form-submit { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; border-top: 2px solid var(--ink); padding-top: 1.5rem; }
.form-hint { color: var(--muted); font-size: var(--step--1); margin: 0; font-weight: 400; }

.notice { border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 2rem; }
.notice h2 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.notice ul { margin: 0; padding-left: 1.2em; }
.notice p { margin: 0 0 1rem; }
.notice--error { background: #fdecea; border-left: 5px solid var(--danger); }
.notice--success { background: var(--yellow-soft); border-left: 5px solid var(--ink); }

/* ---------- Directory ---------- */

.filters { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 900; }
.filters-grid { display: grid; gap: 0.75rem; padding-block: 1rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 64rem) { .filters-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 0.6fr; } }
.field--grow { grid-column: 1 / -1; }
@media (min-width: 64rem) { .field--grow { grid-column: auto; } }
.filters .field > span { font-size: var(--step--1); }
.filters input, .filters select { min-height: 2.75rem; }

.directory { display: grid; grid-template-columns: 1fr; }
@media (min-width: 64rem) { .directory { grid-template-columns: minmax(24rem, 30rem) 1fr; } }
.directory-list { padding: 1rem var(--gutter) 3rem; }
@media (min-width: 64rem) { .directory-list { max-height: calc(100vh - 5.5rem); overflow-y: auto; padding-right: 1.25rem; } }
.directory-map { order: -1; }
@media (min-width: 64rem) { .directory-map { order: 0; position: sticky; top: 5.5rem; height: calc(100vh - 5.5rem); } }
.map { width: 100%; height: 100%; min-height: 20rem; background: var(--panel); z-index: 1; }
@media (max-width: 63.99rem) { .directory-map .map { height: 45vh; } }
.map--small { height: 15rem; min-height: 15rem; border-radius: var(--radius); margin-bottom: 0.75rem; }
.map--form { height: 20rem; border-radius: var(--radius); border: 1px solid #c9c6bd; }
.directory-count { font-weight: 700; font-size: var(--step--1); margin: 0 0 0.75rem; }
.directory-geo { background: var(--yellow-soft); padding: 0.6rem 0.9rem; border-radius: var(--radius); font-size: var(--step--1); font-weight: 400; margin: 0 0 1rem; }
.listing-list { list-style: none; margin: 0; padding: 0; }
.listing-row { border-top: 1px solid var(--line); }
.listing-row:last-child { border-bottom: 1px solid var(--line); }
.listing-row a { display: grid; grid-template-columns: 3.5rem 1fr auto; gap: 0.9rem; align-items: center; padding: 0.9rem 0.25rem; text-decoration: none; }
.listing-row a:hover { background: var(--yellow-soft); }
.listing-row img, .listing-thumb-blank { width: 3.5rem; height: 3.5rem; border-radius: 8px; object-fit: cover; background: var(--panel); }
.listing-thumb-blank { display: block; background: var(--panel) url("../img/icon-180.png") center / 60% no-repeat; }
.listing-text strong { display: block; font-weight: 800; line-height: 1.25; }
.listing-text > span { display: block; color: var(--muted); font-size: var(--step--1); font-weight: 400; line-height: 1.4; margin-top: 0.15rem; }
.listing-distance { font-size: var(--step--1); font-weight: 700; white-space: nowrap; }
.mini-chips { list-style: none; margin: 0.4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem; }
.mini-chips li { font-size: 0.8125rem; font-weight: 400; line-height: 1.3; padding: 0.15rem 0.5rem; border-radius: 999px; background: var(--panel); }
.directory-empty { padding: 2rem 0; }
.directory-empty h2 { font-size: var(--step-2); margin-bottom: 0.5rem; }
.directory-empty p { margin: 0 0 1.25rem; color: var(--ink-soft); }

/* Map pins: the logo yellow with a charcoal edge. */
.dan-pin span {
	display: block; width: 26px; height: 26px; background: var(--yellow); border: 3px solid var(--ink);
	border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-sizing: border-box;
}
.dan-pin.is-active span { background: var(--ink); border-color: var(--yellow); }
.dan-you span { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 4px solid var(--yellow); box-shadow: 0 0 0 2px var(--ink); }
.popup-link { text-decoration: none; font-family: var(--font); }

/* Maps in DAN colours: grey streets, yellow and charcoal pins. */
.leaflet-tile-pane { filter: grayscale(1) contrast(1.06) brightness(1.04); }
.map, .leaflet-container { background: #e9e9e7; }
.leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: 0 6px 24px rgba(27, 25, 25, 0.18); }
.leaflet-popup-content { margin: 0.9rem 1rem; }
.popup { display: grid; gap: 0.35rem; min-width: 12rem; font-family: var(--font); }
.popup-name { font-size: 1rem; font-weight: 800; line-height: 1.25; }
.popup-meta { color: var(--muted); font-size: 0.8rem; }
.popup-actions { display: flex; gap: 0.5rem; margin-top: 0.35rem; }
.popup-btn { flex: 1; text-align: center; padding: 0.45rem 0.6rem; border-radius: 999px; font-weight: 700; font-size: 0.8rem; text-decoration: none; background: var(--yellow); color: var(--ink) !important; }
.popup-btn--ink { background: var(--ink); color: #fff !important; }
.popup-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.leaflet-container { font-family: var(--font); }

/* ---------- Listing page ---------- */

.listing-head { background: var(--yellow); padding-block: clamp(2rem, 5vw, 3.5rem); }
.listing-head-grid { display: flex; justify-content: space-between; gap: 2rem; align-items: center; }
.crumbs { margin: 0 0 0.75rem; font-size: var(--step--1); font-weight: 700; }
.crumbs a { text-decoration: none; border-bottom: 2px solid var(--ink); }
.listing-head h1 { font-size: var(--step-4); letter-spacing: -0.03em; }
.listing-place { margin: 0.75rem 0 0; font-size: var(--step-1); font-weight: 400; display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.tag-quiet { font-size: var(--step--1); font-weight: 700; padding: 0.15rem 0.6rem; border-radius: 999px; background: rgba(27, 25, 25, 0.1); }
.verified { margin: 0.75rem 0 0; font-size: var(--step--1); font-weight: 700; display: flex; align-items: center; gap: 0.4rem; }
.verified-icon { width: 1.1rem; color: var(--ink); }
.listing-logo { flex: none; width: clamp(6rem, 14vw, 9rem); aspect-ratio: 1; background: var(--paper); border-radius: 16px; padding: 0.75rem; display: grid; place-items: center; }
.listing-logo img { max-height: 100%; width: auto; object-fit: contain; }
.listing-body { display: grid; gap: clamp(2rem, 5vw, 4rem); padding-block: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 56rem) { .listing-body { grid-template-columns: 1fr 22rem; } }
.listing-side h2 { font-size: var(--step-1); margin: 0 0 0.75rem; }
.listing-side h2 + p { margin-top: 0; }
.listing-side > * + h2 { margin-top: 2rem; }
.contact-list { margin: 0; display: grid; gap: 0.6rem; }
.contact-list div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.5rem; align-items: baseline; }
.contact-list dt { font-size: var(--step--1); color: var(--muted); font-weight: 400; }
.contact-list dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.facts { margin: 2rem 0 0; display: grid; gap: 1.25rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.facts dt { font-size: var(--step--1); font-weight: 700; }
.facts dd { margin: 0.2rem 0 0; }
.listing-help { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: var(--step--1); font-weight: 400; }
.listing-help p { margin: 0 0 0.5rem; }

/* ---------- Search results, empty states ---------- */

.result-list { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.result-list li { border-bottom: 1px solid var(--line); padding-block: 1.25rem; }
.result-list p { margin: 0.35rem 0 0; }
.empty { max-width: 36rem; padding-block: 2rem; }
.empty h1, .empty h2 { font-size: var(--step-3); margin-bottom: 0.75rem; }
.empty p { margin: 0 0 1.5rem; }
.empty .site-search { margin-bottom: 1.5rem; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #e9e7e1; padding-top: clamp(2.5rem, 6vw, 4rem); margin-top: 0; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); padding-bottom: 2.5rem; }
.footer-brand .brand { color: #fff; }
.footer-brand p { margin: 1rem 0 0; color: #bdb9b1; font-size: var(--step--1); }
.footer-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav h2 { font-size: var(--step--1); font-weight: 700; color: var(--yellow); letter-spacing: 0; margin-bottom: 0.25rem; }
.footer-nav a { text-decoration: none; font-size: var(--step--1); font-weight: 400; }
.footer-nav a:hover { text-decoration: underline; }
.footer-base { border-top: 1px solid #3a3735; padding-block: 1.25rem 2rem; font-size: 0.8rem; color: #a9a59d; }
.footer-base p { margin: 0; }
.site-footer :focus-visible { outline-color: var(--yellow); }
.footer-nav .footer-subhead { margin-top: 1rem; }
.group-list { columns: 2 14rem; column-gap: 2rem; }
.group-list li { break-inside: avoid; }

/* ---------- Events ---------- */

.events-heading { font-size: var(--step-2); margin: 0 0 1rem; }
.events-heading + .event-list, .events-note + .event-list { margin-bottom: 3rem; }
.events-note { margin: -0.5rem 0 1rem; max-width: 40rem; }
.event-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.event-list--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); column-gap: 2rem; }
.event-row { border-bottom: 1px solid var(--line); }
.event-row a { display: flex; gap: 1rem; align-items: center; padding: 0.9rem 0; text-decoration: none; }
.event-row a:hover { background: var(--yellow-soft); }
.event-date { flex: none; width: 3.75rem; aspect-ratio: 1; border-radius: 12px; background: var(--yellow); color: var(--ink); display: grid; place-content: center; text-align: center; font-size: var(--step--1); font-weight: 700; text-transform: uppercase; line-height: 1.1; }
.event-date strong { display: block; font-size: var(--step-2); font-weight: 800; }
.event-date--tba { background: rgba(27, 25, 25, 0.08); }
.event-text { display: grid; gap: 0.15rem; min-width: 0; }
.event-text span { font-size: var(--step--1); }
.event-date--past { background: rgba(27, 25, 25, 0.08); color: rgba(27, 25, 25, 0.7); }
.event-row--past .event-text strong { font-weight: 600; }
.event-when--past { opacity: 0.75; }
.events-past-link { margin: 0 0 3rem; }
.event-when { font-size: var(--step-1); font-weight: 700; margin: 0.5rem 0 0; }
.events-cta { margin-top: 1rem; }
.event-poster { margin: 0 0 2rem; }
.event-poster img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--yellow-soft); }
.event-poster figcaption { font-size: var(--step--1); margin-top: 0.4rem; opacity: 0.75; }

/* ---------- Questions and answers ---------- */

.faq { border-top: 1px solid var(--line); padding: 0; }
.faq:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1rem 2rem 1rem 0; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.85rem; font-size: 1.4rem; font-weight: 400; }
.faq[open] summary::after { content: "–"; }
.faq > p { margin: 0 0 1.1rem; }

/* ---------- Illustrations (always labelled) ---------- */

.illus { position: relative; margin: 0; overflow: hidden; border-radius: 16px; background: var(--ink); }
.illus img { display: block; width: 100%; height: 100%; object-fit: cover; }
.illus figcaption { position: absolute; left: 0.6rem; bottom: 0.6rem; font-size: 0.75rem; font-weight: 700; line-height: 1; padding: 0.3rem 0.5rem; border-radius: 999px; background: rgba(27, 25, 25, 0.72); color: #fff; }
.hero-illus-note { margin: -1.5rem auto 0; padding-bottom: 1rem; text-align: right; font-size: 0.75rem; font-weight: 700; opacity: 0.7; }

.page-head-split { display: grid; gap: 1.5rem; align-items: center; }
.page-head-split .page-head-img { aspect-ratio: 16 / 9; }
@media (min-width: 60rem) {
	.page-head-split { grid-template-columns: 1fr 1fr; gap: 3rem; }
	.page-head-split--portrait { grid-template-columns: 1fr 18rem; }
}
.page-head-split--portrait .page-head-img { aspect-ratio: 3 / 4; max-width: 18rem; }
.page-head-split .page-head-img--square { aspect-ratio: 1 / 1; width: 100%; max-width: 26rem; justify-self: end; }
@media (max-width: 59.99rem) { .page-head-split .page-head-img--square { justify-self: start; max-width: 22rem; } }
@media (max-width: 59.99rem) { .page-head-split--portrait .page-head-img { display: none; } }

.tile-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.tile { display: grid; gap: 0.85rem; text-decoration: none; }
.tile-img { aspect-ratio: 4 / 3; }
.tile-img img { transition: transform 400ms cubic-bezier(.2,.75,.2,1); }
.tile:hover .tile-img img { transform: scale(1.04); }
.tile-text { display: grid; gap: 0.25rem; }
.tile-text strong { font-size: var(--step-2); font-weight: 800; letter-spacing: -0.02em; }
.tile-text span { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .tile:hover .tile-img img { transform: none; } }
.listing-logo--icon { padding: 0; background: none; }
.listing-logo--icon img { width: 100%; height: 100%; }

/* ---------- Review fixes, October 2026 ---------- */

/* Home: the type list is a compact two-column grid on phones. */
@media (max-width: 40rem) {
	.sector-list { grid-template-columns: 1fr 1fr; column-gap: 1rem; }
	.sector-list a { padding: 0.8rem 0; }
	.sector-list a:hover { padding-left: 0; }
	.sector-list strong { font-size: var(--step-0); line-height: 1.25; }
	.sector-list span { display: none; }
	.fold { width: 76%; max-width: 18rem; aspect-ratio: 1.35 / 1; margin: 1.75rem auto 1rem; }
}

/* Listing page: long names stay readable on phones, icon sits above. */
.listing-head h1 { font-size: clamp(1.9rem, 1.2rem + 3.2vw, 3.6rem); overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 40rem) {
	.listing-head-grid { flex-direction: column-reverse; align-items: flex-start; gap: 1rem; }
	.listing-logo { width: 4.5rem; padding: 0.4rem; }
	.listing-logo--icon { padding: 0; }
}

/* Directory rows: "Serves this area" and distance sit under the text on phones. */
@media (max-width: 40rem) {
	.listing-row a { grid-template-columns: 3.5rem 1fr; align-items: start; }
	.listing-distance { grid-column: 2; margin-top: -0.4rem; font-weight: 700; }
}

.faq-more { margin-top: 2rem; }
@media (max-width: 40rem) { .tile-img { aspect-ratio: 16 / 9; } }

/* Home hero: the dancers sit on a wider layer inside each panel and slide
   right with scrolling (see home.js). The panel's own unfold animation is untouched. */
.fold-panel { position: relative; overflow: hidden; }
.fold-img {
	position: absolute; top: 0; bottom: 0; left: -30%; right: 0; /* extra room on the left to slide right into */
	background-image: var(--img, none);
	background-size: cover; background-position: 50% 40%;
	transform: translate3d(var(--drift, 0%), 0, 0); /* % of this layer: never shows an edge */
	will-change: transform;
}
/* The black sheet: height fits the panel, and each panel shows the next slice, so it reads as one folded sheet. */
.fold--sheet .fold-img { background-size: auto 100%; }
.fold--sheet .fold-panel:nth-child(1) .fold-img { background-position: 0% 50%; }
.fold--sheet .fold-panel:nth-child(2) .fold-img { background-position: 50% 50%; }
.fold--sheet .fold-panel:nth-child(3) .fold-img { background-position: 100% 50%; }

/* Directory: the listing shown on the map. */
.listing-row.is-selected a { background: var(--yellow-soft); box-shadow: inset 4px 0 0 var(--ink); }
.listing-row.is-selected .listing-text strong::after { content: "Tap again to open"; display: block; font-size: 0.8125rem; font-weight: 700; color: var(--muted); margin-top: 0.15rem; }
@media (hover: hover) { .listing-row.is-selected .listing-text strong::after { content: "Click again to open"; } }

/* ---------- Business page (October 2026) ---------- */

.open-badge { font-size: var(--step--1); font-weight: 700; padding: 0.15rem 0.65rem; border-radius: 999px; }
.open-badge.is-open { background: var(--ink); color: #fff; }
.open-badge.is-closed { background: rgba(27, 25, 25, 0.1); }

.action-bar { border-bottom: 1px solid var(--line); background: var(--paper); }
.action-row { display: flex; gap: 0.6rem; padding-block: 0.9rem; overflow-x: auto; scrollbar-width: none; }
.action-row::-webkit-scrollbar { display: none; }
.action {
	flex: none; display: inline-flex; align-items: center; min-height: 2.6rem; padding: 0 1.15rem; border-radius: 999px;
	font: inherit; font-size: var(--step--1); font-weight: 700; text-decoration: none; cursor: pointer;
	border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink);
}
.action--ink { background: var(--ink); color: #fff; }
.action--yellow { background: var(--yellow); border-color: var(--yellow); }
.action:hover { transform: translateY(-1px); }
.action:active { transform: translateY(0); }

.biz-gallery { display: grid; gap: 0.5rem; margin-top: 1.25rem; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: clamp(7rem, 13vw, 10.5rem); }
.biz-photo { display: block; overflow: hidden; min-height: 0; border-radius: var(--radius); background: var(--panel); }
.biz-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 400ms ease; }
.biz-photo:hover img { transform: scale(1.03); }
/* Every count fills its grid exactly: the first photo is always the big one. */
.biz-photo:first-child { grid-row: span 2; }
.biz-gallery--1 { grid-template-columns: 1fr; }
.biz-gallery--2 { grid-template-columns: 1fr 1fr; }
.biz-gallery--2 .biz-photo { grid-row: span 2; }
.biz-gallery--3 { grid-template-columns: 2fr 1fr; }
.biz-gallery--4 .biz-photo:last-child { grid-column: span 2; }
@media (max-width: 40rem) {
	.biz-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; grid-auto-rows: auto; }
	.biz-photo { flex: 0 0 85%; height: 14rem; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) { .biz-photo:hover img, .action:hover { transform: none; } }

.highlights { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.highlights li { display: flex; align-items: center; gap: 0.45rem; font-weight: 700; font-size: var(--step--1); }
.highlights li::before { content: ""; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231b1919' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; flex: none; }

.listing-section { margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.listing-section h2 { font-size: var(--step-2); margin: 0 0 1rem; }
.facts--grid { margin-top: 0; border-top: 0; padding-top: 0; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
.teacher-list { margin: 0; padding-left: 1.1rem; }
.teacher-list li { margin-bottom: 0.35rem; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.hours { width: 100%; border-collapse: collapse; margin-bottom: 2rem; font-size: var(--step--1); }
.hours th, .hours td { text-align: left; padding: 0.4rem 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours td { text-align: right; }
.hours .is-today th, .hours .is-today td { font-weight: 800; }

.nearby-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.nearby-list a { display: flex; gap: 0.8rem; align-items: center; text-decoration: none; padding: 0.75rem; border-radius: var(--radius); background: var(--paper); }
.nearby-list a:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.nearby-list img { width: 3.5rem; height: 3.5rem; border-radius: 8px; object-fit: cover; flex: none; }
.nearby-list strong { display: block; line-height: 1.25; }
.nearby-list span span { display: block; font-size: var(--step--1); color: var(--muted); margin-top: 0.15rem; }

/* Directory: open/closed tag on rows. */
.open-tag { display: inline-block; margin-top: 0.3rem; font-size: 0.8125rem; font-weight: 700; }
.open-tag.is-open::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #1f9d55; margin-right: 0.35rem; vertical-align: middle; }

/* Add-listing form: optional extras, folded away. */
.form-more { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1rem; }
.form-more[open] { padding-bottom: 1rem; }
.form-more > summary { cursor: pointer; font-weight: 700; padding: 1rem 0; }
.form-more .check-chips { padding: 0.25rem 0 0; }
.dan-hours-edit { border-collapse: collapse; margin-top: 0.35rem; }
.dan-hours-edit th { text-align: left; font-weight: 700; padding: 0.3rem 1rem 0.3rem 0; font-size: var(--step--1); }
.dan-hours-edit td { padding: 0.3rem 0.75rem 0.3rem 0; font-size: var(--step--1); white-space: nowrap; }
.dan-hours-edit input[type="time"] { width: auto; min-height: 2.4rem; padding: 0.2rem 0.4rem; }
@media (max-width: 40rem) { .dan-hours-edit th { display: block; padding-bottom: 0; } .dan-hours-edit tr { display: block; padding: 0.3rem 0; border-bottom: 1px solid var(--line); } }
.form-more > .field, .form-more > .field-row { margin-top: 1.1rem; }

/* ---------- Health check polish (13 October 2026) ---------- */

/* Story titles run long (often 20+ words): smaller on phones so they don't fill the screen. */
.story-head h1 { font-size: clamp(1.75rem, 1.1rem + 2.8vw, 3.25rem); line-height: 1.1; }

/* Directory: a slim header so the map and list fit on a laptop screen without scrolling. */
.page-head--compact { padding-block: clamp(1.25rem, 3vw, 1.75rem); }
.page-head--compact h1 { font-size: var(--step-3); }
.page-head--compact .lede { margin-top: 0.35rem; font-size: var(--step-0); }
@media (min-width: 64rem) {
	.page-head--compact .wrap { display: flex; align-items: baseline; gap: 1.25rem; flex-wrap: wrap; }
	.page-head--compact .lede { margin: 0; }
}
/* ---------- In the news (October 2026) ---------- */

.news-grid { display: grid; gap: 2rem 1.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.news-card { display: flex; flex-direction: column; gap: 0.45rem; padding-top: 1rem; border-top: 3px solid var(--yellow); }
.news-card h3 { font-size: var(--step-1); line-height: 1.3; }
.news-card h3 a { text-decoration: none; }
.news-card h3 a:hover { text-decoration: underline; }
.news-source { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0; }
.news-meta { font-size: var(--step--1); color: var(--muted); margin: 0; }
.news-links { display: flex; gap: 1rem; flex-wrap: wrap; align-items: baseline; margin-top: auto; padding-top: 0.25rem; font-size: var(--step--1); }
.news-video { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--ink); cursor: pointer; aspect-ratio: 16 / 9; margin-bottom: 0.5rem; }
.news-video img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.9; }
.news-play { position: absolute; inset: 0; margin: auto; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; font-size: 1.2rem; padding-left: 0.2rem; }
.news-video:hover .news-play, .news-video:focus-visible .news-play { transform: scale(1.08); }
.news-tip { margin-top: 2.5rem; font-size: var(--step--1); color: var(--muted); }
.news-compact { margin-top: 3rem; }
.news-compact .section-head h2 { font-size: var(--step-2); }
.news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.news-list li { display: grid; gap: 0.15rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line); }
.news-list a { font-weight: 700; text-decoration: none; }
.news-list a:hover { text-decoration: underline; }

/* Directory: results grouped by kind of business (accordion). */
.listing-group { border-top: 1px solid var(--line); }
.listing-group:last-child { border-bottom: 1px solid var(--line); }
.group-head { display: grid; grid-template-columns: 2.25rem 1fr auto 1.25rem; gap: 0.75rem; align-items: center; width: 100%; padding: 0.8rem 0.25rem; background: none; border: 0; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.group-head:hover { background: var(--yellow-soft); }
.group-head img { width: 2.25rem; height: 2.25rem; object-fit: contain; }
.group-name { font-weight: 800; font-size: var(--step-0); line-height: 1.25; }
.group-count { font-size: var(--step--1); font-weight: 700; min-width: 1.75rem; text-align: center; padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--panel); }
.listing-group.is-open .group-count { background: var(--yellow); }
.group-chevron { width: 0.6rem; height: 0.6rem; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); margin: 0 auto 0.2rem; transition: transform 160ms ease; }
.listing-group.is-open .group-chevron { transform: rotate(-135deg); margin-top: 0.3rem; margin-bottom: 0; }
.group-rows { margin: 0 0 0.75rem; }
.group-rows .listing-row:last-child { border-bottom: 0; }

/* Listings with more than one location */
.location-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.location-list li { display: grid; gap: 0.2rem; padding: 0.75rem 0.9rem; border: 1px solid var(--line, #e6e1d6); border-radius: 10px; background: #fff; }
.location-list strong { font-size: 1rem; }
.location-list span { font-size: var(--step--1); color: var(--muted); }
.location-actions { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-top: 0.2rem; }
.location-actions a { font-weight: 700; color: var(--ink, #1b1919); }
.listing-locs { font-size: var(--step--1); color: var(--muted); }
.branch-row { border: 1px solid var(--line, #e6e1d6); border-radius: 10px; padding: 0.5rem 1rem 0.25rem; margin: 0 0 1rem; }
.branch-row legend, form .branch-row legend { font-weight: 700; font-size: 1rem; padding: 0 0.3rem; margin: 0; }
.branches summary { cursor: pointer; padding: 0.6rem 0; }
.branches summary small { display: block; color: var(--muted); font-weight: 400; }
.branches[open] summary { margin-bottom: 0.75rem; }
.branch-row { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.branch-row .field { margin: 0; }
.branch-row .field label { font-weight: 700; font-size: var(--step--1); }

/* Directory without icons: the open category is a yellow bar, the chosen listing turns yellow. */
.group-head { grid-template-columns: 1fr auto 1.25rem; padding: 0.85rem 0.9rem; border-radius: 0; transition: background 140ms ease; }
.listing-group.is-open > .group-head { background: var(--yellow); }
@media (hover: hover) { .listing-group.is-open > .group-head:hover { background: var(--yellow-deep); } }
.listing-group.is-open .group-count { background: var(--ink); color: var(--yellow); }
.listing-row a, .listing-row a:hover { grid-template-columns: 1fr auto; padding: 0.85rem 0.9rem; }
.listing-row a:hover { background: var(--yellow-soft); }
.listing-row.is-selected a { background: var(--yellow); box-shadow: inset 4px 0 0 var(--ink); }
.listing-row.is-selected .listing-text > span, .listing-row.is-selected .listing-text strong::after { color: var(--ink); }
.listing-row.is-selected .mini-chips li { background: rgba(255, 255, 255, 0.6); }
@media (max-width: 40rem) {
	.listing-row a, .listing-row a:hover { grid-template-columns: 1fr; }
	.listing-distance { grid-column: 1; margin-top: 0; }
}

/* Hidden contact details: masked numbers and the message form */
.reveal { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.6rem; }
.reveal-mask { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; color: var(--muted); }
.reveal-btn { font: inherit; font-size: var(--step--1); font-weight: 700; padding: 0.2rem 0.75rem; border-radius: 999px; border: 0; background: var(--yellow); color: var(--ink); cursor: pointer; }
.reveal-btn:hover { background: var(--yellow-deep); }
.reveal-note { margin: 0.5rem 0 0; min-height: 1.2em; }
.message-box { margin-top: 1rem; }
.message-box > summary { list-style: none; display: inline-flex; cursor: pointer; }
.message-box > summary::-webkit-details-marker { display: none; }
.message-box[open] > summary { margin-bottom: 1rem; }
.message-form { display: grid; gap: 0.9rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.message-form input[type="text"], .message-form input[type="email"], .message-form input[type="tel"], .message-form textarea { width: 100%; font: inherit; padding: 0.6rem 0.75rem; border: 1px solid #c9c6bd; border-radius: 8px; background: #fff; }
.message-form .check { display: flex; gap: 0.5rem; align-items: baseline; font-size: var(--step--1); }
.message-form .check small { color: var(--muted); }
.form-notice { padding: 0.7rem 0.9rem; border-radius: var(--radius); font-size: var(--step--1); margin: 0.75rem 0; }
.form-notice--ok { background: var(--yellow-soft); }
.form-notice--error { background: #fde4e1; }
.listing-row.is-selected .listing-locs { color: var(--ink); }
.offers-line { margin: 1rem 0; padding: 0.7rem 0.9rem; background: var(--yellow-soft); border-radius: var(--radius); }
.offers-line strong { margin-right: 0.5rem; }

/* Directory: "I want to..." */
.want-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding-bottom: 1rem; }
.want-label { font-weight: 800; font-size: var(--step--1); margin-right: 0.25rem; }
.want-chip { font: inherit; font-size: var(--step--1); font-weight: 700; padding: 0.45rem 0.95rem; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; }
.want-chip:hover { background: var(--yellow-soft); }
.want-chip[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); }
@media (max-width: 40rem) {
	.want-bar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -1rem; padding-right: 1rem; }
	.want-chip, .want-label { flex: none; }
}
.want-bar { padding-top: 1rem; } .want-bar + .filters-grid { padding-top: 0; }

/* Pins outside the open group or chosen province turn grey. */
.dan-pin span { transition: background-color 180ms ease, border-color 180ms ease; }
.dan-pin.is-dim { opacity: 0.75; }
.dan-pin.is-dim span { background: #cfcdc8; border-color: #8f8c86; }
.dan-pin.is-dim.is-active { opacity: 1; }
.dan-pin.is-dim.is-active span { background: var(--ink); border-color: var(--yellow); }

/* Province tabs inside an open group */
.prov-tabs { display: flex; gap: 0.4rem; overflow-x: auto; scrollbar-width: none; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); background: var(--yellow-soft); }
.prov-tab { flex: none; font: inherit; font-size: var(--step--1); font-weight: 700; padding: 0.3rem 0.8rem; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; }
.prov-tab span { font-weight: 400; margin-left: 0.15rem; }
.prov-tab:hover { background: var(--yellow-soft); }
.prov-tab[aria-selected="true"] { background: var(--ink); color: var(--yellow); }
.prov-one { margin: 0; padding: 0.5rem 0.9rem; font-size: var(--step--1); font-weight: 700; background: var(--yellow-soft); border-bottom: 1px solid var(--line); }
.listing-group:not(.is-open) .prov-tabs, .listing-group:not(.is-open) .prov-one { display: none; }

/* Class timetable: editor rows and the listing's weekly timetable */
.class-editor { display: grid; gap: 0.5rem; }
.class-row { display: grid; gap: 0.4rem; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; padding: 0.5rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.class-row input, .class-row select { min-height: 2.4rem; padding: 0.3rem 0.5rem; font-size: var(--step--1); width: 100%; }
.class-row input[name$="[title]"] { grid-column: span 2; }
.class-row select[name$="[loc]"] + input[name$="[note]"] { grid-column: 1 / -1; }
@media (max-width: 60rem) { .class-row { grid-template-columns: 1fr 1fr; } .class-row select, .class-row input[type="text"] { grid-column: 1 / -1; } }
.class-editor small { color: var(--muted); }
.timetable { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); margin: 0 0 1.5rem; }
.tt-day { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.tt-day h3 { margin: 0; padding: 0.55rem 0.9rem; font-size: var(--step-0); background: var(--panel); display: flex; justify-content: space-between; align-items: center; }
.tt-day.is-today h3 { background: var(--yellow); }
.tt-day h3 span { font-size: 0.8125rem; font-weight: 800; background: var(--ink); color: var(--yellow); border-radius: 999px; padding: 0.1rem 0.55rem; }
.tt-day ul { list-style: none; margin: 0; padding: 0; }
.tt-day li { display: grid; grid-template-columns: 6.2rem 1fr; gap: 0.6rem; padding: 0.55rem 0.9rem; border-top: 1px solid var(--line); font-size: var(--step--1); }
.tt-day li:first-child { border-top: 0; }
.tt-day time { font-weight: 700; font-variant-numeric: tabular-nums; }
.tt-day strong { display: block; }
.tt-day small { color: var(--muted); }

/* Home: the map so far, how it works, launch campaign */
.stat-band { list-style: none; margin: 0 0 2rem; padding: 1.25rem 0; display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
@media (min-width: 52rem) { .stat-band { grid-template-columns: repeat(4, 1fr); } }
.stat-band strong { display: block; font-size: var(--step-4, 2.6rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.stat-band span { color: var(--muted); font-size: var(--step--1); }
.how-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.how-grid > div { padding: 1.1rem 1.2rem; background: var(--yellow-soft); border-radius: var(--radius); }
.how-grid h3 { font-size: var(--step-1); margin: 0 0 0.35rem; }
.how-grid p { margin: 0; font-size: var(--step--1); color: var(--ink-soft, var(--ink)); }
.sector-list strong em { font-style: normal; font-size: var(--step--1); font-weight: 700; background: var(--yellow); border-radius: 999px; padding: 0.05rem 0.55rem; margin-left: 0.35rem; vertical-align: middle; }
.campaign { display: grid; gap: 1.5rem; padding: clamp(1.5rem, 4vw, 2.75rem); background: var(--ink); color: #fff; border-radius: calc(var(--radius) * 1.5); }
@media (min-width: 60rem) { .campaign { grid-template-columns: 1.4fr 1fr; align-items: center; } }
.campaign h2 { font-size: var(--step-3); color: var(--yellow); margin: 0.25rem 0 0.75rem; }
.campaign p { margin: 0 0 1rem; max-width: 38rem; }
.campaign .eyebrow { font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8125rem; color: var(--yellow); margin: 0; }
.campaign-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.campaign .btn--ink { background: var(--yellow); color: var(--ink); }
.campaign .btn--outline { color: #fff; border-color: #fff; }
.campaign-soon { font-weight: 700; color: var(--yellow); }
.campaign-provinces { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.campaign-provinces a { display: inline-block; padding: 0.4rem 0.85rem; border: 1.5px solid rgba(255,255,255,0.5); border-radius: 999px; color: #fff; text-decoration: none; font-size: var(--step--1); font-weight: 700; }
.campaign-provinces a:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.campaign-tags { font-size: var(--step--1); color: rgba(255,255,255,0.8); } .campaign-tags a { color: var(--yellow); font-weight: 800; }

/* Home: every "I want to" need as a chip under the picture tiles. */
.want-chips { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.want-chips a { display: inline-block; padding: 0.45rem 0.95rem; border: 1.5px solid var(--ink); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: var(--step--1); font-weight: 700; }
.want-chips a:hover, .want-chips a:focus-visible { background: var(--yellow); border-color: var(--yellow); }

/* Listing: class cards stack the time above the class, one detail per line, so narrow cards don't wrap word by word. */
.tt-day li { grid-template-columns: 1fr; gap: 0.15rem; padding: 0.7rem 0.9rem; }
.tt-day time { color: var(--ink); }
.tt-day small { display: block; line-height: 1.4; }
.tt-day small + small { margin-top: 0.05rem; }
.classes-about { margin: 1.5rem 0 0; max-width: 40rem; }
.listing-section .inline-links { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.listing-section .inline-links a { color: var(--ink); }
