:root {
  --bg: #000000;
  --panel: #0b0b0b;
  --panel-2: #111111;
  --blue: #003A9C;
  --blue-hover: #084bbf;
  --text: #ffffff;
  --muted: rgba(255,255,255,.53);
  --faint: rgba(255,255,255,.11);
  --line: rgba(255,255,255,.14);
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--text);
  font-family: "Arimo", Arial, sans-serif;
  scroll-behavior: smooth;
}

body {
  position: relative;
  isolation: isolate;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: transparent;
  color: var(--text);
}

.site-background {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background: #07080c url("../images/carrd-background.jpg") center center / cover no-repeat;
}

.site-background video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

@media (prefers-reduced-motion: reduce) {
  .site-background video { display: none; }
}

button, input { font: inherit; }
a { color: inherit; text-decoration: none; }

button {
  border: 0;
  color: inherit;
}

.bg-glow {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(100px);
  pointer-events: none;
  opacity: .22;
}

.bg-glow-a {
  width: 340px;
  height: 340px;
  top: 12vh;
  left: -220px;
  background: #003A9C;
}

.bg-glow-b {
  width: 280px;
  height: 280px;
  right: -210px;
  bottom: 10vh;
  background: #003A9C;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: min(calc(100% - 32px), var(--max));
  min-height: 66px;
  margin: 14px auto 0;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  background: rgba(4,4,4,.80);
  backdrop-filter: blur(18px);
}

.brand-mini {
  justify-self: start;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: #080808;
  font-family: "League Spartan", sans-serif;
  font-size: 15px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.desktop-nav a {
  position: relative;
  padding: 8px 0;
  color: rgba(255,255,255,.55);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .10em;
  transition: color .18s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: #fff;
}

.desktop-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--blue);
}

.search-open {
  justify-self: end;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.search-open svg,
.global-search svg,
.search-field svg,
.utility-button svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-open svg { width: 16px; height: 16px; }

#app {
  width: 100%;
}

.page {
  display: none;
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  min-height: calc(100vh - 160px);
}

.page.is-active {
  display: block;
  animation: pageIn .22s ease both;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

.hero {
  width: 100%;
  max-width: 990px;
  margin: 0 auto;
  padding: 72px 0 66px;
  text-align: center;
}

.logo-wrap {
  width: 120px;
  height: 120px;
  margin: 0 auto 28px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
}

.hero-logo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #080808;
}

.hero h1 {
  margin: 0;
  font-family: "League Spartan", "Arimo", sans-serif;
  font-size: clamp(64px, 10vw, 128px);
  font-weight: 900;
  line-height: .78;
  letter-spacing: -.055em;
}

.hero-tagline {
  margin: 22px 0 0;
  color: rgba(255,255,255,.67);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 400;
}

.utility-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.utility-button {
  width: 56px;
  min-height: 54px;
  padding: 8px 5px 6px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 9px;
  background: rgba(255,255,255,.02);
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.utility-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.05);
}

.utility-button svg { width: 17px; height: 17px; }

.utility-button span {
  color: rgba(255,255,255,.45);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .08em;
}

.hero-rule {
  width: min(760px, 76%);
  height: 1px;
  margin: 40px auto;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
}

.hero-kicker {
  margin: 0 0 22px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  text-align: left;
}

.nav-card {
  position: relative;
  min-height: 150px;
  padding: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.008));
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.nav-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.22);
  background:
    linear-gradient(145deg, rgba(0,58,156,.18), rgba(255,255,255,.015));
}

.nav-card-number {
  margin-bottom: 22px;
  color: rgba(255,255,255,.24);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
}

.nav-card strong {
  margin-bottom: 7px;
  font-size: 14px;
  letter-spacing: .04em;
}

.nav-card > span:last-of-type {
  max-width: 240px;
  color: rgba(255,255,255,.43);
  font-size: 11px;
  line-height: 1.45;
}

.nav-card i {
  position: absolute;
  right: 18px;
  bottom: 16px;
  color: rgba(255,255,255,.35);
  font-style: normal;
  font-size: 16px;
}

.global-search {
  width: min(100%, 620px);
  min-height: 54px;
  margin: 22px auto 0;
  padding: 0 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  background: #080808;
  color: rgba(255,255,255,.62);
  cursor: pointer;
  text-align: left;
}

.global-search:hover {
  border-color: rgba(255,255,255,.22);
}

.global-search svg { width: 17px; height: 17px; }
.global-search span { font-size: 10px; font-weight: 700; letter-spacing: .09em; }

kbd {
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 5px;
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.38);
  font-family: inherit;
  font-size: 10px;
}

.section-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 96px 0 120px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
}

.section-shell h2 {
  margin: 0;
  font-family: "League Spartan", "Arimo", sans-serif;
  font-size: clamp(52px, 8vw, 92px);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.035em;
}

.section-intro {
  max-width: 620px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.placeholder-grid {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.placeholder-grid > * {
  min-height: 66px;
  padding: 0 16px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
  color: rgba(255,255,255,.72);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
}

.placeholder-grid button {
  cursor: pointer;
}

.site-footer {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 34px 0 48px;
  border-top: 1px solid rgba(255,255,255,.09);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a,
.footer-links button {
  padding: 0;
  background: none;
  color: rgba(255,255,255,.61);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .07em;
  cursor: pointer;
}

.footer-links.secondary {
  margin-top: 12px;
}

.footer-note {
  max-width: 760px;
  margin: 16px auto 0;
  color: rgba(255,255,255,.27);
  font-size: 9px;
  line-height: 1.55;
}

.footer-note + .footer-note {
  margin-top: 3px;
}

/* MODALS */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  padding: 20px;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.78);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .14s ease, visibility 0s linear .14s;
}

.overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .14s ease;
}

.modal {
  width: min(100%, 620px);
  max-height: 84vh;
  overflow: auto;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 30px 90px rgba(0,0,0,.60);
}

.search-modal { width: min(100%, 720px); }

.modal-head {
  padding-bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.modal-eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em;
}

.modal h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: .05em;
}

.modal-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 7px;
  background: transparent;
  color: rgba(255,255,255,.62);
  font-size: 20px;
  cursor: pointer;
}

.search-field {
  height: 54px;
  margin-top: 20px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 9px;
  background: #080808;
}

.search-field svg {
  width: 17px;
  height: 17px;
  color: rgba(255,255,255,.50);
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 13px;
}

.search-field input::placeholder {
  color: rgba(255,255,255,.30);
}

.search-results { margin-top: 12px; }

.search-empty,
.tool-content {
  padding: 22px 4px 4px;
  color: rgba(255,255,255,.46);
  font-size: 12px;
  line-height: 1.65;
}

.tool-content strong {
  color: #fff;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 880px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav { display: none; }

  .home-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .site-header {
    width: calc(100% - 20px);
    margin-top: 10px;
    padding: 0 13px;
    min-height: 58px;
  }

  .page,
  .site-footer {
    width: calc(100% - 24px);
  }

  .hero {
    padding: 54px 0 54px;
  }

  .logo-wrap {
    width: 96px;
    height: 96px;
    margin-bottom: 24px;
  }

  .hero h1 {
    font-size: clamp(58px, 22vw, 90px);
  }

  .hero-tagline {
    margin-top: 18px;
    font-size: 15px;
  }

  .hero-rule {
    margin: 34px auto;
  }

  .home-grid {
    grid-template-columns: 1fr;
  }

  .nav-card {
    min-height: 118px;
  }

  .nav-card-number {
    margin-bottom: 15px;
  }

  .section-shell {
    padding: 70px 0 90px;
  }

  .placeholder-grid {
    grid-template-columns: 1fr;
  }

  .modal {
    padding: 20px;
  }
}


/* =========================================================
   GRIDLY V1.2 — CLEAN HOME
   ========================================================= */

.site-header-clean {
  grid-template-columns: 1fr auto;
}

.top-search {
  justify-self: end;
  min-width: 168px;
  height: 38px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 7px;
  background: rgba(5,5,5,.54);
  color: rgba(255,255,255,.74);
  cursor: pointer;
  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease,
    color .18s ease;
}

.top-search:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.31);
  background: rgba(255,255,255,.05);
  color: #fff;
}

.top-search svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.top-search span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
}

.utility-row {
  gap: 17px;
  margin-top: 34px;
}

.utility-button.icon-only {
  width: 52px;
  min-height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255,255,255,.90);
}

.utility-button.icon-only:hover {
  transform: translateY(-3px) scale(1.04);
  border-color: transparent;
  background: rgba(255,255,255,.035);
  color: #fff;
}

.utility-button.icon-only svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.55;
}

.home-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 28px;
}

.home-menu-button {
  min-width: 126px;
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255,255,255,.40);
  border-radius: 0;
  background: rgba(0,0,0,.10);
  color: rgba(255,255,255,.92);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease,
    color .18s ease;
}

.home-menu-button:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.055);
  color: #fff;
}

.footer-clean-links {
  margin-top: 0 !important;
}

.site-footer {
  padding-top: 28px;
}

@media (max-width: 600px) {
  .brand-mini > span:last-child {
    display: none;
  }

  .top-search {
    min-width: 0;
    width: 42px;
    padding: 0;
  }

  .top-search span {
    display: none;
  }

  .home-menu {
    gap: 8px;
  }

  .home-menu-button {
    min-width: calc(50% - 5px);
    min-height: 42px;
  }

  .utility-button.icon-only {
    width: 48px;
    min-height: 48px;
  }

  .utility-button.icon-only svg {
    width: 28px;
    height: 28px;
  }
}


/* =========================================================
   GRIDLY V1.3 — SUBPAGE NAV + CLEANER HOME
   ========================================================= */

/* Header is hidden on HOME and appears only on internal pages */
.subpage-header {
  display: none;
  grid-template-columns: 1fr auto 1fr;
}

.subpage-header.is-visible {
  display: grid;
}

/* BACK replaces the old logo position */
.back-button {
  justify-self: start;
  min-width: 74px;
  height: 36px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 7px;
  background: transparent;
  color: rgba(255,255,255,.65);
  cursor: pointer;
  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease,
    color .18s ease;
}

.back-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.30);
  background: rgba(255,255,255,.045);
  color: #fff;
}

.back-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.back-button span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
}

/* Internal navigation only */
.subpage-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 19px;
  white-space: nowrap;
}

