/* SSA site expansion — pages, featured event, aux, games, themes, modals */

.page-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in oklch, var(--paper) 92%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  height: auto;
  min-height: 56px;
}
.nav-links button {
  appearance: none;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.nav-links button:hover { background: var(--surface-2); }

.theme-label { display: none !important; }

/* ---------- Page shell ---------- */
.page-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 100px clamp(16px, 4vw, 32px) 80px;
  position: relative;
  z-index: 1;
}
.page-hero { text-align: center; padding: 20px 0 36px; }
.page-hero h1 { margin: 8px 0 12px; font-size: clamp(36px, 7vw, 68px); letter-spacing: -.055em; }
.page-hero p { color: var(--muted); max-width: 540px; margin: 0 auto; line-height: 1.65; }

/* ---------- Featured hiking event ---------- */
.featured-event {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
  background: linear-gradient(135deg, color-mix(in oklch, var(--green) 14%, var(--surface)), var(--surface));
  box-shadow: var(--shadow-soft);
}
.featured-event-art {
  position: relative;
  min-height: 260px;
  background: linear-gradient(180deg, var(--blue-2), color-mix(in oklch, var(--green) 20%, var(--surface-2)));
}
.featured-event-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fe-mtn { fill: color-mix(in oklch, var(--ink) 65%, var(--surface)); }
.fe-mtn-back { opacity: .35; }
.fe-mtn-mid { opacity: .55; }
.fe-mtn-front { opacity: .85; }
.fe-sun { fill: var(--accent); }
.fe-trail { fill: none; stroke: var(--paper); stroke-width: 3; stroke-dasharray: 8 10; stroke-linecap: round; }
.featured-event-body { padding: clamp(22px, 4vw, 36px); }
.featured-event-body h3 { margin: 0 0 4px; font-size: clamp(28px, 5vw, 44px); letter-spacing: -.04em; }
.featured-location { font-weight: 850; color: var(--accent); margin: 0 0 10px; }
.featured-copy { color: var(--muted); line-height: 1.65; margin: 0 0 18px; font-size: 15px; }
.featured-countdown { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.fc-cell {
  min-width: 62px; padding: 10px 6px; text-align: center;
  border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface);
}
.fc-cell b { display: block; font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; }
.fc-cell span { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
@media (max-width: 860px) { .featured-event { grid-template-columns: 1fr; } .featured-event-art { min-height: 160px; } }

/* ---------- Connect modal chips ---------- */
.interest-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.interest-chip {
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface);
  color: var(--ink-2); padding: 10px 16px; font-weight: 800; font-size: 13px; cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
}
.interest-chip:hover { border-color: var(--ink); transform: translateY(-1px); }
.interest-chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
[data-theme="dark"] .interest-chip.active { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.connect-modal-form { display: grid; gap: 10px; }
.connect-modal-form input,
.connect-modal-form textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 14px;
  padding: 13px 14px; background: var(--surface); color: var(--ink);
}
.connect-modal-form input:focus,
.connect-modal-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--blue-2); }
.connect-modal-form output { font-weight: 800; color: var(--green); font-size: 14px; min-height: 18px; }

/* Clickable program cards */
.focus-card-clickable { cursor: pointer; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.focus-card-clickable:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.focus-card-clickable::after {
  content: "Suggest an event →"; display: block; margin-top: 14px; font-weight: 850;
  font-size: 13px; color: var(--accent);
}

/* ---------- Games console ---------- */
.games-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 24px;
}
.game-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  text-decoration: none; color: inherit; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.game-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.game-tile h3 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.game-tile p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.game-tile-cta { font-weight: 850; font-size: 13px; color: var(--accent); margin-top: 6px; }

/* SSA Daily */
.daily-board { display: grid; gap: 6px; max-width: 320px; margin: 0 auto 18px; }
.daily-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.daily-cell {
  aspect-ratio: 1; display: grid; place-items: center; font-size: 22px; font-weight: 900;
  text-transform: uppercase; border: 2px solid var(--line-strong); border-radius: 10px; background: var(--surface);
}
.daily-cell.correct { background: oklch(70% 0.14 150); border-color: oklch(70% 0.14 150); color: #fff; }
.daily-cell.present { background: oklch(78% 0.13 90); border-color: oklch(78% 0.13 90); color: #fff; }
.daily-cell.absent { background: var(--surface-2); color: var(--muted); }
.daily-keys { display: grid; gap: 6px; max-width: 480px; margin: 0 auto; }
.daily-key-row { display: flex; gap: 5px; justify-content: center; flex-wrap: wrap; }
.daily-game-wrap { max-width: 760px; }
.daily-game-wrap .daily-board { margin-top: 22px; }
.daily-key-wide { min-width: 64px; font-size: 11px; }
.daily-result { margin: 20px auto; text-align: center; }
.daily-result form { display: flex; gap: 8px; max-width: 380px; margin: 12px auto; flex-wrap: wrap; }
.daily-result input {
  flex: 1; min-width: 170px; border: 2px solid var(--line-strong);
  border-radius: 14px; padding: 12px; background: var(--surface); color: var(--ink);
}
.daily-table { width: 100%; border-collapse: collapse; }
.daily-table th, .daily-table td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--line); }
.daily-key {
  min-width: 32px; height: 44px; padding: 0 8px; border-radius: 8px;
  border: 1px solid var(--line-strong); background: var(--surface); font-weight: 800; font-size: 13px;
  text-transform: uppercase; cursor: pointer;
}
.daily-stage { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 20px; }

