/* Build Club. Light, calm, one accent. Bricolage Grotesque for the wordmark and headings,
   Instrument Sans for reading; both self-hosted (SIL OFL), latin subsets. */
@font-face {
  font-family: "Bricolage";
  src: url("/fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC,
    U+2122, U+2212;
}
@font-face {
  font-family: "Bricolage";
  src: url("/fonts/bricolage-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC,
    U+2122, U+2212;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #faf9f6;
  --card: #ffffff;
  --ink: #18181b;
  --muted: #67665f;
  --faint: #a8a59d;
  --rule: #ebe9e3;
  --hover: #f3f2ed;
  --accent: #2b44d6;
  --accent-soft: #eef0fd;
  --live: #0f8a5f;
  --display: "Bricolage", "Instrument Sans", system-ui, sans-serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
[hidden] {
  display: none !important;
}
.page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* Header */
.top {
  padding: 28px 0 4px;
}
.brand {
  font: 700 2.1rem/1 var(--display);
  letter-spacing: -0.04em;
}
.tagline {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 8px 0 0;
  max-width: 34em;
}
.bar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 18px 0 0;
}
.search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 10px 16px;
  max-width: 560px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.search svg {
  flex: 0 0 auto;
  color: var(--faint);
}
.search input {
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--ink);
  width: 100%;
  outline: none;
}
.search input::placeholder {
  color: var(--faint);
}
.search kbd {
  font: 500 0.75rem var(--sans);
  color: var(--faint);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1px 6px;
}
.filterbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--rule);
  background: var(--card);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: border-color 0.15s;
}
.filterbtn:hover {
  border-color: var(--faint);
}
.filterbtn b {
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
}
.topics {
  display: flex;
  gap: 4px 18px;
  flex-wrap: wrap;
  margin: 16px 0 0;
  font-size: 0.92rem;
}
.topics button {
  color: var(--muted);
  padding: 2px 0;
  border-bottom: 2px solid transparent;
  transition:
    color 0.12s,
    border-color 0.12s;
}
.topics button:hover {
  color: var(--ink);
}
.topics button[aria-pressed="true"] {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--accent);
}
.status {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 12px 0 0;
}
.status button {
  color: var(--accent);
}

/* Week strip */
.week {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  padding: 16px 2px 4px;
  margin: 0 -2px;
}
/* Edge fades only where there is more to scroll; on pointer devices an arrow sits in the fade. */
.weekwrap {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.weekbox {
  position: relative;
  flex: 1;
  min-width: 0;
}
.weekwrap.can-right .week {
  -webkit-mask-image: linear-gradient(to right, #000 86%, transparent);
  mask-image: linear-gradient(to right, #000 86%, transparent);
}
.weekwrap.can-left .week {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%);
  mask-image: linear-gradient(to right, transparent, #000 12%);
}
.weekwrap.can-left.can-right .week {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 86%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 86%, transparent);
}
.wk-arrow {
  position: absolute;
  top: calc(50% + 6px);
  transform: translateY(-50%);
  z-index: 2;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(24, 24, 27, 0.1);
  cursor: pointer;
}
.wk-arrow[hidden] {
  display: none;
}
.wk-arrow:hover {
  border-color: var(--faint);
}
.wk-prev {
  left: 0;
}
.wk-next {
  right: 0;
}
/* Touch screens swipe; no arrows there. */
@media (hover: none) {
  .wk-arrow {
    display: none !important;
  }
}
.wk-pick {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 16px 0 4px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid var(--rule);
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}
.wk-pick:hover,
.wk-pick[aria-expanded="true"] {
  color: var(--accent);
  border-color: var(--faint);
}
@media (max-width: 700px) {
  .wk-pick span {
    display: none;
  }
}
.monthcal {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  width: 272px;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(24, 24, 27, 0.14);
}
.monthcal[hidden] {
  display: none;
}
.mc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.92rem;
}
.mc-head button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: none;
  font-size: 1.2rem;
  color: var(--ink);
  cursor: pointer;
}
.mc-head button:disabled {
  opacity: 0.25;
  cursor: default;
}
.mc-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}
.mc-grid i {
  font-style: normal;
  font-size: 0.7rem;
  color: var(--faint);
  padding: 2px 0 4px;
}
.mc-grid button {
  position: relative;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: none;
  font: inherit;
  font-size: 0.86rem;
  color: var(--ink);
  cursor: pointer;
}
.mc-grid button:hover:not(:disabled) {
  background: var(--accent-soft);
}
.mc-grid button:disabled {
  color: var(--faint);
  opacity: 0.5;
  cursor: default;
}
.mc-grid button.has::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
}
.mc-grid button.today {
  border-color: var(--accent);
}
.mc-grid button.sel {
  background: var(--ink);
  color: #fff;
}
.mc-grid button.sel::after {
  background: #fff;
}
.week::-webkit-scrollbar {
  display: none;
}
.day {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: var(--dayw, 54px);
  padding: 8px 0 7px;
  border-radius: 14px;
  text-align: center;
  line-height: 1.1;
  font-size: 0.76rem;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--rule);
  transition:
    transform 0.12s,
    background 0.12s;
}
.day:hover {
  transform: translateY(-1px);
}
.day b {
  display: block;
  font: 600 1.25rem/1.25 var(--display);
  color: var(--ink);
}
.day i {
  display: block;
  font-style: normal;
  font-size: 0.7rem;
  color: var(--accent);
  height: 1.1em;
}
.day.today {
  border-color: var(--accent);
}
.day.none {
  background: transparent;
  border-color: transparent;
  opacity: 0.45;
}
.day[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.day[aria-pressed="true"] b,
.day[aria-pressed="true"] i {
  color: #fff;
}

/* List / map switch: only while the map is open, to get back to the list. */
body:not(.mapmode) .views {
  display: none !important;
}
.views {
  display: inline-flex;
  background: #efede7;
  border-radius: 999px;
  padding: 3px;
  margin: 14px 0 0;
}
.views button {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--muted);
}
.views button[aria-pressed="true"] {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(24, 24, 27, 0.12);
}
.mapwrap {
  height: 68vh;
  margin-top: 14px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--rule);
}

