/* ==========================================================================
   Western Michigan Westies — West Coast Swing hub
   Design system. Structure follows the WMLD site; palette is WMW's own.
   ========================================================================== */


:root {
    /* ---- Brand system sheet (supersedes the Aug 2026 guide PDF) ----
       Six colours, exactly as specified. Earlier revisions used #FF00A0,
       then #F50185, then #EE035D for the pink; the system settles it. */
    --ink: #000000;        /* true black — the canvas */
    --midnight: #222222;   /* dark grey — second ground */
    --paper: #FFFFFF;
    --bone: #F2F2F2;       /* light grey — long-form reading */
    --neon: #FF007F;       /* WMW Pink */
    --aqua: #00B2E3;       /* WMW Blue */

    /* Event kinds. These used to be a generic categorical set - amber,
       emerald, indigo - which is the single most off-brand thing on the
       site: three hues the artwork does not contain, sitting in a row next
       to the pink and cyan that it does.
       The scale is built from the brand's own hues instead. Violet is not
       invented either: #9840E0 is sampled from the purple bar in the hero
       streaks. The three common kinds take the three pure hues; the two
       rarer ones take deeper values of the same, so the set reads as one
       family at a glance. */
    --kind-ours: var(--neon);
    --kind-lesson: var(--aqua);
    --kind-social: #9840E0;
    --kind-class: #00738F;
    --kind-workshop: #5A1FA8;
    --lavender: #DF61FF;   /* illustration only, never UI */
    /* Free reads pink so it stays distinct from the blue price badge;
       darkened for AA on the tinted ground it sits on. */
    --free-ink: #BD005E;

    --glow-neon: 0 0 18px rgba(255, 0, 127, 0.5);
    --glow-aqua: 0 0 18px rgba(0, 178, 227, 0.45);

    /* Text */
    --text-on-dark: #FFFFFF;
    --text-on-dark-dim: #A8A8AD;
    --text-on-light: #222222;
    --text-on-light-dim: #5A5A60;

    /* Lines & surfaces */
    --line-dark: rgba(255, 255, 255, 0.18);
    --line-light: rgba(0, 0, 0, 0.14);
    --surface-dark: #1A1A1A;
    --surface-light: #FFFFFF;

    /* Type */
    --display: 'Montserrat', system-ui, -apple-system, sans-serif;
    --body: 'Montserrat', system-ui, -apple-system, sans-serif;

    /* Motion */
    --t: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --t-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* SPACE — decided, not defaulted. Compression inside a group, release
       between groups. Every gap in the sheet uses one of these six. */
    --s-1: 0.25rem;   /* hairline: icon-to-label */
    --s-2: 0.5rem;    /* tight: inside a single control */
    --s-3: 0.75rem;   /* grouped: related lines in a card */
    --s-4: 1.25rem;   /* card padding, list-row rhythm */
    --s-5: 2rem;      /* between cards in a grid */
    --s-6: 4rem;      /* between sections — the release */

    /* Layout */
    --wrap: 1180px;
    --gutter: clamp(1.25rem, 4vw, 3rem);
    --nav-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 1rem); }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
    margin: 0;
    font-family: var(--body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-on-light);
    background: var(--bone);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; font-family: var(--display); font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Utilities ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(2.75rem, 5.5vw, 4.75rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3.25rem); }
.bg-dark { background: var(--midnight); color: var(--text-on-dark); }
.bg-ink { background: var(--ink); color: var(--text-on-dark); }
.bg-light { background: var(--bone); color: var(--text-on-light); }
.bg-paper { background: var(--paper); color: var(--text-on-light); }
.center { text-align: center; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Eyebrow — small tracked label above headings */
.eyebrow {
    font-family: var(--display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--neon);
    margin-bottom: 1rem;
}
.bg-dark .eyebrow, .bg-ink .eyebrow { color: var(--aqua); }

.section-title {
    font-size: clamp(2rem, 5.5vw, 3.4rem);
    text-transform: uppercase;
    letter-spacing: -0.01em;
}
.section-lede {
    margin-top: 1.15rem;
    max-width: 58ch;
    font-size: clamp(1.02rem, 1.6vw, 1.18rem);
    color: var(--text-on-light-dim);
}
.bg-dark .section-lede, .bg-ink .section-lede { color: var(--text-on-dark-dim); }
.section-head { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 1.85rem;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: var(--display);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--t);
    white-space: nowrap;
}
.btn--primary { background: var(--neon); color: #000; }
.btn--primary:hover { background: #ff3396; color: #000; transform: translateY(-2px); border-color: var(--neon); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: currentColor; color: var(--midnight); transform: translateY(-2px); }
.bg-light .btn--ghost:hover, .bg-paper .btn--ghost:hover { color: var(--bone); }
.btn--aqua { background: var(--aqua); color: var(--ink); }
.btn--aqua:hover { background: #26c6e4; transform: translateY(-2px); }
.btn--sm { padding: 0.7rem 1.3rem; font-size: 0.76rem; }

/* ---------- Nav ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-dark);
    color: var(--text-on-dark);
}
.nav__inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: var(--nav-h);
}
/* The nav shows the mark alone. The descriptor that used to sit beside it
   said "West Coast Swing", which every page's own H1 says immediately below
   in far larger type - it repeated the headline, not the logo. */
.nav__logo { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; flex-shrink: 0; }
.nav__logo img { width: 150px; height: auto; display: block; }
.nav__logo:hover img { opacity: .85; transition: var(--t); }
@media (max-width: 620px) {
    .nav__logo img { width: 124px; }
}
.nav__links { display: flex; align-items: center; gap: 1.15rem; margin-left: auto; }
.nav__links a {
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    /* Brighter than --text-on-dark-dim, which these used to take. That token
       is for secondary PROSE; these are the primary navigation. At 8.87:1 the
       old value passed contrast comfortably, so this is not a compliance fix -
       it is that 12.5px uppercase at 0.14em letter-spacing has very little ink
       per glyph, and it sat between a pure-white logo and a hot pink button,
       both of which made it read as switched off. 12.35:1, and still clearly
       below white so hover and the current page still register. */
    color: #C6C6CC;
    transition: var(--t);
    position: relative;
    padding-block: 0.4rem;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text-on-dark); }
.nav__links a[aria-current="page"]::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 2px; background: var(--neon);
}
.nav__toggle {
    display: none;
    margin-left: auto;
    background: none;
    border: 1px solid var(--line-dark);
    border-radius: 8px;
    color: inherit;
    padding: 0.5rem 0.65rem;
    line-height: 1;
}
@media (max-width: 1100px) {
    .nav__links {
        position: fixed;
        inset: var(--nav-h) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--ink);
        border-bottom: 1px solid var(--line-dark);
        padding: 0.5rem var(--gutter) 1.5rem;
        transform: translateY(-120%);
        transition: transform var(--t);
        max-height: calc(100vh - var(--nav-h));
        overflow-y: auto;
    }
    .nav__links[data-open="true"] { transform: translateY(0); }
    .nav__links a { padding-block: 0.95rem; border-bottom: 1px solid var(--line-dark); font-size: 0.9rem; }
    .nav__links .btn { margin-top: 1rem; }
    .nav__toggle { display: block; }
}

/* ---------- Nav bar fit ----------
 *
 * The bar was cramped for one reason: it inherits .wrap, so no matter how
 * wide the window got, the logo (313px with its wordmark), seven links and
 * the CTA were being squeezed into 1180px. Measured at a 1440px viewport
 * the row filled exactly, and "First Night" wrapped to two lines inside a
 * 57px-tall link.
 *
 * A nav bar is not a text column and does not want the reading measure.
 * WMLD's bar reads calm at eight items because it spans the page and
 * centres its menu between the logo and the CTA; it is not calmer because
 * it holds less. So: give this one the width, centre the menu the same
 * way, and forbid a menu item from ever wrapping.
 */
@media (min-width: 1101px) {
    .nav .wrap { max-width: 1560px; }
    .nav__links { flex: 1; margin-left: 0; gap: 1.4rem; }
    /* Auto margins either side of the link cluster centre it in the space
       the logo and CTA leave, which is the WMLD arrangement. */
    .nav__links > a:first-of-type { margin-left: auto; }
    .nav__links .btn { margin-left: auto; }
}
/* A menu item that wraps is a bug at every width. */
.nav__links a { white-space: nowrap; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: clamp(480px, 72vh, 660px);
    display: flex;
    align-items: center;
    color: var(--text-on-dark);
    background: var(--ink);
    overflow: hidden;
}
.hero__bg {
    position: absolute; inset: 0;
    object-fit: cover; width: 100%; height: 100%;
    opacity: 0.32;
    filter: saturate(0.8);
}

/* The slot — WCS is danced in a narrow lane, so the hero is built from one.
   Pure CSS, so the page never depends on a weak photograph. */
.hero__slot {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            100deg,
            transparent 0 3px,
            rgba(255, 255, 255, 0.045) 3px 4px,
            transparent 4px 90px
        );
    mask-image: radial-gradient(120% 90% at 60% 50%, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(120% 90% at 60% 50%, #000 20%, transparent 78%);
}
.hero__slot::before {
    content: '';
    position: absolute;
    left: -10%; right: -10%;
    top: 52%;
    height: 34vh;
    transform: rotate(-8deg);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 0, 127, 0.22) 22%,
        rgba(0, 178, 227, 0.22) 68%,
        transparent
    );
    filter: blur(60px);
}
.hero::after {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(70% 55% at 12% 22%, rgba(255, 0, 127, 0.20), transparent 62%),
        radial-gradient(60% 55% at 88% 78%, rgba(0, 178, 227, 0.18), transparent 62%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.96) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding-block: clamp(2rem, 5vw, 3.25rem); }