.subpage-nav a {
  position: relative;
  padding: 8px 0;
  color: rgba(255,255,255,.55);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  transition: color .18s ease;
}

.subpage-nav a:hover,
.subpage-nav a.is-active {
  color: #fff;
}

.subpage-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: #003A9C;
}

/* Search: icon only */
.top-search.icon-search {
  min-width: 0;
  width: 38px;
  height: 38px;
  padding: 0;
}

/* HOME vertical spacing */
.page-home .hero {
  padding-top: 83px; /* ~15% farther from the top than the previous 72px */
}

.page-home .logo-wrap {
  width: 126px;  /* +5% */
  height: 126px; /* +5% */
}

.page-home .utility-row {
  margin-top: 52px; /* more separation from logo/tagline */
}

/* Home section buttons: clean, gently rounded, slightly larger type */
.home-menu-button {
  border-radius: 7px;
  font-size: 12.6px; /* +5% */
}

/* EVENTS category tabs: one horizontal row, no ALL EVENTS */
.event-tabs {
  margin-top: 38px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 9px;
}

.event-tabs button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 7px;
  background: rgba(255,255,255,.025);
  color: rgba(255,255,255,.76);
  font-size: 10.5px; /* +5% from 10px */
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease,
    color .18s ease;
}

.event-tabs button:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.05);
  color: #fff;
}

/* Footer/legal text: +5% */
.footer-links a,
.footer-links button {
  font-size: 9.45px;
}

.footer-note {
  font-size: 9.45px;
}

@media (max-width: 900px) {
  .subpage-header.is-visible {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
  }

  .subpage-nav {
    gap: 12px;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .subpage-nav::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 700px) {
  .back-button {
    width: 38px;
    min-width: 38px;
    padding: 0;
  }

  .back-button span {
    display: none;
  }

  .subpage-nav {
    gap: 11px;
  }

  .subpage-nav a {
    font-size: 9px;
  }

  .page-home .hero {
    padding-top: 68px;
  }

  .page-home .logo-wrap {
    width: 101px;
    height: 101px;
  }

  .page-home .utility-row {
    margin-top: 44px;
  }

  .event-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }

  .event-tabs::-webkit-scrollbar {
    display: none;
  }
}


/* =========================================================
   GRIDLY V1.4 — MORE PRESENCE + BETTER SPACING
   ========================================================= */

/* 1) TOP RETURN BAR — 10% larger overall */
.subpage-header {
  min-height: 73px; /* previous 66px, ~10% */
}

.back-button {
  min-width: 81px;
  height: 40px;
}

.back-button svg {
  width: 15.5px;
  height: 15.5px;
}

.back-button span {
  font-size: 9.9px;
}

.subpage-nav {
  gap: 21px;
}

.subpage-nav a {
  font-size: 11px; /* ~10% */
  padding: 9px 0;
}

/* HOME gets extra visual hierarchy */
.subpage-nav a[data-route="/"] {
  font-size: 13px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: .10em;
}

.top-search.icon-search {
  width: 42px;
  height: 42px;
}

.top-search.icon-search svg {
  width: 16.5px;
  height: 16.5px;
}

/* 2) HOME buttons — larger, closer to old Carrd presence */
.home-menu {
  gap: 13px;
  margin-top: 38px;
}

.home-menu-button {
  min-width: 154px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 7px;
  font-size: 13.2px;
  font-weight: 600;
}

/* 3) Internal-page button areas — move toward visual center */
.section-shell {
  min-height: calc(100vh - 150px);
  padding: 84px 0 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-shell .section-intro {
  margin-bottom: 0;
}

/* Push action/category controls down to use the page space */
.section-shell .event-tabs,
.section-shell .placeholder-grid {
  margin-top: clamp(82px, 15vh, 160px);
}

/* Events controls with more presence */
.event-tabs {
  gap: 11px;
}

.event-tabs button {
  min-height: 50px;
  padding: 0 23px;
  font-size: 11.2px;
}

/* Generic internal buttons also stronger */
.placeholder-grid {
  width: 100%;
  max-width: 820px;
  gap: 11px;
}

.placeholder-grid > * {
  min-height: 74px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 10.8px;
}

/* 4) HOME composition — use more of the vertical space, like old Carrd */
.page-home .hero {
  min-height: calc(100vh - 32px);
  padding-top: 125px;
  padding-bottom: 76px;
}

.page-home .logo-wrap {
  margin-bottom: 34px;
}

/* Keep logo and GRIDLY sizes unchanged; only move composition lower */
.page-home .hero-tagline {
  margin-top: 26px;
}

.page-home .utility-row {
  margin-top: 64px;
}

.page-home .hero-rule {
  margin-top: 46px;
  margin-bottom: 46px;
}

.page-home .hero-kicker {
  margin-bottom: 30px;
}

/* Footer text remains slightly larger as requested earlier */
.footer-links a,
.footer-links button {
  font-size: 9.45px;
}

.footer-note {
  font-size: 9.45px;
}

@media (max-width: 900px) {
  .subpage-nav {
    gap: 14px;
  }

  .subpage-nav a {
    font-size: 10px;
  }

  .subpage-nav a[data-route="/"] {
    font-size: 11.5px;
  }

  .home-menu-button {
    min-width: 142px;
  }
}

@media (max-width: 700px) {
  .subpage-header {
    min-height: 62px;
  }

  .subpage-nav a {
    font-size: 9.3px;
  }

  .subpage-nav a[data-route="/"] {
    font-size: 10.8px;
  }

  .page-home .hero {
    min-height: auto;
    padding-top: 92px;
    padding-bottom: 60px;
  }

  .page-home .utility-row {
    margin-top: 54px;
  }

  .home-menu {
    margin-top: 32px;
  }

  .home-menu-button {
    min-width: calc(50% - 6px);
    min-height: 48px;
    font-size: 12.5px;
  }

  .section-shell {
    min-height: calc(100vh - 120px);
    padding: 66px 0 72px;
  }

  .section-shell .event-tabs,
  .section-shell .placeholder-grid {
    margin-top: 80px;
  }
}


/* =========================================================
   GRIDLY V1.5 — HOME LOWER + UNIFIED BUTTONS + FOOTER VISIBLE
   ========================================================= */

:root {
  --gridly-button-height: 55px;
  --gridly-button-font: 14.5px;
  --gridly-button-radius: 7px;
  --gridly-button-x: 24px;
}

/* 1) HOME — move the whole composition farther down */
.page-home .hero {
  padding-top: 158px;
}

/* Keep logo and GRIDLY sizes unchanged */
.page-home .logo-wrap {
  margin-bottom: 34px;
}

/* Bring the 3 utility icons a little closer to the divider line */
.page-home .utility-row {
  margin-top: 58px;
  margin-bottom: -8px;
}

.page-home .hero-rule {
  margin-top: 38px;
  margin-bottom: 46px;
}

/* 2) ONE BUTTON STANDARD FOR THE SITE */
/* Home main navigation */
.home-menu-button,
/* Events category buttons */
.event-tabs button,
/* Generic buttons / future category buttons */
.placeholder-grid > * {
  min-height: var(--gridly-button-height) !important;
  padding-left: var(--gridly-button-x) !important;
  padding-right: var(--gridly-button-x) !important;
  border-radius: var(--gridly-button-radius) !important;

  font-size: var(--gridly-button-font) !important;
  font-weight: 600 !important;
  letter-spacing: .01em !important;

  border: 1px solid rgba(255,255,255,.40) !important;
  background: rgba(0,0,0,.10) !important;
  color: rgba(255,255,255,.94) !important;

  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease,
    color .18s ease !important;
}

.home-menu-button:hover,
.event-tabs button:hover,
.placeholder-grid > *:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.72) !important;
  background: rgba(255,255,255,.055) !important;
  color: #fff !important;
}

/* Home buttons get enough width to feel substantial */
.home-menu-button {
  min-width: 170px;
}

/* Events buttons use the same visual standard */
.event-tabs button {
  min-width: 145px;
  white-space: nowrap;
}

/* Other page button blocks also follow the same proportions */
.placeholder-grid {
  width: 100%;
  max-width: 900px;
  gap: 13px;
}

.placeholder-grid > * {
  min-width: 145px;
}

/* Keep event/category controls centered lower on the screen */
.section-shell .event-tabs,
.section-shell .placeholder-grid {
  margin-top: clamp(95px, 17vh, 175px);
}

/* 3) Bring PRIVACY / ACCESSIBILITY + legal notice upward */
/* Internal pages should reveal the footer on first view more reliably */
.page:not(.page-home) .section-shell {
  min-height: calc(100vh - 265px);
  padding-top: 76px;
  padding-bottom: 24px;
}

/* Home also gives footer a little more breathing room */
.page-home .hero {
  min-height: calc(100vh - 155px);
  padding-bottom: 54px;
}

.site-footer {
  margin-top: -10px;
  padding-top: 20px;
  padding-bottom: 28px;
}

/* Keep requested 5% larger footer type */
.footer-links a,
.footer-links button,
.footer-note {
  font-size: 9.45px;
}

/* Tablet */
@media (max-width: 900px) {
  :root {
    --gridly-button-height: 52px;
    --gridly-button-font: 13.5px;
    --gridly-button-x: 20px;
  }

  .home-menu-button {
    min-width: 155px;
  }

  .event-tabs button,
  .placeholder-grid > * {
    min-width: 132px;
  }

  .page:not(.page-home) .section-shell {
    min-height: calc(100vh - 235px);
  }
}