/* List */
h2 {
  font: 600 1.1rem/1.3 var(--display);
  margin: 28px 0 6px;
  letter-spacing: -0.015em;
}
h2 small {
  font: 400 0.88rem var(--sans);
  color: var(--muted);
  margin-left: 8px;
}
.note {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 10px 0;
}
.note button {
  color: var(--accent);
}
.empty {
  text-align: center;
  padding: 48px 12px;
  color: var(--muted);
}
.empty b {
  display: block;
  font: 600 1.15rem var(--display);
  color: var(--ink);
  margin-bottom: 4px;
}
.empty button {
  color: var(--accent);
  margin-top: 10px;
}
.dayhead {
  position: sticky;
  top: 0;
  z-index: 2;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font: 600 1.02rem/1.3 var(--display);
  letter-spacing: -0.015em;
  margin: 0;
  padding: 22px 0 10px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.dayhead small {
  font: 400 0.82rem var(--sans);
  color: var(--faint);
}
.ongoing {
  margin: 14px 0 0;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--rule);
  font-size: 0.9rem;
  color: var(--muted);
}
.ongoing summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
}
.ongoing .ev:last-child {
  border-bottom: 0;
}
.ev {
  border-bottom: 1px solid var(--rule);
}
.row {
  display: grid;
  grid-template-columns: 64px 1fr auto auto;
  gap: 14px;
  align-items: start;
  padding: 16px 10px;
  margin: 0 -10px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.12s;
}
.ev.lit .row {
  background: var(--hover);
}
.time {
  font: 500 0.98rem/1.35 var(--display);
  font-variant-numeric: tabular-nums;
  padding-top: 1px;
}
.time small {
  display: block;
  font: 400 0.76rem var(--sans);
  color: var(--faint);
}
/* One accent per row at most: the outbound button. Status, topic and price stay neutral. */
.eyebrow {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--faint);
  margin: 0 0 2px;
  letter-spacing: 0.01em;
}
.live {
  color: var(--ink);
  font-weight: 600;
}
/* Happening now: the dot alone breathes, a soft ring every 2.6 s; still for reduced motion. */
.live.now::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 6px 1px 1px;
  border-radius: 50%;
  background: currentColor;
  animation: live-ring 2.6s ease-out infinite;
}
@keyframes live-ring {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 32%, transparent);
  }
  70%,
  100% {
    box-shadow: 0 0 0 6px color-mix(in srgb, currentColor 0%, transparent);
  }
}
@media (prefers-reduced-motion: reduce) {
  .live.now::before {
    animation: none;
  }
}
.what h3 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 3px;
  overflow-wrap: anywhere;
}
.what p.meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.meta .free {
  color: var(--ink);
  font-weight: 600;
}
.meta .lang,
.card .eyebrow .lang {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0 4px;
  line-height: 1.5;
  vertical-align: 1px;
}
.go {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid #d8dcf7;
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
  background: var(--card);
  transition:
    background 0.12s,
    color 0.12s,
    border-color 0.12s;
}
.go:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.go.going {
  color: var(--muted);
  border-color: var(--rule);
  background: transparent;
}
.loadmore {
  display: block;
  margin: 28px auto 0;
  border: 1px solid var(--rule);
  background: var(--card);
  border-radius: 999px;
  padding: 11px 24px;
  font-size: 0.92rem;
  transition: border-color 0.15s;
}
.loadmore:hover {
  border-color: var(--faint);
}

/* Sidebar */
.side {
  display: none;
}
.panel {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 18px;
}
.panel h2 {
  margin: 2px 2px 10px;
  font-size: 1rem;
}
.panel .hint {
  margin: 8px 2px 0;
  font-size: 0.8rem;
  color: var(--faint);
}
.sidemap {
  height: 360px;
  border-radius: 12px;
  overflow: hidden;
}
.conf {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 10px;
  padding: 10px 2px;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
  line-height: 1.35;
}
.conf:first-of-type {
  border-top: 0;
}
.conf .d {
  font: 600 0.88rem/1.2 var(--display);
}
.conf .d small {
  display: block;
  font: 400 0.74rem var(--sans);
  color: var(--faint);
}
.conf a {
  font-weight: 600;
}
.conf a:hover {
  color: var(--accent);
}
.conf span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Map: our own minimal style (outline only); MapLibre draws the circles. */
.maplibregl-map {
  font: inherit;
  background: #fff;
}
.maplibregl-popup-content {
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 10px 30px rgba(24, 24, 27, 0.16);
  font-size: 0.86rem;
  line-height: 1.35;
}
.pop p {
  margin: 0 0 8px;
}
.pop p:last-child {
  margin: 0;
}
.pop a {
  font-weight: 600;
  color: var(--ink);
}
.pop a:hover {
  color: var(--accent);
}
.pop small {
  display: block;
  color: var(--muted);
}