/* The logo's actual showcase — big enough that the microtype reads. */
.hero__logo {
    width: clamp(260px, 38vw, 440px);
    height: auto;
    margin-bottom: var(--s-4);
}

.hero__badge {
    display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 0.45rem 1rem;
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--text-on-dark-dim);
    background: rgba(255, 255, 255, 0.06);
    margin-bottom: 1.75rem;
}
.hero__badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--neon); }
.hero h1 {
    font-size: clamp(2.1rem, 5.6vw, 4.4rem);
    text-transform: uppercase;
    letter-spacing: -0.025em;
    max-width: 17ch;
}
.hero h1 em { font-style: normal; color: var(--neon); }
.hero__lede {
    margin-top: var(--s-4);
    max-width: 52ch;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: var(--text-on-dark-dim);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: var(--s-5); }
.hero__meta {
    display: flex; flex-wrap: wrap; gap: 1.75rem;
    margin-top: 2.75rem; padding-top: 1.75rem;
    border-top: 1px solid var(--line-dark);
}
.hero__meta div { display: flex; align-items: baseline; gap: 0.5rem; }
.hero__meta strong {
    font-family: var(--display); font-size: 1.5rem; font-weight: 800; color: var(--aqua);
}
.hero__meta span { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-on-dark-dim); }

/* Next-dance countdown strip */
.nextup {
    background: var(--neon);
    color: #000;
    padding-block: 0.9rem;
}
.nextup__inner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 0.5rem 1.25rem; text-align: center;
}
.nextup__label {
    font-family: var(--display); font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.85;
}
.nextup__event { font-weight: 600; font-size: 0.98rem; }
.nextup__time {
    font-family: var(--display); font-weight: 800; font-size: 0.95rem;
    letter-spacing: 0.06em; text-transform: uppercase;
    background: rgba(0, 0, 0, 0.22); color: #000; padding: 0.25rem 0.75rem; border-radius: 999px;
}

/* ---------- Cards: our own weekly events ---------- */
.night-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
    gap: var(--s-4);
}
.night {
    position: relative;
    display: flex; flex-direction: column;
    padding: var(--s-5) var(--s-4) var(--s-4);
    background: var(--surface-light);
    border: 1px solid var(--line-light);
    border-radius: 18px;
    transition: var(--t);
    overflow: hidden;
}
.bg-dark .night, .bg-ink .night {
    background: var(--surface-dark);
    border-color: var(--line-dark);
    color: var(--text-on-dark);
}
.night::before {
    content: '';
    position: absolute; inset: 0 0 auto 0; height: 4px;
    background: linear-gradient(90deg, var(--neon), var(--aqua));
    opacity: 0; transition: var(--t);
}
.night:hover { transform: translateY(-4px); border-color: var(--neon); }
.night:hover::before { opacity: 1; }
.night__when {
    font-family: var(--display); font-size: 0.74rem; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--neon);
    margin-bottom: 0.85rem;
}
.bg-dark .night__when, .bg-ink .night__when { color: var(--aqua); }
.night__title { font-size: 1.5rem; text-transform: uppercase; margin-bottom: 0.6rem; }
/* Who runs the night. Ours takes the signature fuchsia and the star, which
   DESIGN.md reserves for our-own-night markers; a night we only list is
   credited in the dim text colour so the two never read as equivalent. */
.night__who {
    font-family: var(--display); font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--text-on-light-dim); margin: -0.25rem 0 0.7rem;
}
.night__who--ours { color: var(--neon); }
.night--featured .night__who { color: var(--text-on-dark-dim); }
.night--featured .night__who--ours { color: var(--neon); }
.night__vibe {
    font-family: var(--display);
    font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--aqua);
    margin-bottom: 0.55rem;
}
.bg-light .night__vibe, .bg-paper .night__vibe { color: #00728a; }
.night__bestfor {
    font-size: 0.95rem; font-style: italic;
    color: var(--text-on-light);
    padding-left: 0.85rem;
    border-left: 3px solid var(--neon);
    margin-bottom: 1.1rem;
}
.bg-dark .night__bestfor, .bg-ink .night__bestfor { color: var(--text-on-dark); }

.night__venue { font-size: 0.92rem; font-weight: 600; margin-bottom: 0.2rem; }
.night__addr { font-size: 0.85rem; color: var(--text-on-light-dim); margin-bottom: 1.1rem; }
.bg-dark .night__addr, .bg-ink .night__addr { color: var(--text-on-dark-dim); }
.night__times { display: grid; gap: var(--s-1); margin-bottom: var(--s-4); }
.night__times li {
    display: flex; gap: 0.75rem; align-items: baseline;
    font-size: 0.9rem; padding-block: 0.35rem;
    border-bottom: 1px dashed var(--line-light);
}
.bg-dark .night__times li, .bg-ink .night__times li { border-color: var(--line-dark); }
.night__times b {
    font-family: var(--display); font-weight: 700; font-size: 0.82rem;
    letter-spacing: 0.05em; min-width: 5.5rem; flex-shrink: 0; color: var(--aqua);
}
.bg-light .night__times b, .bg-paper .night__times b { color: #00728a; }
.night__foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.night__price {
    font-family: var(--display); font-weight: 800; font-size: 0.8rem;
    letter-spacing: 0.1em; text-transform: uppercase;
    padding: 0.35rem 0.8rem; border-radius: 999px;
    background: rgba(0, 178, 227, 0.14); color: #00728a;
}
.bg-dark .night__price, .bg-ink .night__price { background: rgba(0, 178, 227, 0.2); color: var(--aqua); }
.night__price--free { background: rgba(255, 0, 127, 0.12); color: var(--free-ink); }
.bg-dark .night__price--free, .bg-ink .night__price--free { background: rgba(255, 0, 127, 0.22); color: var(--neon); }
.night__link {
    font-family: var(--display); font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
    color: var(--neon); transition: var(--t);
}
.night__link:hover { gap: 0.6rem; opacity: 0.75; }

/* Featured card variant */
.night--featured { border-color: var(--neon); }
.night--featured::before { opacity: 1; }
.night__flag {
    position: absolute; top: 1rem; right: 1rem;
    font-family: var(--display); font-size: 0.62rem; font-weight: 800;
    letter-spacing: 0.16em; text-transform: uppercase;
    background: var(--aqua); color: var(--ink);
    padding: 0.28rem 0.6rem; border-radius: 999px;
}

/* ---------- Steps (first night) ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2rem 1.75rem; counter-reset: step; }
.step { counter-increment: step; }
.step::before {
    content: counter(step, decimal-leading-zero);
    display: block;
    font-family: var(--display); font-size: 2.6rem; font-weight: 800;
    line-height: 1; color: var(--neon); margin-bottom: 0.85rem;
}
.bg-dark .step::before, .bg-ink .step::before { color: var(--aqua); }
.step h3 { font-size: 1.15rem; text-transform: uppercase; margin-bottom: 0.5rem; }
.step p { font-size: 0.94rem; color: var(--text-on-light-dim); }
.bg-dark .step p, .bg-ink .step p { color: var(--text-on-dark-dim); }

/* ---------- Facts strip ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.5rem; }
.fact { padding: 1.5rem; border: 1px solid var(--line-dark); border-radius: 14px; background: rgba(255, 255, 255, 0.04); }
.fact h3 {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--aqua); margin-bottom: 0.6rem;
}
.fact p { font-size: 0.95rem; color: var(--text-on-dark-dim); }

/* ---------- People ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.75rem; }
.person {
    padding: 1.85rem;
    border: 1px solid var(--line-light);
    border-radius: 18px;
    background: var(--surface-light);
    transition: var(--t);
}
.person:hover { transform: translateY(-4px); border-color: var(--neon); }
.person__role {
    font-family: var(--display); font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--neon); margin-bottom: 0.6rem;
}
.person h2, .person h3 { font-size: 1.3rem; text-transform: uppercase; margin-bottom: 0.7rem; }
.person p { font-size: 0.92rem; color: var(--text-on-light-dim); margin-bottom: 1rem; }
.person a {
    font-family: var(--display); font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--aqua); text-decoration: none;
}
.person a:hover { text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details {
    border-bottom: 1px solid var(--line-light);
    padding-block: 1.25rem;
}
.bg-dark .faq details, .bg-ink .faq details { border-color: var(--line-dark); }
.faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    cursor: pointer; list-style: none;
    font-family: var(--display); font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+';
    font-size: 1.6rem; font-weight: 400; line-height: 1;
    color: var(--neon); transition: var(--t); flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin-top: 0.9rem; color: var(--text-on-light-dim); font-size: 0.98rem; max-width: 68ch; }
.bg-dark .faq p, .bg-ink .faq p { color: var(--text-on-dark-dim); }

/* ---------- Email capture ---------- */
.signup { max-width: 640px; margin-inline: auto; }
.signup__form { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.85rem; }
.signup input {
    flex: 1 1 240px;
    padding: 0.95rem 1.25rem;
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-on-dark);
    font: inherit; font-size: 0.95rem;
}
.signup input::placeholder { color: var(--text-on-dark-dim); }
.signup input:focus { outline: 2px solid var(--aqua); outline-offset: 2px; }
.signup__note { margin-top: 1rem; font-size: 0.82rem; color: var(--text-on-dark-dim); }

/* ---------- Calendar page ---------- */
.cal-controls {
    display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center;
    padding-block: 1.5rem;
    border-bottom: 1px solid var(--line-light);
    margin-bottom: 2.5rem;
}
.cal-controls__group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
    padding: 0.55rem 1.1rem;
    border: 1px solid var(--line-light);
    border-radius: 999px;
    background: transparent;
    font-family: var(--display); font-size: 0.74rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text-on-light-dim);
    transition: var(--t);
}
.chip:hover { border-color: var(--neon); color: var(--neon); }
.chip[aria-pressed="true"] { background: var(--midnight); border-color: var(--midnight); color: var(--bone); }
.cal-controls select {
    padding: 0.55rem 1rem;
    border: 1px solid var(--line-light);
    border-radius: 999px;
    background: var(--paper);
    font-family: var(--display); font-size: 0.74rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--text-on-light);
}
.cal-count {
    margin-left: auto;
    font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-on-light-dim);
}