/* ---------- Want The Aux ---------- */
.aux-page { position: relative; overflow: hidden; }
.aux-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .35;
}
.aux-bg svg { width: 100%; height: 100%; }
.aux-main { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 90px 24px 80px; }
.aux-header { text-align: center; margin-bottom: 24px; }
.aux-header h1 { font-size: clamp(34px, 7vw, 56px); letter-spacing: -.05em; margin: 0 0 8px; }
.aux-dj-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.aux-dj-bar[hidden] { display: none; }
.aux-now {
  display: flex; align-items: center; gap: 24px; min-height: 156px; padding: 22px 26px;
  border-radius: 24px; border: 1px solid var(--line);
  background: var(--surface); margin-bottom: 24px; box-shadow: var(--shadow);
}
.aux-now img { width: 112px; height: 112px; border-radius: 18px; object-fit: cover; background: var(--surface-2); }
.aux-now-copy { flex: 1; min-width: 0; }
.aux-np-title { margin-top: 5px; font-weight: 900; font-size: clamp(24px, 3vw, 36px); letter-spacing: -.035em; }
.aux-np-artist { margin-top: 4px; color: var(--muted); font-size: 16px; font-weight: 700; }
.aux-search { margin-top: 14px; }
.aux-search input {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 14px 18px; background: var(--surface); color: var(--ink); font-weight: 600;
}
.aux-dashboard { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(320px, .8fr); gap: 24px; align-items: start; }
.aux-request-queue { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.aux-request-queue .aux-section-head h2 { margin: 4px 0 18px; font-size: clamp(24px, 3vw, 34px); }
.aux-choose-card { margin-bottom: 20px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.aux-choose-card h2 { margin: 4px 0 0; font-size: 24px; }
.aux-queue { display: grid; gap: 10px; }
.aux-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface);
}
.aux-item img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.aux-item-main { flex: 1; min-width: 0; }
.aux-item-song { font-weight: 850; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aux-item-meta { color: var(--muted); font-size: 12px; font-weight: 700; }
.aux-remove-own { min-height: 36px; padding: 0 12px; flex-shrink: 0; font-size: 12px; }
.aux-empty { text-align: center; color: var(--muted); padding: 24px; font-weight: 700; }
.aux-results { display: grid; gap: 8px; margin-top: 10px; }
.aux-result-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
}
.aux-connect-btn { margin-top: 8px; }
.aux-spotify-queue { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.aux-spotify-queue summary { display: flex; align-items: center; gap: 11px; cursor: pointer; padding: 16px 18px; font-size: 16px; font-weight: 850; list-style: none; user-select: none; }
.aux-spotify-queue summary::-webkit-details-marker { display: none; }
.aux-spotify-queue[open] summary { border-bottom: 1px solid var(--line); }
.aux-spotify-queue .aux-spotify-list { padding: 10px; }
.aux-spotify-queue .aux-empty { margin: 0; }
.aux-list-icon { display: grid; gap: 3px; width: 18px; flex: 0 0 18px; transition: transform .2s ease; }
.aux-list-icon i { display: block; height: 2px; border-radius: 2px; background: currentColor; }
.aux-spotify-queue:not([open]) .aux-list-icon { transform: rotate(90deg); }
.aux-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.aux-spotify-list { display: grid; gap: 8px; }
.aux-spotify-item {
  display: grid; grid-template-columns: 22px 44px 1fr; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
}
.aux-queue-number { color: var(--muted); font-size: 12px; font-weight: 900; text-align: center; }
.aux-spotify-item img { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; }
.aux-spotify-item div { display: grid; min-width: 0; }
.aux-spotify-item strong, .aux-spotify-item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aux-spotify-item span { color: var(--muted); font-size: 12px; }
.aux-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120; transform: translate(-50%, 24px);
  max-width: min(420px, calc(100vw - 32px)); padding: 13px 18px; border-radius: 999px;
  background: var(--ink); color: var(--paper); box-shadow: var(--shadow); font-weight: 800;
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.aux-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Newsletter ---------- */
.nl-archive { display: grid; gap: 12px; margin-top: 20px; }
.nl-card {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px;
  background: var(--surface); text-decoration: none; color: inherit;
  transition: border-color .2s ease, transform .2s ease;
}
.nl-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.nl-block { margin: 16px 0; }
.nl-block h2 { font-size: 22px; margin: 0 0 8px; }
.nl-block img { max-width: 100%; border-radius: 14px; margin: 8px 0; }
.nl-timeline-row { display: flex; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.nl-timeline-row time { font-weight: 850; min-width: 56px; color: var(--accent); }

/* CMS studio */
.studio-layout { display: grid; gap: 16px; }
.studio-toolbar { display: flex; flex-wrap: wrap; gap: 8px; }
.studio-block {
  border: 1px dashed var(--line-strong); border-radius: 14px; padding: 14px; background: var(--surface);
}
.studio-block select, .studio-block input, .studio-block textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 10px; background: var(--surface); color: var(--ink); margin-top: 6px;
}
.studio-main { max-width: 1180px; }
.studio-newsletter { display: grid; gap: 22px; }
.studio-title-input {
  width: min(820px, 100%); margin: 0 auto; padding: 18px 22px;
  border: 2px solid var(--ink); border-radius: 22px; background: var(--surface);
  color: var(--ink); text-align: center; font-size: clamp(28px, 5vw, 48px); font-weight: 850;
}
.studio-canvas { position: relative; padding: 34px 0; }
.studio-paper {
  position: relative; z-index: 2; max-width: 760px; margin: 0 auto;
  padding: clamp(24px, 5vw, 54px); border: 2px solid var(--ink); border-radius: 32px;
  background: var(--surface); box-shadow: var(--shadow);
}
.studio-required-note { text-align: center; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.studio-required-note p { color: var(--muted); margin: 6px 0; }
.studio-photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 24px 0 30px; }
#studioBlocks { display: grid; gap: 16px; }
.studio-block { border-style: solid; padding: 18px; }
.studio-block header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; text-transform: capitalize; }
.studio-block header button { border: 0; background: none; color: var(--accent); cursor: pointer; font-weight: 800; }
.studio-required { font-size: 10px; color: var(--blue); text-transform: uppercase; letter-spacing: .1em; }
.studio-block-heading textarea { font-size: 24px; font-weight: 850; }
.studio-block-paragraph textarea { font-family: Georgia, serif; font-size: 17px; line-height: 1.6; }
.studio-block-announcement { background: var(--blue-2); border-color: var(--blue); }
.studio-block img { display: block; max-width: 220px; max-height: 180px; object-fit: cover; margin: 12px auto; }
.studio-inline-drop {
  display: grid; place-items: center; min-height: 90px; border: 2px dashed var(--line-strong);
  border-radius: 14px; cursor: pointer; color: var(--muted);
}
.studio-inline-drop input { position: absolute; opacity: 0; pointer-events: none; }
.studio-add-section { display: grid; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); text-align: center; }
.studio-toolbar { justify-content: center; }
.studio-polaroid {
  position: relative; width: 100%; min-height: 220px; padding: 12px 12px 42px;
  border: 2px dashed var(--blue); border-radius: 6px; background: var(--blue-2);
  box-shadow: var(--shadow-soft); transform: rotate(var(--rot)); cursor: pointer;
  display: grid; place-items: center; text-align: center; color: var(--muted);
}
.studio-polaroid [data-polaroid-input] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.studio-polaroid .studio-polaroid-caption {
  position: relative; z-index: 2; width: 100%; margin-top: 10px; padding: 8px 4px 4px;
  border: 0; border-top: 1px dashed rgba(32, 36, 45, .25); border-radius: 0;
  background: transparent; color: #242830; font-family: "Caveat", cursive;
  font-size: 20px; text-align: center;
}
.studio-polaroid img { display: none; width: 100%; aspect-ratio: 1; object-fit: cover; }
.studio-polaroid.filled { border-style: solid; background: #fff; }
.studio-polaroid.filled img { display: block; }
.studio-polaroid.filled span { display: none; }
.studio-polaroid.dragging { border-color: var(--blue); background: var(--blue-2); transform: rotate(var(--rot)) scale(1.03); }
.studio-save-bar {
  position: static; z-index: 10; display: flex; align-items: center;
  justify-content: center; gap: 12px; flex-wrap: wrap; width: 100%;
  margin: 18px 0 0; padding: 18px 0 0;
  border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent;
}
.studio-password-sheet { width: min(460px, calc(100vw - 28px)); text-align: center; }

/* ---------- Board / stories / donate ---------- */
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.board-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; background: var(--surface); }
.board-role { font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.story-grid { display: grid; gap: 18px; }
.story-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.story-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.story-card-body { padding: 18px 20px; }
.donate-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin: 20px 0; }
.donate-tiers a {
  text-decoration: none; color: inherit; text-align: center; padding: 18px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
  transition: transform .2s ease, border-color .2s ease;
}
.donate-tiers a:hover { transform: translateY(-3px); border-color: var(--ink); }
.donate-tiers strong { display: block; font-size: 22px; }