/* Mobile */
@media (max-width: 700px) {
  :root {
    --gridly-button-height: 50px;
    --gridly-button-font: 12.8px;
    --gridly-button-x: 16px;
  }

  .page-home .hero {
    padding-top: 108px;
    min-height: auto;
  }

  .page-home .utility-row {
    margin-top: 48px;
    margin-bottom: -5px;
  }

  .page-home .hero-rule {
    margin-top: 34px;
  }

  .home-menu-button {
    min-width: calc(50% - 6px);
  }

  .event-tabs {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .event-tabs button {
    min-width: 130px;
  }

  .section-shell .event-tabs,
  .section-shell .placeholder-grid {
    margin-top: 76px;
  }

  .page:not(.page-home) .section-shell {
    min-height: calc(100vh - 210px);
    padding-top: 58px;
    padding-bottom: 18px;
  }

  .site-footer {
    margin-top: -4px;
    padding-top: 18px;
    padding-bottom: 22px;
  }
}


/* =========================================================
   GRIDLY V1.6 — CLEAN ROWS + BACK AT PAGE BOTTOM
   ========================================================= */

/* Top internal bar: no BACK button. Keep nav centered. */
.subpage-header {
  grid-template-columns: 1fr auto 1fr;
}

.header-spacer {
  justify-self: start;
  width: 42px;
  height: 42px;
}

/* Search stays on the right */
.top-search.icon-search {
  justify-self: end;
}

/* Hide old top-back styling if cached anywhere */
.back-button {
  display: none !important;
}

/* Internal descriptions: always one centered line */
.section-intro {
  width: max-content;
  max-width: none;
  white-space: nowrap;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  overflow: visible;
}

/* Keep all main HOME buttons in a single row */
.home-menu {
  width: min(1180px, calc(100vw - 40px));
  margin-left: 50%;
  transform: translateX(-50%);
  flex-wrap: nowrap;
  justify-content: center;
  gap: 12px;
}

.home-menu-button {
  flex: 1 1 0;
  min-width: 0;
  max-width: 180px;
  white-space: nowrap;
}

/* BACK now lives at the bottom of every internal page */
.page-bottom-nav {
  width: 100%;
  margin-top: auto;
  padding-top: 52px;
  display: flex;
  justify-content: center;
}

.page-back-button {
  min-width: 112px;
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;

  border: 1px solid rgba(255,255,255,.28);
  border-radius: 7px;

  background: rgba(0,0,0,.10);
  color: rgba(255,255,255,.84);

  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;

  cursor: pointer;

  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease,
    color .18s ease;
}

.page-back-button:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.60);
  background: rgba(255,255,255,.05);
  color: #fff;
}

.page-back-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Preserve centered action areas while allowing BACK to sit lower */
.page:not(.page-home) .section-shell {
  min-height: calc(100vh - 230px);
}

/* Tablet: maintain one-row HOME nav; permit horizontal scroll only if necessary */
@media (max-width: 1050px) {
  .home-menu {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
  }

  .home-menu::-webkit-scrollbar {
    display: none;
  }

  .home-menu-button {
    flex: 0 0 150px;
  }

  .section-intro {
    font-size: 13px;
  }
}

/* Mobile: user asked to keep text/buttons on one line, so scroll instead of stacking */
@media (max-width: 700px) {
  .subpage-header {
    grid-template-columns: 1fr auto;
  }

  .header-spacer {
    display: none;
  }

  .subpage-nav {
    order: 1;
  }

  .top-search.icon-search {
    order: 2;
  }

  .home-menu {
    width: calc(100vw - 24px);
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .home-menu-button {
    min-width: 145px !important;
    flex: 0 0 145px;
  }

  .section-intro {
    font-size: 12px;
  }

  .page-bottom-nav {
    padding-top: 42px;
  }
}


/* =========================================================
   GRIDLY V1.7 — VERTICAL ALIGNMENT + LARGER BUTTON STANDARD
   ========================================================= */

/*
  One shared vertical baseline:
  - HOME footer sits lower.
  - Internal pages use the same footer baseline.
  - BACK remains above Privacy / Accessibility instead of touching it.
*/

/* HOME: push the footer area about 5% lower */
.page-home {
  min-height: 100vh;
}

.page-home .hero {
  min-height: calc(100vh - 70px);
  padding-bottom: 42px;
}

/* Internal pages: account for the visible top navigation,
   then fill the remaining viewport to the same footer baseline. */
.page:not(.page-home).is-active {
  min-height: calc(100vh - 87px);
  display: flex;
  flex-direction: column;
}

.page:not(.page-home) .section-shell {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  padding-top: 76px;
  padding-bottom: 18px;
}

/* Footer position / spacing consistent across pages */
.site-footer {
  margin-top: 0;
  padding-top: 24px;
  padding-bottom: 30px;
}

/* 2) BACK: lift it away from Privacy / Accessibility */
.page-bottom-nav {
  width: 100%;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 52px;
  display: flex;
  justify-content: center;
}

/* 3) Button standard: +10% everywhere to keep one visual system */
:root {
  --gridly-button-height: 61px;
  --gridly-button-font: 16px;
  --gridly-button-radius: 7px;
  --gridly-button-x: 26px;
}

.home-menu-button,
.event-tabs button,
.placeholder-grid > * {
  min-height: var(--gridly-button-height) !important;
  padding-left: var(--gridly-button-x) !important;
  padding-right: var(--gridly-button-x) !important;
  border-radius: var(--gridly-button-radius) !important;
  font-size: var(--gridly-button-font) !important;
}

/* Keep the HOME row in a single line with the larger standard */
.home-menu-button {
  min-width: 0 !important;
  max-width: none;
  flex: 1 1 0;
}

/* Events: move the row farther down into the page */
.section-shell .event-tabs {
  margin-top: clamp(135px, 21vh, 205px);
}

.event-tabs {
  width: 100%;
  justify-content: center;
  gap: 13px;
}

.event-tabs button {
  min-width: 160px;
}

/* Generic future page buttons keep the same size standard */
.placeholder-grid {
  max-width: 980px;
}

.placeholder-grid > * {
  min-width: 160px;
}

/* 4) HOME utility row: move clock / keyboard / ? farther down (~5%) */
.page-home .utility-row {
  margin-top: calc(58px + 5vh);
  margin-bottom: -8px;
}

/* Keep the utility icons relatively close to the divider */
.page-home .hero-rule {
  margin-top: 34px;
  margin-bottom: 46px;
}

/* Desktop home row stays one line */
.home-menu {
  width: min(1260px, calc(100vw - 40px));
  gap: 13px;
}

/* Footer text unchanged from the requested enlarged version */
.footer-links a,
.footer-links button,
.footer-note {
  font-size: 9.45px;
}

@media (max-width: 1100px) {
  :root {
    --gridly-button-height: 56px;
    --gridly-button-font: 14px;
    --gridly-button-x: 20px;
  }

  .home-menu {
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .home-menu::-webkit-scrollbar {
    display: none;
  }

  .home-menu-button {
    min-width: 154px !important;
    flex: 0 0 154px;
  }

  .event-tabs {
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .event-tabs::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 700px) {
  :root {
    --gridly-button-height: 52px;
    --gridly-button-font: 13px;
    --gridly-button-x: 16px;
  }

  .page-home {
    min-height: auto;
  }

  .page-home .hero {
    min-height: auto;
    padding-bottom: 50px;
  }

  .page-home .utility-row {
    margin-top: 68px;
  }

  .page:not(.page-home).is-active {
    min-height: calc(100vh - 72px);
  }

  .page:not(.page-home) .section-shell {
    padding-top: 58px;
    padding-bottom: 14px;
  }

  .section-shell .event-tabs {
    margin-top: 95px;
  }

  .event-tabs button {
    min-width: 145px;
  }

  .page-bottom-nav {
    padding-bottom: 42px;
  }

  .site-footer {
    padding-top: 20px;
    padding-bottom: 24px;
  }
}


/* =========================================================
   GRIDLY V1.8 — EVENTS + AVATAR MATCH
   ========================================================= */

/* EVENTS and AVATAR now share exactly the same row geometry */
.event-tabs,
.avatar-tabs {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 14px;

  /* roughly 10% lower than the previous position */
  margin-top: clamp(155px, 23vh, 225px);
}

/* Same button size on both pages */
.event-tabs button,
.avatar-tabs button {
  min-width: 178px !important;
  min-height: 67px !important;
  padding: 0 29px !important;

  border: 1px solid rgba(255,255,255,.40) !important;
  border-radius: 7px !important;

  background: rgba(0,0,0,.10) !important;
  color: rgba(255,255,255,.94) !important;

  font-size: 17.5px !important;
  font-weight: 600 !important;
  letter-spacing: .01em !important;

  white-space: nowrap;
  cursor: pointer;

  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease,
    color .18s ease !important;
}

.event-tabs button:hover,
.avatar-tabs button:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.72) !important;
  background: rgba(255,255,255,.055) !important;
  color: #fff !important;
}

/* AVATAR no longer uses the generic grid layout */
.avatar-tabs {
  max-width: 760px;
}

/* Keep both rows usable on narrower screens without stacking */
@media (max-width: 1100px) {
  .event-tabs,
  .avatar-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .event-tabs::-webkit-scrollbar,
  .avatar-tabs::-webkit-scrollbar {
    display: none;
  }

  .event-tabs button,
  .avatar-tabs button {
    min-width: 165px !important;
    min-height: 62px !important;
    font-size: 16px !important;
    flex: 0 0 auto;
  }
}

@media (max-width: 700px) {
  .event-tabs,
  .avatar-tabs {
    margin-top: 105px;
  }

  .event-tabs button,
  .avatar-tabs button {
    min-width: 150px !important;
    min-height: 56px !important;
    font-size: 14px !important;
    padding: 0 18px !important;
  }
}

/* Monthly Events: the category screen keeps its approved button geometry. */
.event-detail-shell {
  width: min(calc(100% - 36px), 900px);
  min-height: calc(100vh - 150px);
  margin: 0 auto;
  padding: 82px 0 90px;
  text-align: center;
}

.event-detail-shell h2 {
  margin: 0;
  font-family: "League Spartan", "Arimo", sans-serif;
  font-size: clamp(48px, 8vw, 82px);
  font-weight: 900;
  line-height: 1;
}

.event-detail-intro {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.event-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 56px auto 40px;
  text-align: left;
}

.event-card {
  min-width: 0;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(0,58,156,.13), rgba(255,255,255,.025) 62%);
}

.event-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.event-card h3 {
  margin: 0;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
}

