/*
Theme Name: TMD Next
Theme URI: https://www.tangomarathons.com/
Author: Tango Marathon Directory
Description: Dependency-light, anonymous-first event explorer for the Tango Marathon Directory.
Version: 0.11.1
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: tmd-next
License: GPL-2.0-or-later
*/
/* Editorial Atlas design tokens — source: design/stitch/DESIGN.md (Stitch project 6075606451790548862) */
/* Colour contract note (bead tmd_theme-3hh.7, F9): --tmd-surface:#ffffff is the
   ratified surface-container-lowest from DESIGN.md line 7, deliberately admitted
   for input/panel interiors; --tmd-border:#cdcec7 is the only border colour —
   surfaces must consume these tokens, never raw hex. */
/* Palette sync contract: hex values in :root below MUST stay in sync with the
   "palette" array in theme.json (WP cannot resolve CSS vars in palette entries).
   When changing a colour here, update the matching theme.json palette slug. */
/* Cross-surface micro-label + date contract (bead tmd_theme-3hh.4): ONE mono
   uppercase label treatment consumed by .field label, the contribution field
   spans/legend/search label, .cell-label and .event-details dt; --tmd-font-date
   keeps the mono-for-dates contract explicit for date inputs and rendered
   date values. One size (.72rem) — the size already ratified on the event
   detail surface. */
:root {
   --tmd-bg: #faf9f5;
   --tmd-paper: #f5f4f0;
   --tmd-ink: #1b1c1a;
   --tmd-muted: #62635f;
   --tmd-accent: #a63a2b;
   --tmd-accent-strong: #862316;
   --tmd-border: #cdcec7;
   --tmd-border-interactive: var(--tmd-ink);
   --tmd-surface-folded: #e9e8e2;
   --tmd-surface-container: #efeeea;
   --tmd-error: #ba1a1a;
   --tmd-focus: #a63a2b;
   --tmd-surface-muted: var(--tmd-surface-folded);
   --tmd-surface: #ffffff;
   --tmd-radius: 0px;
   --tmd-radius-interactive: 4px;
   --tmd-reading-rail: 880px;
   /* --tmd-width-content is the CSS alias for WP theme.json contentSize (880px).
      Keep in sync with theme.json "contentSize". Surfaces that need a WP content-slot
      width should consume this token; editorial single-page content targets ~880px. */
   --tmd-width-content: var(--tmd-reading-rail);
   --tmd-width-reading: var(--tmd-reading-rail);
   /* --tmd-width-wide must match theme.json "wideSize". */
   --tmd-width-wide: 1120px;
   --tmd-width-directory: 1360px;
   --tmd-width-browse: 1600px;
   --tmd-width-dashboard: var(--tmd-reading-rail);
   --tmd-width-profile: var(--tmd-reading-rail);
   --tmd-container: var(--tmd-width-directory);
   --tmd-focus-ring-width: 2px;
   --tmd-focus-ring-offset: 2px;
   --tmd-motion-duration: 150ms;
   --tmd-motion-easing: ease-out;
   /* Font tokens — system-preference stacks; no CDN fetch occurs.
      Named fonts ('Outfit', 'Geist', 'JetBrains Mono') are preferred if installed
      locally; execution falls through to safe system fonts otherwise.
      To self-host in future: add OFL/SIL/Apache-licensed WOFF2 to assets/fonts/
      and add @font-face rules above this block. */
   --tmd-font-head: 'Outfit', 'Avenir Next', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
   --tmd-font-body: 'Geist', 'Inter', 'Avenir Next', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
   --tmd-font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;
   --tmd-font-date: var(--tmd-font-mono);
   --tmd-label-font: var(--tmd-font-mono);
   --tmd-label-size: .72rem;
   --tmd-label-weight: 500;
   --tmd-label-tracking: .07em;
   --tmd-label-color: var(--tmd-muted);
   font-family: var(--tmd-font-body);
   color-scheme: light;
   --tmd-type-edge-marathon: #74420f;
   --tmd-type-edge-festival: #5e358b;
   --tmd-type-edge-encuentro: #2d6228;
   --tmd-type-edge-weekend: #285989;
   --tmd-type-edge-learning: #126159;
   --tmd-type-edge-camp: #74304f;
   --tmd-type-edge-holiday: #4d4000;
   --tmd-type-edge-conference: #33345f;
   --tmd-type-ground-marathon: #f4cb91;
   --tmd-type-ground-festival: #dfb5f2;
   --tmd-type-ground-encuentro: #c3e6b3;
   --tmd-type-ground-weekend: #bbd9f9;
   --tmd-type-ground-learning: #a9e4da;
   --tmd-type-ground-camp: #efa9ca;
   --tmd-type-ground-holiday: #f8e384;
   --tmd-type-ground-conference: #abb7e6;
   --tmd-type-mark-marathon: '■';
   --tmd-type-mark-festival: '▲';
   --tmd-type-mark-encuentro: '◆';
   --tmd-type-mark-weekend: '●';
   --tmd-type-mark-learning: '◇';
   --tmd-type-mark-camp: '⌂';
   --tmd-type-mark-holiday: '✦';
   --tmd-type-mark-conference: '▰';
   --tmd-type-edge-width: 2px;
   --tmd-type-edge-style: solid;
   --tmd-type-edge-fallback: var(--tmd-muted);
   --tmd-type-ground-fallback: var(--tmd-surface-folded);
   --tmd-chip-ghost-border: var(--tmd-border);
   --tmd-shadow-panel: 0 8px 24px rgba(27, 28, 26, 0.08);
   --tmd-shadow-panel-raised: 0 -8px 24px rgba(27, 28, 26, 0.12)
}

@media (prefers-reduced-motion: reduce) {
   :root {
      --tmd-motion-duration: 0.01ms;
      --tmd-motion-easing: linear
   }
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--tmd-bg);color:var(--tmd-ink);line-height:1.55;font-size:1rem;font-variant-numeric:tabular-nums}
a{color:var(--tmd-accent)}
a:hover{text-decoration-thickness:2px}
h1,h2,h3,h4{font-family:var(--tmd-font-head)}
.event-date,.event-row-date,.calendar-day-number{font-family:var(--tmd-font-mono)}
/* Series archive (tmd_theme-au03): the next-edition <time> in the profile-
   archive table cell and cards <dd> carries no class hook; the mono contract
   scopes to #archive-results so the explorer .result-table/.event-card views
   (which class or inherit their dates already) keep their committed pixels. */
#archive-results .result-table td time,#archive-results .event-card time{font-family:var(--tmd-font-mono)}
:focus-visible{outline:var(--tmd-focus-ring-width) solid var(--tmd-focus);outline-offset:var(--tmd-focus-ring-offset)}
.skip-link{position:absolute;left:-100vw;top:0;background:var(--tmd-surface);padding:.8rem;z-index:100}
.skip-link:focus{left:1rem;top:.5rem}
.wrap {
   width: min(calc(100% - 2rem), var(--tmd-width-directory));
   margin-inline: auto
}

.site-header {
   background: var(--tmd-paper);
   border-bottom: 1px solid var(--tmd-border)
}

.header-inner {
   display: flex;
   gap: .75rem;
   align-items: center;
   justify-content: space-between;
   min-height: 56px;
   flex-wrap: wrap;
   padding-block: .35rem
}

.brand {
   flex: 0 1 auto;
   max-width: 35%;
   font-size: 1rem;
   font-weight: 800;
   letter-spacing: -.02em;
   color: var(--tmd-ink);
   text-decoration: none;
   overflow-wrap: anywhere
}

/* Site-identity logo replaces the text-only .brand when set. the_custom_logo()
   renders the attachment at its natural size, so the bound lives here: cap the
   logo to the 56px compact header instead of trusting the crop-dialog args. */
.custom-logo-link {
   flex: 0 1 auto;
   display: inline-flex;
   align-items: center
}

.custom-logo {
   display: block;
   max-height: 40px;
   max-width: 240px;
   width: auto;
   height: auto;
   object-fit: contain
}

.nav {
   display: flex;
   gap: .25rem;
   align-items: center;
   flex: 1 1 auto;
   min-width: 0;
   flex-wrap: wrap
}

.nav-mobile {
   display: flex;
   align-items: center;
   gap: .25rem;
   flex: 1 1 auto;
   min-width: 0;
   flex-wrap: wrap
}

.nav-mobile > .nav-toggle {
   display: none
}

.nav-mobile > .nav-panel {
   display: flex;
   align-items: center;
   gap: .25rem;
   flex: 1 1 auto;
   min-width: 0;
   flex-wrap: wrap
}

.nav a {
   display: inline-block;
   padding: .5rem .6rem;
   border-radius: var(--tmd-radius-interactive);
   min-width: 44px;
   min-height: 44px;
   line-height: 1.4;
   color: var(--tmd-ink);
   text-decoration: none;
   white-space: nowrap;
   transition: background-color var(--tmd-motion-duration) var(--tmd-motion-easing)
}

.nav a:hover {
   background: var(--tmd-surface-folded)
}

/* Active item is marked with an ink text underline, not a filled pill
   (UX review F14): the grey background pill read as a selected state that
   competed with real controls. */
.nav a[aria-current="page"] {
   text-decoration: underline;
   text-decoration-thickness: 2px;
   text-underline-offset: .3em
}

.nav .account-link {
   border: 0;
   padding-inline: .55rem
}

.nav-list,
.nav-utility {
   list-style: none;
   margin: 0;
   padding: 0;
   display: flex;
   align-items: center;
   flex-wrap: wrap;
   gap: .25rem
}

/* Divider + left padding only when the nav sits on one line; below the
   breakpoint the utility list flows as its own row(s) with no stray tick. */
@media(min-width:1280px) {
   .nav-utility {
      padding-left: .5rem;
      border-left: 1px solid var(--tmd-border)
   }
}

/* Tablet: brand and the full nav share two compact rows instead of a third band. */
@media(max-width:1279px) {
   .header-inner {
      row-gap: .25rem
   }

   /* Utility row separator: below 1280px the My Tango/Sign-in group flows on
      its own row under the WP menu items — give it the same hairline the
      >=1280px single-line nav draws as a left border (owner request,
      2026-11-24). Full-row basis keeps the divider deterministic instead of
      depending on where the flex wrap happens to break. */
   .nav-utility {
      flex: 1 1 100%;
      padding-top: .45rem;
      border-top: 1px solid var(--tmd-border)
   }

   .nav {
      flex: 1 1 100%
   }

   .brand,
   .custom-logo-link {
      max-width: 100%;
      min-width: 0;
      white-space: normal;
      overflow-wrap: anywhere
   }
}

/* Compact mobile navigation: keep the brand and a clear Menu control on the
   same row, and reveal the primary/utility links in a readable vertical panel
   when opened. The disclosure uses native <details>/<summary> semantics so the
   menu remains keyboard- and no-JS-friendly without introducing a framework. */