/* Compact shared navigation and collapsible Options. */
.nav { gap: 12px; }
.nav-links { gap: 4px; }
.nav-links > a,
.nav-options-toggle { white-space: nowrap; }
.nav-options { position: relative; margin-left: 14px; }
.nav-options-toggle {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0 !important;
  border: 1px solid var(--line-strong) !important;
  background: var(--surface) !important; color: var(--ink) !important;
}
.nav-options-toggle::before { display: none !important; }
.nav-options-toggle.active { border-color: var(--accent) !important; }
.nav-options-icon,
.nav-options-icon::before,
.nav-options-icon::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor;
}
.nav-options-icon { position: relative; }
.nav-options-icon::before,
.nav-options-icon::after { content: ""; position: absolute; left: 0; }
.nav-options-icon::before { top: -6px; }
.nav-options-icon::after { top: 6px; }
.nav-options-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 80;
  display: none; min-width: 210px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 18px; box-shadow: var(--shadow);
}
.nav-options.open .nav-options-menu { display: grid; }
.nav-options-menu a,
.nav-options-menu button {
  display: block; width: 100%; padding: 11px 13px !important;
  border-radius: 12px !important; text-align: left; color: var(--ink) !important;
  background: transparent !important; text-decoration: none;
}
.nav-options-menu a::before { display: none; }
.nav-options-menu a:hover,
.nav-options-menu button:hover { background: var(--surface-2) !important; color: var(--ink) !important; }
.nav-tools { margin-left: auto; }
.theme-toggle { width: 40px; min-width: 40px; padding: 0; justify-content: center; }

.connect-modal-form select {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 14px;
  padding: 13px 14px; background: var(--surface); color: var(--ink);
}