/* Filters sheet */
dialog {
  border: 0;
  border-radius: 22px;
  padding: 24px 24px 20px;
  width: min(520px, calc(100vw - 24px));
  max-height: 86vh;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(24, 24, 27, 0.2);
}
dialog[open] {
  animation: rise 0.18s ease-out;
}
@keyframes rise {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
}
dialog::backdrop {
  background: rgba(24, 24, 27, 0.28);
}
dialog h3 {
  margin: 0 0 4px;
  font: 600 1.3rem var(--display);
  letter-spacing: -0.02em;
}
dialog fieldset {
  border: 0;
  padding: 0;
  margin: 18px 0 0;
}
dialog legend {
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 8px;
}
.opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.opt {
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 0.88rem;
  color: var(--muted);
  transition: all 0.12s;
}
.opt[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.sheet-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
  font-size: 0.92rem;
}
.primary {
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 600;
}
.sheet-actions .link {
  color: var(--muted);
}

footer {
  margin-top: 64px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  color: var(--faint);
  font-size: 0.82rem;
}
footer a {
  color: var(--muted);
}
footer .footlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0 0 8px;
}
footer .attrib {
  margin: 0;
}

@media (max-width: 560px) {
  .topics {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-right: -20px;
    padding-right: 20px;
  }
  .topics::-webkit-scrollbar {
    display: none;
  }
  .topics button {
    flex: 0 0 auto;
  }
  .brand {
    font-size: 1.8rem;
  }
  .search kbd {
    display: none;
  }
  .row {
    grid-template-columns: 54px 1fr auto 34px;
    gap: 10px;
  }
  /* Phones: the outbound link is a small arrow on the right; the label stays for screen readers. */
  .row .go:not(.going) {
    width: 34px;
    height: 34px;
    padding: 0;
    display: grid;
    place-items: center;
  }
  .row .go:not(.going) .gl {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .row .go .ext {
    margin: 0;
    width: 13px;
    height: 13px;
    opacity: 1;
  }
  .row .go.going {
    grid-column: 2;
    justify-self: start;
  }
}

/* Desktop: the list at a reading width; a sidebar with the map and the big dates. */
@media (min-width: 1100px) {
  .page {
    padding: 0 40px 80px;
  }
  .top {
    padding-top: 40px;
  }
  .brand {
    font-size: 2.6rem;
  }
  body:not(.mapmode) .mapwrap {
    display: none !important;
  }
  body.mapmode .side {
    display: none;
  }
  body.mapmode .layout {
    grid-template-columns: minmax(0, 1fr);
  }
  body.mapmode .main {
    max-width: none;
  }
  .mapwrap {
    height: 72vh;
  }
  .layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 60px;
    align-items: start;
  }
  .main {
    max-width: 780px;
  }
  .side {
    display: block;
    position: sticky;
    top: 20px;
    margin-top: 16px;
  }
  .row {
    grid-template-columns: 78px 1fr auto auto;
  }
}
@media (min-width: 1600px) {
  .page {
    max-width: 1380px;
  }
  .layout {
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 90px;
  }
  .sidemap {
    height: 380px;
  }
}

/* Title links */
.what h3 a.t:hover {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Filling up */
.filling {
  margin-top: 8px;
}
.fill {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 12px 14px;
  margin: 8px 0;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  transition: border-color 0.15s;
}
.fill:hover {
  border-color: var(--accent);
}
.fd {
  font: 600 0.92rem/1.3 var(--display);
}
.ft {
  font-weight: 600;
  line-height: 1.3;
}
.ft small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 2px;
}