/* ---------- Events app: controls ---------- */
.app-controls {
    display: grid; gap: 1rem;
    padding-block: 1.5rem;
    border-bottom: 1px solid var(--line-light);
    margin-bottom: 2.5rem;
}
.app-controls__row { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; }
.app-controls__row .cal-count { margin-left: auto; }

.view-tabs { display: flex; gap: 0.35rem; padding: 0.3rem; background: rgba(11,11,11,0.07); border-radius: 999px; }
.view-tab {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.55rem 1.1rem; border: 0; border-radius: 999px; background: transparent;
    font-family: var(--display); font-size: 0.74rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text-on-light-dim); transition: var(--t);
}
.view-tab:hover { color: var(--neon); }
.view-tab.is-active { background: var(--midnight); color: var(--bone); }

.chip--star[aria-pressed="true"] { background: var(--neon); border-color: var(--neon); color: #fff; }

/* ---------- "More filters" disclosure ----------
   Region and dance-style chips fold in here so a first visit meets two
   controls instead of twelve. <details> because it needs no JS, is
   keyboard-operable for free, and degrades to plain-open if CSS fails.
   Summary is a 44px target like every other control in the row, and
   borders-only per the finish rule — no shadow, no fill. */
.filters-more__toggle {
    list-style: none; cursor: pointer;
    /* Padding, not display:inline-flex, for the 44px target. Overriding
       display on a <summary> costs it its disclosure semantics in some
       engines, and the whole control is keyboard-operable only while it
       stays a real summary. */
    min-height: 44px; padding: 0.7rem 0; line-height: 1.6;
    font-family: var(--display); font-size: 0.74rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text-on-light-dim);
    border-bottom: 1px solid var(--line-light);
    transition: var(--t);
}
.filters-more__toggle::-webkit-details-marker { display: none; }
.filters-more__toggle::after { content: "\00a0+"; }
.filters-more[open] .filters-more__toggle::after { content: "\00a0\2212"; }
.filters-more__toggle:hover { color: var(--neon); border-color: var(--neon); }
/* Open, it claims its own line rather than stretching the chip row. */
.filters-more[open] { flex-basis: 100%; }
/* MUST stay display:none while closed. A <details> hides its children
   through the UA stylesheet, and setting `display` on a direct child
   overrides that — the first version of this shipped four "folded"
   chips that were still on screen, which is worse than not folding
   them at all. Only the open state gets a display value. */
.filters-more__body { display: none; }
.filters-more[open] .filters-more__body {
    display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem;
    padding-top: 0.85rem;
}

/* ---------- Month grid ---------- */
.mhead { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-bottom: 1.25rem; }
.mhead h3 {
    font-family: var(--display); font-size: clamp(1.3rem, 3vw, 1.9rem);
    font-weight: 800; text-transform: uppercase; min-width: 11ch; text-align: center;
}

.mgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.mgrid--dow { margin-bottom: 6px; }
.mdow {
    text-align: center; padding: 0.5rem 0;
    font-family: var(--display); font-size: 0.66rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-on-light-dim);
}
.mcell {
    min-height: 108px; padding: 0.45rem;
    border: 1px solid var(--line-light); border-radius: 10px; background: var(--paper);
    display: flex; flex-direction: column; gap: 0.25rem;
}
.mcell--pad { border: 0; background: transparent; min-height: 0; }
.mcell--today { border-color: var(--neon); box-shadow: inset 0 0 0 1px var(--neon); }
.mcell--has { background: #fff; }
.mcell__n { font-family: var(--display); font-size: 0.8rem; font-weight: 700; color: var(--text-on-light-dim); }
.mcell--today .mcell__n { color: var(--neon); }
.mcell__evs { display: grid; gap: 3px; overflow: hidden; }
/* Chips take a smaller version of the same cut. The kind used to be a 3px
   rule down the left edge; it tints the whole chip now, so a day cell reads
   as a row of angled marks in the brand's colours rather than a stack of
   striped pills. */
.mchip {
    --cut-v: 6px;
    display: block; padding: 0.2rem 0.4rem; border-radius: 0;
    clip-path: var(--wmw-cut);
    background: color-mix(in srgb, var(--kind-lesson) 16%, transparent);
    color: var(--text-on-light);
    font-size: 0.66rem; line-height: 1.25; text-decoration: none;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    transition: var(--t);
}
.mchip b { font-weight: 700; }
.mchip:hover { background: var(--kind-lesson); color: #fff; }

.mmore { font-size: 0.62rem; color: var(--text-on-light-dim); padding-left: 0.35rem; }

@media (max-width: 760px) {
    .mcell { min-height: 74px; padding: 0.3rem; }
    .mchip { font-size: 0.58rem; }
    .mchip b { display: none; }
}

/* ---------- Map ---------- */
.hub-map {
    height: clamp(420px, 62vh, 680px);
    width: 100%;
    border-radius: 18px;
    border: 1px solid var(--line-light);
    z-index: 1;
}
.leaflet-container { font-family: var(--body); }

.ev__dist {
    display: block; font-family: var(--body); font-size: 0.72rem;
    font-weight: 500; color: var(--text-on-light-dim); letter-spacing: 0;
}

.monthbreak {
    font-family: var(--display);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: var(--neon);
    margin: 3.5rem 0 1.75rem;
    padding-top: 1.75rem;
    border-top: 3px solid var(--neon);
}
.monthbreak:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.daygroup { margin-bottom: 2.75rem; }
.daygroup__head {
    display: flex; align-items: baseline; gap: 0.9rem;
    padding-bottom: 0.75rem; margin-bottom: 1rem;
    border-bottom: 2px solid var(--midnight);
}
.daygroup__day {
    font-family: var(--display); font-size: clamp(1.15rem, 2.6vw, 1.6rem);
    font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em;
}
.daygroup__date { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-on-light-dim); }

/* An event row is built the way the night cards are: no border, no radius,
   the 62 degree cut, and the outline carried as a background layer showing
   at the edges. The kind colours that OUTLINE.
   It used to be a rounded rectangle with a coloured bar bolted to its left
   edge - the house style of every dashboard template, and nothing the rest
   of this site does. The angle is the brand's one gesture; a card that
   ignores it and wears a stripe instead announces that it came from
   somewhere else. */
.ev {
    --cut-v: 14px;
    --card-line: var(--line-light);
    --card-fill: var(--paper);
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 7.5rem 1fr auto;
    gap: 1.25rem;
    align-items: start;
    padding: 1.15rem 1.25rem;
    border: 0;
    border-radius: 0;
    background: var(--card-line);
    clip-path: var(--wmw-cut);
    margin-bottom: 0.75rem;
    transition: var(--t);
    text-decoration: none;
    color: inherit;
}
.ev::after {
    content: ''; position: absolute; inset: 2px; z-index: -1;
    background: var(--card-fill);
    clip-path: var(--wmw-cut);
    transition: var(--t);
}
.ev:hover { --card-line: var(--neon); transform: translateX(4px); }
.ev--ours { --card-line: var(--kind-ours); }
.ev--ours::after { background: linear-gradient(90deg, rgba(255, 0, 127, 0.06), var(--paper) 42%); }
.ev__time {
    font-family: var(--display); font-weight: 800; font-size: 0.9rem;
    letter-spacing: 0.04em; text-transform: uppercase; color: var(--midnight);
}
.ev__time small { display: block; font-weight: 500; font-size: 0.72rem; color: var(--text-on-light-dim); letter-spacing: 0.08em; }
.ev__title { font-family: var(--display); font-weight: 700; font-size: 1.05rem; margin-bottom: 0.25rem; }
.ev__where { font-size: 0.86rem; color: var(--text-on-light-dim); }
.ev__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.55rem; }
.tag {
    font-family: var(--display); font-size: 0.6rem; font-weight: 800;
    letter-spacing: 0.14em; text-transform: uppercase;
    padding: 0.22rem 0.55rem; border-radius: 999px;
    background: rgba(0, 0, 0, 0.08); color: var(--text-on-light-dim);
}
.tag--wcs { background: rgba(255, 0, 127, 0.13); color: #C4006A; }
.tag--ours { background: var(--neon); color: #000; }
.tag--free { background: rgba(255, 0, 127, 0.12); color: var(--free-ink); }
.ev__price {
    font-family: var(--display); font-weight: 800; font-size: 0.85rem;
    letter-spacing: 0.06em; color: var(--midnight); text-align: right; white-space: nowrap;
}
@media (max-width: 680px) {
    .ev { grid-template-columns: 1fr; gap: 0.5rem; }
    .ev__price { text-align: left; }
    .cal-count { margin-left: 0; width: 100%; }
}

.cal-empty {
    padding: 3.5rem 1.5rem; text-align: center;
    border: 2px dashed var(--line-light); border-radius: 18px;
    color: var(--text-on-light-dim);
}

/* Major events (weekenders) */
.major-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.major {
    display: flex; flex-direction: column; gap: 0.5rem;
    padding: 1.75rem;
    border: 1px solid var(--line-dark);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none; color: inherit;
    transition: var(--t);
}
.major:hover { transform: translateY(-4px); border-color: var(--aqua); background: rgba(0, 178, 227, 0.1); }
.major__date {
    font-family: var(--display); font-size: 0.74rem; font-weight: 800;
    letter-spacing: 0.16em; text-transform: uppercase; color: var(--aqua);
}
.major__name { font-family: var(--display); font-size: 1.35rem; font-weight: 800; text-transform: uppercase; }
.major__where { font-size: 0.88rem; color: var(--text-on-dark-dim); }

/* Google Calendar embed */
.embed-frame {
    border: 1px solid var(--line-light);
    border-radius: 18px;
    overflow: hidden;
    background: var(--paper);
    width: 100%;
    /* Height driven directly. An aspect-ratio + min-height pair would force a
       min WIDTH (min-height x ratio) and blow out the container on narrow screens. */
    height: clamp(520px, 70vh, 780px);
}
.embed-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Source note */
.source-note {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem;
    padding: 1rem 1.25rem; margin-top: 1.5rem;
    border-radius: 12px; background: rgba(0, 0, 0, 0.05);
    font-size: 0.85rem; color: var(--text-on-light-dim);
}
.source-note a { color: var(--neon); font-weight: 600; }

/* ---------- Moves ---------- */
.move-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.move {
    padding: 1.85rem 1.65rem;
    border: 1px solid var(--line-light); border-radius: 18px;
    background: var(--surface-light); transition: var(--t);
}
.move:hover { transform: translateY(-4px); border-color: var(--neon); }
.move__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.6rem; }
.move__head h2, .move__head h3 { font-size: 1.35rem; text-transform: uppercase; }
.move__counts {
    flex-shrink: 0;
    font-family: var(--display); font-size: 0.68rem; font-weight: 800;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--aqua);
}
.move p { font-size: 0.92rem; margin-top: 0.75rem; color: var(--text-on-light-dim); }
.move__what { color: var(--text-on-light) !important; }
/* A bare rule beside text is a pull-quote, not a panel with a stripe on
   it - it is the idiom the night cards already use and it stays. What got
   replaced everywhere else was the FILLED panel wearing one. */