.event-favorite {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  background: transparent;
  color: rgba(255,255,255,.7);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.event-favorite[aria-pressed="true"] { color: #fff; }
.event-favorite:hover { transform: scale(1.1); }

.event-date {
  margin: 12px 0 23px;
  color: rgba(255,255,255,.66);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .035em;
}

.event-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.event-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.event-actions a:hover { border-color: #fff; }
.event-actions .event-teleport { background: var(--blue); border-color: var(--blue); }
.event-actions .event-teleport:hover { background: var(--blue-hover); }

.event-return {
  display: inline-block;
  padding: 15px 22px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
}

.event-return:hover { border-color: #fff; }
.event-empty {
  grid-column: 1 / -1;
  margin: 30px 0;
  padding: 50px 12px;
  color: var(--muted);
  text-align: center;
}

.event-favorite:focus-visible,
.event-actions a:focus-visible,
.event-return:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .event-detail-shell { padding-top: 58px; }
  .event-list { grid-template-columns: 1fr; margin-top: 38px; }
  .event-card { padding: 21px; }
}


/* =========================================================
   GRIDLY V1.9 — EVENTS + AVATAR AT HOME BUTTON LEVEL
   ========================================================= */

/*
  Keep the approved EVENTS / AVATAR button size exactly as-is.
  Only move both rows down so they sit visually at the same
  vertical level as the main HOME section-button row.
*/
.event-tabs,
.avatar-tabs {
  margin-top: clamp(340px, 43vh, 480px) !important;
}

/* Preserve the exact approved button size from V1.8 */
.event-tabs button,
.avatar-tabs button {
  min-width: 178px !important;
  min-height: 67px !important;
  padding: 0 29px !important;
  font-size: 17.5px !important;
}

/* Give the internal page enough room for the lower row + BACK/footer */
.page[data-page="/events"] .section-shell,
.page[data-page="/avatar"] .section-shell {
  min-height: calc(100vh - 150px);
}

/* Smaller screens: maintain matching position without stacking */
@media (max-width: 1100px) {
  .event-tabs,
  .avatar-tabs {
    margin-top: clamp(260px, 36vh, 380px) !important;
  }

  .event-tabs button,
  .avatar-tabs button {
    min-width: 165px !important;
    min-height: 62px !important;
    font-size: 16px !important;
  }
}

@media (max-width: 700px) {
  .event-tabs,
  .avatar-tabs {
    margin-top: 150px !important;
  }

  .event-tabs button,
  .avatar-tabs button {
    min-width: 150px !important;
    min-height: 56px !important;
    font-size: 14px !important;
    padding: 0 18px !important;
  }
}

/* V2.2: wider event cards and the shared bottom navigation. */
.event-detail-shell {
  width: min(calc(100% - 36px), 1280px);
  flex: 1 1 auto;
  min-height: 0;
  padding-bottom: 18px;
}

.event-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(160px, 30vh, 300px);
  margin-bottom: 30px;
}

.event-card {
  position: relative;
  display: flex;
  flex: 1 0 calc((100% - 56px) / 5);
  flex-direction: column;
  min-width: 0;
  min-height: 238px;
  padding: 18px 18px 17px;
  text-align: center;
}

.event-card-head {
  display: block;
  width: 100%;
  padding-top: 26px;
}

.event-card-controls {
  position: absolute;
  top: 7px;
  right: 9px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.event-card h3 {
  font-size: 22.26px;
  line-height: 1.14;
}

.event-notification {
  display: inline-flex;
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  color: rgba(255,255,255,.55);
}

.event-notification svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.event-favorite {
  position: static;
  width: 30px;
  height: 30px;
  font-size: 25px;
}

.event-date {
  margin: 14px 0 22px;
  font-size: 15px;
  line-height: 1.5;
  white-space: nowrap;
}

.event-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 11px;
  width: 100%;
  margin-top: auto;
}

.event-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.event-actions .event-social {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
}

.event-social svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.event-social .icon-dot { fill: currentColor; stroke: none; }

.event-actions .event-teleport {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 38px;
  font-size: 12px;
  letter-spacing: .035em;
}

@media (max-width: 980px) {
  .event-card { flex-basis: calc((100% - 14px) / 2); }
}

@media (max-width: 620px) {
  .event-card { flex-basis: calc((100% - 14px) / 2); }
  .event-list { margin-top: clamp(105px, 23vh, 200px); }
  .event-card { padding-inline: 12px; }
  .event-date { font-size: 12px; }
}

@media (max-width: 380px) {
  .event-card { flex-basis: 100%; }
}

/* V2.4: keep every EVENTS category label centered in an equal-width button. */
.event-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 178px;
  width: 178px;
  min-width: 178px !important;
  max-width: 178px;
  padding-left: 8px !important;
  padding-right: 8px !important;
  text-align: center;
}

@media (max-width: 1100px) {
  .event-tabs button {
    flex-basis: 165px;
    width: 165px;
    min-width: 165px !important;
    max-width: 165px;
  }
}

@media (max-width: 700px) {
  .event-tabs button {
    flex-basis: 150px;
    width: 150px;
    min-width: 150px !important;
    max-width: 150px;
  }
}

/* V2.5: Female events share the Male card design. */

.event-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 26px;
}

.event-adult-icon {
  display: inline-flex;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: #FF0000;
}

.event-adult-icon svg { width: 100%; height: 100%; fill: currentColor; }

/* V2.6: place events in order, five columns across on wide screens. */
.event-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
}

.event-card { width: 100%; }

@media (max-width: 1099px) {
  .event-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 749px) {
  .event-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 419px) {
  .event-list { grid-template-columns: minmax(0, 1fr); }
}

/* V2.8: lift the three event grids so the third row clears the desktop taskbar. */
.page[data-page="/events/female"] .event-list,
.page[data-page="/events/male"] .event-list,
.page[data-page="/events/unisex"] .event-list {
  margin-top: clamp(120px, 18vh, 210px);
}

@media (max-width: 620px) {
  .page[data-page="/events/female"] .event-list,
  .page[data-page="/events/male"] .event-list,
  .page[data-page="/events/unisex"] .event-list {
    margin-top: clamp(65px, 15vh, 130px);
  }
}

/* V2.9: Clubs directory */
.club-shell {
  width: min(calc(100% - 36px), 1600px);
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 auto;
  padding: 72px 0 18px;
  text-align: center;
}

.club-shell h2 {
  margin: 0;
  font-family: "League Spartan", "Arimo", sans-serif;
  font-size: clamp(52px, 8vw, 92px);
  font-weight: 900;
  line-height: .9;
}

.club-intro {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.club-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin: 44px auto 26px;
}

.club-filters button {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 6px;
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.8);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.club-filters button:hover { border-color: rgba(255,255,255,.75); }
.club-filters button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }

.club-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.club-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  min-height: 216px;
  padding: 20px 16px 16px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(0,58,156,.13), rgba(255,255,255,.025) 62%);
}

.club-card-head {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 56px;
  padding-top: 24px;
}

.club-card-controls {
  position: absolute;
  top: 7px;
  right: 9px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.club-notification {
  display: inline-flex;
  width: 19px;
  height: 19px;
  color: rgba(255,255,255,.55);
}

.club-notification svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.club-favorite {
  width: 30px;
  height: 30px;
  padding: 0;
  background: transparent;
  color: rgba(255,255,255,.7);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.club-favorite[aria-pressed="true"] { color: #fff; }
.club-favorite:hover { transform: scale(1.1); }

.club-card h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.16;
  overflow-wrap: normal;
  word-break: normal;
}

.club-genre {
  margin: 9px 0 0;
  color: rgba(255,255,255,.65);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .035em;
}

.club-count {
  min-height: 21px;
  margin: auto 0 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.club-count.is-placeholder { visibility: hidden; }

.club-empty {
  grid-column: 1 / -1;
  padding: 48px 12px;
  color: var(--muted);
  text-align: center;
}

.club-teleport {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--blue);
  border-radius: 5px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.club-teleport:hover { background: var(--blue-hover); }
.club-filters button:focus-visible,
.club-favorite:focus-visible,
.club-teleport:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (max-width: 1349px) {
  .club-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 749px) {
  .club-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .club-filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 5px; }
  .club-filters button { flex: 0 0 auto; }
}

@media (max-width: 569px) {
  .club-list { grid-template-columns: minmax(0, 1fr); }
  .club-shell { padding-top: 58px; }
}

/* V3.2: one flat, faint blue band behind each row of directory cards. */
.directory-row {
  background: rgba(0, 58, 156, .08);
  border: 1px solid rgba(150, 195, 235, .04);
  border-radius: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* One separator below the heading and description on every internal page. */
.section-rule {
  flex: 0 0 1px;
  width: min(760px, 76%);
  height: 1px;
  margin: 32px auto 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent);
}

.page[data-page^="/events/"],
.page[data-page="/clubs"],
.page[data-page="/hangouts"] { width: min(calc(100% - 32px), 1700px); }

.event-detail-shell,
.club-shell { width: min(100%, 1600px); }

.hangout-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  width: 100%;
}

.hangout-languages {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
}

.hangout-card .club-genre { line-height: 1.3; }

.club-teleport.is-unavailable {
  border-color: rgba(255, 255, 255, .25);
  background: transparent;
  color: rgba(255, 255, 255, .60);
  cursor: default;
}

.event-list,
.club-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.directory-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
  width: 100%;
  padding: 25px;
}

.directory-row .event-card,
.directory-row .club-card {
  background: rgba(3, 16, 31, .23);
  border-color: rgba(225, 239, 250, .29);
}

.directory-row .event-date,
.directory-row .club-genre { color: rgba(255, 255, 255, .87); }

.event-empty,
.club-empty {
  width: 100%;
  margin: 0;
  background: rgba(0, 58, 156, .08);
  border-radius: 0;
}

.page[data-page^="/events/"] .event-list {
  margin-top: clamp(64px, 9vh, 106px);
  margin-bottom: 36px;
}

.page[data-page="/events"] .event-tabs {
  width: min(100%, 1100px);
  padding: 0;
  margin-top: clamp(105px, 16vh, 190px) !important;
  justify-content: center;
}

.page[data-page="/events"] .event-tabs button {
  flex: 0 0 200px;
  width: 200px;
  min-width: 200px !important;
  max-width: none;
  min-height: 76px !important;
  padding: 0 12px !important;
  font-size: 19px !important;
}

/* More breathing room after the HOME slogan. */
.page-home .home-menu {
  margin-top: clamp(76px, 9vh, 115px);
}

@media (max-width: 1349px) {
  .club-list .directory-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1099px) {
  .event-list .directory-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .page[data-page="/events"] .event-tabs button {
    flex-basis: 182px;
    width: 182px;
    min-width: 182px !important;
    min-height: 68px !important;
    font-size: 17px !important;
  }
}

@media (max-width: 990px) {
  .page[data-page="/events"] .event-tabs { justify-content: flex-start; }
}

@media (max-width: 749px) {
  .event-list .directory-row,
  .club-list .directory-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory-row { padding: 18px; }
  .page[data-page="/events"] .event-tabs { justify-content: flex-start; }
}