@media(max-width:899px) {
   .header-inner {
      display: flex;
      align-items: center;
      gap: .75rem
   }

   .brand {
      max-width: 60%;
      flex: 1 1 auto
   }

   .nav {
      margin-left: auto;
      flex: 0 0 auto;
      min-width: 0
   }

   .nav-mobile {
      position: relative;
      display: block
   }

   /* Specificity must match the base `.nav-mobile > .nav-toggle` rule
      (0-2-0): a bare `.nav-toggle` here loses the cascade and the toggle
      stays display:none at every width (found by joint-test browser pass,
      2026-11-24). */
   .nav-mobile > .nav-toggle {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: .35rem;
      min-height: 44px;
      padding: .5rem .8rem;
      border: 1px solid var(--tmd-border);
      border-radius: var(--tmd-radius-interactive);
      background: var(--tmd-surface);
      color: var(--tmd-ink);
      font-weight: 700;
      line-height: 1.2;
      cursor: pointer;
      list-style: none;
      user-select: none
   }

   .nav-toggle::-webkit-details-marker {
      display: none
   }

   .nav-toggle::after {
      content: '▾';
      font-size: .9em;
      line-height: 1;
      transition: transform var(--tmd-motion-duration) var(--tmd-motion-easing)
   }

   .nav-mobile[open] > .nav-toggle::after {
      transform: rotate(180deg)
   }

   .nav-panel {
      position: absolute;
      top: calc(100% + .5rem);
      right: 0;
      z-index: 20;
      width: min(18rem, calc(100vw - 2rem));
      max-height: min(70vh, 32rem);
      overflow-y: auto;
      background: var(--tmd-paper);
      border: 1px solid var(--tmd-border);
      border-radius: var(--tmd-radius-interactive);
      box-shadow: var(--tmd-shadow-panel)
   }

   .nav-mobile:not([open]) .nav-panel {
      display: none
   }

   .nav-mobile .nav-list,
   .nav-mobile .nav-utility,
   .nav-mobile .nav-group-links {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: .25rem;
      padding: .5rem
   }

   .nav-mobile .nav-list li,
   .nav-mobile .nav-utility li,
   .nav-mobile .nav-group-links li {
      width: 100%
   }

   .nav-mobile .nav a,
   .nav-mobile .nav-group-label,
   .nav-mobile .nav-utility a {
      display: block;
      width: 100%;
      padding: .65rem .75rem;
      border-radius: var(--tmd-radius-interactive);
      white-space: normal;
      line-height: 1.4
   }

   .nav-mobile .nav-group {
      display: block;
      margin-left: 0
   }

   .nav-mobile .nav-group-links {
      padding-top: 0
   }

   .nav-mobile .nav-group-label {
      display: block;
      padding: .5rem .75rem;
      min-height: 0;
      color: var(--tmd-muted)
   }

   .nav-mobile .nav-group-label::after {
      content: '';
      margin-left: 0
   }
}

.nav .nav-utility a {
   color: var(--tmd-ink)
}

/* People group: label + its three links read as ONE flex row. The group
   margin-left separates it from the previous nav item by more than the
   internal label-to-first-link gap, so the boundary reads spatially.
   flex-start keeps the label on the first row when the group's links
   wrap below it at narrow widths, instead of floating mid-block. */
.nav-group {
   display: flex;
   align-items: flex-start;
   margin-left: .25rem
}

.nav-group-links {
   list-style: none;
   margin: 0;
   padding: 0;
   display: flex;
   align-items: center;
   flex-wrap: wrap;
   gap: .25rem
}

/* Same box model as .nav a (inline-block + identical top padding and line-height)
   so the label text sits on the same vertical line as the links. */
.nav-group-label {
   display: inline-block;
   padding: .5rem .2rem .5rem .6rem;
   min-height: 44px;
   font-size: 1rem;
   line-height: 1.4;
   font-weight: 600;
   letter-spacing: normal;
   text-transform: none;
   color: var(--tmd-muted);
   white-space: nowrap
}

.nav-group-label::after {
   content: ":";
   margin-left: .1em
}

@media(max-width:410px) {
   .nav-group-label {
      padding-block: .6rem
   }
}

main {
   min-height: 55vh
}

.hero {
   padding: clamp(1.35rem, 3vw, 2.8rem) 0 .9rem
}

.eyebrow {
   font-size: .8rem;
   text-transform: uppercase;
   letter-spacing: .13em;
   font-weight: 800;
   color: var(--tmd-accent)
}

h1 {
   font-size: clamp(2rem, 5vw, 3.4rem);
   letter-spacing: -.045em;
   line-height: 1.15;
   margin: .3rem 0 .6rem
}

h2 {
   line-height: 1.25
}

.lead {
   max-width: 67ch;
   color: var(--tmd-muted);
   font-size: 1.1rem;
   margin: 0
}

@media(max-width:530px) {
   .hero {
      padding: .75rem 0 .4rem
   }

   h1 {
      font-size: clamp(1.65rem, 7vw, 2rem);
      margin: .2rem 0 .35rem
   }

   .lead {
      display: none
   }

   /* first-viewport-discovery remediation:
      signed-in mobile loses 46px to the WordPress admin bar; compact the hero
      only for authenticated homepage sessions to keep the first result visible
      without changing guest layout. */
   body.home.logged-in .hero {
      padding: .2rem 0 .05rem
   }

   body.home.logged-in .hero .eyebrow {
      display: none
   }

   body.home.logged-in .hero h1 {
      font-size: clamp(1.35rem, 6vw, 1.75rem);
      margin: 0 0 .2rem
   }
}

/* Browse surfaces use wide desktop space for discoverable items (#179).
   The editorial detail pages keep their narrow reading measure via .profile-page
   and .profile-abstract; only the outer .wrap expands here, which benefits
   the header as well as the content area. */
@media(min-width:1440px) {
   .post-type-archive-tmd_event_series .wrap,
   .post-type-archive-tmd_dj .wrap,
   .post-type-archive-tmd_teacher .wrap,
   .post-type-archive-tmd_teacher_couple .wrap,
   .home .wrap {
      width: min(calc(100% - 2rem), var(--tmd-width-browse))
   }
}/* Nested custom-menu navigation (WordPress `primary` location, see
   inc/nav.php). Scoped to `.nav` — never a bare `li` — so footer menus and
   other walkers stay untouched. Desktop = the layout.css >=900px shell;
   the <900px mobile panel overrides follow below. */

/* Caret matches the `.nav-toggle::after` precedent in layout.css. WP custom
   menus do not set aria-current, so the active state keys on the walker's
   .current-menu-item / .current-menu-ancestor classes, not aria-current. */
.nav .menu-item-has-children {
   position: relative
}

.nav .menu-item-has-children > a::after {
   content: '▾';
   display: inline-block;
   margin-left: .25rem;
   font-size: .9em;
   line-height: 1;
   transition: transform var(--tmd-motion-duration) var(--tmd-motion-easing)
}

.nav .menu-item-has-children:hover > a::after,
.nav .menu-item-has-children:focus-within > a::after {
   transform: rotate(180deg)
}

.nav .sub-menu {
   display: none;
   position: absolute;
   top: 100%;
   left: 0;
   z-index: 20;
   flex-direction: column;
   list-style: none;
   margin: 0;
   padding: .5rem 0;
   min-width: 12rem;
   background: var(--tmd-paper);
   border: 1px solid var(--tmd-border);
   border-radius: var(--tmd-radius-interactive);
   box-shadow: var(--tmd-shadow-panel)
}

/* :hover for pointer input, :focus-within for keyboard — neither alone is
   sufficient; both keep the panel open while focus moves through the links. */
.nav li.menu-item-has-children:hover > .sub-menu,
.nav li.menu-item-has-children:focus-within > .sub-menu {
   display: flex
}

/* Depth 2+ renders inline inside the parent dropdown instead of floating a
   second panel; keyboard traversal stays in one column. */
.nav .sub-menu .sub-menu {
   position: static;
   min-width: 0;
   padding: .25rem 0 .25rem .75rem;
   border: none;
   box-shadow: none
}

/* Dropdown links keep the 44px minimum tap target of the base `.nav a`
   rule and the `.nav-list a` padding rhythm from layout.css. */
.nav .sub-menu a {
   padding: .5rem .75rem;
   min-height: 44px;
   border-radius: var(--tmd-radius-interactive)
}

.nav .sub-menu a:hover,
.nav .sub-menu a:focus-visible {
   background: var(--tmd-surface-folded)
}

.nav .current-menu-item > a,
.nav .current-menu-ancestor > a {
   text-decoration: underline;
   text-decoration-thickness: 2px;
   text-underline-offset: .3em
}

/* Mobile panel (<900px): nested sub-menus render as rail-indented expanded
   lists — no carets, no hover-only disclosure, no-JS safe. This resets the
   desktop dropdown box (absolute position, paper background, border, shadow)
   that would otherwise render inside the <details> panel. */
@media(max-width:899px) {
   .nav-mobile .sub-menu {
      display: flex;
      position: static;
      flex-direction: column;
      gap: .25rem;
      list-style: none;
      margin: 0;
      padding: 0 0 .25rem .9rem;
      min-width: 0;
      background: transparent;
      border: none;
      border-left: 1px solid var(--tmd-border);
      box-shadow: none
   }

   .nav-mobile .sub-menu .sub-menu {
      padding-left: .75rem;
      border-left: none
   }

   .nav-mobile .menu-item-has-children > a::after {
      content: none
   }
}
.filters{background:var(--tmd-paper);border:1px solid var(--tmd-border);border-radius:var(--tmd-radius);padding:.85rem;margin:.75rem 0 1.2rem}
.filters-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem}
.field{display:flex;flex-direction:column;gap:.3rem;min-width:0}
/* Cross-surface micro-label (bead tmd_theme-3hh.4): every .field label — the
   explorer/profile filter labels, "Search events" and archive facet labels —
   shares the ONE mono uppercase label treatment from tokens.css, replacing
   the divergent .86rem/700 Geist style. */
.field label{font-family:var(--tmd-label-font);font-size:var(--tmd-label-size);font-weight:var(--tmd-label-weight);text-transform:uppercase;letter-spacing:var(--tmd-label-tracking);color:var(--tmd-label-color)}
/* Shared control recipe (tmd_theme-125j): one rule for every .field control. */
.field input,.field select,.field textarea{font:inherit;width:100%;min-width:0;min-height:44px;padding:.55rem .7rem;border:1px solid var(--tmd-border);border-radius:4px;background:var(--tmd-surface);color:var(--tmd-ink)}
/* Mono contract (bead tmd_theme-3hh.4): date inputs (explorer From/Until,
   contribution Start/End date) render their value in the mono face. Attribute
   selector outspecifies the shared control recipe's font:inherit above. */