/* Detail page */
.detail .top {
  padding-bottom: 0;
}
.back {
  margin: 14px 0 0;
  font-size: 0.92rem;
}
.back a {
  color: var(--muted);
}
.back a:hover {
  color: var(--accent);
}
.card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 22px;
  padding: 26px;
  margin-top: 16px;
  max-width: 920px;
}
.card h1 {
  font: 700 2rem/1.15 var(--display);
  letter-spacing: -0.03em;
  margin: 4px 0 18px;
}
.facts {
  margin: 0;
  display: grid;
  gap: 10px;
}
.facts div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
}
.facts dt {
  color: var(--faint);
  font-size: 0.9rem;
}
.facts dd {
  margin: 0;
}
.facts a,
.about a {
  color: var(--accent);
}
.facts .hot {
  color: #b4410f;
  font-weight: 600;
}
.cta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
  flex-wrap: wrap;
}
.primary.big {
  display: inline-block;
  background: var(--accent);
  padding: 12px 26px;
  font-size: 1rem;
}
.primary.big:hover {
  background: #1f35b0;
}
.ghost {
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 11px 20px;
  color: var(--ink);
}
.ghost:hover {
  border-color: var(--faint);
}
.about {
  max-width: 920px;
  margin-top: 30px;
}
.about p {
  margin: 0 0 10px;
  line-height: 1.6;
}
.about .src {
  color: var(--muted);
  font-size: 0.9rem;
}
.people {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px 20px;
}
.people li {
  font-weight: 600;
}
.people span {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.88rem;
}
.also {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.also b {
  font: 500 0.95rem var(--display);
}
.also span {
  color: var(--muted);
  font-size: 0.88rem;
}
.also:hover {
  color: var(--accent);
}
@media (min-width: 760px) {
  .card {
    padding: 34px;
  }
  .card.has-cover {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .card.has-cover .cover {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    max-height: 420px;
  }
  .card h1 {
    font-size: 2.5rem;
  }
}

/* Paid courses, folded per day */
.courses {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.courses summary {
  cursor: pointer;
  padding: 10px 0;
  list-style: none;
}
.courses summary::-webkit-details-marker {
  display: none;
}
.courses summary::before {
  content: "+ ";
  color: var(--faint);
}
.courses[open] summary::before {
  content: "− ";
}
.courses summary:hover {
  color: var(--ink);
}

/* Hidden paid trainings: one quiet line under the list */
.hiddennote {
  margin: 28px 0 8px;
  color: var(--muted);
  font-size: 0.9rem;
}
.hiddennote button {
  font: inherit;
  color: var(--accent);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* Outbound button: leaves for the organiser's page */
.go .ext {
  margin-left: 5px;
  vertical-align: -1px;
  opacity: 0.75;
}

/* Day strip: month names on the 1st */
.day em {
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
}

/* Side map: a still outline with one dot per city */
.where {
  margin: 4px 0 30px;
}
.citymap svg {
  display: block;
  width: 100%;
  max-width: 330px;
  margin: 0 auto;
  overflow: visible;
}
.citymap .land {
  fill: #efede6;
  stroke: #e2ded3;
  stroke-width: 0.8;
}
.citymap .city {
  cursor: pointer;
}
.citymap .pad {
  fill: transparent;
}
.citymap .dot {
  fill: var(--accent);
  opacity: 0.78;
  stroke: #fbfaf7;
  stroke-width: 1;
  transition:
    opacity 200ms cubic-bezier(0.2, 0, 0, 1),
    transform 150ms cubic-bezier(0.2, 0, 0, 1);
}
/* The soft ring: shown on hover and on the picked city, and pulsed once when a card for that
   city is hovered in the list. */
.citymap .dot,
.citymap .ring {
  transform-box: fill-box;
  transform-origin: center;
}
.citymap .ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  opacity: 0;
  transition:
    opacity 150ms cubic-bezier(0.2, 0, 0, 1),
    transform 150ms cubic-bezier(0.2, 0, 0, 1);
}
.citymap .city.on .dot {
  opacity: 1;
  transform: scale(1.15);
}
.citymap .city.on .ring {
  opacity: 0.22;
  transform: scale(1.15);
}
.citymap .city.pulse .ring {
  animation: ring-pulse 450ms cubic-bezier(0.2, 0, 0, 1);
}
@keyframes ring-pulse {
  from {
    opacity: 0.45;
    transform: scale(0.9);
  }
  to {
    opacity: 0;
    transform: scale(2);
  }
}
.citymap .minor .dot {
  opacity: 0.4;
  stroke: none;
}
.citymap .city.hot .dot,
.citymap .city.sel .dot {
  opacity: 1;
}
.citymap .dim {
  opacity: 0.35;
}
.citymap .lbl {
  font: 500 9.6px var(--sans);
  fill: #57534e;
  transition:
    opacity 150ms cubic-bezier(0.2, 0, 0, 1),
    fill 150ms cubic-bezier(0.2, 0, 0, 1);
  cursor: pointer;
  paint-order: stroke;
  stroke: #fbfaf7;
  stroke-width: 2.5px;
  stroke-linejoin: round;
}
.citymap .lbl tspan {
  fill: #a8a29e;
  font-weight: 400;
}
.citymap .lbl.sel {
  fill: var(--accent);
  font-weight: 600;
}
/* Hovering a city: its label to full ink, the others step back. */
.citymap svg.hovering .lbl {
  opacity: 0.7;
}
.citymap svg.hovering .lbl.on {
  opacity: 1;
  fill: var(--ink);
}
/* A picked city (the click filter): filled dot with its ring; the other cities fade. */
.citymap .city.sel .ring {
  opacity: 0.25;
}
.citymap svg.picked .city:not(.sel) .dot {
  opacity: 0.4;
}
.citymap svg.picked .lbl:not(.sel) {
  opacity: 0.6;
}
.citymap svg.changed.picked .city:not(.sel) .dot {
  animation: dot-fade 220ms cubic-bezier(0.2, 0, 0, 1);
}
.citymap svg.changed .city.sel .ring {
  animation: ring-in 220ms cubic-bezier(0.2, 0, 0, 1);
}
@keyframes dot-fade {
  from {
    opacity: 0.78;
  }
}
@keyframes ring-in {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
}
.where {
  position: relative;
}
.maptip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  padding: 4px 9px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  font-size: 12.5px;
  line-height: 16px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(24, 24, 27, 0.1);
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
  transition:
    opacity 120ms cubic-bezier(0.2, 0, 0, 1),
    transform 150ms cubic-bezier(0.2, 0, 0, 1);
}
/* Fades in after 80 ms; from one city to the next it slides, without fading again. */
.maptip.on {
  opacity: 1;
  transition:
    opacity 120ms cubic-bezier(0.2, 0, 0, 1) 80ms,
    transform 150ms cubic-bezier(0.2, 0, 0, 1);
}
.maptip.still {
  transition: opacity 120ms cubic-bezier(0.2, 0, 0, 1) 80ms;
}
.maplink {
  display: block;
  margin: 10px auto 0;
  font: inherit;
  font-size: 0.86rem;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
}
.maplink:hover {
  color: var(--accent);
}
/* The area chip: a city picked on the small map, cleared with × */
.areachip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 6px 10px 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  vertical-align: middle;
}
.areachip span {
  font-size: 1.05rem;
  line-height: 1;
}
.areachip:hover {
  background: var(--card);
}
/* The map entry on phones (no side map there): a quiet link in the area row. */
.maplink.inline {
  display: inline;
  margin: 0 0 0 12px;
  vertical-align: middle;
}
@media (min-width: 1100px) {
  .maplink.inline {
    display: none;
  }
}
.citymap .city.sel .dot {
  stroke: #fbfaf7;
}

/* Topic glyphs (code-drawn, one 16-unit grid) */
.glyph {
  fill: currentColor;
  width: 11px;
  height: 11px;
  vertical-align: -1px;
  margin-right: 5px;
}
.eyebrow .glyph {
  width: 11px;
  height: 11px;
  margin-right: 4px;
}
.topics button .glyph {
  opacity: 0.8;
}
/* The 92-day pulse under the tagline */
.pulse {
  margin: 14px 0 0;
  max-width: 560px;
}
.pulse svg {
  display: block;
  width: 100%;
  height: 24px;
}
.pulse rect {
  fill: #dcd9cf;
  cursor: pointer;
}
.pulse rect:hover {
  fill: var(--muted);
}
.pulse rect.m1 {
  fill: #c9c5b9;
}
.pulse rect.today {
  fill: var(--ink);
}

/* Area: all of NL, or near a place */
.area {
  margin: 4px 0 12px;
}
.seg {
  display: inline-flex;
  background: #efede6;
  border-radius: 999px;
  padding: 3px;
}
.seg button {
  font: inherit;
  font-size: 0.88rem;
  border: 0;
  background: none;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.seg button[aria-checked="true"] {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(24, 24, 27, 0.12);
}
.areanote {
  margin: 8px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.areanote button {
  font: inherit;
  color: var(--accent);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
/* The area row: the switch, then the radius chip or the "or enter a town" link, then Map. */
.arearow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.arearow .maplink.inline {
  margin: 0;
}
.townlink {
  font: inherit;
  font-size: 0.86rem;
  color: var(--accent);
  background: none;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
}
.kmchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  max-width: 100%;
}
.kmchip svg {
  width: 10px;
  height: 6px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.kmchip[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.radii {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}
.radii button[data-km] {
  font: inherit;
  font-size: 0.86rem;
  padding: 7px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  cursor: pointer;
}
.radii button[aria-pressed="true"] {
  border-color: var(--ink);
  color: var(--ink);
}
.radii .townlink {
  margin-left: 6px;
}

/* Choosing a place: inline under the row on wide screens, a full-screen sheet on phones. */
.placebox {
  margin-top: 10px;
  max-width: 460px;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(24, 24, 27, 0.08);
}
.pb-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.pb-head label {
  font-weight: 600;
}
.placebox input {
  width: 100%;
  box-sizing: border-box;
  /* 16 px or more, or iOS zooms the page on focus. */
  font: inherit;
  font-size: 16px;
  padding: 11px 12px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}
.placebox input:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}
.pbmsg {
  margin: 8px 2px 0;
  font-size: 0.86rem;
  color: var(--muted);
}
.pbmsg:empty {
  display: none;
}
.placebox ul {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  max-height: 320px;
  overflow-y: auto;
}
.placebox li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.placebox li b {
  font-weight: 500;
}
.placebox li small {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}
.placebox li.gps b {
  color: var(--accent);
}
.placebox li[aria-selected="true"] {
  background: var(--hover);
}
@media (hover: hover) {
  .placebox li:hover {
    background: var(--hover);
  }
}
.placebox.sheet {
  position: fixed;
  z-index: 1000;
  left: 0;
  right: 0;
  top: 0;
  /* Past the bottom edge, so nothing shows below it behind Safari's toolbar. */
  bottom: -40vh;
  max-width: none;
  margin: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: 14px 16px 8px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.placebox.sheet input {
  background: var(--card);
}
.placebox.sheet ul {
  flex: none;
  max-height: calc(var(--vvh, 100dvh) - 120px);
  overscroll-behavior: contain;
}
html.sheet-open,
html.sheet-open body {
  overflow: hidden;
}
.citymap .areashape {
  fill: rgba(43, 68, 214, 0.06);
  stroke: var(--accent);
  stroke-width: 1;
  stroke-dasharray: 3 3;
  opacity: 0.8;
}
.citymap {
  cursor: pointer;
}

/* Colour: the live state in the accent; each topic a calm tint at the same lightness, darkened
   to WCAG AA (at least 4.6:1 on the row hover background, 4.9:1 on the page). Price stays neutral. */
.live.now {
  color: var(--accent);
}
.eyebrow .tp-ai {
  color: #6068ab;
}
.eyebrow .tp-security {
  color: #806288;
}
.eyebrow .tp-robotics {
  color: #4f7371;
}
.eyebrow .tp-science {
  color: #60724f;
}
.eyebrow .tp-startups {
  color: #83674b;
}
.eyebrow .tp-software {
  color: #5c6d85;
}

/* Side panel for an event (wide screens): the organiser's page or our summary */
/* While open, the list moves to the left edge at --list-w and the panel takes the rest. */
.evpanel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: var(--panel-left, 60vw);
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-left: 1px solid var(--rule);
  box-shadow: -16px 0 40px rgba(24, 24, 27, 0.08);
  z-index: 40;
}
.evpanel[hidden] {
  display: none;
}
/* The column is narrow (about 450 to 800 px): buttons on one row, the title full width below. */
.evpanel .ph {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 12px 16px 14px 22px;
  border-bottom: 1px solid var(--rule);
}
.evpanel .pt {
  flex: 1 1 100%;
}
.evpanel .pwhen {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.evpanel h2 {
  font: 600 1.12rem/1.3 var(--display);
  margin: 2px 0 0;
}
.evpanel .pa {
  order: -1;
  flex: 1 1 100%;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
.evpanel .pa .primary,
.evpanel .pa .ghost {
  font: inherit;
  font-size: 0.86rem;
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
}
.evpanel .pa .ghost {
  background: none;
}
.evpanel .px {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: none;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.evpanel .px:hover {
  color: var(--ink);
  border-color: var(--faint);
}
.evpanel .pnote {
  margin: 0;
  padding: 8px 22px;
  font-size: 0.84rem;
  color: var(--muted);
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.evpanel iframe {
  flex: 1;
  width: 100%;
  border: 0;
  background: #fff;
}
body.panel-open .page {
  max-width: none;
  margin: 0;
  padding-left: 24px;
  padding-right: 0;
}
body.panel-open .layout {
  display: block;
}
body.panel-open .side {
  display: none;
}
body.panel-open .main,
body.panel-open .top {
  width: var(--list-w);
  max-width: none;
}
body.panel-open .evpanel {
  animation: panel-in 0.24s ease-out;
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateX(32px);
  }
}
@media (prefers-reduced-motion: reduce) {
  body.panel-open .evpanel {
    animation: none;
  }
}
/* Compact list beside the panel: time, title and place; secondary lines cut to one line. */
body.panel-compact .tagline,
body.panel-compact .pulse,
body.panel-compact .row .go {
  display: none;
}
body.panel-compact .row {
  grid-template-columns: 52px 1fr;
  gap: 10px;
  padding: 11px 8px;
  margin: 0;
}
body.panel-open .what,
body.panel-open .main {
  min-width: 0;
}
body.panel-open .main {
  overflow-x: clip;
}
body.panel-compact .what h3 {
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.panel-compact .meta,
body.panel-compact .eyebrow {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.panel-compact .fill {
  grid-template-columns: 76px 1fr;
}
body.panel-compact .brand {
  font-size: 1.9rem;
}
.ev.current .row {
  background: var(--accent-soft);
}
@media (max-width: 1279px) {
  .evpanel {
    display: none !important;
  }
}
/* Our detail page inside the panel */
body.embed .page {
  padding: 18px 24px 40px;
}
body.embed .card {
  margin-top: 0;
}

/* /agents: install Build Club in an AI agent */
.agents {
  max-width: 760px;
}
.agents h1 {
  font: 700 2.3rem/1.1 var(--display);
  letter-spacing: -0.03em;
  margin: 18px 0 10px;
}
.agents h2 {
  margin: 34px 0 10px;
}
.agents .lede {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 640px;
}
.mcpurl,
.snippet {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 10px 10px 10px 14px;
}
.mcpurl {
  align-items: center;
  margin: 16px 0 0;
}
.mcpurl code {
  flex: 1;
  font-size: 1.05rem;
  font-weight: 600;
}
.snippet pre {
  flex: 1;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.86rem;
  line-height: 1.5;
}
.mcpurl button,
.snippet button {
  font: inherit;
  font-size: 0.82rem;
  border: 1px solid var(--rule);
  background: var(--bg);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  color: var(--ink);
  flex-shrink: 0;
}
.client {
  margin: 0 0 18px;
}
.client h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}
.client p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.92rem;
}
.prompts {
  padding-left: 18px;
}
.prompts li {
  margin: 6px 0;
}
.tools {
  margin: 0;
  display: grid;
  gap: 8px;
}
.tools div {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 12px;
}
.tools dd {
  margin: 0;
  color: var(--muted);
}
.agents .note {
  color: var(--muted);
  font-size: 0.9rem;
}
.agents code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
@media (max-width: 560px) {
  .tools div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
.agents p a,
.agents .lede a {
  color: var(--accent);
}

/* Wide screens: rows open the panel; no inline expansion or chevrons. */
@media (min-width: 1280px) {
}
.evpanel .pa .ghost {
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--ink);
  font-size: 0.88rem;
}
/* Our detail page in the panel: one quiet line with the source link, the close button. */
.evpanel .ph.bare {
  flex-wrap: nowrap;
  align-items: center;
  padding: 8px 16px 8px 24px;
}
.evpanel .ph.bare .pwhen {
  flex: 1;
}
.evpanel .ph.bare .pwhen a {
  color: var(--accent);
}
.evpanel .ph.bare .pa {
  order: 0;
  flex: 0 0 auto;
}
.evpanel .link.quiet {
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

/* Parsed platform details on the detail page */
/* The platform's cover image sits in the card: a full-width banner on phones, a column
   beside the title and facts from 760 px. Never cropped (Luma covers are often portrait). */
.card .cover {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  border-radius: 14px;
  background: var(--bg);
}
.card .eyebrow .lang {
  margin-left: 8px;
}
.hosts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.host {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
}
a.host:hover {
  color: var(--accent);
}
.host img,
.host i {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.host i {
  display: inline-grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font: 600 0.72rem var(--display);
  font-style: normal;
}
.prose {
  max-width: 68ch;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.prose p {
  margin: 0 0 12px;
}
.prose h3 {
  font: 600 1.05rem/1.3 var(--display);
  margin: 22px 0 8px;
}
.prose ul,
.prose ol {
  margin: 0 0 12px;
  padding-left: 1.3em;
}
.prose li {
  margin: 3px 0;
}
.prose a {
  color: var(--accent);
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 18px 0;
}
.prose code {
  font:
    0.9em ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0 4px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 10px;
}
.tags span {
  font-size: 0.84rem;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 3px 10px;
}
.pagenda {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 68ch;
}
.pagenda li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--rule);
}
.pagenda b {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pfaq summary {
  cursor: pointer;
  padding: 6px 0;
}
.pfaq p {
  margin: 0 0 8px;
  color: var(--muted);
}

/* Account: a quiet link top right ("Sign in", or your first name) */
.top {
  position: relative;
}
.acct-link {
  position: absolute;
  top: 30px;
  right: 0;
}
.signin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  color: var(--muted);
}
.signin:hover {
  color: var(--accent);
}
.signin img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}
@media (min-width: 1100px) {
  .acct-link {
    top: 44px;
  }
}
body.panel-open .acct-link {
  display: none;
}

/* Want to attend (detail page): a small toggle and Build Club's own count */
.bcattend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--muted);
}
.attendbtn {
  font: inherit;
  border: 1px solid var(--rule);
  background: none;
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
}
.attendbtn:hover {
  border-color: var(--faint);
}
.attendbtn[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.bcattend .note {
  flex-basis: 100%;
  font-size: 0.84rem;
}
.bcattend .note a {
  color: var(--accent);
}

/* Account and privacy pages */
.acct {
  max-width: 640px;
  margin-top: 18px;
}
.acct h1 {
  font: 700 2rem/1.15 var(--display);
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}
.acct h2 {
  font: 600 1.05rem/1.3 var(--display);
  margin: 30px 0 8px;
}
.acct p {
  line-height: 1.55;
  margin: 0 0 10px;
}
.acct .who {
  display: flex;
  align-items: center;
  gap: 12px;
}
.acct .who img {
  border-radius: 50%;
}
.acct .who small {
  display: block;
  color: var(--muted);
}
.acct .calrow {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.acct .calrow .primary {
  padding: 9px 18px;
  border-radius: 999px;
}
.acct .calrow input {
  flex: 1 1 260px;
  min-width: 0;
  font:
    0.84rem ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  padding: 9px 12px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--card);
  color: var(--muted);
}
.acct form small {
  color: var(--muted);
}
.acct button.link {
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.acct button.ghost {
  font: inherit;
  background: none;
  cursor: pointer;
  padding: 9px 18px;
}
.acct .danger label {
  display: block;
  margin: 8px 0 12px;
}
.acct .danger button.ghost {
  border-color: #c2410c;
  color: #b4410f;
}
.acct a:not(.primary) {
  color: var(--accent);
}

/* Submitting an event: /submit, the preview bar, the status list on /account, the admin table */
.acct .quota,
.acct .notice {
  color: var(--muted);
  font-size: 0.92rem;
}
.acct .notice {
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--ink);
}
.subform {
  display: grid;
  gap: 14px;
  margin-bottom: 8px;
}
.subform .fld {
  display: grid;
  gap: 6px;
}
.subform label,
.subform .lbl {
  font-weight: 600;
  font-size: 0.92rem;
}
.subform input[type="text"],
.subform input[type="url"],
.subform input[type="date"],
.subform input[type="time"],
.subform textarea {
  width: 100%;
  box-sizing: border-box;
  /* 16 px or more, or iOS zooms the page on focus. */
  font: inherit;
  font-size: 16px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}
.subform textarea {
  resize: vertical;
  line-height: 1.5;
}
.subform .fld small {
  color: var(--muted);
  font-size: 0.84rem;
}
.subform .bad input,
.subform .bad textarea {
  border-color: #c2410c;
}
.subform .err {
  margin: 0;
  color: #b4410f;
  font-size: 0.86rem;
}
.subform .row3 {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 10px;
}
.subform label.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}
.subform .primary {
  justify-self: start;
  padding: 10px 20px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  cursor: pointer;
}
.subform .primary[disabled] {
  opacity: 0.5;
  cursor: default;
}
.previewbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 14px 0 6px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--accent-soft);
}
.previewbar p {
  flex: 1 1 260px;
  margin: 0;
}
.previewbar form {
  margin: 0;
}
.previewbar button {
  font: inherit;
  cursor: pointer;
  padding: 9px 18px;
  border-radius: 999px;
}
.previewbar button.primary {
  border: 0;
}
.byorg {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
}
.subs {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}
.subs li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.subs .subname {
  min-width: 0;
  overflow-wrap: anywhere;
}
.subs .subname small {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}
.subs .st {
  flex: none;
  max-width: 48%;
  text-align: right;
  font-size: 0.9rem;
}
.subs .st-review {
  color: var(--muted);
}
.subs .st-rejected {
  color: #8a5a12;
}
.acct.admin {
  max-width: none;
}
.subtable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.subtable th,
.subtable td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px 8px 0;
  border-bottom: 1px solid var(--rule);
}
.subtable form {
  display: inline;
}
@media (max-width: 520px) {
  .subform .row3 {
    grid-template-columns: 1fr 1fr;
  }
  .subform .row3 .fld:first-child {
    grid-column: 1 / -1;
  }
  .subs li {
    flex-direction: column;
    gap: 4px;
  }
  .subs .st {
    max-width: none;
    text-align: left;
  }
}

/* A day's list: multi-day events continuing from earlier days, after the day's own */
.still {
  font: 500 0.82rem var(--sans);
  color: var(--muted);
  letter-spacing: 0.02em;
  margin: 18px 0 2px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
}

/* The Sunday email signup, above the footer */
.digest {
  max-width: 640px;
  margin: 40px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--card);
}
.digest h2 {
  font: 600 1.05rem/1.3 var(--display);
  margin: 0 0 6px;
}
.digest p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.digestform {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.digestform input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  font: inherit;
  font-size: 16px;
  padding: 10px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
}
.digest .digestnote,
.acct .digestnote {
  margin: 8px 0 0;
  color: var(--faint);
  font-size: 0.8rem;
}
.textlink {
  font: inherit;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.digestoff .textlink {
  font-size: 0.8rem;
}
.digestform .primary {
  padding: 10px 18px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  cursor: pointer;
}

/* The server-rendered list search engines read; the app replaces it on load. */
.seo-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}
.seo-list li {
  padding: 6px 0;
}
.seo-list span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Save (star) and Not interested (x) on every card. The x shows on hover and keyboard focus;
   on touch screens a swipe left does it. */
.acts {
  display: flex;
  gap: 2px;
  align-items: center;
  align-self: start;
  margin-top: 4px;
}
.acts button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--faint);
  cursor: pointer;
  padding: 0;
}
/* Hover only where a pointer hovers: on phones :hover sticks after a tap (a white circle around
   the star). Touch gets press feedback from :active instead. */