.move__tip { padding-left: 0.85rem; border-left: 3px solid var(--neon); }
.move strong { color: var(--text-on-light); }

/* ---------- Prose ---------- */
.prose .section-lede + .section-lede { margin-top: 1.35rem; }

/* ---------- Trust / sync band ---------- */
.dsband {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: 1.15rem 1.35rem;
    background: rgba(0, 178, 227, 0.09);
    border: 1px solid rgba(0, 178, 227, 0.28);
    border-radius: 14px;
}
.dspill {
    flex-shrink: 0;
    font-family: var(--display); font-size: 0.62rem; font-weight: 800;
    letter-spacing: 0.16em; text-transform: uppercase;
    background: var(--aqua); color: var(--ink);
    padding: 0.3rem 0.65rem; border-radius: 999px;
}
.dsband p { font-size: 0.88rem; color: var(--text-on-light-dim); }
.dsband a { color: var(--neon); font-weight: 600; }

.note-band {
    margin-top: 2rem; padding: 1.15rem 1.35rem;
    border-radius: 12px; background: rgba(0, 0, 0, 0.05);
    font-size: 0.85rem; color: var(--text-on-light-dim);
}
.note-band strong { color: var(--text-on-light); }
.note-band a { color: var(--neon); font-weight: 600; }

/* ---------- Weekly rhythm ---------- */
.dayblock { margin-bottom: 2.75rem; }
.dayname {
    display: flex; align-items: center; gap: 0.9rem;
    font-family: var(--display); font-size: clamp(1.35rem, 3.2vw, 2rem);
    font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em;
    padding-bottom: 0.7rem; margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--midnight);
}
.dayname__today {
    font-size: 0.6rem; letter-spacing: 0.16em;
    background: var(--neon); color: #fff;
    padding: 0.28rem 0.6rem; border-radius: 999px;
}
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.vcard {
    display: flex; flex-direction: column; gap: 0.3rem;
    padding: 1.35rem 1.25rem 1.15rem;
    border: 1px solid var(--line-light); border-radius: 14px;
    background: var(--paper); text-decoration: none; color: inherit;
    transition: var(--t);
}
.vcard:hover { transform: translateY(-3px); border-color: var(--aqua); border-color: var(--neon); }
.vcard--ours { border-color: var(--neon); background: linear-gradient(180deg, rgba(255, 0, 127, 0.05), var(--paper) 60%); }
.vcard--ours:hover { border-color: var(--neon); }
.stamp {
    align-self: flex-start;
    font-family: var(--display); font-size: 0.58rem; font-weight: 800;
    letter-spacing: 0.14em; text-transform: uppercase;
    padding: 0.25rem 0.55rem; border-radius: 999px;
    background: var(--neon); color: #000; margin-bottom: 0.35rem;
}
.stamp--unver { background: rgba(11,11,11,0.1); color: var(--text-on-light-dim); }
.vday {
    font-family: var(--display); font-size: 0.64rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-on-light-dim);
}
.vname { font-family: var(--display); font-size: 1.12rem; font-weight: 700; }
.vmeta { font-size: 0.88rem; color: var(--text-on-light); }
.vvibe { font-size: 0.82rem; color: var(--text-on-light-dim); font-style: italic; }

/* ---------- Playlist embed ---------- */
.playlist-embed {
    border-radius: 16px;
    overflow: hidden;
    max-width: 780px;
    border-color: var(--neon);
}
.playlist-embed iframe { display: block; border: 0; }

/* ---------- Two-up split ---------- */
.two-up {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(2rem, 5vw, 4rem);
}
.two-up .section-lede { margin-top: 0.9rem; }

/* ---------- Instructor workshops ---------- */
.person__workshops {
    margin: 0.9rem 0 1rem;
    padding-top: 0.9rem;
    border-top: 1px dashed var(--line-light);
}
.person__workshops h4 {
    font-family: var(--display);
    font-size: 0.64rem; font-weight: 800;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--neon); margin-bottom: 0.5rem;
}
.person__workshops li {
    font-size: 0.88rem;
    color: var(--text-on-light-dim);
    padding-left: 0.85rem;
    position: relative;
    margin-bottom: 0.3rem;
}
.person__workshops li::before {
    content: '→';
    position: absolute; left: 0;
    color: var(--aqua);
}

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--text-on-dark); padding-block: 4rem 2rem; }
.footer__grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem;
    padding-bottom: 2.75rem; border-bottom: 1px solid var(--line-dark);
}
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand img { width: 240px; height: auto; margin-bottom: 1.1rem; }
.footer__tag { font-size: 0.92rem; color: var(--text-on-dark-dim); max-width: 32ch; }
.footer h4 {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--aqua); margin-bottom: 1rem;
}
.footer li { margin-bottom: 0.6rem; }
.footer a { font-size: 0.9rem; color: var(--text-on-dark-dim); text-decoration: none; transition: var(--t); }
.footer a:hover { color: var(--text-on-dark); }
.footer__social { display: flex; gap: 0.75rem; margin-top: 1.35rem; }
.footer__social a {
    display: grid; place-items: center; width: 40px; height: 40px;
    border: 1px solid var(--line-dark); border-radius: 50%; transition: var(--t);
}
.footer__social a:hover { background: var(--neon); border-color: var(--neon); color: #fff; }
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
    padding-top: 1.75rem; font-size: 0.82rem; color: var(--text-on-dark-dim);
}
/* Legal and commercial links: present and findable, visibly not part of the
   three topic columns above. */