.field input[type="date"]{font-family:var(--tmd-font-date)}
.filter-actions{display:flex;gap:.7rem;align-items:center;flex-wrap:wrap;margin-top:1rem}
.create-options{position:relative}
.create-options summary{list-style:none;cursor:pointer}
.create-options summary::-webkit-details-marker{display:none}
/* Shared anchored-panel recipe for create actions and filter option lists. */
.popover-panel{position:absolute;z-index:5;top:calc(100% + .35rem);left:0;padding:.35rem;background:var(--tmd-paper);border:1px solid var(--tmd-border-interactive);border-radius:var(--tmd-radius-interactive);box-shadow:var(--tmd-shadow-panel)}
.create-options-panel{display:grid;min-width:13rem}
.create-options-panel a{display:flex;align-items:center;min-height:44px;padding:.55rem .7rem;border-radius:var(--tmd-radius-interactive);text-decoration:none;transition:background-color var(--tmd-motion-duration) var(--tmd-motion-easing)}
.create-options-panel a:hover,.create-options-panel a:focus-visible{background:var(--tmd-surface-folded)}
.contribution-recovery dl{display:grid;grid-template-columns:minmax(8rem,auto) minmax(0,1fr);gap:.4rem .9rem}
.contribution-recovery dt{font-weight:700}
.contribution-recovery dd{margin:0;overflow-wrap:anywhere}
@media(max-width:530px){
.filters{padding:.55rem;margin:.5rem 0 .75rem}
}
/* Bare subscribe forms inside prose content (e.g. the listmonk form embedded in a
   WP page body, page 36344 /newsletters/weekly-notifications/): the form ships
   with no classes, so it must be scoped to .prose form — never bare `form` or
   global `input` selectors. Left-aligned like every other prose block (listing.css
   gives .prose>* max-width:100% with no centering). Mirrors the .field label
   recipe, the shared control recipe above, and the .button recipe in buttons.css. */
.prose form{max-width:26rem}
.prose form label{font-family:var(--tmd-label-font);font-size:var(--tmd-label-size);font-weight:var(--tmd-label-weight);text-transform:uppercase;letter-spacing:var(--tmd-label-tracking);color:var(--tmd-label-color)}
.prose form .required{color:var(--tmd-accent)}
.prose form input[type="text"],.prose form input[type="email"]{font:inherit;display:block;width:100%;min-width:0;min-height:44px;margin-top:.35rem;padding:.55rem .7rem;border:1px solid var(--tmd-border);border-radius:4px;background:var(--tmd-surface);color:var(--tmd-ink)}
.prose form input[type="checkbox"]{accent-color:var(--tmd-accent);width:1.05rem;height:1.05rem}
/* The GDPR consent checkbox sits inside its own <label>: undo the mono uppercase
   label recipe there and fall back to the muted body size/line-height. */
.prose form label[for="gdpr"]{display:block;margin-top:.5rem;line-height:1.5;font:inherit;font-size:1rem;text-transform:none;letter-spacing:normal;color:var(--tmd-muted)}
/* The honeypot wrapper keeps its inline display:none; no extra styling here. */
/* Submit mirrors .button in components/buttons.css exactly, plus top margin. */
.prose form input[type="submit"]{border:1px solid var(--tmd-accent);background:var(--tmd-accent);color:var(--tmd-paper);padding:.62rem 1rem;min-height:44px;border-radius:var(--tmd-radius-interactive);font:inherit;font-weight:500;cursor:pointer;transition:background-color var(--tmd-motion-duration) var(--tmd-motion-easing),color var(--tmd-motion-duration) var(--tmd-motion-easing);margin-top:.75rem}
.prose form input[type="submit"]:hover{background:var(--tmd-accent-strong);color:var(--tmd-paper)}
/* The picker replaces the visible select on large facets. The select stays
   in the form as the GET value owner, and only the choices list floats. */
.filters .filters-panel{overflow:visible}
.filters .field > select[hidden]{display:none}
.filters .filter-choices{position:relative;min-width:0}
.filters .filter-choices[hidden],.filters .filter-choices-list[hidden]{display:none}
.filters .filter-choices::after{content:"";position:absolute;inset-block-start:calc(50% - .25rem);inset-inline-end:.75rem;width:.45rem;height:.45rem;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);pointer-events:none}
.filters .filter-choices-search{display:block;padding-inline-end:1.8rem;appearance:none}
.filters .filter-choices-search[aria-expanded="false"]::placeholder{color:var(--tmd-ink);opacity:1}
.filters .filter-choices-search::-webkit-search-cancel-button{appearance:none}

.filters .filter-choices-list{right:0;list-style:none;margin:0;max-height:14rem;overflow-y:auto;overscroll-behavior:contain;font-size:.9rem}
.filters .filter-choices-list li{position:relative;border-radius:var(--tmd-radius-interactive);transition:background-color var(--tmd-motion-duration) var(--tmd-motion-easing)}
.filters .filter-choices-list button{width:100%;min-height:44px;padding:.55rem .7rem;font:inherit;color:inherit;text-align:start;background:none;border:0;border-radius:inherit;cursor:pointer}
.filters .filter-choices-list li:hover{background:var(--tmd-surface-folded)}

/* Focus ring: token-driven, mirrors the base.css :focus-visible recipe so
   rows ring consistently inside the panel. */
.filters .filter-choices :focus-visible{outline:var(--tmd-focus-ring-width) solid var(--tmd-focus);outline-offset:var(--tmd-focus-ring-offset)}

/* Selected state (aria-selected is set by the JS lane on commit): accent ink
   marks the committed value; the sibling <select> stays authoritative
   (1:1 option mapping, design T1.2). */
.filters .filter-choices-list button[aria-selected="true"]{padding-inline-end:1.5rem;background:var(--tmd-surface-container);color:var(--tmd-accent-strong);font-weight:700}
.filters .filter-choices-list button[aria-selected="true"]::after{content:"✓";position:absolute;inset-inline-end:.7rem;top:50%;transform:translateY(-50%);font-family:var(--tmd-font-mono);pointer-events:none}

/* no-matches hook: the JS lane renders the empty message with this class;
   the panel keeps its selection affordances visible per design T1.2. */
.filters .filter-choices-list .filter-choices-empty{min-height:44px;display:flex;align-items:center;padding:.55rem .7rem;color:var(--tmd-muted);font-size:.86rem}
.button{border:1px solid var(--tmd-accent);background:var(--tmd-accent);color:var(--tmd-paper);padding:.62rem 1rem;min-height:44px;border-radius:var(--tmd-radius-interactive);font:inherit;font-weight:500;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;transition:background-color var(--tmd-motion-duration) var(--tmd-motion-easing),color var(--tmd-motion-duration) var(--tmd-motion-easing)}
.button:hover{background:var(--tmd-accent-strong);color:var(--tmd-paper)}
.button.secondary{background:var(--tmd-surface);color:var(--tmd-accent)}
/* Pending state: src/my-content/App.svelte sets control.disabled during submits. */
.button:disabled{opacity:.6;cursor:not-allowed}
.explorer-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin:1rem 0}
.explorer-head h2{margin:0;font-size:1.3rem}
.muted{color:var(--tmd-muted)}
.view-switch{display:flex;gap:.4rem;flex-wrap:wrap}
.view-switch a{display:inline-flex;padding:.55rem .9rem;min-height:44px;border:1px solid var(--tmd-border);background:var(--tmd-paper);border-radius:var(--tmd-radius-interactive);text-decoration:none;align-items:center}
.view-switch a[aria-current="page"]{background:var(--tmd-ink);color:var(--tmd-surface)}
@media(max-width:530px) {
   .explorer-head {
      margin: .65rem 0;
      gap: .6rem
   }

   .view-switch {
      width: 100%;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr))
   }

   .view-switch a {
      padding: .45rem .7rem;
      justify-content: center;
      text-align: center;
      overflow-wrap: anywhere
   }

   .event-card {
      padding: .95rem
   }
}
.event-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:1rem}
.event-card{background:var(--tmd-surface);border:1px solid var(--tmd-border);border-radius:var(--tmd-radius);padding:1.15rem;display:flex;flex-direction:column;gap:.5rem;min-width:0;transition:background-color var(--tmd-motion-duration) var(--tmd-motion-easing)}
.event-card:hover{background:var(--tmd-surface-folded)}
.event-card h3{font-size:1.12rem;line-height:1.3;margin:.1rem 0}
.event-card h3 a{text-decoration:none;color:var(--tmd-ink)}
.event-card h3 a:hover{text-decoration:underline}
/* Card artwork plate (explorer-card-visuals): one fixed 2.7/1 box (measured
   sample ratio, D6) reserves space before paint — no CLS and no reflow across
   image/placeholder variants. The image covers without distortion; the
   placeholder keeps a hairline inset rule and token-driven mono initials
   (decorative text, aria-hidden upstream in the template).
   gh-154: card DOM order is now badges → title → date → artwork plate so the
   first-viewport content is legible without CSS order tricks; the old
   #explorer-results h3/plate order rules were removed. */
.event-card-plate{aspect-ratio:2.7/1;width:100%;flex-shrink:0;background:var(--tmd-surface-container);border-radius:var(--tmd-radius);overflow:hidden}
.event-card-plate--image img{display:block;width:100%;height:100%;object-fit:cover}
.event-card-plate--placeholder{display:flex;align-items:center;justify-content:center;box-shadow:inset 0 0 0 1px var(--tmd-border)}
.event-card-plate--placeholder .event-card-plate-initials{font-family:var(--tmd-font-mono);color:var(--tmd-accent);letter-spacing:.12em;font-size:1.05rem}
.event-date{font-weight:750}
.event-type{align-self:flex-start;background:var(--event-type-ground,var(--tmd-type-ground-fallback));border-left:var(--tmd-type-edge-width) var(--tmd-type-edge-style) var(--event-type-edge,var(--tmd-type-edge-fallback));border-radius:var(--tmd-radius);color:var(--tmd-ink);font-family:var(--tmd-font-mono);text-transform:uppercase;letter-spacing:.06em;font-weight:500;font-size:.75rem;padding:.25rem .5rem}
.event-details{margin:0;display:grid;gap:.5rem}
.event-details div{display:grid;gap:.06rem}
.event-details dt{font-size:.76rem;color:var(--tmd-muted)}
.event-details dd{margin:0}
.event-card .more{margin-top:auto}
/* Type+edition unified lockup (bto): one square hairline JetBrains Mono lockup
   per card instead of two folded chips, reading "■ MARATHON // ED. 02". Family
   identity stays token-driven — the type segment keeps its --tmd-type-ground-*
   fill and the --tmd-type-edge-* mark glyph colour from listing.css modifiers,
   and its 2px family edge remains the box's left stripe; only the chrome is
   composed here (single hairline box, 0-radius, no chip gap, // separator).
   gh-154: lockup expands to full container width with edition right-aligned so
   the type family is visible at a glance and the edition sits at the far edge.
   Shared definition (tmd_theme-125j): card and agenda-row lockups are one
   recipe; the row renders a slightly tighter scale via the .event-row size
   modifier in rows.css (imported after this file, so it wins the tie). */