/* Reusable gallery visual language. */
.dot-grid-surface,
.events-promo-list,
.newsletter-page-shell {
  background-color: var(--paper);
  background-image: radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 0);
  background-size: 26px 26px;
}
.handwritten { font-family: "Caveat", cursive; font-size: 1.25em; }
.events-promo-list { display: grid; gap: 18px; padding: 20px; border-radius: 28px; }
.event-promo {
  display: grid; grid-template-columns: minmax(130px, .34fr) 1fr;
  gap: 16px; padding: 16px; border: 2px solid var(--ink); border-radius: 28px;
  background: var(--surface); box-shadow: var(--shadow-soft);
}
.event-promo-stat {
  display: grid; place-content: center; text-align: center; min-height: 190px;
  padding: 24px;
  border: 2px solid #fff; border-radius: var(--radius);
  background: var(--paper); color: var(--ink); box-shadow: var(--shadow-soft);
}
.event-promo-stat strong { font-size: clamp(38px, 6vw, 66px); line-height: 1; }
.event-promo-stat span { font-family: "Caveat", cursive; font-size: 22px; }
.event-promo-copy { padding: clamp(22px, 4vw, 38px); }
.event-promo-copy h3 { margin: 4px 0 8px; font-size: clamp(25px, 4vw, 38px); }
.event-promo-copy p { color: var(--muted); line-height: 1.6; }
.event-promo-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.newsletter-polaroids { display: flex; gap: 12px; justify-content: center; margin: 18px 0; }
.newsletter-polaroids .polaroid { width: 150px; margin: 0; padding: 8px 8px 26px; }
.newsletter-polaroids .polaroid figcaption { font-size: 16px; }
.newsletter-feature {
  border: 2px solid var(--ink); border-radius: 34px; overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow); margin-bottom: 26px;
}
.newsletter-feature-label {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px; background: var(--blue-2); border-bottom: 1px solid var(--line);
  font-family: "Caveat", cursive; font-size: 20px;
}
.nl-article { max-width: 760px; margin: 0 auto; padding: clamp(26px, 6vw, 64px); }
.nl-article-header { text-align: center; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.nl-article-header h1 { margin: 8px 0; font-size: clamp(38px, 7vw, 66px); line-height: 1; }
.nl-article-header p { color: var(--muted); }
.nl-article-body { display: flow-root; padding-top: 20px; }
.nl-heading h2 { margin-top: 34px; font-size: clamp(26px, 4vw, 38px); }
.nl-paragraph p { font-family: Georgia, serif; font-size: 18px; line-height: 1.85; }
.nl-announcement {
  margin: 28px 0; padding: 22px; border: 2px solid var(--blue);
  border-radius: 20px; background: var(--blue-2);
}
.nl-photo { width: min(280px, 80%); margin: 32px auto; }
.nl-photo-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 34px 0 10px; align-items: start; }
.nl-photo-pair .nl-photo { width: 100%; margin: 0; }
.newsletter-subscribe-card {
  display: grid; grid-template-columns: 1fr minmax(280px, .7fr); gap: 30px;
  align-items: center; padding: clamp(24px, 5vw, 42px); margin-bottom: 36px;
  border: 2px solid var(--ink); border-radius: 28px; background: var(--surface);
}
.newsletter-subscribe-card h2 { margin: 6px 0; }
.newsletter-subscribe-card p { color: var(--muted); }
.newsletter-subscribe-card form p { margin: 0; text-align: center; font-size: 13px; }
.newsletter-editions-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 16px; }
.newsletter-editions-head h2 { margin: 6px 0 0; }
.newsletter-studio-link { font-size: 15px; padding: 14px 20px; }
.nl-archive { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.nl-card {
  display: grid; grid-template-columns: 82px 1fr; align-items: center; gap: 14px;
  padding: 16px; border: 1px solid var(--line); border-radius: 20px;
  background: var(--surface); color: var(--ink); text-decoration: none;
}
.nl-card:hover, .nl-card.is-active { border-color: var(--blue); box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.nl-card span { display: grid; gap: 4px; }
.nl-card small { color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.nl-card strong { font-size: 17px; }
.nl-card time { color: var(--muted); font-size: 12px; }
.nl-edition-polaroid { margin: 0; padding: 6px 6px 16px; background: #fff; transform: rotate(var(--rot)); box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.nl-edition-polaroid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }

.modal-open { overflow: hidden; }
.modal-card {
  position: relative; width: min(560px, calc(100vw - 28px)); max-height: min(88vh, 760px);
  overflow-y: auto; padding: clamp(22px, 4vw, 32px);
  border: 1px solid var(--line); border-radius: 24px;
  background: var(--surface); box-shadow: var(--shadow);
}
.modal-card-compact { width: min(460px, calc(100vw - 28px)); }
.modal-card-wide { width: min(920px, calc(100vw - 28px)); }
.modal-card > .eyebrow,
.modal-card > h2,
.modal-card > p { display: block; text-align: center; }
.modal-card > h2 { margin: 5px 0 10px; font-size: clamp(28px, 5vw, 38px); }
.modal-card > p { color: var(--muted); line-height: 1.6; }
.gallery-submit-sheet { width: min(560px, calc(100vw - 28px)); }
.gallery-submit-sheet .connect-modal-form { margin-top: 18px; }
.gallery-submit-open { min-width: 190px; padding: 17px 30px; font-size: 24px; }
.gallery-drop {
  position: relative; display: grid; place-items: center; gap: 7px; min-height: 150px;
  padding: 24px; border: 2px dashed var(--blue); border-radius: 20px;
  background: var(--blue-2); color: var(--blue); text-align: center; cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.gallery-drop:hover, .gallery-drop.dragging { transform: translateY(-2px); border-color: var(--ink); background: color-mix(in oklch, var(--blue-2) 74%, #fff); }
.gallery-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.gallery-drop strong { font-size: 18px; }
.gallery-drop span { color: var(--muted); font-size: 13px; }
.gallery-preview { max-width: 220px; max-height: 180px; object-fit: cover; border-radius: 12px; display: none; }
.gallery-preview.visible { display: block; }
.gallery-review-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.admin-main {
  max-width: min(1540px, 100%);
  width: 100%;
  margin-inline: auto;
  padding: 96px clamp(16px, 3vw, 32px) 72px;
}
.admin-hero {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}
.admin-hero h1 { font-size: clamp(48px, 7vw, 84px); }
.admin-hero p { margin-inline: auto; }
.admin-gate { display: grid; place-items: center; min-height: 42vh; padding: 12px 0 28px; }
.admin-gate[hidden], .admin-workspace[hidden] { display: none !important; }
.admin-gate-card {
  width: min(440px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 40px);
  border: 2px solid var(--ink);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}
.admin-gate-card h2 { margin: 8px 0 20px; font-size: clamp(28px, 5vw, 40px); }
.admin-gate-card .connect-modal-form {
  display: grid;
  gap: 12px;
  justify-items: stretch;
  text-align: left;
}
.admin-gate-card .connect-modal-form .button,
.admin-gate-card .connect-modal-form output {
  width: 100%;
  justify-self: stretch;
  text-align: center;
}
.admin-workspace {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 28px);
  align-items: start;
  width: 100%;
}
.admin-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.admin-sidebar > div { display: grid; gap: 4px; }
.admin-sidebar > div strong { font-size: 24px; line-height: 1.15; }
.admin-sidebar > div .eyebrow, .admin-content-head .eyebrow { font-size: 12px; letter-spacing: .16em; }
.admin-sidebar nav { display: grid; gap: 4px; }
.admin-sidebar nav button {
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}
.admin-sidebar nav button:hover, .admin-sidebar nav button.active { background: var(--blue-2); color: var(--blue); }
.admin-sidebar #adminSignOut {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}
.admin-content {
  min-width: 0;
  min-height: 620px;
  padding: clamp(22px, 3.5vw, 36px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.admin-content-head, .admin-editor-head, .admin-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.admin-content-head { padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.admin-content-head h2, .admin-editor-head h3, .admin-list-head h3 { margin: 4px 0 0; }
.admin-content-head h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.05; }
.admin-content-head .button,
.admin-editor-head .button,
.admin-list-head .button {
  flex-shrink: 0;
}
.admin-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.admin-stat { display: grid; gap: 6px; align-content: start; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.admin-stat span, .admin-stat small { color: var(--muted); }
.admin-stat strong { font-size: clamp(28px, 4vw, 44px); line-height: 1; }
.admin-quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.admin-quick-grid button, .admin-quick-grid a {
  display: grid;
  gap: 7px;
  align-content: start;
  width: 100%;
  min-height: 110px;
  padding: 20px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}
.admin-quick-grid span { color: var(--muted); }
.admin-editor { display: grid; gap: 16px; padding: clamp(18px, 3vw, 28px); margin-bottom: 28px; border: 2px solid var(--blue); border-radius: 24px; background: var(--blue-2); }
.admin-editor label { display: grid; gap: 7px; color: var(--ink); font-size: 13px; font-weight: 800; }
.admin-editor input, .admin-editor textarea { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.admin-checks, .admin-editor-actions, .admin-item-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-editor-actions { justify-content: flex-start; }
.admin-editor-actions .button { min-width: 160px; justify-content: center; }
.admin-editor-actions output { min-height: 20px; }
.admin-checks label { display: flex; align-items: center; }
.admin-checks input { width: auto; }
.admin-feature-choice { margin: 0; padding: 0; border: 0; }
.admin-feature-choice legend { margin-bottom: 9px; font-size: 13px; font-weight: 850; }
.admin-feature-choice > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.admin-feature-choice label { position: relative; display: block; margin: 0; cursor: pointer; }
.admin-feature-choice input { position: absolute; opacity: 0; pointer-events: none; }
.admin-feature-choice span { display: grid; place-items: center; min-height: 48px; padding: 10px 12px; border: 2px solid var(--line-strong); border-radius: 14px; background: var(--surface); text-align: center; line-height: 1.25; }
.admin-feature-choice input:checked + span { border-color: var(--blue); background: var(--blue); color: #fff; }
.admin-feature-choice small { display: block; margin-top: 7px; color: var(--muted); }
.admin-event-preview { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid color-mix(in oklch, var(--blue) 35%, var(--line)); }
.admin-preview-label { color: var(--blue); font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.admin-event-preview .featured-event { margin: 0; background: var(--surface); }
.admin-event-preview .event-card { max-width: 520px; background: var(--surface); }
.admin-gallery-drop { display: grid; place-items: center; min-height: 240px; }
.admin-gallery-prompt { display: grid; gap: 7px; place-items: center; text-align: center; }
.admin-gallery-prompt small { color: var(--muted); }
.admin-gallery-live-polaroid { display: none; width: min(280px, 78%); margin: 8px auto; padding: 10px 10px 42px; background: #fffdf7; box-shadow: var(--shadow-soft); transform: rotate(-2deg); }
.admin-gallery-live-polaroid img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.admin-gallery-live-polaroid figcaption { margin-top: 9px; color: #242424; font-family: 'Caveat', cursive; font-size: 24px; text-align: center; line-height: 1; }
.admin-gallery-drop.has-preview { padding: 18px; background: var(--paper); border-style: solid; }
.admin-gallery-drop.has-preview .admin-gallery-prompt { display: none; }
.admin-gallery-drop.has-preview .admin-gallery-live-polaroid { display: block; }
.admin-list-head { margin: 26px 0 14px; }
.admin-event-list, .admin-data-list { display: grid; gap: 10px; }
.admin-event-item, .admin-data-row { display: grid; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.admin-event-item { grid-template-columns: 76px minmax(0, 1fr) auto; }
.admin-event-item.is-draft { opacity: .62; }
.admin-event-date { display: grid; place-items: center; min-height: 62px; padding: 8px; border-radius: 14px; background: var(--ink); color: var(--paper); font-weight: 850; text-align: center; }
.admin-event-item h3, .admin-event-item p { margin: 3px 0; }
.admin-event-item p, .admin-data-row span, .admin-data-row time { color: var(--muted); font-size: 13px; }
.admin-item-actions { justify-content: flex-end; }
.admin-item-actions .button { justify-content: center; min-width: 88px; }
.admin-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.admin-gallery-item { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.admin-gallery-item img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.admin-gallery-item > div { display: grid; gap: 8px; padding: 14px; justify-items: start; }
.admin-gallery-item .button { width: 100%; justify-content: center; }
.admin-gallery-item small { color: var(--muted); }
.admin-data-row { grid-template-columns: minmax(0, 1fr) auto; }
.admin-data-row > div { display: grid; gap: 5px; }
.admin-data-row > div:last-child { justify-items: end; align-content: center; }
.admin-data-row p { margin: 2px 0 0; line-height: 1.55; }
.admin-empty { padding: 50px 20px; border: 1px dashed var(--line-strong); border-radius: 20px; text-align: center; color: var(--muted); }
.admin-danger { margin-top: 18px; color: var(--accent); }
.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 750;
}
.featured-event-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.aux-spotify-btn {
  background: var(--green) !important; border-color: var(--green) !important; color: #fff !important;
}
.aux-spotify-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
@media (max-width: 1100px) {
  .aux-dashboard { grid-template-columns: minmax(0, 1.4fr) minmax(300px, .8fr); }
}
@media (max-width: 900px) {
  .admin-workspace { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; }
  .admin-sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-options { width: 100%; margin-left: 0; }
  .nav-options-toggle { display: none; }
  .nav-options-menu {
    position: static; display: grid !important; min-width: 0; margin: 0;
    padding: 0; gap: 4px; border: 0; background: transparent; box-shadow: none;
  }
  .nav-options-menu a { padding: 14px 16px; }
  .studio-canvas { padding: 12px; }
  .studio-photo-grid { gap: 14px; }
  .studio-polaroid { min-height: 150px; transform: rotate(var(--rot)); }
  .aux-dashboard { grid-template-columns: 1fr; }
  .aux-main { padding-inline: 16px; }
}
@media (max-width: 640px) {
  .admin-main { padding-top: 84px; }
  .admin-form-grid, .admin-quick-grid, .admin-stat-grid { grid-template-columns: 1fr; }
  .admin-event-item, .admin-data-row { grid-template-columns: 1fr; }
  .admin-item-actions, .admin-data-row > div:last-child { justify-items: start; justify-content: flex-start; }
  .admin-content-head, .admin-editor-head, .admin-list-head { align-items: flex-start; }
  .nl-photo-pair { grid-template-columns: 1fr; }
  .studio-photo-grid { grid-template-columns: 1fr; }
  .studio-polaroid { transform: none; }
  .event-promo { grid-template-columns: 1fr; }
  .event-promo-stat { min-height: 120px; }
  .newsletter-polaroids .polaroid:nth-child(2) { display: none; }
  .newsletter-subscribe-card { grid-template-columns: 1fr; }
  .aux-header-eyebrow, .aux-desktop-tagline { display: none; }
  .aux-now { flex-wrap: wrap; }
  .aux-now img { width: 88px; height: 88px; }
}

/* Nav overflow on desktop. */
@media (min-width: 901px) {
  .nav-options { margin-left: 20px; }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .nav-links { justify-content: center; gap: 2px !important; }
  .nav-links a { font-size: 13px; padding: 8px 10px !important; }
  .nav-options { margin-left: 16px; }
}

.events-page-link {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: 100%; padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line-strong);
  border-radius: 24px; background: var(--surface); color: var(--ink); text-decoration: none;
  box-shadow: var(--shadow);
}
.events-page-link strong { display: block; margin-top: 5px; font-size: clamp(24px, 4vw, 42px); line-height: 1.05; }
.events-page-link > span:last-child { font-size: 34px; transition: transform .2s ease; }
.events-page-link:hover > span:last-child { transform: translateX(5px); }
.home-aux { position: relative; overflow: hidden; }
.home-aux::before {
  content: ""; position: absolute; inset: 36px 3% auto auto; width: 180px; height: 180px;
  border: 2px dashed var(--blue); border-radius: 50%; opacity: .12; pointer-events: none;
}
.home-aux-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.home-aux-card {
  position: relative; min-height: 260px; padding: 26px; border: 1px solid var(--line-strong);
  border-radius: 26px; background: var(--surface); box-shadow: var(--shadow);
}
.home-aux-card h3 { margin: 10px 0 12px; font-size: clamp(21px, 2.5vw, 30px); line-height: 1.1; }
.home-aux-card p, .home-aux-card li { color: var(--muted); line-height: 1.65; }
.home-aux-steps { background: var(--blue); color: #fff; }
.home-aux-steps .eyebrow, .home-aux-steps li { color: #fff; }
.home-aux-steps ol { margin: 14px 0 24px; padding-left: 22px; }
.programs-share { margin-top: 26px; text-align: center; }
.quick-rsvp-form { text-align: center; }
.quick-rsvp-form h3 { margin: 6px 0 18px; font-size: 28px; }
.quick-rsvp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.outreach-card { max-height: min(88dvh, 760px); overflow-y: auto; }
.outreach-options { display: grid; gap: 12px; margin-top: 22px; }
.outreach-options button {
  display: grid; grid-template-columns: 110px 1fr; gap: 4px 18px; width: 100%;
  padding: 18px; border: 1px solid var(--line-strong); border-radius: 18px;
  background: var(--surface); color: var(--ink); text-align: left; cursor: pointer;
}
.outreach-options button:hover { border-color: var(--blue); background: var(--blue-2); }
.outreach-options span { grid-row: 1 / span 2; align-self: center; color: var(--blue); font: 700 22px "Caveat", cursive; }
.outreach-options strong { font-size: 17px; }
.outreach-options small { color: var(--muted); }
.outreach-back {
  margin-bottom: 16px; padding: 0; border: 0; background: none; color: var(--blue);
  font: inherit; font-weight: 700; cursor: pointer;
}
.nl-edition-placeholder {
  display: grid; place-items: center; width: 100%; aspect-ratio: 1;
  background: var(--blue-2); color: var(--blue); font: 700 30px "Caveat", cursive;
}
.whats-new-frame {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: min(920px, calc(100vw - 24px));
}
.whats-new-sheet { width: 100%; overflow: hidden; }
.whats-new-progress { color: var(--muted); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-align: right; }
.whats-new-stage { min-height: 320px; display: grid; align-items: center; }
.whats-new-card { padding: clamp(10px, 3vw, 28px); }
.whats-new-card h2 { max-width: 640px; margin: 12px 0; font-size: clamp(34px, 6vw, 64px); line-height: .98; }
.whats-new-card p { max-width: 650px; margin-bottom: 24px; color: var(--muted); font-size: clamp(16px, 2vw, 20px); line-height: 1.65; }
.whats-new-nav { display: flex; justify-content: center; }
.whats-new-dots { display: flex; justify-content: center; gap: 7px; }
.whats-new-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.whats-new-dots i.active { width: 24px; border-radius: 999px; background: var(--blue); }
.whats-new-never {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.whats-new-never:hover { color: var(--ink); }
.whats-new-side {
  min-width: 56px;
  white-space: nowrap;
  box-shadow: var(--shadow);
}
.whats-new-side-prev { justify-self: start; }
.whats-new-side-next { justify-self: end; }
.whats-new-frame .modal-exit {
  position: absolute;
  top: -10px;
  right: -10px;
}
@media (max-width: 800px) {
  .home-aux-grid { grid-template-columns: 1fr; }
  .home-aux-card { min-height: 0; }
}
@media (max-width: 560px) {
  .hero-actions { display: grid; width: 100%; }
  .hero-actions .button { width: 100%; }
  .outreach-options button { grid-template-columns: 1fr; }
  .outreach-options span { grid-row: auto; }
  .whats-new-stage { min-height: 360px; }
  .whats-new-frame {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "sheet sheet"
      "prev next";
    gap: 12px;
  }
  .whats-new-sheet { grid-area: sheet; }
  .whats-new-side-prev { grid-area: prev; width: 100%; }
  .whats-new-side-next { grid-area: next; width: 100%; }
  .whats-new-frame .modal-exit { top: 8px; right: 8px; }
}

/* ---------- Board group scheduling (When2Meet-dense) ---------- */
.board-page-hero .board-schedule-open { margin-top: 16px; }
.board-schedule-workspace {
  scroll-margin-top: 80px;
  margin: 0;
  padding: 14px 16px 16px;
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 3px 4px 0 color-mix(in oklch, var(--ink) 12%, transparent);
  min-width: 0;
}
.board-schedule-workspace[hidden] { display: none !important; }
.schedule-pane { display: grid; gap: 8px; min-width: 0; }
.schedule-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 28px; padding: 0 2px;
}
.schedule-toolbar[hidden] { display: none !important; }
.schedule-toolbar-meta {
  margin: 0; color: var(--muted); font-size: 11px; font-weight: 750;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.schedule-share-actions {
  display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; flex-shrink: 0;
}
.schedule-share-actions .button,
.schedule-mini-btn {
  min-height: 26px; padding: 3px 8px; font-size: 10px; font-weight: 800;
  border-radius: 8px; box-shadow: none; line-height: 1.2;
}
.schedule-response-card {
  padding: 0; border: 0; border-radius: 0; background: transparent;
}
.schedule-response-intro {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px;
}
.schedule-response-lead h2 {
  margin: 0 0 2px; font-size: clamp(18px, 2.6vw, 24px); line-height: 1.15;
}
.schedule-response-lead p { margin: 0; color: var(--muted); font-size: 12px; }
.schedule-member-picker { position: relative; width: min(240px, 100%); z-index: 6; }
.schedule-member-trigger {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  width: 100%; min-height: 34px; padding: 6px 10px; border: 1.5px solid var(--ink);
  border-radius: 10px; background: var(--surface); color: var(--ink);
  font: inherit; font-size: 12px; font-weight: 800; text-align: left; cursor: pointer;
  box-shadow: 1px 2px 0 color-mix(in oklch, var(--ink) 14%, transparent);
}
.schedule-member-trigger i { font-style: normal; font-size: 14px; }
.schedule-member-menu {
  position: absolute; top: calc(100% + 6px); inset-inline: 0; max-height: 260px; overflow-y: auto;
  padding: 5px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--surface); box-shadow: var(--shadow); z-index: 20;
}
.schedule-member-menu[hidden] { display: none; }
.schedule-member-menu button {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  width: 100%; padding: 7px 8px; border: 0; border-radius: 8px;
  background: transparent; color: var(--ink); font: inherit; font-size: 12px; text-align: left; cursor: pointer;
}
.schedule-member-menu button:hover:not(:disabled) { background: var(--blue-2); color: var(--blue); }
.schedule-member-menu button:disabled { opacity: .42; cursor: not-allowed; }
.schedule-member-menu button span { font-weight: 750; }
.schedule-member-menu button small { color: var(--muted); white-space: nowrap; font-size: 10px; }
.schedule-view-tabs {
  display: inline-grid; grid-template-columns: 1fr 1fr; gap: 3px;
  margin-bottom: 8px; padding: 3px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--paper);
}
.schedule-view-tabs button {
  padding: 6px 10px; border: 0; border-radius: 7px; background: transparent;
  color: var(--muted); font: inherit; font-size: 11px; font-weight: 800; cursor: pointer;
}
.schedule-view-tabs button.active { background: var(--ink); color: var(--paper); }
.schedule-view-tabs button:disabled { opacity: .36; cursor: not-allowed; }
.schedule-grid-wrap {
  position: relative; width: 100%; max-height: none; overflow: auto;
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface);
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
.schedule-grid {
  --schedule-days: 1;
  --schedule-cell: 56px;
  --schedule-row: 28px;
  display: grid;
  grid-template-columns: 58px repeat(var(--schedule-days), var(--schedule-cell));
  min-width: calc(58px + var(--schedule-days) * var(--schedule-cell));
  width: max-content;
  max-width: 100%;
  padding: 4px; gap: 2px; user-select: none; -webkit-user-select: none;
  touch-action: pan-x pan-y;
}
.schedule-grid.is-painting { touch-action: none; cursor: crosshair; }
.schedule-grid-corner, .schedule-day-head {
  position: sticky; top: 0; z-index: 3; display: grid; place-items: center;
  min-height: 32px; padding: 3px 2px; border-bottom: 1px solid var(--ink);
  background: var(--surface); font-size: 10px; font-weight: 850; text-align: center; line-height: 1.2;
}
.schedule-grid-corner { left: 0; z-index: 4; color: var(--muted); }
.schedule-time-label {
  position: sticky; left: 0; z-index: 2; display: grid; align-items: center; justify-items: end;
  min-height: var(--schedule-row); height: var(--schedule-row); padding-right: 6px; background: var(--surface);
  color: var(--muted); font-size: 10px; font-weight: 750; white-space: nowrap;
}
.schedule-slot {
  position: relative; min-height: var(--schedule-row); height: var(--schedule-row); padding: 0; overflow: hidden;
  border: 1px solid var(--line-strong); border-radius: 3px;
  background: var(--paper); color: var(--ink); cursor: pointer;
  transition: background .12s ease, border-color .12s ease;
  touch-action: none;
}
.schedule-slot:hover:not(:disabled) { z-index: 1; border-color: var(--blue); outline: 1px solid var(--blue); }
.schedule-slot.is-blocked {
  border-color: color-mix(in oklch, var(--line) 65%, transparent);
  background: repeating-linear-gradient(135deg, transparent 0 4px, var(--surface-2) 4px 6px);
  opacity: .38; cursor: not-allowed;
}
.schedule-slot.is-empty { visibility: hidden; pointer-events: none; border: 0; background: transparent; }
.schedule-slot.is-allowed:not(.is-selected):not(.is-result) {
  border-color: color-mix(in oklch, var(--blue) 55%, var(--line));
  background: color-mix(in oklch, var(--blue-2) 55%, var(--surface));
}
.schedule-slot.is-selected {
  border-color: color-mix(in oklch, var(--blue) 70%, var(--ink));
  background: var(--blue);
}
.schedule-slot.is-selected::after { content: none; }
.schedule-slot.is-result { cursor: help; isolation: isolate; }
.schedule-slot.is-result::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--green);
  opacity: calc(var(--schedule-heat) * .92); transition: opacity .2s ease;
}
.schedule-slot.is-result span {
  display: grid; place-items: center; width: 100%; height: 100%; min-height: 20px;
  font-size: 9px; font-weight: 900;
}
.schedule-grid-help { margin: 6px 1px 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.schedule-legend {
  display: flex; align-items: center; justify-content: flex-end; gap: 4px;
  margin-top: 6px; color: var(--muted); font-size: 10px; font-weight: 750;
}
.schedule-legend[hidden] { display: none; }
.schedule-legend i { width: 14px; height: 8px; border-radius: 2px; background: var(--green); }
.schedule-legend i:nth-of-type(1) { opacity: .24; }
.schedule-legend i:nth-of-type(2) { opacity: .46; }
.schedule-legend i:nth-of-type(3) { opacity: .7; }
.schedule-legend i:nth-of-type(4) { opacity: .96; }
#scheduleOutput {
  display: block; min-height: 16px; margin-top: 6px; color: var(--green);
  font-size: 11px; font-weight: 800; text-align: center;
}
#scheduleOutput.is-error { color: var(--accent); }
.schedule-pick-first, .schedule-load-error {
  padding: 24px 14px; border: 1px dashed var(--line-strong); border-radius: 12px;
  background: var(--paper); color: var(--muted); text-align: center; font-size: 13px;
}
.schedule-pick-first h2, .schedule-load-error h2 { margin: 0 0 6px; font-size: 20px; color: var(--ink); }
.schedule-load-error { margin: 0 auto; max-width: 520px; }
.schedule-create-sheet {
  position: relative;
  width: min(640px, calc(100vw - 24px));
  max-height: 90dvh;
  overflow-y: auto;
  padding: 22px 20px 18px;
  transition: width .2s ease;
}
.schedule-create-sheet:has([data-create-panel="2"]:not([hidden])) {
  width: min(760px, calc(100vw - 20px));
  display: flex;
  flex-direction: column;
  max-height: min(92dvh, 900px);
}
.schedule-create-panel[data-create-panel="2"] {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  flex: 1;
}
.schedule-create-panel[data-create-panel="2"][hidden] { display: none !important; }
.schedule-create-grid-wrap {
  flex: 1 1 auto;
  min-height: 220px;
  max-height: min(58dvh, 520px);
  width: 100%;
  max-width: 100%;
  border-radius: 8px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}
.schedule-create-grid-wrap .schedule-grid {
  --schedule-cell: 56px;
  --schedule-row: 28px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  grid-template-columns: 58px repeat(var(--schedule-days), minmax(0, 1fr));
  min-width: 0;
  gap: 2px;
  padding: 4px;
}
.schedule-create-pager {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 2px;
}
.schedule-create-pager[hidden] { display: none !important; }
.schedule-create-pager button {
  width: 34px; height: 34px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface); color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer;
}
.schedule-create-pager button:disabled { opacity: .35; cursor: not-allowed; }
.schedule-create-pager span {
  min-width: 8.5rem; text-align: center; color: var(--muted);
  font-size: 11px; font-weight: 800;
}
.schedule-create-sheet > .modal-exit { top: 10px; right: 10px; width: 36px; height: 36px; }
.schedule-create-hero {
  display: grid; justify-items: center; gap: 4px;
  margin: 0 auto 14px; max-width: 420px; text-align: center;
}
.schedule-create-hero .eyebrow { margin: 0; }
.schedule-create-hero h2 {
  margin: 0; font-size: clamp(24px, 4vw, 32px); line-height: 1.1;
}
.schedule-create-hero p {
  margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45;
}
.schedule-create-steps {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0 auto 14px;
}
.schedule-create-steps span {
  display: grid; place-items: center; width: 24px; height: 24px;
  border: 1.5px solid var(--line-strong); border-radius: 50%;
  color: var(--muted); font-size: 11px; font-weight: 900;
}
.schedule-create-steps span.active {
  border-color: var(--blue); color: var(--blue);
  background: color-mix(in oklch, var(--blue-2) 70%, var(--surface));
}
.schedule-create-steps span.current {
  background: var(--blue); color: var(--paper); border-color: var(--blue);
}
.schedule-create-steps i {
  width: 28px; height: 2px; background: var(--line-strong); border-radius: 999px;
}
#scheduleCreateForm { display: grid; gap: 12px; margin-top: 4px; }
#scheduleCreateForm label { display: grid; gap: 4px; font-size: 11px; font-weight: 800; }
#scheduleCreateForm input {
  width: 100%; box-sizing: border-box; min-height: 36px; padding: 7px 10px;
  border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface);
  color: var(--ink); font: inherit; font-size: 13px;
}
.schedule-create-title { max-width: 100%; }
.schedule-create-panel[hidden] { display: none !important; }
.schedule-calendar {
  border: 1px solid var(--line-strong); border-radius: 14px;
  background: var(--paper); padding: 12px;
  user-select: none; -webkit-user-select: none;
}
.schedule-calendar-nav {
  display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.schedule-calendar-nav strong {
  text-align: center; font-size: 14px; letter-spacing: -.01em;
}
.schedule-calendar-nav button {
  width: 34px; height: 34px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface); color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer;
}
.schedule-calendar-nav button:hover { border-color: var(--blue); color: var(--blue); }
.schedule-calendar-weekdays,
.schedule-calendar-grid {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px;
}
.schedule-calendar-weekdays span {
  text-align: center; color: var(--muted); font-size: 10px; font-weight: 850;
  padding-bottom: 4px;
}
.schedule-calendar-grid { touch-action: none; }
.schedule-calendar-grid.is-painting { cursor: crosshair; }
.schedule-cal-empty { min-height: 38px; }
.schedule-cal-day {
  display: grid; place-items: center; min-height: 38px; padding: 0;
  border: 1px solid transparent; border-radius: 11px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: 13px;
  font-weight: 750; cursor: pointer; touch-action: none;
  transition: background .12s ease, border-color .12s ease, transform .12s ease;
}
.schedule-cal-day:hover { border-color: var(--blue); transform: translateY(-1px); }
.schedule-cal-day.is-today span {
  display: grid; place-items: center; width: 26px; height: 26px;
  border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink);
}
.schedule-cal-day.is-selected {
  border-color: color-mix(in oklch, var(--blue) 70%, var(--ink));
  background: var(--blue); color: var(--paper);
}
.schedule-cal-day.is-selected.is-today span { box-shadow: inset 0 0 0 1.5px color-mix(in oklch, white 70%, transparent); }
.schedule-create-actions {
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.schedule-create-actions .button { min-height: 34px; padding: 7px 12px; font-size: 12px; }
.schedule-create-actions .button[hidden] { display: none !important; }
.schedule-create-actions #scheduleCreateNext {
  min-width: min(280px, 100%);
  padding-inline: 28px;
}
.schedule-create-actions output { width: 100%; text-align: center; color: var(--accent); font-size: 12px; font-weight: 800; }
.schedule-tooltip {
  position: fixed; z-index: 500; pointer-events: none; padding: 10px 12px;
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface);
  color: var(--ink); box-shadow: var(--shadow); font-size: 11px; line-height: 1.4;
  max-width: 220px;
}
.schedule-tooltip[hidden] { display: none; }
.schedule-tooltip strong, .schedule-tooltip span, .schedule-tooltip b { display: block; }
.schedule-tooltip span { margin-top: 6px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 9px; }
.schedule-tooltip ul { margin: 4px 0 6px; padding-left: 14px; }
.schedule-tooltip p { margin: 4px 0 6px; color: var(--muted); }

/* Page layout */
.schedule-page {
  background:
    radial-gradient(circle at 10% 12%, color-mix(in oklch, var(--blue) 10%, transparent) 0 120px, transparent 122px),
    var(--paper);
}
.schedule-main {
  width: min(1080px, calc(100% - 28px));
  max-width: none;
  margin-inline: auto;
  padding: 88px 14px 40px;
}
.schedule-hero {
  max-width: 640px;
  margin: 0 auto 18px;
  padding: 8px 0 14px;
  text-align: center;
}
.schedule-hero h1 {
  font-family: "Caveat", cursive;
  font-size: clamp(36px, 6vw, 54px);
  margin: 4px 0 6px;
}
.schedule-hero p { margin: 0 auto 10px; max-width: 460px; font-size: 13px; color: var(--muted); }
.schedule-hero .button {
  margin-top: 2px; min-height: 36px; padding: 8px 14px; font-size: 13px;
}
.schedule-browser {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  margin: 0 auto 36px;
}
.schedule-library {
  position: sticky; top: 78px; padding: 10px;
  border: 1.5px solid var(--ink); border-radius: 14px;
  background: var(--surface); box-shadow: 2px 3px 0 color-mix(in oklch, var(--ink) 12%, transparent);
}
.schedule-library-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 0 2px 8px; border-bottom: 1px solid var(--line);
}
.schedule-library-head .eyebrow { font-size: 9px; }
.schedule-library-head h2 { margin: 0; font-size: 16px; }
.schedule-library-head > span {
  display: grid; place-items: center; min-width: 24px; height: 24px;
  border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 10px; font-weight: 900;
}
.schedule-list {
  display: grid; gap: 6px; max-height: calc(100dvh - 210px); overflow-y: auto; padding: 8px 0 0;
}
.schedule-list-item {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 26px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--paper); overflow: hidden; transition: border-color .15s ease, background .15s ease;
}
.schedule-list-item:hover { border-color: var(--blue); }
.schedule-list-item.active {
  border: 1.5px solid var(--blue); background: color-mix(in oklch, var(--blue-2) 42%, var(--surface));
}
.schedule-list-select {
  display: grid; justify-items: start; gap: 2px; min-width: 0; padding: 8px 6px 8px 9px;
  border: 0; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
.schedule-list-select strong { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.schedule-list-select small { color: var(--muted); font-size: 10px; }
.schedule-list-kicker { color: var(--blue); font-size: 8px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.schedule-list-delete {
  align-self: center; width: 22px; height: 22px; padding: 0; border: 1px solid transparent;
  border-radius: 50%; background: transparent; color: var(--muted); font: 800 16px/1 sans-serif; cursor: pointer;
}
.schedule-list-delete:hover { border-color: var(--accent); color: var(--accent); background: var(--surface); }
.schedule-list-loading, .schedule-list-empty {
  display: grid; gap: 3px; margin: 0; padding: 12px 6px; color: var(--muted); font-size: 11px; text-align: center;
}
.schedule-list-empty strong { color: var(--ink); }
.schedule-browser .board-schedule-workspace { animation: scheduleRise .32s cubic-bezier(.2,.8,.2,1); }
.schedule-save-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 10px; padding: 8px 10px; border: 1px solid var(--line-strong);
  border-radius: 10px; background: var(--paper);
  position: sticky; bottom: 8px; z-index: 5;
}
.schedule-save-bar > span { color: var(--muted); font-size: 11px; font-weight: 750; }
.schedule-save-bar .button {
  min-height: 32px; padding: 6px 14px; font-size: 12px; flex-shrink: 0;
}
.schedule-save-bar .button.is-saving { animation: scheduleSaving .8s ease-in-out infinite alternate; }
.schedule-toast {
  position: fixed; left: 50%; bottom: 20px; z-index: 900;
  display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px;
  border: 1.5px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--paper);
  box-shadow: 3px 4px 0 color-mix(in oklch, var(--blue) 30%, transparent);
  font-size: 12px; font-weight: 850; opacity: 0; transform: translate(-50%, 16px) scale(.94);
  transition: opacity .22s ease, transform .3s cubic-bezier(.2,.8,.2,1);
}
.schedule-toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.schedule-toast i {
  display: grid; place-items: center; width: 22px; height: 22px;
  border-radius: 50%; background: var(--blue); color: var(--ink); font-style: normal; font-size: 13px;
}
.schedule-loading { display: grid; place-items: center; min-height: 220px; color: var(--muted); gap: 10px; font-size: 13px; }
.schedule-loading i {
  width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--blue);
  border-radius: 50%; animation: scheduleSpin .75s linear infinite;
}
.schedule-delete-sheet {
  position: relative;
  width: min(400px, calc(100vw - 28px));
  padding: 18px 16px 16px;
}
.schedule-delete-sheet > .modal-exit { top: 10px; right: 10px; width: 36px; height: 36px; }
.schedule-delete-sheet h2 { margin: 4px 36px 4px 0; font-size: clamp(20px, 4vw, 26px); }
.schedule-delete-sheet p { margin: 0; color: var(--muted); font-size: 12px; }
#scheduleDeleteForm { display: grid; gap: 10px; margin-top: 12px; }
#scheduleDeleteForm label { display: grid; gap: 4px; font-size: 11px; font-weight: 800; }
#scheduleDeleteForm input {
  min-height: 36px; padding: 7px 10px; border: 1px solid var(--line-strong);
  border-radius: 9px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px;
}
.schedule-delete-actions { display: flex; justify-content: flex-end; gap: 6px; }
.schedule-delete-actions .button { min-height: 32px; padding: 6px 11px; font-size: 12px; }
#scheduleDeleteForm output { min-height: 14px; color: var(--accent); font-size: 11px; font-weight: 800; }

@keyframes scheduleRise { from { opacity: 0; transform: translateY(8px); } }
@keyframes scheduleSpin { to { transform: rotate(360deg); } }
@keyframes scheduleSaving { to { transform: translateY(-1px); } }

@media (max-width: 900px) {
  .schedule-browser { grid-template-columns: 1fr; gap: 12px; }
  .schedule-library { position: static; }
  .schedule-list {
    display: flex; gap: 8px; max-height: none; overflow-x: auto; overflow-y: hidden;
    padding: 8px 0 4px; scroll-snap-type: x proximity;
  }
  .schedule-list-item { flex: 0 0 min(68vw, 220px); scroll-snap-align: start; }
}
@media (max-width: 720px) {
  .schedule-main { width: min(100% - 16px, 1080px); }
  .schedule-hero { padding-inline: 4px; text-align: left; margin-bottom: 12px; }
  .schedule-toolbar { align-items: flex-start; }
  .schedule-response-intro { display: grid; gap: 8px; }
  .schedule-share-actions { justify-content: start; }
  .schedule-member-picker { width: 100%; }
  .schedule-grid {
    --schedule-cell: 52px;
    --schedule-row: 30px;
    grid-template-columns: 52px repeat(var(--schedule-days), var(--schedule-cell));
    min-width: calc(52px + var(--schedule-days) * var(--schedule-cell));
  }
  .schedule-create-sheet {
    width: calc(100vw - 12px);
    max-width: calc(100vw - 12px);
    padding: 12px 8px 10px;
    max-height: 96dvh;
    overflow-x: hidden;
  }
  .schedule-create-sheet:has([data-create-panel="2"]:not([hidden])) {
    width: calc(100vw - 12px);
    max-width: calc(100vw - 12px);
    max-height: 96dvh;
  }
  .schedule-create-hero { margin-bottom: 6px; gap: 2px; }
  .schedule-create-hero h2 { font-size: 22px; }
  .schedule-create-hero p { font-size: 11px; }
  .schedule-create-steps { margin-bottom: 8px; }
  .schedule-create-title { font-size: 10px; }
  #scheduleCreateForm { gap: 8px; }
  #scheduleCreateForm input { min-height: 34px; font-size: 12px; }
  .schedule-create-grid-wrap {
    min-height: 0;
    max-height: min(68dvh, 620px);
    border-radius: 6px;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .schedule-create-grid-wrap .schedule-grid {
    --schedule-cell: 34px;
    --schedule-row: 18px;
    width: 100%;
    max-width: 100%;
    grid-template-columns: 40px repeat(var(--schedule-days), minmax(0, 1fr));
    min-width: 0;
    gap: 1px;
    padding: 3px;
  }
  .schedule-create-grid-wrap .schedule-grid-corner,
  .schedule-create-grid-wrap .schedule-day-head {
    min-height: 24px;
    font-size: 8px;
    padding: 2px 1px;
    line-height: 1.1;
  }
  .schedule-create-grid-wrap .schedule-time-label {
    font-size: 8px;
    padding-right: 3px;
  }
  .schedule-create-grid-wrap .schedule-slot {
    border-radius: 2px;
  }
  .schedule-create-pager {
    position: sticky; bottom: 0; z-index: 2;
    padding: 4px 0; background: color-mix(in oklch, var(--surface) 92%, transparent);
  }
  .schedule-create-pager button { width: 32px; height: 32px; }
  .schedule-create-pager span { font-size: 10px; min-width: 7.5rem; }
  .schedule-create-actions .button { min-height: 32px; font-size: 11px; }
  .schedule-cal-day, .schedule-cal-empty { min-height: 34px; }
  .schedule-calendar { padding: 10px; }
  .schedule-save-bar { display: grid; gap: 8px; }
  .schedule-save-bar .button { width: 100%; }
  .schedule-toast { bottom: 12px; max-width: calc(100vw - 24px); }
}