.footer__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--t-slow), transform var(--t-slow); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ==========================================================================
   Brand guide page
   ========================================================================== */
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.25rem; }
.swatch { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-light); background: var(--paper); }
.swatch__chip { height: 120px; display: flex; align-items: flex-end; padding: 0.75rem; }
.swatch__body { padding: 1rem 1.1rem 1.15rem; }
.swatch__name { font-family: var(--display); font-weight: 800; font-size: 0.95rem; text-transform: uppercase; }
.swatch__hex { font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.08em; color: var(--text-on-light-dim); }
.swatch__use { font-size: 0.84rem; color: var(--text-on-light-dim); margin-top: 0.5rem; }
.swatch__contrast {
    display: inline-block; margin-top: 0.6rem; font-family: var(--display);
    font-size: 0.6rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
    padding: 0.2rem 0.5rem; border-radius: 999px;
}
.pass { background: rgba(0,151,178,.16); color: #00697d; }
.fail { background: rgba(255,0,160,.14); color: #b8006f; }

.logo-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.logo-tile { border-radius: 14px; border: 1px solid var(--line-light); overflow: hidden; }
.logo-tile__stage { display: grid; place-items: center; padding: 2rem 1.5rem; min-height: 150px; }
.logo-tile__stage img { width: 100%; max-width: 220px; height: auto; }
.logo-tile__cap { padding: 0.85rem 1.1rem; background: var(--paper); font-size: 0.82rem; color: var(--text-on-light-dim); }
.logo-tile__cap b { display: block; font-family: var(--display); font-size: 0.72rem; letter-spacing: .12em;
    text-transform: uppercase; color: var(--text-on-light); margin-bottom: .2rem; }

.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; }
.rule { padding: 1.35rem; border-radius: 14px; border: 1px solid var(--line-light); background: var(--paper); }
.rule__tag { font-family: var(--display); font-size: .64rem; font-weight: 800; letter-spacing: .14em;
    text-transform: uppercase; padding: .2rem .55rem; border-radius: 999px; display: inline-block; margin-bottom: .7rem; }
.rule--do .rule__tag { background: rgba(0,151,178,.16); color: #00697d; }
.rule--dont .rule__tag { background: rgba(255,0,160,.14); color: #b8006f; }
.rule p { font-size: .9rem; color: var(--text-on-light-dim); }

.typespec { border-top: 1px solid var(--line-light); padding-top: 1.35rem; margin-top: 1.35rem; }
.typespec__label { font-family: var(--display); font-size: .68rem; font-weight: 800;
    letter-spacing: .16em; text-transform: uppercase; color: var(--aqua); margin-bottom: .6rem; }
.typespec__sample { line-height: 1.1; }
.gap-note {
    --cut-v: 12px;
    --card-line: var(--neon);
    --card-fill: #FFF2F8;
    position: relative; isolation: isolate;
    padding: 1rem 1.25rem; margin-top: 1rem;
    background: var(--card-line);
    clip-path: var(--wmw-cut);
}
.gap-note::after {
    content: ''; position: absolute; inset: 2px; z-index: -1;
    background: var(--card-fill);
    clip-path: var(--wmw-cut);
}
.gap-note h3 { font-family: var(--display); font-size: .95rem; text-transform: uppercase; margin-bottom: .4rem; }
.gap-note p { font-size: .88rem; color: var(--text-on-light-dim); }

/* ---------- Accessibility ---------- */
.skip-link {
    position: absolute; left: 0; top: 0; z-index: 200;
    transform: translateY(-120%);
    background: var(--neon); color: #000;
    padding: 0.75rem 1.25rem;
    font-family: var(--display); font-size: 0.8rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
    transition: transform var(--t);
}
.skip-link:focus { transform: translateY(0); }

/* Visible focus everywhere — the default ring disappears against black. */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid var(--aqua);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Teal measures only 3.46:1 on white — fails AA for body text. On light
   grounds use this darkened tint instead; it keeps the hue and clears 4.5:1. */
:root {
    /* #FF007F is 3.37:1 on the light ground — fine for large display type,
       not for 11px eyebrows. These darkened pairs keep the hue and clear AA. */
    --aqua-on-light: #00738F;
    --neon-on-light: #C40062;
}
.bg-light .eyebrow, .bg-paper .eyebrow { color: var(--neon-on-light); }
.bg-light .quote blockquote::before, .bg-light .quote blockquote::after,
.bg-paper .quote blockquote::before, .bg-paper .quote blockquote::after { color: var(--neon-on-light); }
.bg-light .note-band a, .bg-paper .note-band a,
.bg-light .section-note a, .bg-paper .section-note a { color: var(--neon-on-light); }
.bg-light .night__times b, .bg-paper .night__times b,
.bg-light .night__vibe, .bg-paper .night__vibe,
.bg-light .person a, .bg-paper .person a,
.bg-light .typespec__label, .bg-paper .typespec__label,
.bg-light .move__counts, .bg-paper .move__counts { color: var(--aqua-on-light); }
.bg-light .night__price, .bg-paper .night__price { color: var(--aqua-on-light); }
.dsband p a { color: #C2007A; }

/* ---------- Dancers illustration as a section backdrop ---------- */
.illus-band { position: relative; overflow: hidden; }
.illus-band__art {
    position: absolute; right: -4%; bottom: -8%;
    width: clamp(240px, 34vw, 460px);
    opacity: 0.22; pointer-events: none;
    mask-image: linear-gradient(to left, #000 40%, transparent 92%);
    -webkit-mask-image: linear-gradient(to left, #000 40%, transparent 92%);
}
.illus-band .wrap { position: relative; z-index: 1; }
@media (max-width: 760px) { .illus-band__art { opacity: 0.12; right: -18%; } }

/* Slot lines — the brand's motion motif, used behind dark bands. */
.slotlines { position: relative; overflow: hidden; }
.slotlines::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: repeating-linear-gradient(
        180deg, transparent 0 38px,
        rgba(255, 0, 127, 0.10) 38px 40px,
        transparent 40px 78px,
        rgba(0, 178, 227, 0.10) 78px 80px);
    mask-image: radial-gradient(80% 70% at 70% 50%, #000 10%, transparent 78%);
    -webkit-mask-image: radial-gradient(80% 70% at 70% 50%, #000 10%, transparent 78%);
}
.slotlines > .wrap { position: relative; z-index: 1; }
.learn-art { margin-top: 2.5rem; max-width: 520px; }
.learn-art img { width: 100%; height: auto; border-radius: 16px; }

/* ---------- Calendar coverage stats ---------- */
.cal-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.cal-stat { padding: 1rem 1.1rem; border: 1px solid var(--line-light); border-radius: 12px; background: var(--paper); }
.cal-stat b { display: block; font-family: var(--display); font-size: 1.9rem; font-weight: 800; line-height: 1; color: var(--neon); }
.cal-stat span { display: block; margin-top: .35rem; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-on-light-dim); }

/* Instructors whose profile isn't written yet — present, but visibly pending. */
.person--soon { border-style: dashed; background: transparent; }
.person--soon h3 { opacity: .92; }
.person--soon > p { color: var(--text-on-light-dim); font-style: italic; }

/* ---------- Partners / sponsors wall ---------- */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}
.partner {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.35rem; min-height: 110px; padding: 1.5rem 1.25rem;
    border: 1px solid var(--line-dark); border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none; text-align: center; transition: var(--t);
}
.partner:hover { border-color: var(--aqua); background: rgba(0, 178, 227, 0.10); transform: translateY(-3px); }
.partner img { max-height: 46px; width: auto; filter: grayscale(1) brightness(2); opacity: .85; transition: var(--t); }
.partner:hover img { filter: none; opacity: 1; }
.partner__type {
    font-family: var(--display); font-size: 0.56rem; font-weight: 800;
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--aqua);
}
.partner__name {
    font-family: var(--display); font-size: 0.98rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.15;
}
.bg-light .partner, .bg-paper .partner { border-color: var(--line-light); background: rgba(11,11,11,.03); }
.bg-light .partner img, .bg-paper .partner img { filter: grayscale(1); }

/* ---------- Testimonials ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.quote {
    --cut-v: 18px;
    --card-line: var(--neon);
    --card-fill: var(--surface-light);
    position: relative; isolation: isolate;
    margin: 0; padding: 1.85rem 1.65rem;
    background: var(--card-line);
    clip-path: var(--wmw-cut);
}
.quote::after {
    content: ''; position: absolute; inset: 2px; z-index: -1;
    background: var(--card-fill);
    clip-path: var(--wmw-cut);
}
.quote blockquote {
    margin: 0; font-size: 1.05rem; line-height: 1.55; color: var(--text-on-light);
}
.quote blockquote::before { content: '\201C'; color: var(--neon); font-size: 1.4em; line-height: 0; vertical-align: -0.25em; }
.quote blockquote::after { content: '\201D'; color: var(--neon); font-size: 1.4em; line-height: 0; vertical-align: -0.25em; }
.quote figcaption {
    margin-top: 1.15rem; font-family: var(--display); font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
}
.quote figcaption span {
    display: block; font-weight: 500; letter-spacing: 0.06em;
    color: var(--text-on-light-dim); text-transform: none; margin-top: 0.25rem;
}

/* ---------- Optional photography ---------- */
.photo { overflow: hidden; border-radius: 12px; margin-bottom: 1.15rem; }
.photo img, .photo picture { width: 100%; height: 100%; object-fit: cover; display: block; }
.night__photo { margin: -0.6rem -0.35rem 1.25rem; border-radius: 12px; }
.person__photo { aspect-ratio: 1/1; max-width: 130px; border-radius: 50%; margin-bottom: 1.15rem; }

/* ==========================================================================
   State bars — error / partial / offline. Never reuse the empty state for
   these; "no results" and "nothing loaded" are different problems.
   ========================================================================== */
.statebar {
    display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4);
    padding: var(--s-4); margin-bottom: var(--s-5);
    border: 1px solid var(--line-light); border-left-width: 4px; border-radius: 12px;
    background: var(--paper);
}
.statebar div { flex: 1 1 260px; }
.statebar strong {
    display: block; font-family: var(--display); font-size: 0.95rem;
    text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: var(--s-1);
}
.statebar span { font-size: 0.88rem; color: var(--text-on-light-dim); }
.statebar a { color: var(--neon); font-weight: 600; }
.statebar--error   { border-left-color: var(--neon); }
.statebar--partial { border-left-color: var(--aqua); }
.statebar--offline { border-left-color: var(--text-on-light-dim); }
.bg-ink .statebar, .bg-dark .statebar { background: var(--surface-dark); border-color: var(--line-dark); }
.bg-ink .statebar span, .bg-dark .statebar span { color: var(--text-on-dark-dim); }

/* ==========================================================================
   Affordance — pressed states + touch targets.
   Every interactive element needs default / hover / focus / active.
   ========================================================================== */
.btn:active, .chip:active, .view-tab:active, .nav__toggle:active {
    transform: translateY(1px) scale(0.985);
}
.ev:active, .night:active, .person:active, .vcard:active, .partner:active, .major:active {
    transform: scale(0.995);
}

/* 44x44 minimum on anything thumb-sized. */
.chip, .view-tab {
    min-height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
}
.nav__toggle { min-width: 44px; min-height: 44px; }
.btn--sm { min-height: 44px; }
.footer a, .nav__links a { display: inline-block; padding-block: var(--s-2); }
@media (pointer: coarse) {
    /* Inline prose links get a bigger hit area without changing the layout. */
    .section-lede a, .faq p a, .note-band a, .statebar a { padding: var(--s-2) 0; }
}

/* A quiet line under a section, for the thing that didn't earn a card. */
.section-note {
    margin-top: var(--s-4);
    font-size: 0.9rem;
    color: var(--text-on-light-dim);
}
.bg-dark .section-note, .bg-ink .section-note { color: var(--text-on-dark-dim); }
.section-note a { color: var(--neon); font-weight: 600; }

.signup__alt {
    margin-top: var(--s-3);
    font-size: 0.88rem;
    color: var(--text-on-dark-dim);
}
.signup__alt a { color: var(--aqua); font-weight: 600; }

/* ==========================================================================
   Split hero — copy left, dancers right.
   The illustration is the brand's strongest asset; it was being wasted at 22%
   opacity behind a band. Here it carries the page.
   ========================================================================== */
.hero--split { min-height: 0; }
.hero--split .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    padding-block: clamp(2.25rem, 5vw, 4rem);
}
.hero__copy { min-width: 0; }
.hero--split h1 {
    font-size: clamp(2.2rem, 5.4vw, 4.2rem);
    line-height: 1.02;
    max-width: none;
}
.hero--split h1 em { font-style: normal; color: var(--neon); }
.hero__accent { color: var(--aqua); }

.hero__art { min-width: 0; }
.hero__art img {
    width: 100%;
    height: auto;
    max-width: 520px;
    margin-inline: auto;
    /* The artwork ships on black; a soft falloff stops the edge reading as a
       rectangle against the hero gradient. */
    mask-image: radial-gradient(78% 78% at 50% 48%, #000 62%, transparent 100%);
    -webkit-mask-image: radial-gradient(78% 78% at 50% 48%, #000 62%, transparent 100%);
}

@media (max-width: 900px) {
    .hero--split .hero__inner { grid-template-columns: 1fr; }
    /* Art first on mobile: it says "dancing" faster than any headline. */
    .hero__art { order: -1; }
    .hero__art img { max-width: 340px; }
}

/* ================================================================
   THE WMW ANGLE
   The mark is two chevrons at a 62 degree apex. Half-angle is 31
   degrees, so a cut that drops `v` runs `v * tan(31)` sideways.
   Every angled edge below is built from that one ratio, which is
   why they all read as the same gesture rather than generic bevels.
   Cut corners are top-left and bottom-right: parallel to each
   other, and clear of the top-right award flag.
   ================================================================ */
:root {
    --angle-run: 0.6009;                              /* tan(31deg) */
    --cut-v: 20px;
    /* Ghost buttons paint their own outline, so they need to know
       what they sit on. Default to the dark case: the hero and nav. */
    --ground: var(--ink);
    --edge: var(--text-on-dark);
}
/* ⚠️ THE CUT IS DECLARED ON *, NOT ON :root, AND IT HAS TO BE.
 *
 * A custom property containing var() is resolved at computed-value time on
 * the element that DECLARES it. Defined on :root, --wmw-cut resolved there
 * against :root's --cut-v of 20px, and every descendant inherited that one
 * frozen polygon. Components were setting --cut-v and nothing happened:
 * measured live, .btn declared 10px and .mchip 6px while both clipped at
 * 12.018px, the 20px result. Every angle on the site was the same size,
 * including the buttons, since the system was written.
 *
 * Declaring it on * makes each element resolve the polygon against its own
 * --cut-v, which is what the per-component sizes always assumed.
 */
* {
    --wmw-cut: polygon(
        calc(var(--cut-v) * var(--angle-run)) 0, 100% 0,
        100% calc(100% - var(--cut-v)),
        calc(100% - (var(--cut-v) * var(--angle-run))) 100%,
        0 100%, 0 var(--cut-v)
    );
}

.bg-ink   { --ground: var(--ink);      --edge: var(--text-on-dark); }
.bg-dark  { --ground: var(--midnight); --edge: var(--text-on-dark); }
.bg-light { --ground: var(--bone);     --edge: var(--text-on-light); }
.bg-paper { --ground: var(--paper);    --edge: var(--text-on-light); }

/* ---------- Angled buttons ---------- */
.btn {
    --cut-v: 13px;
    border-radius: 0;
    clip-path: var(--wmw-cut);
    position: relative;
    isolation: isolate;                /* keeps the -1 layers below the label */
}
.btn--sm { --cut-v: 10px; }

/* Ghost buttons can't use a border: clip-path would slice it open on
   the diagonal. Two stacked layers instead, both following the cut. */
.btn--ghost {
    border: 0;
    background: transparent;
    clip-path: none;                   /* the layers carry the shape */
    color: var(--edge);
}
.btn--ghost::before,
.btn--ghost::after {
    content: ''; position: absolute; z-index: -1;
    clip-path: var(--wmw-cut);
    transition: var(--t);
}
.btn--ghost::before { inset: 0;   background: var(--edge); }
.btn--ghost::after  { inset: 2px; background: var(--ground); }
.btn--ghost:hover { background: transparent; color: var(--ground); }
.btn--ghost:hover::after { opacity: 0; }
.bg-light .btn--ghost:hover, .bg-paper .btn--ghost:hover { color: var(--ground); }

/* ---------- Angled cards ---------- */
.night {
    --card-line: var(--line-light);
    --card-fill: var(--surface-light);
    --band: 18px;
    border: 0;
    border-radius: 0;
    background: var(--card-line);      /* the outline, revealed at the edges */
    clip-path: var(--wmw-cut);
}
.bg-dark .night, .bg-ink .night {
    --card-line: var(--line-dark);
    --card-fill: var(--surface-dark);
    background: var(--card-line);
}
.night::after {
    content: ''; position: absolute; inset: 1px; z-index: 0;
    background: var(--card-fill);
    clip-path: var(--wmw-cut);
    transition: var(--t);
}
.night > * { position: relative; z-index: 1; }
.night::before { content: none; }      /* the old top accent bar; the edge does this job now */
.night:hover { background: var(--neon); transform: translateY(-4px); }
.night:hover::after { inset: 2px; }
/* The level badge used to float in the top-right corner. Cards are
   narrow enough that it collided with the day label, so it sits in
   the flow instead. The rule above would otherwise turn its absolute
   offsets into a relative nudge. */
.night__flag {
    position: relative; top: auto; right: auto;
    align-self: flex-start; margin-bottom: 0.7rem;
}

/* Spotlight: neon edge above, cyan block below. One gradient paints
   both, and the block's bottom-right corner rides the 62 degree cut.
   Reserved for the beginner entry point — every card carrying this
   would make it decoration rather than emphasis. */
.night--spotlight {
    background: linear-gradient(to top, var(--aqua) var(--band), var(--neon) var(--band));
    padding-bottom: calc(var(--s-4) + var(--band));
}
.night--spotlight::after { inset: 2px 2px var(--band) 2px; }
.night--spotlight:hover { background: linear-gradient(to top, var(--aqua) var(--band), var(--neon) var(--band)); }
.night--spotlight:hover::after { inset: 3px 3px var(--band) 3px; }

/* 238px produced five cramped columns that broke venue names onto
   one word per line. */
.night-grid { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }

@media (prefers-reduced-motion: reduce) {
    .night:hover { transform: none; }
}

/* ---------- Narrow-screen overflow ----------
   Grid and flex children get min-width:auto by default, so one
   nowrap string sets the floor for an entire row. Three places did
   this and pushed the page 125px past a 375px phone. */
.ev > *,
.app-controls,
.app-controls__row,
.app-controls > *,
.move__head > * { min-width: 0; }
.move-grid { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }

@media (max-width: 680px) {
    .ev__price { white-space: normal; }
    .move__head { flex-wrap: wrap; gap: 0.25rem 1rem; }
    .move__counts { flex-shrink: 1; }
    /* Four view tabs need 466px. Wrap to two rows rather than hide
       two of them behind a scroll with no affordance. */
    .view-tabs { flex-wrap: wrap; border-radius: 18px; }
    .app-controls__row .cal-count { margin-left: 0; width: 100%; }
}

/* Long button labels ("See this week's dance") can't stay on one line
   at 320px. Let them wrap rather than push the page sideways. */
@media (max-width: 380px) {
    .btn { white-space: normal; text-align: center; padding-inline: 1.15rem; }
}

/* ================================================================
   HUB CALENDAR — ownership, kinds, and the tonight answer
   ================================================================ */

/* ---------- Tonight ----------
   The first thing on the calendar should answer the question people
   arrive with, before they touch a filter. */
.tonight-host:empty { display: none; }
/* Same construction as an event row: the cut carries the shape and the
   outline is a background layer, rather than a rule down one side. */
.tonight {
    --cut-v: 12px;
    --card-line: var(--line-light);
    --card-fill: var(--surface-light);
    position: relative; isolation: isolate;
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 0.7rem;
    margin: 0 0 1.25rem; padding: 0.85rem 1.1rem;
    background: var(--card-line);
    clip-path: var(--wmw-cut);
    border-left: 0;
    font-size: 0.94rem;
}
.tonight::after {
    content: ''; position: absolute; inset: 2px; z-index: -1;
    background: var(--card-fill);
    clip-path: var(--wmw-cut);
}
.tonight--on { --card-line: var(--neon); --card-fill: #FFF0F6; }
.tonight__flag {
    font-family: var(--display); font-size: 0.62rem; font-weight: 800;
    letter-spacing: 0.16em; text-transform: uppercase;
    padding: 0.28rem 0.6rem; background: var(--neon); color: #000;
}
.tonight__flag--off { background: var(--line-light); color: var(--text-on-light-dim); }
.tonight a { color: inherit; font-weight: 700; text-underline-offset: 3px; }
.tonight__none { color: var(--text-on-light-dim); }
.tonight__meta { color: var(--text-on-light-dim); font-size: 0.86rem; }
.tonight__more { color: var(--aqua-on-light); font-size: 0.82rem; font-weight: 600; }
.bg-dark .tonight, .bg-ink .tonight { --card-line: var(--line-dark); --card-fill: var(--surface-dark); }
.bg-dark .tonight__meta, .bg-ink .tonight__meta,
.bg-dark .tonight__none, .bg-ink .tonight__none { color: var(--text-on-dark-dim); }

/* ---------- Legend ----------
   "Class" and "Social" are not interchangeable to a beginner deciding
   how to spend an evening. */
.legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; padding-top: 0.9rem; }
.legend:empty { display: none; }
.legend__item {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-family: var(--display); font-size: 0.66rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--text-on-light-dim);
}
.legend__dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.legend__dot--ours     { background: var(--kind-ours); }
.legend__dot--lesson   { background: var(--kind-lesson); }
.legend__dot--class    { background: var(--kind-class); }
.legend__dot--workshop { background: var(--kind-workshop); }
.legend__dot--social   { background: var(--kind-social); }

/* Kind colour rides the left edge of every row and month chip, so the
   same key reads across all three views. */
.ev--ours     { --card-line: var(--kind-ours); }
.ev--lesson   { --card-line: var(--kind-lesson); }
.ev--class    { --card-line: var(--kind-class); }
.ev--workshop { --card-line: var(--kind-workshop); }
.ev--social   { --card-line: var(--kind-social); }

.mchip--ours     { background: color-mix(in srgb, var(--kind-ours) 18%, transparent); }
.mchip--lesson   { background: color-mix(in srgb, var(--kind-lesson) 16%, transparent); }
.mchip--class    { background: color-mix(in srgb, var(--kind-class) 16%, transparent); }
.mchip--workshop { background: color-mix(in srgb, var(--kind-workshop) 16%, transparent); }
.mchip--social   { background: color-mix(in srgb, var(--kind-social) 16%, transparent); }
.mchip--ours:hover     { background: var(--kind-ours); color: #fff; }
.mchip--class:hover    { background: var(--kind-class); color: #fff; }
.mchip--workshop:hover { background: var(--kind-workshop); color: #fff; }
.mchip--social:hover   { background: var(--kind-social); color: #fff; }
.mchip__star { color: var(--neon); font-style: normal; }


/* ---------- New here? ---------- */
.newhere {
    --cut-v: 12px;
    --card-line: var(--aqua);
    --card-fill: #EAF8FD;
    position: relative; isolation: isolate;
    margin: 1.5rem 0 0; padding: 0.9rem 1.1rem; font-size: 0.92rem;
    background: var(--card-line);
    clip-path: var(--wmw-cut);
}
.newhere::after {
    content: ''; position: absolute; inset: 2px; z-index: -1;
    background: var(--card-fill);
    clip-path: var(--wmw-cut);
}
.newhere__flag {
    font-family: var(--display); font-size: 0.62rem; font-weight: 800;
    letter-spacing: 0.16em; text-transform: uppercase; margin-right: 0.4rem;
}
.newhere__why { color: var(--text-on-light-dim); font-size: 0.86rem; }
.newhere a { color: var(--neon-on-light); font-weight: 600; white-space: nowrap; }

/* ---------- Organizer split ---------- */
.orgsplit { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 1.25rem; }
/* Outline as a background layer, not a border: clip-path slices a
   border open along the diagonal. Same treatment as .night. */
.orgsplit__card {
    position: relative; display: flex; flex-direction: column;
    padding: 2rem 1.75rem 1.75rem;
    border: 0;
    background: var(--line-light);
    clip-path: var(--wmw-cut);
}
.orgsplit__card::after {
    content: ''; position: absolute; inset: 1px; z-index: 0;
    background: var(--paper);
    clip-path: var(--wmw-cut);
}
.orgsplit__card > * { position: relative; z-index: 1; }
.orgsplit__card--rec { background: var(--neon); }
.orgsplit__card--rec::after { inset: 2px; }
.orgsplit__flag {
    align-self: flex-start; margin-bottom: 0.8rem;
    font-family: var(--display); font-size: 0.6rem; font-weight: 800;
    letter-spacing: 0.16em; text-transform: uppercase;
    background: var(--neon); color: #000; padding: 0.28rem 0.6rem;
}
.orgsplit__card h3 { font-size: 1.25rem; text-transform: uppercase; margin-bottom: 0.7rem; }
.orgsplit__card p { font-size: 0.92rem; color: var(--text-on-light-dim); margin-bottom: 1.5rem; }
.orgsplit__card .btn { margin-top: auto; align-self: flex-start; }
.orgsplit__foot {
    margin-top: 1.75rem; text-align: center;
    font-family: var(--display); font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-on-light-dim);
}
.orgsplit__disclaimer {
    margin-top: 0.6rem; text-align: center;
    font-size: 0.8rem; color: var(--text-on-light-dim);
}

/* ================================================================
   UI PASS — target sizes and line length
   ================================================================ */

/* WCAG 2.5.8 asks 24x24 CSS px for a discrete control. Month-grid
   chips were 20px tall. Inline text links inside a sentence are
   exempt, so those stay as they are. */
.mchip { min-height: 24px; display: flex; align-items: center; gap: 0.25rem; }

/* Standalone card links ("More about Lamarr →") were 15px of target.
   Padding buys height without moving the text. */
.person a[href^="http"],
.person__workshops a {
    display: inline-block;
    padding-block: 0.35rem;
    text-underline-offset: 3px;
}

/* Line length. Long measure is the quiet readability killer: past
   about 75 characters the eye loses the line it is returning to.
   .section-lede already caps at 58ch; these ran full width. */
.newhere, .note-band, .source-note, .orgsplit__disclaimer, .section-note {
    max-width: 78ch;
}
.orgsplit__disclaimer, .orgsplit__foot { margin-inline: auto; }

/* Card CTAs sat at 21-22px of target. */
.night__link, .source-note a {
    display: inline-block;
    padding-block: 0.3rem;
}
/* Brand-page callouts ran the full 1040px column. */
.gap-note p, .rule p { max-width: 78ch; }

/* The live-status band ran 972px of small type. */
.dsband p { max-width: 82ch; }

/* ---------- Dance Seekers attribution ----------
   The calendar is their data. Attribution sits under it as a proper
   lockup rather than a line of small print, the way WMLD does it.
   ?ref=wmw so referrals from each hub are attributable. */
.dsattrib {
    margin-top: 2.25rem; padding-top: 1.75rem;
    border-top: 1px solid var(--line-light);
    display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
    text-align: center;
}
.dsattrib__brand {
    display: inline-flex; flex-direction: column; align-items: center; gap: 0.5rem;
    text-decoration: none; transition: var(--t);
}
.dsattrib__brand:hover { opacity: 0.75; }
.dsattrib__label {
    font-family: var(--display); font-size: 0.64rem; font-weight: 800;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--text-on-light-dim);
}
.dsattrib__logo { width: 210px; height: auto; display: block; }
.dsattrib__meta {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3rem 0.8rem;
    font-size: 0.82rem; color: var(--text-on-light-dim); max-width: 78ch;
}
.dsattrib__meta a { color: var(--neon-on-light); font-weight: 600; }
.bg-dark .dsattrib, .bg-ink .dsattrib { border-top-color: var(--line-dark); }
.bg-dark .dsattrib__meta, .bg-ink .dsattrib__meta { color: var(--text-on-dark-dim); }
.bg-dark .dsattrib__meta a, .bg-ink .dsattrib__meta a { color: var(--neon); }
@media (max-width: 480px) { .dsattrib__logo { width: 168px; } }

/* Rolling window: the current week's earlier days stay in the grid so
   the week reads whole, but they are done. */
.mcell--past { opacity: 0.45; }
.mcell--past .mchip { pointer-events: none; }
/* The 1st carries its month name, since the window crosses boundaries. */
.mcell__n--month { color: var(--neon-on-light); font-weight: 800; }
.bg-dark .mcell__n--month, .bg-ink .mcell__n--month { color: var(--neon); }

/* The grid caps at ten weeks; say what that hides rather than letting
   the last row read as the end of the calendar. */
.mbeyond {
    margin-top: 1.1rem; text-align: center;
    font-size: 0.86rem; color: var(--text-on-light-dim);
}
.mbeyond__link {
    border: 0; background: none; padding: 0.3rem 0.2rem; cursor: pointer;
    font: inherit; font-weight: 600; color: var(--neon-on-light);
    text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- Month grid on a phone ----------
   Seven columns at 375px leaves ~50px a cell, which truncated every
   title to "GLSD" and "Chica". Dots carry the same information the
   legend already explains, and opening a day shows the real rows. */
.mcell__dots { display: none; }
.mdot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.mdot--ours { background: var(--kind-ours); }
.mdot--lesson { background: var(--kind-lesson); }
.mdot--class { background: var(--kind-class); }
.mdot--workshop { background: var(--kind-workshop); }
.mdot--social { background: var(--kind-social); }

.mday { margin-top: 1.1rem; }
.mday__head {
    font-family: var(--display); font-size: 0.72rem; font-weight: 800;
    letter-spacing: 0.16em; text-transform: uppercase;
    margin-bottom: 0.7rem; color: var(--neon-on-light);
}

@media (max-width: 700px) {
    .mcell__evs { display: none; }
    .mcell__dots { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 0.3rem; }
    .mcell { min-height: 56px; cursor: pointer; }
    .mcell[data-day]:hover { background: rgba(255, 0, 127, 0.06); }
    .mcell--open { box-shadow: inset 0 0 0 2px var(--neon); }
    .mcell__n { font-size: 0.72rem; }
}

/* A component `display` beats the hidden attribute's UA rule, so
   .app-controls__row[hidden] stayed on screen. */
[hidden] { display: none !important; }

/* ---------- Event dialog ----------
   Clicking an event shows what we already know before offering the
   trip to Dance Seekers. */
.evdlg { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1.25rem; }
.evdlg__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.62); }
.evdlg__panel {
    position: relative; z-index: 1;
    width: min(560px, 100%); max-height: min(86vh, 780px); overflow-y: auto;
    background: var(--paper); color: var(--text-on-light);
    padding: 2.1rem 1.9rem 1.9rem;
    clip-path: var(--wmw-cut);
}
.evdlg__panel:focus { outline: none; }
.evdlg__panel:focus-visible { outline: 3px solid var(--neon); outline-offset: -3px; }
.evdlg__x {
    position: absolute; top: 0.7rem; right: 0.9rem;
    width: 40px; height: 40px; border: 0; background: none; cursor: pointer;
    font-size: 1.7rem; line-height: 1; color: var(--text-on-light-dim);
}
.evdlg__x:hover { color: var(--neon-on-light); }
.evdlg__kind {
    display: inline-block; margin-bottom: 0.9rem;
    font-family: var(--display); font-size: 0.6rem; font-weight: 800;
    letter-spacing: 0.16em; text-transform: uppercase;
    padding: 0.3rem 0.65rem; color: #fff; background: var(--midnight);
}
.evdlg__kind--ours { background: var(--kind-ours); color: #000; }
.evdlg__kind--lesson { background: var(--kind-lesson); }
.evdlg__kind--class { background: var(--kind-class); }
.evdlg__kind--workshop { background: var(--kind-workshop); }
.evdlg__kind--social { background: var(--kind-social); }
.evdlg__panel h3 {
    font-family: var(--display); font-size: 1.45rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.15;
    margin-bottom: 1.25rem; padding-right: 2rem;
}
.evdlg__label {
    font-family: var(--display); font-size: 0.6rem; font-weight: 800;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--text-on-light-dim); margin-top: 1rem;
}
.evdlg__val { font-size: 1rem; font-weight: 600; margin-top: 0.2rem; }
.evdlg__sub { font-size: 0.88rem; color: var(--text-on-light-dim); margin-top: 0.15rem; }
.evdlg__sub a { color: var(--aqua-on-light); font-weight: 600; }
.evdlg__note {
    --cut-v: 10px;
    --card-line: var(--neon);
    --card-fill: #FFF2F8;
    position: relative; isolation: isolate;
    margin-bottom: 0.9rem; padding: 0.6rem 0.8rem; font-size: 0.88rem;
    background: var(--card-line);
    clip-path: var(--wmw-cut);
}
.evdlg__note::after {
    content: ''; position: absolute; inset: 2px; z-index: -1;
    background: var(--card-fill);
    clip-path: var(--wmw-cut);
}
.evdlg__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.15rem; }
.evdlg__styles { font-size: 0.9rem; margin-top: 1rem; text-transform: capitalize; }
.evdlg__styles b { text-transform: none; }
.evdlg__desc { font-size: 0.94rem; margin-top: 1rem; color: var(--text-on-light-dim); max-width: 62ch; }
.evdlg__org { font-size: 0.86rem; margin-top: 0.9rem; color: var(--text-on-light-dim); }
.evdlg__cta { margin-top: 1.6rem; }
.evdlg__cta .btn { width: 100%; }
@media (max-width: 480px) {
    .evdlg { padding: 0.6rem; }
    .evdlg__panel { padding: 1.8rem 1.25rem 1.5rem; }
}

/* "+N more" is the only thing the three-event cap hides, so it is a
   control, not a caption. */
.mmore {
    border: 0; background: none; padding: 0.25rem 0.15rem; cursor: pointer;
    font-family: var(--display); font-size: 0.58rem; font-weight: 800;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--neon-on-light); text-align: left;
}
.mmore:hover { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 700px) { .mmore { display: none; } }

/* Replaced the five-card rail: one line, and a button that does the
   thing the cards only implied. */
.oursline {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 0.6rem;
    margin-bottom: 1.5rem; font-size: 0.94rem;
}
.oursline__star { color: var(--neon); }
.oursline__btn {
    border: 0; background: none; padding: 0.3rem 0.2rem; cursor: pointer;
    font: inherit; font-weight: 700; color: var(--neon-on-light);
    text-decoration: underline; text-underline-offset: 3px;
}
.oursline__btn:hover { opacity: 0.75; }
.bg-dark .oursline__btn, .bg-ink .oursline__btn { color: var(--neon); }

/* Brand page asset index (internal page). */
.assetlist { list-style: none; display: grid; gap: 0.35rem; margin-top: 1.25rem; }
.assetlist a { color: var(--aqua-on-light); font-size: 0.9rem; }

/* Regional venue directory: a list, not cards. These are other people's
   rooms and we have not been to them, so they get less weight than ours. */
.rvenues { list-style: none; display: grid; gap: 1px; background: var(--line-dark); margin-top: 1.75rem; }
.rvenue {
    display: grid; align-items: baseline; gap: 0.15rem 1rem;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr) minmax(0, 1.4fr) auto auto;
    padding: 0.85rem 0.2rem; background: var(--midnight);
}
.rvenue__n { font-family: var(--display); font-weight: 700; font-size: 0.96rem; }
.rvenue__where, .rvenue__orgs { font-size: 0.84rem; color: var(--text-on-dark-dim); }
.rvenue__count {
    font-family: var(--display); font-size: 0.64rem; font-weight: 800;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--aqua); white-space: nowrap;
}
.rvenue__mi { font-size: 0.78rem; color: var(--text-on-dark-dim); white-space: nowrap; }
@media (max-width: 760px) {
    .rvenue { grid-template-columns: 1fr auto; }
    .rvenue__n { grid-column: 1 / -1; }
    .rvenue__orgs { grid-column: 1 / -1; }
}