.event-card .event-badges,.event-row .event-badges{display:flex;align-items:stretch;width:100%;gap:0;border:1px solid var(--tmd-chip-ghost-border);border-radius:var(--tmd-radius);overflow:hidden}
.event-card .event-type,.event-row .event-type{display:inline-flex;align-items:center;align-self:auto;gap:.38rem;border-radius:0;padding:.3rem .55rem}
.event-card .event-edition,.event-row .event-edition{flex:0 0 auto;align-self:center;border:0;border-radius:0;padding:.3rem .55rem .3rem .1rem;background:transparent;margin-left:auto}
.event-card .event-type + .event-edition::before,.event-row .event-type + .event-edition::before{content:'//';margin-right:.55rem;color:var(--tmd-muted);font-weight:400;letter-spacing:.06em}
/* Explorer timetable rows: date anchor → identity → location → registration → action on continuous hairline rules. */
.event-rows{display:flex;flex-direction:column;margin:1.5rem 0 2rem}
.event-row{display:grid;grid-template-columns:11.5rem minmax(0,1fr) minmax(0,1fr) minmax(10rem,14rem) auto;gap:.35rem 1.5rem;align-items:start;padding:1rem .4rem;border-bottom:1px solid var(--tmd-border);min-width:0;transition:background-color var(--tmd-motion-duration) var(--tmd-motion-easing)}
.event-row:hover{background:var(--tmd-surface-folded)}
.event-row-date{font-variant-numeric:tabular-nums;font-weight:600}
.event-row-date time{display:block;white-space:nowrap}
.event-row-identity{min-width:0}
.event-row-identity h3,.event-row-identity h4{font-size:1.12rem;line-height:1.3;margin:.1rem 0 0}
.event-row-identity h3 a,.event-row-identity h4 a{color:var(--tmd-ink);text-decoration:none}
.event-row-identity h3 a:hover,.event-row-identity h4 a:hover{text-decoration:underline}
.event-row-facts{min-width:0}
.event-row .event-details{gap:.45rem}
.event-row .registration-hint{font-size:.78rem}
.event-row-registration{min-width:0}
.event-row-registration .event-registration-timing{margin-top:0;font-size:.78rem}
.event-row-registration .event-registration-event-date{margin:.25rem 0 0;font-size:.78rem}
.event-row-action{justify-self:end}
@media(max-width:767px){
  .event-row{grid-template-columns:minmax(0,1fr) auto;gap:.3rem .8rem;padding:.72rem 0}
  .event-row-date,.event-row-identity,.event-row-action{grid-column:1/-1}
  .event-row-facts{grid-column:1/2}
  .event-row-registration{grid-column:2/3;justify-self:end;text-align:right}
  .event-row-action{justify-self:start}
  .event-row-identity h3,.event-row-identity h4{margin:0}
  .event-row-identity h3 a,.event-row-identity h4 a{display:inline-flex;align-items:center;min-height:44px}
  .event-row .event-details{gap:.25rem}
  .event-row-registration[data-label]::before{content:attr(data-label);display:inline;font-family:var(--tmd-label-font);font-size:var(--tmd-label-size);font-weight:var(--tmd-label-weight);color:var(--tmd-label-color);text-transform:uppercase;letter-spacing:var(--tmd-label-tracking);margin-right:.35rem}
  .event-row-registration .event-registration-event-date{margin:.12rem 0 0}
}
/* Type+edition unified lockup (bto): size modifier for the shared card lockup
   recipe in cards.css (tmd_theme-125j) — agenda rows render a tighter scale.
   Family identity stays token-driven via listing.css modifiers; only chrome. */
.event-row .event-type{padding:.28rem .5rem}
.event-row .event-edition{padding:.28rem .5rem .28rem .08rem}
.event-row .event-type + .event-edition::before{margin-right:.5rem}

/* Explorer cards view: compact card grid, visually distinct from the agenda rows. */
/* 240px minimum allows 5 cols at 1360px and 6 cols at 1600px (#179 browse density). */
.event-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr));gap:1rem;margin:1.5rem 0 2rem}
.event-card-grid > .event-card{padding:.9rem;gap:.35rem}
.event-card-grid .event-card-date{font-family:var(--tmd-font-mono)}
.event-card-grid .event-date{display:block;font-weight:750}
.event-card-grid .event-details{gap:.15rem;font-size:.93rem;line-height:1.4;overflow-wrap:anywhere}
.event-card-grid .event-details > div{grid-template-columns:minmax(0,2fr) minmax(0,3fr);align-items:baseline;column-gap:.5rem}
.event-card-grid .event-badges{flex-wrap:wrap}
.event-card-grid .event-badges > span{max-inline-size:100%;white-space:normal;overflow-wrap:anywhere}
.event-card-grid h3{overflow-wrap:anywhere}
.event-card-header,.event-card-body{display:contents}

/* Share the header, date, artwork and body heights within each visual row. */
@supports (grid-template-rows: subgrid) {
   .event-card-grid > .event-card {
      display: grid;
      grid-row: span 4;
      grid-template-columns: minmax(0, 1fr);
      grid-template-rows: subgrid;
   }

   .event-card-header, .event-card-body {
      display: flex;
      flex-direction: column;
      gap: inherit;
   }
}
@media(max-width:767px){.event-card-grid h3 a{display:inline-flex;align-items:center;min-height:44px}}

/* Client-side view switching: live status line, kept out of the visual layout. */
.view-switch-status{position:absolute;left:-9999px}
.result-table{overflow-x:auto}
.result-table table{width:100%;border-collapse:collapse;min-width:620px}
.result-table th,.result-table td{text-align:left;padding:.78rem .85rem;border-bottom:1px solid var(--tmd-border);vertical-align:top}
.result-table th{background:var(--tmd-surface-folded)}
.result-table tr:last-child td{border-bottom:0}
.result-table td>a{display:inline-flex;align-items:center;min-height:44px}
.result-table .event-row-date,.result-table .more{white-space:nowrap}
/* Data explorer: keep chips and the action on one line at desktop widths; Event and City columns absorb the freed space. Keyed to the shared event-badges--compact hook (design.md §B9.3); scoped to .result-table because calendar.css declares different compact paddings. */
.result-table .event-badges--compact .event-type,.result-table .event-badges--compact .event-edition{white-space:nowrap;padding:.2rem .4rem}
/* Titles are ink in every view; vermilion stays on actions and status accents. */
.result-table tbody td a:not(.more){color:var(--tmd-ink);text-decoration:none}
.result-table tbody td a:not(.more):hover{text-decoration:underline}
/* Per-cell labels: hidden on wide screens, revealed by the narrow-viewport stacked-table block below. */
.cell-label{display:none}
/* Data explorer at narrow viewports: keep <table>/<thead>/<th scope="col"> semantics for assistive tech, present each row as a stacked block with a visible per-cell label. */
@media(max-width:767px){.result-table{overflow-x:visible}.result-table table{min-width:0}.result-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}.result-table tbody,.result-table tr{display:block;width:100%}.result-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.22rem .75rem;padding:.72rem 0;border-bottom:1px solid var(--tmd-border)}.result-table tr:last-child{border-bottom:0}.result-table td{display:flex;align-items:baseline;gap:.35rem;padding:0;border-bottom:0;min-width:0}.result-table td:nth-child(1),.result-table td:nth-child(2),.result-table td:last-child{grid-column:1/-1}.result-table td:nth-child(2),.result-table td:last-child{display:block}.result-table td:last-child .more{display:inline-flex}.result-table .cell-label{display:inline;font-family:var(--tmd-label-font);font-size:var(--tmd-label-size);font-weight:var(--tmd-label-weight);color:var(--tmd-label-color);text-transform:uppercase;letter-spacing:var(--tmd-label-tracking);margin:0}.result-table td:first-child .cell-label,.result-table td:nth-child(2) .cell-label,.result-table td:last-child .cell-label{display:none}}
.pagination{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin:1.5rem 0 3rem;flex-wrap:wrap}
/* gh-136 4.3: top pagination sits before the event list — smaller margins. */
.pagination--top{margin:0 0 1rem}
.notice {
    background: var(--tmd-surface);
    border: 1px solid var(--tmd-border);
    border-radius: var(--tmd-radius);
    padding: 1.3rem;
    margin: 1rem 0 3rem
}

/* Error notices carry role="alert" (page-my-contributions.php); role="status" stays neutral. */
.notice[role="alert"] {
    border-color: var(--tmd-error);
    border-left-width: 4px
}

.detail {
    max-width: var(--tmd-width-reading);
    background: var(--tmd-surface);
    border: 1px solid var(--tmd-border);
    border-radius: var(--tmd-radius);
    padding: clamp(1.2rem, 3vw, 2rem);
    margin: 2rem auto
}

.detail .event-details {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin-block: 1.5rem
}

.prose {
    overflow-wrap: anywhere
}

.site-footer {
    margin-top: 2.5rem;
    padding: 1.3rem 0 1.5rem;
    border-top: 1px solid var(--tmd-border);
    background: var(--tmd-paper);
    color: var(--tmd-muted);
    font-size: .9rem
}

.site-footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .9rem;
    text-align: center
}

.site-footer-copy {
    margin: 0;
    color: var(--tmd-muted);
    font-size: .92rem;
    line-height: 1.5;
    letter-spacing: .01em
}

/* Footer menu (WP `footer` location): a centered chip panel inspired by the
   version signature box (.tmd-version-bar) — one bordered surface box, accent
   prose links inside (owner steering, 2026-11-24). Links keep the inherited
   footer type size and the .45rem vertical padding for the 375px tap audit. */
.site-footer-menu-list {
    list-style: none;
    margin: 0;
    padding: .5rem .8rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    row-gap: .35rem;
    border: 1px solid var(--tmd-border);
    border-radius: var(--tmd-radius-interactive);
    background: var(--tmd-surface);
    color: var(--tmd-muted);
    letter-spacing: .01em
}

.site-footer-menu-list a {
    display: inline-block;
    padding: .45rem .2rem;
    color: var(--tmd-accent);
    text-decoration: none
}

.site-footer-menu-list a:hover,
.site-footer-menu-list a:focus-visible {
    text-decoration: underline;
    text-underline-offset: .15em
}

/* Middot separators between links inside the chip box (owner request,
   2026-11-24). Even spacing: the container gap is 0 — the dot's symmetric
   padding plus each link's own padding produce identical text-to-text
   distance for every adjacent pair, wrap-independent. Prominence: accent
   color at reduced opacity so it reads as a divider, not a third link. */
.site-footer-menu-list li {
    display: flex;
    align-items: center
}

.site-footer-menu-list li + li::before {
    content: "·";
    color: var(--tmd-accent);
    opacity: .55;
    font-weight: 600;
    padding-inline: .5rem
}

.site-footer-nav {
    display: block
}