@media (hover: hover) {
  .acts button:hover {
    color: var(--ink);
    background: var(--card);
  }
}
.acts button:active {
  background: var(--hover);
}
.acts svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Starred is a filled amber star, unstarred an outline, on every device and in every state. */
.acts .starbtn[aria-pressed="true"] {
  color: #c48a00;
}
.acts .starbtn[aria-pressed="true"] svg {
  fill: currentColor;
}
.starbtn.pop svg {
  animation: star-pop 160ms cubic-bezier(0.2, 0, 0, 1);
}
@keyframes star-pop {
  50% {
    transform: scale(1.28);
  }
}
.starchip.tick {
  animation: chip-tick 180ms cubic-bezier(0.2, 0, 0, 1);
}
@keyframes chip-tick {
  50% {
    transform: scale(1.08);
  }
}
.hidebtn {
  opacity: 0;
  transition: opacity 0.12s;
}
.ev:hover .hidebtn,
.hidebtn:focus-visible,
.ev:focus-within .hidebtn {
  opacity: 1;
}
@media (hover: none) {
  .hidebtn {
    display: none !important;
  }
}
/* The swipe: the row slides, a "Hide" label shows behind it. */
.ev .row {
  touch-action: pan-y;
}
.ev {
  position: relative;
}
.ev.swiping {
  overflow: hidden;
}
.ev.swiping::before {
  position: absolute;
  inset: 0 -10px;
  display: flex;
  align-items: center;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 600;
}
.ev.dir-hide::before {
  content: "Hide";
  justify-content: flex-end;
  background: var(--hover);
  color: var(--muted);
}
.ev.dir-save::before {
  content: "★ Save";
  justify-content: flex-start;
  background: #fbf0d2;
  color: #8a5d00;
}
.ev.dir-hide.armed::before,
.ev.dir-hide.revealed::before {
  background: #e9e4da;
  color: var(--ink);
}
.ev.dir-save.armed::before,
.ev.dir-save.revealed::before {
  background: #f5dc93;
  color: #6b4700;
}
.ev.swiping .row {
  position: relative;
  background: var(--bg);
}
.toast {
  position: fixed;
  left: 50%;
  /* Clear of the home indicator and Safari's bottom bar. */
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px 4px 3px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(24, 24, 27, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 0);
  transition:
    opacity 0.15s,
    transform 0.15s,
    visibility 0s 0.15s;
}
.toast.on {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition:
    opacity 0.15s,
    transform 0.15s;
}
.toast .sep {
  color: var(--faint);
}
.toast button {
  font: inherit;
  font-weight: 600;
  color: var(--accent);
  padding: 4px 8px;
  border-radius: 999px;
  cursor: pointer;
}