@media (max-width: 620px) {
  .page[data-page^="/events/"] .event-list { margin-top: 62px; }
}

@media (max-width: 569px) {
  .club-list .directory-row { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  .page[data-page="/events"] .event-tabs {
    margin-top: clamp(75px, 12vh, 115px) !important;
  }
  .page[data-page="/events"] .event-tabs button {
    flex-basis: 168px;
    width: 168px;
    min-width: 168px !important;
    min-height: 62px !important;
    font-size: 16px !important;
  }
  .page-home .home-menu { margin-top: 70px; }
}

@media (max-width: 419px) {
  .event-list .directory-row { grid-template-columns: minmax(0, 1fr); }
  .directory-row { padding: 13px; gap: 13px; }
}

/* V3.6: the three-line icon swaps places with the original horizontal row. */
.directory-filter-menu {
  position: relative;
  z-index: 10;
  width: max-content;
  max-width: 100%;
  min-height: 44px;
  margin: 44px auto 26px;
}

.directory-filter-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.directory-filter-toggle svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.directory-filter-options {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: max-content;
  max-width: calc(100vw - 36px);
  min-height: 44px;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  scrollbar-width: none;
}

.directory-filter-options::-webkit-scrollbar { display: none; }
.directory-filter-options[hidden] { display: none; }
.directory-filter-toggle[hidden] { display: none; }
.directory-filter-options.is-closing {
  animation: directory-filter-close .5s ease-in both;
}

@keyframes directory-filter-close {
  from { clip-path: inset(0 0 0 0); opacity: 1; }
  to { clip-path: inset(0 50% 0 50%); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .directory-filter-options.is-closing { animation: none; }
}

.directory-filter-options button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  text-align: center;
}
.directory-filter-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (max-width: 749px) {
  .directory-filter-options {
    justify-content: flex-start;
    width: calc(100vw - 36px);
    padding-bottom: 0;
  }
}

/* V3.9: clearer HOME typography and a fully transparent logo. */
.page-home .logo-wrap {
  width: 148px;
  height: 148px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.page-home .hero-logo {
  border-radius: 0;
  object-fit: contain;
  background: transparent;
}

.page-home .utility-button.icon-only svg {
  width: 35px;
  height: 35px;
}

.page-home .hero-rule { margin-top: 22px; }
.page-home .hero-kicker { font-size: 15.2px; }
.page-home .home-menu { margin-top: clamp(54px, 6.5vh, 82px); }
.page-home .home-menu-button { font-size: 18.5px !important; }

@media (max-width: 1100px) {
  .page-home .home-menu-button { font-size: 16.3px !important; }
}

@media (max-width: 700px) {
  .page-home .logo-wrap { width: 119px; height: 119px; }
  .page-home .utility-button.icon-only svg { width: 32.8px; height: 32.8px; }
  .page-home .hero-kicker { font-size: 15.2px; }
  .page-home .home-menu { margin-top: 52px; }
  .page-home .home-menu-button { font-size: 15.1px !important; }
}

/* The internal navigation stays legible while revealing more of the skyline. */
.subpage-header { background: rgba(4, 4, 4, .65); }
.subpage-nav a[data-route="/"] {
  margin-inline: 8px;
  font-size: 13.13px;
}
.page-back-button {
  border-color: rgba(255, 255, 255, .10);
  background: rgba(4, 4, 4, .65);
  backdrop-filter: blur(18px);
}
.page-back-button:hover { background: rgba(4, 4, 4, .55); }

@media (max-width: 900px) {
  .subpage-nav a[data-route="/"] { font-size: 11.62px; }
}
@media (max-width: 700px) {
  .subpage-nav a[data-route="/"] { margin-inline: 5px; font-size: 10.91px; }
}

/* Each directory row keeps its cards in place while the tint grows slightly. */

.directory-row {
  position: relative;
  isolation: isolate;
  background: transparent;
  border: 0;
}

.directory-row::before {
  content: "";
  position: absolute;
  inset-block: -10px;
  left: 50%;
  width: calc(100% + 64px);
  max-width: calc(100vw - 16px);
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  background: rgba(0, 0, 0, .11);
}

.directory-row .event-card,
.directory-row .club-card { background: rgba(0, 0, 0, .23); }

.event-empty,
.club-empty { background: rgba(0, 0, 0, .11); }

/* V3.10: slightly larger adult marker and a tighter HOME composition. */
.event-adult-icon {
  flex-basis: 19.8px;
  width: 19.8px;
  height: 19.8px;
}

.page-home .hero-rule { margin-top: 12px; }
.page-home .hero-kicker {
  font-size: 19.5px;
  font-weight: 900;
  -webkit-text-stroke: .3px currentColor;
}
.page-home .home-menu { margin-top: clamp(31px, 4vh, 52px); }

@media (max-width: 700px) {
  .page-home .hero-kicker { font-size: 19px; }
  .page-home .home-menu { margin-top: 32px; }
}

/* V3.11: bring the HOME slogan and menu toward the skyline's waterline. */
@media (min-width: 701px) {
  .page-home .hero-kicker,
  .page-home .home-menu {
    position: relative;
    top: clamp(48px, 9vh, 64px);
  }
}

/* Rental directory keeps the dark directory surface and four original groups. */
.rental-shell { padding-bottom: 0; }
.rental-shell h2 { font-size: clamp(35px, 6vw, 76px); }

.rental-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(30px, 3vw, 48px);
  margin: clamp(52px, 7vh, 92px) auto 0;
  padding: 25px;
  background: rgba(0, 0, 0, .11);
  text-align: center;
}

.rental-group { min-width: 0; }
.rental-group > h3 {
  margin: 0;
  font-family: "Arimo", Arial, sans-serif;
  font-size: clamp(19px, 2vw, 28px);
  font-weight: 700;
  line-height: 1.1;
}

.rental-group-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 27px;
}

.rental-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  width: min(100%, 300px);
  min-height: 140px;
  margin-inline: auto;
  padding: 18px 16px 16px;
  border: 1px solid rgba(225, 239, 250, .29);
  border-radius: 9px;
  background: rgba(0, 0, 0, .23);
}