/* Customizer maps/Facebook links: the same accent-link row, unboxed. This is
   an intentional-visible change; pixel-diff adjudication is owned by the QA
   wave (see openspec/changes/menu-nav-nested-and-footer-ux/verification.md). */
.site-footer-links {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .35rem 1rem
}

.site-footer-links a {
    padding: .45rem .2rem;
    color: var(--tmd-accent);
    text-decoration: none
}

.site-footer-links a:hover,
.site-footer-links a:focus-visible {
    text-decoration: underline;
    text-underline-offset: .15em
}

.tmd-version-bar {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: .45rem;
    padding: .5rem .8rem;
    border: 1px solid var(--tmd-border);
    border-radius: var(--tmd-radius-interactive);
    background: var(--tmd-surface);
    color: var(--tmd-muted);
    font-family: var(--tmd-font-mono);
    font-size: .72rem;
    letter-spacing: .04em;
    text-transform: none
}

.tmd-version-bar a {
    color: var(--tmd-accent);
    text-decoration: none
}

.tmd-version-bar a:hover {
    text-decoration: underline
}

@media(max-width:410px) {
    .nav {
        width: 100%
    }

    .nav a {
        padding: .6rem
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }
}/* Discovery enhancements: plain native CSS, no script or library dependency. */
.explorer-disclosure {
   margin: 0 0 .65rem;
   border: 1px solid var(--tmd-border);
   border-radius: var(--tmd-radius);
   background: var(--tmd-paper);
   overflow: hidden
}

.explorer-disclosure summary {
   display: flex;
   align-items: center;
   justify-content: space-between;
   list-style: none;
   cursor: pointer;
   min-height: 44px;
   padding: .6rem .8rem;
   font-family: var(--tmd-label-font);
   font-size: var(--tmd-label-size);
   font-weight: var(--tmd-label-weight);
   letter-spacing: var(--tmd-label-tracking);
   text-transform: uppercase;
   color: var(--tmd-label-color)
}

.explorer-disclosure summary::-webkit-details-marker {
   display: none
}

.explorer-disclosure summary::after {
   content: "+";
   font-size: 1.1rem;
   line-height: 1;
   color: var(--tmd-muted)
}

.explorer-disclosure[open] summary::after {
   content: "−"
}

/* gh-136 4.1: keyboard focus ring — visible at :focus-visible to satisfy WCAG 2.4.11.
   Outline is inset (-3px) so it respects the border-radius of the disclosure box
   without clipping against the parent overflow:hidden. */
.explorer-disclosure summary:focus-visible {
   outline: 3px solid var(--tmd-accent, #2461c8);
   outline-offset: -3px;
   border-radius: var(--tmd-radius)
}

/* gh-136 4.1: active-filter count badge inside the 'More filters' summary. */
.filter-badge {
   display: inline-block;
   margin-left: .2em;
   font-variant-numeric: tabular-nums;
   color: var(--tmd-accent-strong, #1e46c8);
   font-weight: 700;
   text-transform: none;
   letter-spacing: 0
}

.discovery-shortcuts {
   display: flex;
   flex-wrap: wrap;
   gap: .55rem;
   padding: 0 .75rem .75rem;
   margin: 0
}

/* gh-127 3.1: shortcuts now live inside the form; reduce bottom margin so the
   next row (filters-grid) reads as one connected unit. No top margin needed
   since the form box provides padding. */
.filters .discovery-shortcuts {
   margin: 0
}

.discovery-shortcuts a {
   display: inline-flex;
   align-items: center;
   min-height: 44px;
   padding: .55rem .9rem;
   border: 1px solid var(--tmd-border);
   background: var(--tmd-paper);
   color: var(--tmd-ink);
   border-radius: var(--tmd-radius-interactive);
   text-decoration: none;
   font-size: .9rem;
   font-weight: 500;
   transition: background-color var(--tmd-motion-duration) var(--tmd-motion-easing)
}

.compact-discovery-layout {
   padding: .75rem
}

.discovery-shortcuts a:hover {
   background: var(--tmd-surface-folded)
}

/* gh-127 3.1: active preset — set by JS (aria-current="page") on click;
   cleared on focus/from/to/sort change. Uses accent-surface to read as
   "selected" without depending on a colour alone (bold + checkmark). */
.discovery-shortcuts a[aria-current="page"] {
   background: var(--tmd-surface-container);
   border-color: var(--tmd-accent-strong);
   color: var(--tmd-accent-strong);
   font-weight: 700
}

.filters-grid {
   grid-template-columns: repeat(2, minmax(0, 1fr))
}

@media(min-width:800px) {
   /* gh-127 3.2: sort moved to filter-actions; grid now has 5 columns:
      q(2fr), focus(1.1fr), from(1.1fr), to(1.1fr), country(1.3fr)/type(1.3fr).
      Country and type are still in the grid but wrap naturally at 5-column
      layout when both are visible. */
   .filters-grid {
      grid-template-columns: 2fr 1.1fr 1.1fr 1.1fr 1.3fr
   }
}

/* gh-147 2.3: sort/reset/edit controls now live beside the result heading,
   keeping the compact filter panel focused on query input + explicit submit. */
.results-toolbar {
   display: flex;
   align-items: center;
   gap: .4rem;
   flex-wrap: wrap
}

.results-sort-inline {
   display: flex;
   align-items: center;
   gap: .4rem
}

.results-sort-label {
   font-family: var(--tmd-label-font);
   font-size: var(--tmd-label-size);
   font-weight: var(--tmd-label-weight);
   text-transform: uppercase;
   letter-spacing: var(--tmd-label-tracking);
   color: var(--tmd-label-color);
   white-space: nowrap
}

.results-sort-inline select {
   font: inherit;
   min-height: 36px;
   padding: .3rem .6rem;
   border: 1px solid var(--tmd-border);
   border-radius: var(--tmd-radius-interactive);
   background: var(--tmd-surface);
   color: var(--tmd-ink)
}

.results-active-filters {
   list-style: none;
   margin: 0 0 .9rem;
   padding: 0;
   display: flex;
   flex-wrap: wrap;
   gap: .45rem
}

.results-active-filters a {
   display: inline-flex;
   align-items: center;
   min-height: 38px;
   padding: .4rem .65rem;
   border: 1px solid var(--tmd-border);
   border-radius: var(--tmd-radius-interactive);
   color: var(--tmd-ink);
   text-decoration: none;
   background: var(--tmd-paper);
   font-size: .88rem
}

.results-active-filters a:hover {
   background: var(--tmd-surface-folded)
}

@media(max-width:530px) {
   .explorer-disclosure summary {
      min-height: 40px;
      padding: .45rem .65rem
   }

   .compact-discovery-layout {
      padding: .55rem
   }

   #explorer-filter-controls .filters-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: .55rem
   }

   #explorer-filter-controls .filters-grid > .field:first-child {
      grid-column: 1 / -1
   }

   #explorer-filter-controls .filters-grid-advanced {
      grid-template-columns: 1fr
   }

   .results-toolbar .button {
      min-height: 40px;
      padding: .45rem .6rem
   }
   /* gh-136 4.2: .results-edit-filters removed from template — rule cleaned up.
      .results-open-filters (Filters(N)) is intentionally kept visible on narrow
      viewports so the active-filter summary is always discoverable. */
}

.event-badges {
   display: flex;
   flex-wrap: wrap;
   gap: .4rem
}

.event-edition {
   align-self: flex-start;
   background: transparent;
   border: 1px solid var(--tmd-chip-ghost-border);
   color: var(--tmd-ink);
   border-radius: var(--tmd-radius);
   padding: .25rem .5rem;
   font-size: .75rem;
   font-weight: 500;
   font-family: var(--tmd-font-mono);
   text-transform: uppercase;
   letter-spacing: .06em
}

/* Family modifiers feed the same badge and mark recipe in each listing view. */
.event-type-mark {
   display: inline-block;
   font-family: var(--tmd-font-mono);
   color: var(--event-type-edge, var(--tmd-type-edge-fallback))
}

.event-type-mark::before {
   content: var(--event-type-mark, normal)
}

.event-type--neutral .event-type-mark:empty {
   display: none
}

.event-type--marathon {
   --event-type-edge: var(--tmd-type-edge-marathon);
   --event-type-ground: var(--tmd-type-ground-marathon);
   --event-type-mark: var(--tmd-type-mark-marathon)
}

.event-type--festival {
   --event-type-edge: var(--tmd-type-edge-festival);
   --event-type-ground: var(--tmd-type-ground-festival);
   --event-type-mark: var(--tmd-type-mark-festival)
}

.event-type--encuentro {
   --event-type-edge: var(--tmd-type-edge-encuentro);
   --event-type-ground: var(--tmd-type-ground-encuentro);
   --event-type-mark: var(--tmd-type-mark-encuentro)
}

.event-type--weekend {
   --event-type-edge: var(--tmd-type-edge-weekend);
   --event-type-ground: var(--tmd-type-ground-weekend);
   --event-type-mark: var(--tmd-type-mark-weekend)
}

.event-type--learning {
   --event-type-edge: var(--tmd-type-edge-learning);
   --event-type-ground: var(--tmd-type-ground-learning);
   --event-type-mark: var(--tmd-type-mark-learning)
}

.event-type--camp {
   --event-type-edge: var(--tmd-type-edge-camp);
   --event-type-ground: var(--tmd-type-ground-camp);
   --event-type-mark: var(--tmd-type-mark-camp)
}

.event-type--holiday {
   --event-type-edge: var(--tmd-type-edge-holiday);
   --event-type-ground: var(--tmd-type-ground-holiday);
   --event-type-mark: var(--tmd-type-mark-holiday)
}

.event-type--conference {
   --event-type-edge: var(--tmd-type-edge-conference);
   --event-type-ground: var(--tmd-type-ground-conference);
   --event-type-mark: var(--tmd-type-mark-conference)
}

.event-alert {
   background: var(--tmd-paper);
   border-left: 4px solid var(--tmd-accent);
   padding: .65rem .85rem;
   font-weight: 500;
   border-radius: var(--tmd-radius);
   margin: .25rem 0
}

/* Unified registration timing label (gh-154): shared across Cards, Agenda and
   Table. Replaces the split .registration-hint / .registration-date pattern —
   those two classes are retained below for backward compatibility only. */
.event-registration-timing {
   display: block;
   font-size: .83rem;
   font-weight: 500;
   font-family: var(--tmd-font-mono);
   text-transform: uppercase;
   letter-spacing: .06em;
   margin-top: .1rem;
   color: var(--tmd-muted)
}

.event-registration-timing--none {
   opacity: .5
}

.registration-hint {
   display: block;
   color: var(--tmd-accent);
   font-size: .83rem;
   font-weight: 500;
   font-family: var(--tmd-font-mono);
   text-transform: uppercase;
   letter-spacing: .06em;
   margin-top: .1rem
}