/* Sign in to save or hide: a bottom sheet on phones, a small dialog on wider screens. */
.signsheet {
  border: 0;
  padding: 0;
  border-radius: 18px;
  width: min(420px, calc(100vw - 32px));
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 18px 50px rgba(24, 24, 27, 0.22);
}
.signsheet::backdrop {
  background: rgba(24, 24, 27, 0.32);
}
/* Sheets rise into place; the dimmed page fades in under them. */
.signsheet[open] {
  animation: sheet-in 220ms cubic-bezier(0.2, 0, 0, 1);
}
.signsheet[open]::backdrop {
  animation: fade-in 220ms cubic-bezier(0.2, 0, 0, 1);
}
@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}
.ss-body {
  display: grid;
  gap: 12px;
  padding: 22px 22px 18px;
}
.ss-body h2 {
  margin: 0;
  font: 600 1.15rem/1.3 var(--display);
}
.ss-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.ss-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.ss-not {
  font: inherit;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
@media (max-width: 700px) {
  .signsheet {
    margin: auto 0 0;
    width: 100vw;
    max-width: 100vw;
    border-radius: 18px 18px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .signsheet[open] {
    animation: sheet-up 240ms cubic-bezier(0.2, 0, 0, 1);
  }
}
@keyframes sheet-up {
  from {
    transform: translateY(100%);
  }
}

/* Phones: one action per spot. The card opens our detail page (the organiser's link is there),
   the star has a 44 pt target, and the outbound arrow goes. */
@media (hover: none) and (pointer: coarse) {
  .row .go {
    display: none !important;
  }
  .row {
    grid-template-columns: 54px 1fr 44px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }
  .acts {
    margin: -6px -6px 0 0;
  }
  .acts .starbtn {
    width: 44px;
    height: 44px;
  }
  .acts .starbtn svg {
    width: 22px;
    height: 22px;
  }
}
/* Reduced motion: every change is instant (docs/motion.md). */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after,
  ::backdrop {
    animation: none !important;
    transition: none !important;
  }
}
.coach {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 4px;
  padding: 10px 12px 10px 14px;
  border-radius: 12px;
  background: var(--accent-soft);
  font-size: 0.9rem;
}
.coach button {
  flex: none;
  font: inherit;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: 0;
  padding: 6px 4px;
}
.as-list {
  display: grid;
  gap: 2px;
}
.as-list button,
.as-list a {
  display: block;
  text-align: left;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: none;
  border: 0;
  border-radius: 10px;
  padding: 13px 10px;
  text-decoration: none;
  cursor: pointer;
}
.as-list button:active,
.as-list a:active {
  background: var(--hover);
}
.actsheet h2 {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 500;
}

/* Hover tint only where there is a pointer that hovers (on iPhones :hover sticks after a tap). */
@media (hover: hover) {
  .row:hover {
    background: var(--hover);
  }
}

/* The order switch and, once something is starred, a chip to the starred events. */
.orderrow {
  display: flex;
  align-items: center;
  gap: 10px;
}
.starchip {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: #8a5d00;
  background: #fbf0d2;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  min-height: 36px;
  cursor: pointer;
}