.rental-card h4 {
  margin: 0;
  font-size: clamp(17px, 1.45vw, 21px);
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.rental-card .club-teleport { margin-top: auto; }
.rental-pending {
  margin: 8px 0;
  color: rgba(255, 255, 255, .60);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
}

.rental-bottom-copy {
  width: min(calc(100% - 32px), 900px);
  margin: 44px auto 0;
  color: rgba(255, 255, 255, .76);
  text-align: center;
}

.rental-bottom-copy p { margin: 0; font-size: 14px; line-height: 1.5; }
.rental-bottom-copy p + p { margin-top: 10px; font-size: 12px; }
.page[data-page="/rentals"] .page-bottom-nav { margin-top: 0; padding-top: 30px; }

@media (max-width: 1100px) {
  .rental-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .rental-groups { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .rental-group-list { margin-top: 16px; }
  .rental-group + .rental-group { margin-top: 25px; }
}

/* V3.13: Travel uses the existing five-column directory rows. */
.travel-list { margin-top: clamp(58px, 8vh, 105px); }
.travel-card .club-card-head { min-height: 52px; padding-top: 0; }
.travel-card .club-teleport { margin-top: auto; }

.travel-rating { margin: 13px auto 20px; }
.travel-rating-line { display: flex; justify-content: center; align-items: center; gap: 8px; }
.travel-stars { display: inline-flex; align-items: center; gap: 2px; }
.travel-stars button {
  width: 22px;
  padding: 0;
  border: 0;
  background: linear-gradient(90deg, #fff 0%, #fff var(--fill, 0%), rgba(255,255,255,.24) var(--fill, 0%), rgba(255,255,255,.24) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-size: 23px;
  line-height: 1.1;
  cursor: pointer;
}
.travel-stars button:disabled { cursor: default; }
.travel-stars button:not(:disabled):hover { transform: scale(1.1); }
.travel-stars button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.travel-rating-number { min-width: 24px; color: #fff; font-size: 12px; font-weight: 700; }
.travel-rating-count {
  display: block;
  margin-top: 5px;
  color: rgba(255,255,255,.62);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
}
.travel-turnstile {
  position: fixed;
  left: 50%;
  bottom: 25px;
  z-index: 1000;
  transform: translateX(-50%);
}

/* Legal panels keep the Carrd copy and center the headings in the popup. */
.legal-modal .modal-head { position: relative; justify-content: center; text-align: center; }
.legal-modal .modal-head > div { width: 100%; }
.legal-modal .modal-head .modal-eyebrow { display: none; }
.legal-modal .modal-close { position: absolute; top: 0; right: 0; }
.legal-modal .tool-content { padding-top: 18px; color: rgba(255,255,255,.78); font-size: 12.5px; text-align: center; }
.legal-modal .tool-content h4 { margin: 24px 0 8px; color: #fff; font-size: 13px; font-weight: 700; }
.legal-modal .tool-content p { margin: 0 0 12px; }
.legal-modal .tool-content .legal-updated { color: rgba(255,255,255,.48); font-size: 11px; text-align: center; }
.legal-modal .tool-content ul { display: inline-block; margin: 8px auto 18px; padding-left: 20px; text-align: left; }
.legal-modal .tool-content a { color: #fff; text-decoration: underline; }
.legal-close {
  display: block;
  width: 100%;
  margin-top: 26px;
  padding: 12px 18px;
  border-radius: 7px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.legal-close:hover { background: var(--blue-hover); }
.legal-close:focus-visible, .legal-modal a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* V3.14: HOME actions and migrated utility popups. */
.page-home .home-menu { margin-top: 100px; }
.page-home .hero-kicker { margin: 17px 0 0; }
.page-home .home-menu-button { background: rgba(4,4,4,.65) !important; }

@media (max-width: 700px) {
  .page-home .home-menu { margin-top: 96px; }
  .page-home .hero-kicker { margin-top: 16px; }
}

.widget-modal .modal-head { position: relative; justify-content: center; text-align: center; }
.widget-modal .modal-head > div { width: 100%; }
.widget-modal .modal-close { position: absolute; top: 0; right: 0; }
.widget-modal .modal-eyebrow { display: none; }
.widget-modal .tool-content { color: #fff; }
.clock-modal { width: min(100%, 920px); }
.clock-widget { padding: 15px 2px 0; text-align: center; }
.clock-pair { display: grid; grid-template-columns: 1fr 1px 1fr; align-items: stretch; gap: 22px; }
.clock-side h4 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: .06em; }
.clock-side p { min-height: 18px; margin: 7px 0 20px; color: rgba(255,255,255,.58); font-size: 11px; letter-spacing: .09em; }
.clock-divider { width: 1px; background: rgba(255,255,255,.20); }
.clock-digits { display: flex; justify-content: center; align-items: center; gap: 6px; }
.clock-digits span {
  display: grid; place-items: center; width: 60px; height: 67px;
  border: 1px solid rgba(255,255,255,.32); border-radius: 7px;
  font-size: 32px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.clock-digits b { color: rgba(255,255,255,.8); font-size: 21px; }
.clock-units { display: flex; justify-content: center; gap: 18px; margin-top: 8px; color: rgba(255,255,255,.53); font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.clock-units span { width: 60px; }
.clock-controls, .clock-alert-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.clock-controls { margin: 33px auto 0; }
.clock-controls button, .clock-alert-actions button {
  min-height: 39px; padding: 0 13px; border: 1px solid rgba(255,255,255,.28);
  border-radius: 6px; background: rgba(4,4,4,.65); color: #fff; font-size: 11px; font-weight: 700; cursor: pointer;
}
.clock-controls button:hover, .clock-alert-actions button:hover:not(:disabled) { border-color: #fff; }
.clock-controls [data-clock-now], .clock-alert-actions #clock-notify { background: var(--blue); border-color: var(--blue); }
.clock-alert-actions button:disabled { opacity: .4; cursor: default; }
.clock-selected { margin: 19px 0 14px; color: rgba(255,255,255,.7); font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.clock-status { margin: 17px 0 0; color: rgba(255,255,255,.62); font-size: 11px; font-weight: 700; }

.shortcuts-widget { padding: 5px 0 0; }
.shortcut-tabs { display: flex; justify-content: center; gap: 10px; margin: 4px 0 22px; }
.shortcut-tabs button {
  min-height: 38px; padding: 0 17px; border: 1px solid rgba(255,255,255,.30);
  border-radius: 6px; background: transparent; color: #fff; font-size: 12px; font-weight: 700; cursor: pointer;
}
.shortcut-tabs button[aria-selected="true"] { background: var(--blue); border-color: var(--blue); }
.shortcut-panel[hidden] { display: none; }
.shortcut-item { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.shortcut-item > div { display: flex; flex-direction: column; }
.shortcut-item strong { color: #fff; font-size: 12px; }
.shortcut-item span { color: rgba(255,255,255,.64); font-size: 11px; }
.shortcut-item kbd { flex: 0 0 auto; color: #fff; font-family: "Arimo",Arial,sans-serif; font-size: 11px; font-weight: 700; }
.shortcut-note { margin: 17px 0 0; color: rgba(255,255,255,.6); text-align: center; }

.help-widget { padding: 7px 0 0; text-align: center; }
.help-widget h4 { margin: 0 0 17px; font-size: 15px; letter-spacing: .07em; }
.help-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.help-actions a, .help-unavailable, .help-linden {
  display: inline-grid; place-items: center; min-height: 42px; padding: 0 18px;
  border: 1px solid rgba(255,255,255,.30); border-radius: 6px;
  color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .05em;
}
.help-actions a { background: var(--blue); border-color: var(--blue); }
.help-unavailable { color: rgba(255,255,255,.55); }
.help-linden { margin-top: 12px; background: rgba(4,4,4,.65); }
.help-actions a:hover, .help-linden:hover { border-color:#fff; }
.online-widget { display:flex; flex-direction:column; align-items:center; justify-content:center; padding:32px 12px 12px; }
.online-label { color:rgba(255,255,255,.72); font-size:13px; font-weight:700; letter-spacing:.22em; }
#sl-online-count { margin-top:13px; color:#fff; font-size:clamp(52px,11vw,86px); font-weight:700; line-height:1; font-variant-numeric:tabular-nums; }
.online-status { display:flex; align-items:center; gap:8px; margin-top:18px; font-size:12px; font-weight:700; letter-spacing:.12em; }
.online-status i { width:8px; height:8px; border-radius:50%; background:#34ff78; box-shadow:0 0 10px rgba(52,255,120,.45); }
.online-widget.error .online-status i { background:#777; box-shadow:none; }

@media (max-width: 650px) {
  .clock-pair { grid-template-columns: 1fr; gap: 22px; }
  .clock-divider { width: 100%; height: 1px; }
  .clock-digits span { width: 52px; height: 55px; font-size: 27px; }
  .clock-units { gap: 10px; }
  .clock-units span { width: 52px; }
  .shortcut-item { align-items:flex-start; flex-direction:column; gap:8px; }
}

.header-actions { display: flex; justify-self: end; align-items: center; gap: 4px; }
.header-actions .top-search.icon-search { justify-self: auto; }
.header-actions svg { width: 17px; height: 17px; }

.developer-widget { padding-top: 6px; text-align: center; }
.developer-widget p { margin: 0 auto 18px; color: rgba(255,255,255,.72); }
.developer-widget a, .developer-pending {
  display: grid; place-items: center; width: min(100%, 290px); min-height: 44px;
  margin: 10px auto; padding: 0 15px; border: 1px solid rgba(255,255,255,.35);
  border-radius: 6px; background: rgba(4,4,4,.65);
  color: #fff; font-size: 11px; font-weight: 700;
}
.developer-widget a:first-of-type { background: var(--blue); border-color: var(--blue); }
.developer-widget a:hover { border-color: #fff; }
.developer-pending { color: rgba(255,255,255,.50); }

@media (max-width: 700px) {
  .header-actions { order: 2; }
  .header-actions .top-search.icon-search { width: 32px; height: 38px; }
}

/* V3.15: help page, music search, avatar guides and wider travel cards. */
.header-actions .top-search:disabled { opacity: .48; cursor: default; transform: none; }
.header-actions .top-search:disabled:hover { background: rgba(5,5,5,.54); border-color: rgba(255,255,255,.15); }
.search-modal .modal-head { position: relative; justify-content: center; text-align: center; }
.search-modal .modal-head > div { width: 100%; }
.search-modal .modal-close { position: absolute; right: 0; top: 0; }
.search-modal .search-field { position: relative; display: flex; justify-content: center; }
.search-modal .search-field svg { position: absolute; left: 16px; }
.search-modal .search-field input { padding-inline: 28px; text-align: center; }
.search-modal .search-empty { text-align: center; }

.page[data-page="/travel"], .page[data-page="/rentals"], .page[data-page="/help"] { width: min(calc(100% - 32px), 1700px); }
.travel-list .directory-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rental-groups { gap: 18px; }
.rental-card { width: 100%; max-width: none; min-height: 168px; }
@media (max-width: 1099px) {
  .travel-list .directory-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rental-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 749px) { .travel-list .directory-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) { .rental-groups { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 569px) { .travel-list .directory-row { grid-template-columns: minmax(0, 1fr); } }

/* Travel directory: three cards per row on wide screens. */
.travel-list .directory-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 749px) { .travel-list .directory-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 569px) { .travel-list .directory-row { grid-template-columns: minmax(0, 1fr); } }

/* Match the dark BACK control on the EVENTS category buttons. */
.page[data-page="/events"] .event-tabs button {
  background: rgba(4, 4, 4, .65) !important;
}
.page[data-page="/events"] .event-tabs button:hover {
  background: rgba(20, 20, 20, .82) !important;
}

.clock-modal { width: min(100%, 1380px); }
.clock-widget { padding: 22px 8px 12px; }
.clock-pair { gap: 34px; }
.clock-side h4 { font-size: 25px; }
.clock-side p { font-size: 14px; margin-bottom: 28px; }
.clock-digits span { width: 90px; height: 100px; font-size: 48px; }
.clock-digits b { font-size: 30px; }
.clock-units { gap: 18px; font-size: 11px; }
.clock-units span { width: 90px; }
.clock-controls { margin-top: 43px; }
.clock-controls button, .clock-alert-actions button { min-height: 50px; padding-inline: 19px; font-size: 13px; }
.clock-selected, .clock-status { font-size: 13px; }
@media (max-width: 1100px) and (min-width: 651px) {
  .clock-digits span { width: 64px; height: 75px; font-size: 36px; }
  .clock-units span { width: 64px; }
  .clock-pair { gap: 15px; }
}
@media (max-width: 650px) {
  .clock-pair { grid-template-columns: 1fr; gap: 22px; }
  .clock-divider { width: 100%; height: 1px; }
  .clock-digits span { width: 62px; height: 68px; font-size: 33px; }
  .clock-units span { width: 62px; }
  .clock-controls { margin-top: 28px; }
  .clock-controls button { padding-inline: 12px; }
}

.help-shell { width: min(100%, 1600px); min-height: 72vh; margin: 0 auto; padding: 72px 0 26px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.help-shell h2 { margin: 0; font-family: "League Spartan", "Arimo", sans-serif; font-size: clamp(52px, 8vw, 92px); line-height: .9; }
.help-page-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin: clamp(40px, 7vh, 90px) 0 12px; }
.help-page-actions > * { display: grid; place-items: center; width: clamp(200px, 24vw, 310px); min-height: 70px; border: 1px solid rgba(255,255,255,.36); border-radius: 7px; background: rgba(4,4,4,.65); color: #fff; font: 700 16px "Arimo",Arial,sans-serif; cursor: pointer; text-align: center; }
.help-page-actions > *:hover { border-color: #fff; }
.help-page-counter { flex: 1; width: 100%; min-height: 270px; padding: 22px; }
.help-page-counter #sl-online-count { font-size: clamp(78px, 12vw, 148px); }
.help-widget p { margin: 4px 0 25px; color: rgba(255,255,255,.73); }
.help-actions a, .help-unavailable { min-width: 170px; }

.header-actions .top-search { display: grid; place-items: center; }
.club-sl-group { display: grid; place-items: center; width: 25px; height: 25px; margin: 9px auto 0; border: 1px solid rgba(255,255,255,.34); border-radius: 50%; font-size: 10px; font-weight: 800; letter-spacing: -.04em; }
.club-sl-group.is-pending { color: rgba(255,255,255,.57); }
.avatar-guides { max-width: 900px; }
.avatar-guides button { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px; min-width: 210px !important; }
.avatar-guides button span { font-size: 11px; font-weight: 500; opacity: .78; }
.widget-modal .tool-content { text-align: center; }

.directory-filter-menu[data-filter-menu="clubs"] { z-index: 20; }
.genre-search-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.genre-search-panel { position: absolute; top: calc(100% + 10px); left: 50%; z-index: 20; transform: translateX(-50%); width: min(460px, calc(100vw - 36px)); max-height: min(370px, 55vh); padding: 17px; overflow: auto; border: 1px solid rgba(255,255,255,.24); border-radius: 7px; background: rgba(10,14,23,.96); box-shadow: 0 16px 38px rgba(0,0,0,.4); text-align: center; }
.genre-search-panel[hidden] { display: none; }
.genre-search-panel label { display: block; margin-bottom: 11px; color: #fff; font-size: 11px; font-weight: 700; }
.genre-search-panel input { width: 100%; min-height: 43px; padding: 0 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 5px; outline: none; background: rgba(0,0,0,.45); color: #fff; text-align: center; }
.genre-search-results { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 13px; }
.genre-search-results button { min-height: 35px; padding: 0 10px; border: 1px solid rgba(255,255,255,.25); border-radius: 5px; background: rgba(255,255,255,.035); color: #fff; font: 700 11px "Arimo",Arial,sans-serif; cursor: pointer; }
.genre-search-results button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); }
.genre-search-results p { margin: 8px auto; color: rgba(255,255,255,.65); font-size: 11px; }

/* V3.16: compact rental cards, readable crowd counts and avatar directory. */
.rental-card { min-height: 134px; }
.rental-card .club-teleport { margin-top: 17px; }
.hangout-card .club-count { box-sizing: content-box; min-height: 21px; padding-top: 15px; }
.club-card:not(.hangout-card):not(.travel-card):not(.avatar-landmark-card) { min-height: 230px; }
.club-card:not(.hangout-card):not(.travel-card):not(.avatar-landmark-card) .club-sl-group {
  width: min(75%, 195px); height: 34px; margin: auto auto 0;
  border: 1px solid var(--blue); border-radius: 5px;
  background: var(--blue); color: #fff; opacity: .72;
  font-size: 10px; font-weight: 700; letter-spacing: .08em;
}
.club-card:not(.hangout-card):not(.travel-card):not(.avatar-landmark-card) .club-count { margin-top: auto; }

.avatar-guides {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 1110px); max-width: none;
  gap: 20px; margin: clamp(74px, 16vh, 150px) auto 0 !important;
  overflow: visible;
}
.avatar-guides button {
  min-width: 0 !important; width: 100%; min-height: 88px !important; padding: 12px 18px !important;
  margin: 0; background: rgba(4,4,4,.65) !important;
  text-align: center; white-space: normal;
}
.avatar-guides button strong { font-size: 20px; }
.avatar-guides button span { font-size: 10px; letter-spacing: .025em; }
.page[data-page^="/avatar/"] { width: min(calc(100% - 32px), 1700px); }
.avatar-directory-shell .avatar-list { margin-top: clamp(70px,12vh,145px); }
.avatar-list .directory-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.avatar-landmark-card { min-height: 170px; justify-content: space-between; gap: 18px; background: rgba(0,0,0,.23); }
.avatar-landmark-card h3 { margin: auto 0; }
@media (max-width: 749px) {
  .avatar-guides { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .avatar-list .directory-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 569px) {
  .avatar-guides { grid-template-columns: minmax(0,1fr); }
  .avatar-list .directory-row { grid-template-columns: minmax(0,1fr); }
}

.bom-guide { max-width: 660px; margin: auto; padding-top: 13px; color: rgba(255,255,255,.8); text-align: center; }
.bom-guide h4 { margin: 25px 0 13px; color: #fff; font-size: 15px; letter-spacing: .09em; }
.bom-guide ol { margin: 0; padding: 0; list-style: none; counter-reset: bom-step; }
.bom-guide li { counter-increment: bom-step; padding: 14px 10px; border-bottom: 1px solid rgba(255,255,255,.12); }
.bom-guide li::before { content: counter(bom-step); display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 8px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; }
.bom-guide li strong { color: #fff; font-size: 12px; }
.bom-guide p { margin: 9px 0 0; font-size: 12px; line-height: 1.55; }
.bom-guide small { display: block; margin-top: 22px; color: rgba(255,255,255,.55); }

.page[data-page="/help"].is-active { display: flex; flex-direction: column; }
.page[data-page="/help"] .help-shell { flex: 1; min-height: 0; padding-bottom: 0; }
.page[data-page="/help"] .help-page-counter { flex: 1; min-height: 215px; }

/* Keep each shortcut label, description and key in the same row on all screens. */
.widget-modal .shortcuts-widget .shortcut-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.widget-modal .shortcuts-widget .shortcut-item > div {
  min-width: 0;
  align-items: flex-start;
  text-align: left;
}
.widget-modal .shortcuts-widget .shortcut-item kbd { white-space: nowrap; text-align: right; }
/* Override the centered modal text on every shortcut row and its two text nodes. */
.widget-modal #tool-content .shortcuts-widget,
.widget-modal #tool-content .shortcut-panel,
.widget-modal #tool-content .shortcut-item,
.widget-modal #tool-content .shortcut-item > div,
.widget-modal #tool-content .shortcut-item strong,
.widget-modal #tool-content .shortcut-item span { text-align: left; }
.widget-modal #tool-content .shortcut-item > div { display: flex; flex-direction: column; align-items: flex-start; width: 100%; min-width: 0; }
.widget-modal #tool-content .shortcut-item strong,
.widget-modal #tool-content .shortcut-item span { display: block; width: 100%; margin: 0; }
.widget-modal #tool-content .shortcut-item kbd { justify-self: end; }
@media (max-width: 430px) {
  .widget-modal .shortcuts-widget .shortcut-item { gap: 8px; }
  .widget-modal .shortcuts-widget .shortcut-item kbd { font-size: 10px; }
}

.creator-directory-shell .creator-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 760px);
}
.direct-sell-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, 320px);
  gap: 20px;
  margin: clamp(70px, 12vh, 145px) auto 0;
}
.direct-sell-options a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 100px;
  padding: 15px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 7px;
  background: rgba(4,4,4,.65);
  color: #fff;
  text-align: center;
}
.direct-sell-options a:hover, .direct-sell-options a:focus-visible { border-color: #fff; }
.direct-sell-options a:first-child { background: var(--blue); border-color: var(--blue); }
.direct-sell-options strong { font-size: 20px; }
.direct-sell-options span { color: rgba(255,255,255,.72); font-size: 10px; }
.exchange-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; width: min(100%, 1000px); margin: 38px auto 0; }
.exchange-panel { min-width: 0; padding: clamp(18px, 3vw, 32px); border: 1px solid rgba(255,255,255,.27); border-radius: 8px; background: rgba(4,4,4,.72); text-align: left; scroll-margin-top: 85px; }
.exchange-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.exchange-panel h3 { margin: 0; color: #fff; font-size: 17px; letter-spacing: .06em; }
.exchange-panel-heading button { border: 0; background: transparent; color: #b8d4ff; font: 700 10px "Arimo",Arial,sans-serif; cursor: pointer; white-space: nowrap; }
.exchange-label { display: block; margin: 23px 0 9px; color: rgba(255,255,255,.67); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.exchange-value { display: inline-block; margin: 4px 0 10px; color: #fff; font-size: clamp(27px, 3.8vw, 42px); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.exchange-detail { margin: 6px 0 0; color: #e3eaff; font-size: 11px; font-weight: 700; line-height: 1.5; }
.exchange-meta { min-height: 20px; margin: 19px 0 0; color: rgba(255,255,255,.67); font-size: 10px; line-height: 1.5; }
.exchange-explain { margin: 17px 0 0; color: rgba(255,255,255,.7); font-size: 12px; line-height: 1.55; }
.exchange-panel select, .exchange-panel input { box-sizing: border-box; display: block; width: 100%; min-height: 43px; padding: 0 12px; border: 1px solid rgba(255,255,255,.4); border-radius: 5px; background: #10151e; color: #fff; font: 700 13px "Arimo",Arial,sans-serif; }
.conversion-controls { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); align-items: end; gap: 12px; margin-top: 17px; }
.conversion-group { min-width: 0; }
.conversion-group .exchange-label { margin: 0 0 8px; }
.conversion-small-label { display: block; margin: 15px 0 8px; color: rgba(255,255,255,.67); font-size: 11px; font-weight: 700; }
.conversion-swap { height: 43px; padding: 0; border: 1px solid rgba(255,255,255,.4); border-radius: 5px; background: #10151e; color: #fff; font-size: 23px; cursor: pointer; }
.conversion-swap:hover, .conversion-swap:focus-visible { border-color: #fff; }
.exchange-figure { display: flex; align-items: center; gap: 15px; min-height: 70px; margin-top: 13px; }
.exchange-figure .exchange-value { margin: 0; }
.exchange-trend { color: rgba(255,255,255,.6); font-size: 36px; line-height: 1; }
.exchange-trend.up { color: #48db80; }
.exchange-trend.down { color: #ff6262; }
.direct-sell-note {
  width: min(100%, 1000px);
  margin: 28px auto 0;
  color: rgba(255,255,255,.7);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}
.direct-sell-note a { color: #c5daff; text-decoration: underline; }
@media (max-width: 850px) {
  .direct-sell-options { margin-top: 48px; }
  .exchange-panels { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 430px) {
  .conversion-controls { gap: 7px; grid-template-columns: minmax(0,1fr) 38px minmax(0,1fr); }
}
@media (max-width: 569px) {
  .creator-directory-shell .creator-options, .direct-sell-options { grid-template-columns: 1fr; gap: 12px; }
}
.help-page-counter #sl-online-count { font-size: clamp(64px, 9.6vw, 118px); }
.page[data-page="/help"] .page-bottom-nav { margin-top: auto; padding-top: 52px; }

/* Weekend Sales keeps the Carrd cover/preview rhythm, with a vendor grid in the modal. */
.weekend-list { margin-top: clamp(68px, 10vh, 118px); }
.weekend-list .directory-row { align-items: start; }
.sale-card { min-width: 0; padding: 8px; border: 1px solid rgba(225,239,250,.29); background: rgba(0,0,0,.23); text-align: center; }
.sale-preview { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; overflow: hidden; border: 0; background: radial-gradient(circle at 50% 42%, #191919, #101010 50%, #080808); color: #fff; cursor: pointer; }
.sale-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sale-preview img[hidden], .sale-placeholder[hidden] { display: none; }
.sale-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; font-size: 12px; font-weight: 700; line-height: 1.1; letter-spacing: .15em; }
.sale-placeholder strong { margin-top: 4px; font-size: clamp(28px, 4vw, 48px); line-height: .95; letter-spacing: -.035em; }
.sale-name-row { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 37px; color: #fff; font-family: "Arimo",Arial,sans-serif; font-size: 15px; font-weight: 700; }
.sale-name-row .event-adult-icon { flex: 0 0 20px; }
.sale-preview:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.sale-overlay { position: fixed; inset: 0; z-index: 450; display: none; align-items: center; justify-content: center; padding: 55px 22px 85px; background: rgba(0,0,0,.94); backdrop-filter: blur(5px); }
.sale-overlay.is-open { display: flex; }
.sale-close { position: absolute; top: 15px; right: 24px; z-index: 2; border: 0; background: transparent; color: #fff; font-size: 40px; cursor: pointer; }
.sale-main { display: grid; place-items: center; width: 100%; height: 100%; min-height: 0; }
.sale-main[hidden], .sale-thumbnails[hidden] { display: none; }
.sale-main img { display: block; max-width: 85vw; max-height: calc(100vh - 155px); object-fit: contain; }
.sale-thumbnails { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); align-content: start; gap: 14px; width: min(100%, 1150px); max-height: calc(100vh - 165px); overflow-y: auto; padding: 8px; color: #fff; text-align: center; }
.sale-thumbnails button { aspect-ratio: 1; padding: 3px; border: 1px solid rgba(255,255,255,.22); background: #111; cursor: pointer; }
.sale-thumbnails button:hover, .sale-thumbnails button:focus-visible { border-color: #fff; }
.sale-thumbnails img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sale-modal-controls { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: clamp(10px, 3vw, 27px); white-space: nowrap; }
.sale-modal-controls button { min-height: 42px; padding: 0 9px; border: 0; background: transparent; color: #fff; font: 700 12px "Arimo",Arial,sans-serif; cursor: pointer; }
.sale-modal-controls button:first-child, .sale-modal-controls button:last-child { font-size: 38px; line-height: 1; }
.sale-modal-controls button[aria-pressed="true"] { color: #7eafff; }
@media (max-width: 1099px) { .weekend-list .directory-row { grid-template-columns: repeat(3,minmax(0,1fr)); } .sale-thumbnails { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (max-width: 749px) { .weekend-list .directory-row { grid-template-columns: repeat(2,minmax(0,1fr)); } .sale-thumbnails { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 419px) { .weekend-list .directory-row { grid-template-columns: minmax(0,1fr); } }

/* V3.17: match the supplied Rental/Group proportions and align the BOM guide. */
.bom-guide { text-align: left; }
.bom-guide h4, .bom-guide li, .bom-guide p, .bom-guide small { text-align: left; }
.bom-guide .legal-close { text-align: center; }

.club-card:not(.hangout-card):not(.travel-card):not(.avatar-landmark-card) .club-sl-group {
  width: auto;
  min-width: 0;
  height: 26px;
  padding: 0 11px;
  border: 1px solid rgba(255,255,255,.32);
  background: transparent;
  color: #fff;
  opacity: .85;
}

.help-page-counter #sl-online-count { font-size: clamp(48px, 7.2vw, 88px); }

.rental-card { min-height: 112px; padding: 15px 16px; }
.rental-card .club-teleport { margin-top: 15px; }

/* Optional image for events added through GRIDLY Admin. */
.event-card-image { display: block; width: 100%; max-height: 150px; object-fit: contain; border-radius: 7px; margin: 8px 0; }

/* Avatar directory and Second Life skeleton reference. */
.page[data-page="/avatar"] .avatar-guides { grid-template-columns: repeat(2,minmax(0,1fr)); width: min(100%,760px); }
.creator-directory-shell .beginner-options { grid-template-columns: repeat(2,minmax(0,1fr)); width: min(100%,760px); }
.creator-directory-shell .creator-options { grid-template-columns: repeat(3,minmax(0,1fr)); width: min(100%,1110px); }
.bones-shell { width: min(100%,1160px); }
.bones-layout { display: grid; grid-template-columns: minmax(230px,340px) minmax(0,1fr); align-items: start; gap: 25px; margin: clamp(38px,7vh,86px) auto 20px; }
.bones-figure, .bones-browser { min-width: 0; border: 1px solid rgba(255,255,255,.24); border-radius: 9px; background: rgba(4,4,4,.74); }
.bones-figure { padding: 20px; text-align: center; }
.bones-figure svg { display: block; width: min(100%,285px); margin: 0 auto; overflow: visible; }
.bones-outline { fill: rgba(83,130,200,.10); stroke: rgba(255,255,255,.8); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.bones-guide-lines { fill: none; stroke: rgba(100,156,245,.54); stroke-width: 2; stroke-linecap: round; }
.bones-hotspot { cursor: pointer; outline: none; }
.bones-hotspot circle { fill: #003a9c; stroke: #d4e7ff; stroke-width: 2; transition: fill .15s, stroke-width .15s; }
.bones-hotspot text { fill: #fff; font: 700 10px "Arimo",Arial,sans-serif; text-anchor: middle; pointer-events: none; letter-spacing: .08em; }
.bones-hotspot:hover circle, .bones-hotspot.is-selected circle, .bones-hotspot:focus-visible circle { fill: #4291f3; stroke-width: 4; }
.bones-browser { padding: clamp(16px,2.5vw,26px); }
.bones-tabs, .bones-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.bones-tabs button, .bones-filters button, .bones-selected button { min-height: 37px; padding: 0 13px; border: 1px solid rgba(255,255,255,.35); border-radius: 5px; background: transparent; color: #fff; font: 700 11px "Arimo",Arial,sans-serif; cursor: pointer; }
.bones-tabs, .bones-filters { justify-content: center; }
.bones-tabs { gap: 12px; }
.bones-tabs button { min-height: 46px; padding: 0 20px; font-size: 14px; }
.bones-tabs button[aria-selected="true"], .bones-filters button[aria-pressed="true"] { border-color: var(--blue); background: var(--blue); }
.bones-tabs button:hover, .bones-filters button:hover, .bones-selected button:hover { border-color: #fff; }
.bones-search-label { display: block; margin-top: 18px; color: rgba(255,255,255,.65); font-size: 10px; font-weight: 700; letter-spacing: .05em; text-align: center; }
#bones-search { box-sizing: border-box; display: block; width: min(100%,560px); min-height: 43px; margin: 7px auto 16px; padding: 0 13px; border: 1px solid rgba(255,255,255,.35); border-radius: 5px; background: #10151e; color: #fff; font: 13px "Arimo",Arial,sans-serif; text-align: center; }
.bones-filters button { min-height: 30px; padding: 0 9px; font-size: 10px; }
.bones-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-content: start; gap: 8px; max-height: 280px; margin-top: 18px; overflow-y: auto; padding: 1px 5px 1px 1px; }
.bones-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 0; min-height: 72px; padding: 12px 33px; border: 1px solid rgba(255,255,255,.20); border-radius: 5px; background: rgba(255,255,255,.04); color: #fff; text-align: center; cursor: pointer; }
.bones-item:hover, .bones-item[aria-pressed="true"] { border-color: #88b6ff; background: rgba(0,58,156,.25); }
.bones-item strong, .bones-item span { max-width: 100%; overflow-wrap: anywhere; }
.bones-item strong { font-size: 16px; line-height: 1.25; }
.bones-item span { color: rgba(255,255,255,.66); font-size: 10px; }
.bones-item small { position: absolute; right: 8px; top: 12px; color: #a9c9ff; font-size: 10px; }
.bones-empty { grid-column: 1/-1; color: rgba(255,255,255,.7); text-align: center; }
.bones-selected { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; min-height: 78px; margin-top: 17px; padding: 13px; border: 1px solid rgba(255,255,255,.2); border-radius: 5px; color: rgba(255,255,255,.72); font-size: 11px; text-align: center; }
.bones-selected strong { color: #fff; font-size: 14px; }
.bones-selected code { color: #b9d3ff; font: 700 12px "Arimo",Arial,sans-serif; overflow-wrap: anywhere; }
.bones-selected span { font-size: 10px; }
.bones-selected button { background: var(--blue); border-color: var(--blue); }
@media (max-width: 950px) {
  .bones-layout { grid-template-columns: minmax(190px,260px) minmax(0,1fr); gap: 14px; }
  .creator-directory-shell .creator-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .bones-layout { grid-template-columns: minmax(0,1fr); }
  .bones-figure { max-width: 340px; width: 100%; margin: 0 auto; box-sizing: border-box; }
  .bones-figure svg { max-height: 260px; }
}
@media (max-width: 569px) {
  .page[data-page="/avatar"] .avatar-guides, .creator-directory-shell .beginner-options,
  .creator-directory-shell .creator-options { grid-template-columns: minmax(0,1fr); }
  .bones-list { grid-template-columns: minmax(0,1fr); max-height: 320px; }
}

/* V3.31: club actions share one bar; the clock opens the existing converter. */
.club-card .club-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}
.club-card .club-action-row .club-group-action,
.club-card .club-action-row .club-teleport {
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  margin: 0;
  padding: 0 5px;
  border-radius: 0;
  font: 700 12px "Arimo", Arial, sans-serif;
  text-align: center;
}
.club-card .club-action-row .club-group-action {
  border: 1px solid rgba(255,255,255,.32);
  border-right: 0;
  border-radius: 5px 0 0 5px;
  background: transparent;
  color: #fff;
}
.club-card .club-action-row .club-group-action:not(:disabled):hover {
  border-color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.08);
}
.club-card .club-action-row .club-group-action:disabled {
  color: rgba(255,255,255,.55);
  cursor: default;
}
.club-card .club-action-row .club-teleport { border-radius: 0 5px 5px 0; }
.club-card .club-action-row .club-group-action:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.header-actions .top-search.icon-search svg { width: 20px; height: 20px; }
.header-actions .header-user:disabled,
.header-actions .header-user:disabled:hover {
  opacity: .72;
  border-color: rgba(255,255,255,.15);
  background: rgba(5,5,5,.54);
  color: #fff;
  transform: none;
}
@media (max-width: 700px) {
  .subpage-header.is-visible { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .subpage-nav { min-width: 0; }
}