.registration-date {
   display: block;
   color: var(--tmd-muted);
   font-size: .83rem;
   font-weight: 500;
   margin-top: .1rem
}

.more {
   align-self: flex-start;
   padding: .5rem 0;
   font-weight: 700;
   min-height: 44px;
   display: flex;
   align-items: center
}

.event-card-grid .event-alert,
.event-row .event-alert,
.result-table .event-alert,
.calendar-event .event-alert {
   background: transparent;
   border-left: 3px solid var(--tmd-accent);
   border-radius: var(--tmd-radius);
   padding: .1rem 0 .1rem .55rem;
   font-size: .85rem;
   margin: .2rem 0 0
}

.agenda {
   margin: 1.5rem 0 2rem
}

.agenda-month {
   font-size: 1.2rem;
   margin: 1.7rem 0 .6rem
}

.agenda-month-events {
   min-width: 0
}

.event-actions {
   display: flex;
   gap: 1rem;
   align-items: center;
   flex-wrap: wrap;
   margin: 1.2rem 0 2rem
}

.event-disclaimer {
   border-top: 1px solid var(--tmd-border);
   padding-top: 1rem;
   font-size: .9rem
}

@media(max-width:530px) {
   .filters-grid {
      grid-template-columns: 1fr
   }

   .event-actions {
      align-items: flex-start;
      flex-direction: column
   }
}

/* Preserve content pages beyond the new explorer landing page. */
.content-page {
   max-width: var(--tmd-width-reading);
   background: var(--tmd-surface);
   border: 1px solid var(--tmd-border);
   border-radius: var(--tmd-radius);
   padding: clamp(1.2rem, 3vw, 2rem);
   margin: 2rem auto
}

.prose>* {
   max-width: 100%
}

.prose img {
   max-width: 100%;
   height: auto
}

.prose iframe {
   max-width: 100%
}

.prose p {
   margin: 0 0 1rem
}

.prose h2,
.prose h3 {
   margin: 1.5rem 0 .6rem
}

.prose ul,
.prose ol {
   padding-inline-start: 1.4rem
}

.prose blockquote {
   border-inline-start: 4px solid var(--tmd-border);
   padding-inline-start: 1rem;
   margin-inline: 0;
   color: var(--tmd-muted)
}

.prose table {
   display: block;
   overflow-x: auto;
   border-collapse: collapse
}

.prose td,
.prose th {
   border: 1px solid var(--tmd-border);
   padding: .5rem
}

.content-image img {
   border-radius: var(--tmd-radius);
   width: 100%;
   height: auto
}

/* Type placeholders (openspec content-type-placeholder-images, design §D5): decorative
   SVG <img> slotted into the existing figures (.profile-image, .profile-archive-image,
   .event-cover, .contribution-image-preview). Sizing follows the container figure — the
   figure-level img selectors already match the placeholder — this rule only pins the
   block display the figure recipes expect. */
.tmd-placeholder {
   display: block
}

/* Relationship rows: one linked-entity recipe for all cross-entity listings. */
.relation-list {
   list-style: none;
   margin: .5rem 0;
   padding: 0;
   display: grid;
   gap: .4rem
}

.relation-row {
   display: flex;
   align-items: flex-start;
   justify-content: space-between;
   gap: .75rem;
   min-height: 48px;
   padding: .65rem .85rem;
   border: 1px solid var(--tmd-border);
   border-radius: var(--tmd-radius)
}

.relation-row>div {
   min-width: 0
}

.relation-row .relation-title {
   display: block;
   padding: .75rem 0;
   margin: -.75rem 0;
   font-weight: 650;
   color: var(--tmd-ink);
   text-decoration: none
}

.relation-row .relation-title:hover {
   text-decoration: underline
}

.relation-row .relation-where {
   display: block;
   font-size: .83rem;
   font-weight: 400;
   color: var(--tmd-muted)
}

.relation-row .relation-meta {
   white-space: nowrap;
   font-size: .86rem;
   color: var(--tmd-muted)
}

.relation-row .relation-meta--years {
   font-family: var(--tmd-font-mono)
}

@media(max-width:520px) {
   .relation-row {
      flex-direction: column;
      gap: .15rem
   }

   .relation-row .relation-meta--years {
      white-space: normal
   }
}

/* Explorer row alignment recipe (gh-107): badges/chips, title, meta and the
   action read on one shared vertical baseline inside the explorer views, and
   multi-line titles cannot push a sibling to a different offset between rows.
   Scoped to #explorer-results on purpose: template-parts/profile-archive.php
   carries its own [data-tmd-results] marker plus the same .result-table and
   .event-card markup, so the data attribute alone would leak into surfaces
   whose committed pixel-diff baselines must not move. The calendar view keeps
   its own compact day-cell layout and is out of scope here. */
/* Compact card facts start below the artwork. The shared card footer keeps the
   action aligned when optional facts are missing from neighbouring cards. */
.event-card-grid .event-registration-timing {
   margin: 0;
   font: inherit;
   color: inherit;
   text-transform: none;
   letter-spacing: normal
}

/* Agenda: the 44px touch-target flex centring dropped the action link's text
   below the date/facts first line, and its .5rem top padding lowered it
   further; top-align it instead — min-height keeps the touch target, only the
   text position moves, so one-line and multi-line neighbours share offsets.
   Wide viewports only: below 768px the title links become 44px-centred touch
   targets themselves (rows.css), so the centred action matches them there. */
@media(min-width:768px) {
   #explorer-results .event-row .more {
      align-items: flex-start;
      padding-top: 0
   }
}

/* Table: table.css centres every cell link inside its 44px touch target, so a
   one-line title sat roughly half a rem below the plain date/city/country text
   while a two-line title started at the cell top — a drift between rows of the
   same column. Top-align both the title and the action (target height stays). */
#explorer-results .result-table td>a {
   align-items: flex-start
}

#explorer-results .result-table .more {
   padding-top: 0
}
/* Native monthly discovery calendar. This is deliberately server-rendered. */
.month-navigation{display:flex;align-items:center;justify-content:space-between;gap:.65rem;margin:1.5rem 0 .75rem;flex-wrap:wrap}
.month-navigation h3{font-size:1.25rem;margin:0;text-align:center}
.calendar-scroll{overflow-x:auto;overscroll-behavior-x:contain;outline-offset:4px;border:1px solid var(--tmd-border);border-radius:var(--tmd-radius);background:var(--tmd-paper);max-width:100%}
.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(130px,1fr));min-width:910px}
.calendar-weekday{font-size:.84rem;font-weight:500;padding:.55rem;text-align:center;color:var(--tmd-muted);background:var(--tmd-surface-folded);border-bottom:1px solid var(--tmd-border)}
.calendar-empty{min-height:112px;background:var(--tmd-surface-container);border:1px solid var(--tmd-border)}
.calendar-day{min-height:112px;padding:.4rem;border:1px solid var(--tmd-border);display:flex;flex-direction:column;align-items:flex-start;gap:.25rem;min-width:0}
.calendar-day.is-today{box-shadow:inset 0 0 0 2px var(--tmd-accent);background:var(--tmd-surface-folded)}
.calendar-day-number{font-weight:600;font-size:.88rem;color:var(--tmd-ink)}
.calendar-event{display:flex;flex-direction:column;align-items:flex-start;gap:.15rem;min-height:44px;background:var(--tmd-surface-folded);padding:.3rem .4rem;border-radius:var(--tmd-radius-interactive);font-size:.79rem;line-height:1.25;width:100%;overflow-wrap:anywhere;text-decoration:none;color:var(--tmd-ink);transition:background-color var(--tmd-motion-duration) var(--tmd-motion-easing)}
.calendar-event:hover,.calendar-event:focus-visible{background:var(--tmd-surface-container);text-decoration:underline}
/* Compact badge scale keyed to the shared event-badges--compact hook (design.md §B9.3). Scoped to .calendar-event because table.css declares different compact paddings and the components import order would otherwise let one surface's values win. */
.calendar-event .event-badges--compact .event-type,.calendar-event .event-badges--compact .event-edition{font-size:.62rem;padding:.05rem .3rem}
/* Calendar multi-type marker: counts every rendered type chip (other included); the accessible name list lives on the element, same title/aria-label contract as the chips. */
.calendar-event .event-badges--compact .event-badges-more{font-size:.62rem;padding:.05rem .3rem;color:var(--tmd-muted);font-family:var(--tmd-font-mono);font-weight:500;text-transform:uppercase;letter-spacing:.06em}
.calendar-event-where{color:var(--tmd-muted);font-size:.7rem}
.calendar-event .event-alert{padding:.05rem 0 .05rem .3rem;margin:0;font-size:.7rem}
.calendar-more{width:100%;font-size:.78rem}
.calendar-more summary{cursor:pointer;color:var(--tmd-accent);font-weight:700;min-height:44px}
.calendar-more summary:focus-visible{outline:var(--tmd-focus-ring-width) solid var(--tmd-focus);outline-offset:var(--tmd-focus-ring-offset)}
.calendar-more .calendar-event{margin-top:.3rem}
.calendar-note{font-size:.85rem;margin:.6rem 0 2rem}
@media(max-width:620px){.month-navigation{justify-content:center}.month-navigation h3{order:-1;flex-basis:100%}}
/* Calendar at narrow viewports: the internal horizontal scroll of the 7-column grid is intended (see the region aria-label); make each entry read as chip + title instead of a paragraph. */
@media(max-width:767px){.calendar-event{gap:.05rem;padding:.25rem .35rem}.calendar-event-where{display:none}.calendar-event-name{max-height:2.5em;overflow:hidden}@supports(-webkit-line-clamp:2){.calendar-event-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;max-height:none}}}
/* Desktop calendar density (#179): tighter cells let more events display before the
   disclosure; event min-height uses CSS touch-action is irrelevant on pointer
   devices so 36px is safe (touch targets remain 44px on small viewports above). */
@media(min-width:1280px){.calendar-day{min-height:96px;padding:.3rem}.calendar-empty{min-height:96px}.calendar-event{min-height:36px;padding:.2rem .35rem}.calendar-event .event-badges--compact .event-type,.calendar-event .event-badges--compact .event-edition{font-size:.6rem}}

/* One control vocabulary for the single-event detail surface (gh-108).
   Detail-scoped on purpose: the badge/chip partials are shared with the
   listing views whose rendering is pixel-baseline-locked, so this file may
   not change what cards/rows/calendar/table render. Radius and colour come
   only from --tmd-* tokens; font weight (500) and the padding pair below are
   this file's single shared values — the weight/padding scale for every
   detail control (tokens.css defines no weight or spacing tokens). */