.evdlg__org a { color: var(--aqua-on-light); font-weight: 600; }
.evdlg__orgnote { opacity: .7; font-size: .82rem; }

/* Two actions in the dialog when the community is live. */
.evdlg__cta { display: grid; gap: 0.6rem; }

/* ---------- Hero dancers ----------
 *
 * TWO LAYERS, BOTH SUPPLIED AS ARTWORK. Nothing here is derived from the
 * flattened composite - whip.png is the dancers, lines.jpg is the streaks,
 * and together they ARE the hero. The streak layer carries no transform of
 * any kind, so it cannot move; only the dancers do. That separation is the
 * whole reason the artwork exists in pieces.
 *
 * The whip is that same dancer layer MIRRORED - blue lead to the left,
 * pink follow to the right - so there is one dancer asset, not two, and no
 * chance of the two poses disagreeing about colour or placement.
 *
 * Order matters in the transform: scaleX runs first, then translateX, so
 * they mirror in place and THEN travel right rather than travelling left. */
.dancers { position: relative; }
.dancers__lines img, .dancers__figures img { width: 100%; height: auto; display: block; }
.dancers__lines { position: absolute; inset: 0; }
/* ⚠️ TRAVEL AND FLIP LIVE ON DIFFERENT ELEMENTS ON PURPOSE. Put both on one
   and the single transition tweens the mirror too, so scaleX runs -1 -> 0 ->
   1 and the dancers squash flat through zero width on the way back. The trip
   should ease; the turn should cut. So __figures carries the translate and
   is transitioned, __pose carries the mirror and never is. */
.dancers__figures { transition: transform 120ms ease-out; }
.dancers.is-travelling .dancers__figures { transform: translateX(3.5%); }
/* ⚠️ MIRROR ABOUT THE DANCERS, NOT THE CANVAS.
 *
 * Both layers are cropped to the COMBINED box, and the streaks run wider
 * than the figures, so the couple sits at 52.34% of the width rather than
 * 50%. Flipping about the canvas centre therefore slides them 60px left -
 * more than the 44.8px the travel moves them right, so the mirror was
 * cancelling the whole trip and the follow landed short of where the lead
 * had been. Pivoting on the couple's own centre keeps them where they are
 * and reverses only the pose, which is what a whip actually does.
 *
 * The number comes from the artwork: dancers bbox 195..1145 on a 1280
 * canvas, centre 670. Recompute it if the crop changes. */
.dancers__pose { transition: none; transform-origin: 52.34% 50%; }
.dancers.is-whipped .dancers__pose { transform: scaleX(-1); }
@media (prefers-reduced-motion: reduce) {
    .dancers__figures { transition: none; }
}
@media (prefers-reduced-motion: reduce) {
    .dancers__figures, .dancers__whip { transition: none; }
}