.detail .button,
.detail .event-badges .event-type,
.detail .event-badges-more,
.detail .event-edition{border-radius:var(--tmd-radius-interactive)}
.detail .event-badges .event-type,
.detail .event-badges-more,
.detail .event-edition{font-weight:500}
.detail .button,
.detail .event-badges .event-type,
.detail .event-badges-more,
.detail .event-edition{padding:.5rem .75rem}
/* Decorative icons inherit the control's ink and keep the text label primary. */
.detail i[class*="fa-"],.profile-page i[class*="fa-"]{font-size:.9em;margin-right:.3rem}
/* Detail top bar hierarchy (event-and-follow-action-hierarchy):
   primary attendee action first, compact secondary attendee actions, and
   capability-gated edit utilities visually separated from attendee decisions. */
.detail-topbar{display:flex;align-items:center;gap:.5rem .75rem;flex-wrap:wrap;margin:0 0 .65rem}
.detail-topbar .detail-topbar-primary,.detail-topbar .detail-topbar-secondary,.detail-topbar .detail-topbar-utility{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.detail-topbar .detail-topbar-primary{order:1}
.detail-topbar .detail-topbar-secondary{order:2}
.detail-topbar .detail-topbar-utility{order:3;margin-inline-start:auto}
.detail-topbar .interest-control{margin:0}
.detail-topbar .button{min-height:44px}
.detail-topbar .event-calendar-actions{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;margin:0}
.detail-topbar .event-calendar-actions .button{margin:0}
@media (max-width:40rem){
	.detail-topbar{align-items:flex-start}
	.detail-topbar .detail-topbar-utility{margin-inline-start:0;flex-basis:100%}
}
/* Match the edition hairline on the outer edges of the detail badge. */
.detail .event-badges .event-type{border-block:1px solid var(--tmd-chip-ghost-border);border-right:1px solid var(--tmd-chip-ghost-border)}
/* Services + format flags render as fact rows in the Event-facts
   definition-list vocabulary (revision round 4, gh-108) — styled by
   surfaces/detail.css .event-details; no chip/pill boxes remain. */
/* Native event details: simple content sections; preserve old access boundary. */
.event-section{border-top:1px solid var(--tmd-border);padding-top:1.2rem;margin-top:1.4rem}
.event-section h2{font-size:1.2rem;margin:.1rem 0 .85rem}
/* Flyer: optional media BELOW the decision section (gh-117 ydrs.2). Bounded
   composition — capped width and pinned 1.91:1 ratio (Facebook covers are
   1920×1005; object-fit crop keeps every cover identical) — so it can never
   overwhelm identity or decision facts, and it renders only when a real
   thumbnail exists (no empty media frame fallback). */
.event-cover{margin:0 0 1.6rem;max-width:min(100%,46rem);overflow:hidden;border-radius:var(--tmd-radius);aspect-ratio:1.91/1}
.event-cover img{display:block;width:100%;height:100%;object-fit:cover}
/* Decision-first first section (gh-117 ydrs.2): identity, permitted action
   and decision facts. Facts sit beside the identity block on desktop and
   stack at narrow widths. */
.event-decision{margin:0 0 1.6rem}
.event-decision-identity h1{font-size:clamp(2.15rem,4.3vw,3.4rem);line-height:1.04;overflow-wrap:anywhere;margin:.2rem 0 .5rem}
.event-decision-identity .event-badges{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem;margin-top:.55rem}
.event-decision>.event-details{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:.55rem 1.25rem;margin:1rem 0 0}
.event-decision>.event-details>div{min-width:0;padding:.65rem 0;border-top:1px solid var(--tmd-border)}
.event-decision-actions{margin-top:1rem;padding-top:1rem;border-top:1px solid var(--tmd-border)}
.event-decision-actions .detail-topbar{margin:0}
.detail-topbar--event{align-items:center;gap:.35rem .5rem}
.detail-topbar--event>.detail-topbar-primary,.detail-topbar--event>.detail-topbar-secondary,.detail-topbar--event>.detail-topbar-utility,.detail-topbar--event .event-calendar-actions{display:contents}
.detail-topbar--event>.detail-topbar-utility{margin-inline-start:0}
.detail-topbar--event .button{min-height:44px;padding:.42rem .6rem;font-size:.9rem;gap:.3rem}
.detail-topbar--event .detail-topbar-primary .button{background:var(--tmd-accent);color:var(--tmd-paper)}
.detail-topbar--event .detail-topbar-secondary .button{background:var(--tmd-surface);color:var(--tmd-accent)}
.event-sign-in--compact{display:flex;align-items:center;gap:.5rem .75rem;margin:.7rem 0 0;padding:.75rem .9rem;border-inline-start:3px solid var(--tmd-accent);background:var(--tmd-surface-container)}
.event-sign-in--compact p{flex:1 1 16rem;margin:0}
.event-sign-in--compact .button{min-width:0;max-width:100%;margin:0;flex:0 1 auto;white-space:normal;text-align:center}
@media(max-width:40rem){.event-sign-in--compact{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}.event-sign-in--compact p{grid-column:1/-1}.event-sign-in--compact .button{justify-content:center;padding-inline:.5rem}}
/* Facts: mono micro-labels over heavier values scan faster than the card-style pairs.
   dt consumes the ONE cross-surface label treatment (tokens.css, bead
   tmd_theme-3hh.4) — computed values unchanged (.72rem/500/.07em/muted).
   dd values are data (dates, locations, facts), so the ratified mono-for-data
   contract puts them in the mono face; the listing views keep their own
   pixel-locked dt/dd rules (components/cards.css). */
.detail .event-details{gap:1rem 1.2rem}
.detail .event-details dt{font-family:var(--tmd-label-font);font-size:var(--tmd-label-size);font-weight:var(--tmd-label-weight);text-transform:uppercase;letter-spacing:var(--tmd-label-tracking);color:var(--tmd-label-color)}
.detail .event-details dd{margin:0;font-size:1.05rem;font-weight:600;line-height:1.4;overflow-wrap:anywhere;font-family:var(--tmd-font-date)}
/* Keep the registration hint subordinate to the now-heavier dd value. */
.detail .registration-hint{font-size:.75rem}
.event-sign-in{margin:1.5rem 0;padding:1rem 1.2rem;border:1px solid var(--tmd-border);border-radius:var(--tmd-radius);background:var(--tmd-surface-container)}
.event-sign-in p{margin:.1rem 0 .8rem}
.event-sign-in .button{margin:.25rem .45rem .25rem 0}
/* Format flags + services render as fact rows in the shared .event-details
   vocabulary (revision round 4, gh-108) — no chip/pill rules remain. */
/* Venue: address block above the map; escaped plain text, tokens only. */
.venue-address{font-style:normal;margin:0 0 .9rem;line-height:1.5}
.venue-address .venue-name{display:block;font-weight:600}
/* Venue map: fixed rails so the lazy Mapbox init has a stable box. */
.venue-map{position:relative;width:100%;aspect-ratio:16/9;min-height:260px;border:1px solid var(--tmd-border);border-radius:var(--tmd-radius);background:var(--tmd-surface-folded)}

/* Native DJ and event-series profiles. No external CSS or script dependencies. */
.profile-page{max-width:var(--tmd-width-profile)}
.profile-image{max-width:500px;margin:0 0 1.1rem}
.profile-image img{width:100%;height:auto;border-radius:var(--tmd-radius);display:block}
.profile-header{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,12rem);align-items:start;gap:1.25rem;padding-bottom:1.25rem;margin-bottom:1.35rem;border-bottom:1px solid var(--tmd-border)}
.profile-header-copy{min-width:0}
.profile-header .profile-back{margin:0 0 .7rem}
.profile-header h1{font-size:clamp(2rem,5vw,3.35rem);line-height:1.05;overflow-wrap:anywhere;margin:.1rem 0 .6rem}
.profile-header .detail-topbar{margin:.7rem 0 .25rem}
.profile-header .profile-image{max-width:12rem;margin:0}
.profile-header .profile-image img{max-height:15rem;object-fit:contain;object-position:top center}
.profile-header .profile-location{margin:.55rem 0 0}
.profile-header .profile-facts{gap:.65rem 1rem;margin:.7rem 0 0}
.profile-header .profile-facts div{background:transparent;padding:0}
.profile-header .profile-facts dt{font-family:var(--tmd-label-font);font-size:var(--tmd-label-size);font-weight:var(--tmd-label-weight);letter-spacing:var(--tmd-label-tracking);text-transform:uppercase;color:var(--tmd-label-color)}
.profile-header .profile-facts dd{margin:.15rem 0 0;line-height:1.35;overflow-wrap:anywhere}
@media(max-width:48rem){.profile-header{grid-template-columns:minmax(0,1fr);gap:.8rem}.profile-header .profile-image{max-width:12rem}}
.profile-location{color:var(--tmd-muted);font-weight:650;margin:.4rem 0 1rem}
.profile-abstract{max-width:72ch;white-space:pre-line;font-size:1.05rem;line-height:1.65;margin:.3rem 0}
.profile-facts{display:flex;gap:.8rem;margin:.85rem 0 1.2rem;flex-wrap:wrap}
.profile-facts div{background:var(--tmd-surface-container);padding:.65rem .85rem;border-radius:0px}
.profile-facts dt{font-size:.78rem;color:var(--tmd-muted)}
.profile-facts dd{font-weight:700;margin:0}
/* 260px minimum allows 5 cols at 1360px and 6 cols at 1600px (#179 browse density). */
.profile-archive-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:1rem;margin:1rem 0 2rem}
.profile-archive-grid .event-card h2{font-size:1.12rem;margin:0;line-height:1.35}
.profile-archive-grid .event-card h2 a{color:var(--tmd-ink);text-decoration:none}
.profile-archive-grid .event-card h2 a:hover{text-decoration:underline}
.profile-archive-image img{width:100%;aspect-ratio:16/9;object-fit:cover;height:auto;border-radius:0px;display:block}
.profile-archive-grid .event-card p{margin:.25rem 0}
.profile-archive-grid .event-card .event-details{margin:.25rem 0}
.profile-event-section h3{font-size:1rem;margin:.95rem 0 .5rem}
.profile-event-history{margin-top:1rem}
.profile-event-history summary{font-weight:700;color:var(--tmd-accent);cursor:pointer;min-height:44px;padding:.6rem 0}

/* Additional teaching-profile information. */
.profile-page .profile-abstract{white-space:pre-line}

/* Beta-only server-side save/follow controls. */
.interest-control{display:inline-block;margin:.6rem .6rem 1rem 0}
.interest-control .button{min-height:44px;cursor:pointer}
.interest-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem}

/* Member-only My Tango dashboard — default-off beta. */
.my-tango{max-width:var(--tmd-width-dashboard);margin:auto}
.my-tango .event-section{margin-bottom:1.5rem}
.my-tango .event-section h3{font-size:1.05rem;margin:1rem 0 .5rem}
.dashboard-tabs{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.2rem}
.dashboard-tabs a{display:inline-block;padding:.5rem .8rem;border:1px solid var(--tmd-border);border-radius:4px;min-height:44px}
.dashboard-list{list-style:none;padding:0;margin:.75rem 0 1.1rem;display:grid;gap:.55rem}
.dashboard-list li{padding:.65rem .9rem;border:1px solid var(--tmd-border);border-radius:0px;display:flex;align-items:center;justify-content:space-between;gap:.7rem}
.dashboard-list li>div{min-width:0}
.dashboard-list li>div>a{display:block;font-weight:650;line-height:1.35}
.dashboard-list small{display:block;font-size:.8rem;margin:.1rem 0}
.dashboard-list .interest-control{margin:0;flex-shrink:0}
.dashboard-pages{display:flex;gap:.8rem;flex-wrap:wrap;align-items:center}
@media(max-width:560px){.dashboard-list li{align-items:stretch;flex-direction:column}.dashboard-list .interest-control{align-self:flex-start}}

/* My Tango beta — account-only views and native controls. */
.my-tango-header{padding-block:clamp(.65rem,2vw,1.5rem) .75rem}
.my-tango-header h1{font-size:clamp(1.75rem,4vw,2.5rem);margin:0 0 .25rem}
.my-tango-header p{margin:0;max-width:65ch}
.my-tango-tabs{display:flex;flex-wrap:wrap;gap:.25rem;margin:0 0 .9rem;border-bottom:1px solid var(--tmd-border)}
.my-tango-tabs a{display:flex;align-items:center;padding:.5rem .75rem;text-decoration:none;font-weight:650;min-height:44px;border-bottom:2px solid transparent;margin-bottom:-1px}
.my-tango-tabs a[aria-current=page]{color:var(--tmd-ink);border-bottom-color:var(--tmd-ink)}
.my-tango-tabs a:hover{text-decoration:underline}
.my-tango-content > .notice{margin:0;padding:.8rem 1rem}
.my-tango-content > p{margin:.25rem 0 .65rem}
.my-tango-event-list{display:grid;gap:.85rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,22rem),1fr))}
.my-tango-event{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:.85rem .95rem;padding:.95rem 1rem;border:1px solid var(--tmd-border);border-radius:var(--tmd-radius)}
.my-tango-event-main{min-width:0}
.my-tango-event h3{font-size:1.12rem;margin:0}
.my-tango-event p{margin:.25rem 0 0}
.my-tango-reasons{font-size:.85rem;max-width:none;min-inline-size:11rem;color:var(--tmd-muted)}
.my-tango-reasons ul{margin:.2rem 0;padding-left:1.2rem}
.my-tango-follow-list{list-style:none;padding:0;display:grid;gap:.65rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,20rem),1fr))}
.my-tango-follow-list li{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;flex-wrap:wrap;padding:.8rem .9rem;border:1px solid var(--tmd-border);border-radius:0px}
.my-tango-follow-list li>a{font-weight:650;flex:1}
.my-tango-follow-list .interest-control{margin:0 0 0 auto}
.my-tango-disclaimer{margin:.65rem 0 0;font-size:.875rem}
.my-tango-subscriptions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:.85rem;margin-top:1.35rem}
.my-tango-subscription-panel{min-width:0;display:flex;flex-direction:column;gap:.55rem;padding:1rem;border:1px solid var(--tmd-border);background:var(--tmd-surface-container);font-size:.9rem;overflow-wrap:anywhere}
.my-tango-subscription-panel:only-child{grid-column:1/-1}
.my-tango-subscription-panel h2{margin:0;font-size:1.1rem}
.my-tango-subscription-panel p{margin:0}
.my-tango-subscription-panel .notice{margin:0;padding:.55rem .7rem}
.my-tango-subscription-panel > form:last-child,.my-tango-calendar-actions{padding-top:.25rem}
.my-tango-calendar-actions{display:flex;flex-wrap:wrap;gap:.5rem}
.my-tango-filter{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap;padding:.5rem 0}
.my-tango-filter label{font-weight:700;display:flex;gap:.5rem;align-items:center}
.my-tango-filter input{width:18px;height:18px}
@media(max-width:900px){
	.my-tango-event{grid-template-columns:1fr}
	.my-tango-reasons{width:100%;min-inline-size:0}
}

@media(max-width:700px){
	.my-tango-follow-list{grid-template-columns:1fr}
	.my-tango-follow-list .interest-control{margin-left:0}
	.my-tango-subscriptions{grid-template-columns:1fr}
}
@media(max-width:560px){
	.my-tango-tabs{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:0}
	.my-tango-tabs a{justify-content:center;padding:.45rem .25rem;font-size:.875rem;line-height:1.35;text-align:center;overflow-wrap:anywhere}
}

.followed-reasons{font-size:.88rem;background:var(--tmd-surface-container);padding:.35rem .6rem;border-radius:var(--tmd-radius);line-height:1.5}

/* Staging version bar — shown only in debug/staging environments */
.tmd-staging-bar{background:var(--tmd-ink);color:var(--tmd-bg);font-size:.7rem;padding:.35rem 1rem;text-align:center;letter-spacing:.02em}
.tmd-staging-bar a{color:var(--tmd-accent);text-decoration:none}
.tmd-staging-bar a:hover{text-decoration:underline}
/* Contributor workspace: server-rendered and usable without JavaScript. */
.contribution-list{display:grid;gap:.7rem;margin:1rem 0}
.contribution-item{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;background:var(--tmd-paper);border:1px solid var(--tmd-border);border-radius:var(--tmd-radius);padding:1rem}
.contribution-item h3{margin:0;font-size:1rem}
.contribution-item p{margin:.25rem 0 0}
.contribution-actions{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap}
.status-badge{display:inline-flex;align-items:center;min-height:32px;border-radius:2px;padding:.25rem .5rem;background:var(--tmd-surface-folded);color:var(--tmd-ink);font-family:var(--tmd-font-mono);text-transform:uppercase;letter-spacing:.06em;font-size:.75rem;font-weight:500}
.contribution-form{max-width:var(--tmd-width-reading);background:var(--tmd-paper);border:1px solid var(--tmd-border);border-radius:var(--tmd-radius);padding:clamp(1rem,3vw,1.6rem);margin:2rem auto}
.contribution-form h2{margin-top:0}
.contribution-fields{display:grid;gap:1rem}
.contribution-fields .filters-grid{display:grid;gap:.85rem;grid-template-columns:repeat(auto-fill,minmax(14rem,1fr));align-items:end}
.contribution-fields .field textarea{resize:vertical}
/* Cross-surface micro-label (bead tmd_theme-3hh.4): the contribution form
   labels share the ONE mono uppercase label treatment from tokens.css.
   The old broad span rule stays for what it also used to style that is not a
   label: option text inside .distinct-confirmation labels (control text) and
   .field-error keeps its own error styling. */
.contribution-fields .field span{font-size:.86rem;font-weight:700}
.contribution-fields .field:not(.distinct-confirmation) > span:not(.field-error){font-family:var(--tmd-label-font);font-size:var(--tmd-label-size);font-weight:var(--tmd-label-weight);text-transform:uppercase;letter-spacing:var(--tmd-label-tracking);color:var(--tmd-label-color)}
.contribution-fields .field .field-error{color:var(--tmd-error);font-size:.88rem;font-weight:500}
.contribution-fields .field input[aria-invalid="true"]{border-color:var(--tmd-error)}
.contribution-fields>p{margin:0}
.contribution-fields>.button{justify-self:start}
.contribution-search{display:flex;align-items:end;gap:.75rem;flex-wrap:wrap;margin:1rem 0;padding:1rem;border:1px solid var(--tmd-border);border-radius:var(--tmd-radius);background:var(--tmd-surface-container)}
.contribution-search .field{flex:1 1 220px;margin:0}
/* Cross-surface micro-label (bead tmd_theme-3hh.4): the contribution list
   search label ("Search Events") was the 16px-regular outlier — it lives in a
   <label class="field"> whose span no .field-label rule ever reached. */
.contribution-search .field > span{font-family:var(--tmd-label-font);font-size:var(--tmd-label-size);font-weight:var(--tmd-label-weight);text-transform:uppercase;letter-spacing:var(--tmd-label-tracking);color:var(--tmd-label-color)}
.relation-picker{min-width:0;margin:1rem 0;padding:1rem;border:1px solid var(--tmd-border);border-radius:var(--tmd-radius)}
.relation-picker select{font:inherit;width:100%;min-height:6rem;padding:.5rem;border:1px solid var(--tmd-border);border-radius:4px;background:var(--tmd-surface);color:var(--tmd-ink)}
.profile-search-results{list-style:none;padding:0;display:grid;gap:.5rem;margin:1rem 0}
.profile-search-results li{display:flex;justify-content:space-between;align-items:center;gap:.75rem;flex-wrap:wrap;padding:.7rem .9rem;border:1px solid var(--tmd-border);border-radius:0px;background:var(--tmd-paper)}
.profile-search-results span{font-size:.85rem;color:var(--tmd-muted)}
.distinct-confirmation input{width:20px!important;min-height:20px!important;vertical-align:middle}
/* Form polish (bead tmd_theme-3hh.7, F10): collapsible sections were grey
   boxes nested inside the form card inside the page — three borders deep.
   They are now flat blocks separated by hairline dividers, and collapsed
   sections get a mono +/− disclosure marker so they read as expandable. */
.contribution-group{margin:0;padding:1rem 0 .2rem;border-top:1px solid var(--tmd-border);background:transparent}
.contribution-group>summary{cursor:pointer;display:flex;align-items:center;gap:.4rem;min-height:44px;font-weight:700;list-style:none}
.contribution-group>summary::-webkit-details-marker{display:none}
.contribution-group>summary::before{content:'+';flex:0 0 auto;width:1.2rem;font-family:var(--tmd-font-mono);font-weight:500;color:var(--tmd-accent)}
.contribution-group[open]>summary::before{content:'−'}
.contribution-group>.filters-grid{margin-top:.6rem}
.contribution-fields .field select[aria-invalid="true"]{border-color:var(--tmd-error)}
.contribution-options{margin:.5rem 0;border:1px solid var(--tmd-border);border-radius:4px;padding:.5rem .7rem;display:grid;gap:.35rem}
/* Cross-surface micro-label (bead tmd_theme-3hh.4): option-group legends join
   the ONE mono uppercase label treatment from tokens.css. */
.contribution-options legend{font-family:var(--tmd-label-font);font-size:var(--tmd-label-size);font-weight:var(--tmd-label-weight);text-transform:uppercase;letter-spacing:var(--tmd-label-tracking);color:var(--tmd-label-color);padding:0 .3rem}
.contribution-options .field-error{color:var(--tmd-error);font-size:.88rem;font-weight:500}
.contribution-image-preview{display:block;max-width:240px;height:auto;margin:.4rem 0;border:1px solid var(--tmd-border);border-radius:4px}
/* The account display name is a real link (header.php links it to the WP
   profile), so it inherits normal nav item styling — no smaller/muted
   special case (UX review F14). */
@media(max-width:530px){.contribution-item{align-items:flex-start}.contribution-actions{width:100%;justify-content:space-between}}
