/* Speaking Club — content styles; chrome/hero use main landing CSS */

.nav-desktop a[aria-current="page"] { color: var(--accent); }

/* Desktop header: shift brand left slightly so full nav stays on one row */
@media (min-width: 901px) {
  .site-header .shell.header-bar {
    padding-left: calc(var(--gutter) * 0.4);
    gap: 0.55rem 0.7rem;
  }
  .brand {
    gap: 0.5rem;
  }
  .brand img {
    width: 38px;
    height: 38px;
  }
  .nav-desktop a {
    font-size: clamp(0.76rem, 0.95vw, 0.86rem);
    padding: 6px 0;
  }
}

/* Keep hero CTAs visible (main landing hides .hero-actions on desktop) */
.hero-actions {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.15rem;
  margin-bottom: 0;
}

.hero-title { margin: 0 0 1.35rem; }
.hero-lede { margin: 0 0 0.85rem; }
.hero-sub {
  margin: 0 0 0.85rem;
  white-space: nowrap;
}
.hero-sub.hero-address {
  margin: -0.45rem 0 0.85rem;
  white-space: normal;
  font-weight: 500;
}

/* Format links under hero subtitle — reuse landing club-loc-btn styles */
.hero-copy > .club-loc-btns {
  margin: 0 0 1rem;
}
.hero-copy > .club-loc-btns .club-loc-btn[aria-current="page"] {
  border-color: rgba(208, 111, 95, 0.45);
  color: var(--accent, #D06F5F);
}

.hero-club-info {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1.1rem;
  max-width: 36rem;
}
.hero-club-p {
  margin: 0;
  font-family: var(--font-sub);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-soft);
  letter-spacing: 0;
  text-transform: none;
  font-style: normal;
}

/* Three equal-spaced stats like PC: value above label */
.hero-stats-3 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  column-gap: 0;
  width: 100%;
  max-width: none;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  list-style: none;
  margin: 0;
  margin-bottom: 0;
}
.hero-stats-3 .hero-stat {
  display: block !important;
  min-width: 0;
  text-align: left;
  padding: 0 1.25rem 0 0;
  box-sizing: border-box;
  border-bottom: 0 !important;
}
.hero-stats-3 .hero-stat:last-child { padding-right: 0; }
.hero-stats-3 .hero-stat strong {
  display: block !important;
  font-family: var(--font-sub);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
  min-width: 0 !important;
}
.hero-stats-3 .hero-stat span {
  display: block !important;
  margin-top: 0.2rem;
  font-family: var(--font-sub);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Two equal stats after price removed */
.hero-stats-2 {
  display: flex !important;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 1cm;
  row-gap: 0.55rem;
  width: 100%;
  max-width: none;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  list-style: none;
  margin: 0;
}
.hero-stats-2 .hero-stat {
  display: inline-flex !important;
  flex-direction: row;
  align-items: baseline;
  gap: 0.4rem;
  min-width: 0;
  text-align: left;
  padding: 0;
  box-sizing: border-box;
  border-bottom: 0 !important;
}
.hero-stats-2 .hero-stat:last-child { padding-right: 0; }
.hero-stats-2 .hero-stat strong {
  display: inline !important;
  font-family: var(--font-sub);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  white-space: nowrap;
}
.hero-stats-2 .hero-stat span {
  display: inline !important;
  margin-top: 0;
  font-family: var(--font-sub);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* Lightbox: full-size gallery overlay */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  margin: 0;
  border: 0;
  background: rgba(20, 18, 24, 0.88);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  touch-action: pan-y;
}
.lightbox[hidden] {
  display: none !important;
}
.lightbox img {
  grid-column: 2;
  display: block;
  width: auto;
  height: auto;
  max-height: 85vh;
  max-width: min(100%, calc(100vw - 7rem));
  object-fit: contain;
  border-radius: 12px;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox .modal-x {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  color: #fff;
}
.lightbox-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease);
}
.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
}
@media (max-width: 900px) {
  .lightbox {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  .lightbox img {
    grid-column: 1;
    max-width: min(100%, calc(100vw - 2rem));
    max-height: 82vh;
  }
  /* Mobile: swipe between photos; hide arrows */
  .lightbox-arrow { display: none !important; }
}

#sc-page { gap: 0.5cm; }
#sc-app {
  display: flex;
  flex-direction: column;
  gap: 0.5cm;
}

.sc-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
}
.sc-section-title {
  margin: 0 0 1.15rem;
  font-family: var(--font-sub);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.sc-section-head .sc-section-title { margin-bottom: 0; }

.sc-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 0.75rem;
}
.sc-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: clamp(1rem, 2.5vw, 1.35rem);
}
.sc-card-meta,
.sc-meeting-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
  font-family: var(--font-sub);
  font-size: 0.78rem;
  color: var(--muted);
}
.sc-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--chip-bg);
  font-family: var(--font-sub);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--border);
}
.sc-pill-past {
  background: var(--chip-bg);
  color: var(--muted);
  border-color: var(--border);
}
.sc-card-title,
.sc-meeting-title {
  margin: 0.25rem 0 0.45rem;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
}
.sc-card-title { font-size: clamp(1.05rem, 2.2vw, 1.3rem); }
.sc-meeting-title { font-size: clamp(1.55rem, 3.5vw, 2.25rem); line-height: 1.1; }
.sc-card-desc {
  margin: 0;
  font-family: var(--font-sub);
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.45;
  flex: 1;
}
.sc-card .text-cta { margin-top: 0.65rem; }

.sc-meeting-view {
  display: flex;
  flex-direction: column;
  gap: 0.5cm;
}
.sc-meet-block { margin: 0; }
.sc-meet-loc {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.55rem;
}
.sc-back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0;
  align-self: flex-start;
}
.sc-prose {
  margin: 0 0 0.75rem;
  font-family: var(--font-sub);
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.sc-agenda {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.sc-agenda li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0 0.75rem;
  align-items: baseline;
}
.sc-agenda-num {
  font-family: var(--font-sub);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.sc-agenda strong {
  display: block;
  font-family: var(--font-sub);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.2rem;
}
.sc-agenda p {
  margin: 0;
  font-family: var(--font-sub);
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.sc-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.sc-checklist li {
  display: grid;
  grid-template-columns: 1.2rem 1fr;
  gap: 0 0.55rem;
  font-family: var(--font-sub);
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.sc-checklist li::before {
  content: "✓";
  color: var(--ok, #2F7A47);
  font-size: 0.75rem;
  padding-top: 0.15rem;
}

.sc-quizlet-desc {
  margin: 0;
  font-family: var(--font-sub);
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ── Match phrases (like small-talk-demo 02) ── */
.sc-match-progress {
  display: inline-flex;
  margin: 0 0 0.85rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--chip-bg);
  font-family: var(--font-sub);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}
.sc-match-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 8px;
}
.sc-match-col-title {
  margin: 0;
  font-family: var(--font-sub);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.sc-match-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}
.sc-match-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.sc-match-item {
  min-height: 3.1rem;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  font-family: var(--font-sub);
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--chip-shadow);
  color: var(--ink);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease), background var(--ease);
}
.sc-match-item.is-matched {
  border-color: rgba(47, 122, 71, 0.4);
  background: #E8F5EC;
  color: #2F7A47;
  pointer-events: none;
  cursor: default;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.25s ease;
}
.sc-match-item.selected {
  border-color: var(--border);
  background: var(--chip-bg);
  color: var(--ink);
  box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.06);
}
.sc-match-item.is-wrong {
  border-color: rgba(177, 79, 79, 0.45);
  background: #FCEDED;
  color: #B14F4F;
  animation: sc-shake 0.42s ease;
}
@keyframes sc-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.sc-def-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  height: 1.3rem;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--chip-bg);
  font-size: 0.68rem;
  font-weight: 700;
  flex-shrink: 0;
}
.sc-match-success {
  margin-top: 1rem;
  padding: 12px 14px;
  border-radius: 16px;
  background: #E8F5EC;
  color: #2F7A47;
  font-family: var(--font-sub);
  font-size: 0.92rem;
}
.sc-match-success[hidden] { display: none !important; }
.sc-match-success.show { display: block; }

/* ── Flip cards (like small-talk-demo 04) ── */
.sc-flip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 0.85rem;
}
.sc-flip-scene {
  perspective: 1000px;
  height: 188px;
  transition: transform var(--ease);
}
.sc-flip-scene:hover:not(:has(.is-flipped)) { transform: scale(1.02); }
.sc-flip-card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
  cursor: pointer;
}
.sc-flip-card.is-flipped { transform: rotateY(180deg); }
.sc-flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius, 1rem);
  border: 1px solid var(--border);
  box-shadow: var(--shadow, var(--chip-shadow));
  padding: 14px 16px;
  overflow: hidden;
}
.sc-flip-front {
  background: linear-gradient(135deg, #fff, #f3eef8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}
.sc-phrase-text {
  margin: 0;
  font-family: var(--font-sub);
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  font-weight: 500;
  line-height: 1.35;
  max-width: 92%;
  color: var(--ink);
}
.sc-flip-hint {
  font-size: 1.15rem;
  color: var(--muted);
  opacity: 0;
  transition: opacity var(--ease);
}
.sc-flip-scene:hover .sc-flip-hint { opacity: 1; }
.sc-flip-back {
  background: #fff;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sc-flip-back dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
}
.sc-flip-back dt {
  margin: 4px 0 0;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-sub);
}
.sc-flip-back dt:first-child { margin-top: 0; }
.sc-flip-back dd {
  margin: 0 0 4px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--ink-soft);
  font-family: var(--font-sub);
}

.sc-final-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

/* ── photo carousel / gallery — keep natural image proportions ── */
.sc-photo-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  max-width: min(22rem, 100%);
  margin: 0.85rem auto 0;
}
.sc-photo-stage {
  position: relative;
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--chip-bg);
  box-shadow: var(--chip-shadow);
}
.sc-photo-slide {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  line-height: 0;
}
.sc-photo-slide[hidden] { display: none !important; }
.sc-photo-slide img {
  width: 100%;
  height: auto;
  max-height: min(70vh, 32rem);
  object-fit: contain;
  object-position: center;
  display: block;
}
.sc-photo-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1;
  box-shadow: var(--chip-shadow);
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.sc-photo-nav:hover {
  background: var(--chip-bg);
  border-color: rgba(208, 111, 95, 0.35);
  color: var(--accent);
}
.sc-photo-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
}
.sc-photo-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--border);
}
.sc-photo-dot.is-active { background: var(--accent); }

@media (max-width: 900px) {
  .hero-title { margin: 0 0 0.95rem; }
  .hero-lede { margin: 0; }
  .hero-sub {
    white-space: normal;
    margin: 0 0 0.65rem;
  }
  .hero-club-info {
    gap: 0.45rem;
    margin: 0 0 0.85rem;
  }
  .hero-club-p { font-size: 0.88rem; line-height: 1.5; }

  /* Stats like desktop: 3 equal columns, value above label — override landing mobile flex rows */
  .hero-stats-3,
  .hero .hero-stats.hero-stats-3 {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    flex-direction: unset !important;
    align-items: start !important;
    gap: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding-top: 0.85rem !important;
    border-top: 1px solid var(--line) !important;
    border-bottom: 0 !important;
  }
  .hero-stats-3 .hero-stat,
  .hero .hero-stats-3 .hero-stat {
    display: block !important;
    flex-direction: unset !important;
    align-items: unset !important;
    justify-content: unset !important;
    gap: 0 !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 0 0.75rem 0 0 !important;
    border-bottom: 0 !important;
    text-align: left !important;
  }
  .hero-stats-3 .hero-stat:last-child {
    padding-right: 0 !important;
    padding-bottom: 0 !important;
  }
  .hero-stats-3 .hero-stat strong,
  .hero .hero-stats-3 .hero-stat strong {
    display: block !important;
    min-width: 0 !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
    text-align: left !important;
  }
  .hero-stats-3 .hero-stat span,
  .hero .hero-stats-3 .hero-stat span {
    display: block !important;
    margin-top: 0.2rem !important;
    font-size: 0.62rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: var(--muted) !important;
    line-height: 1.25 !important;
    text-align: left !important;
  }

  .hero-stats-2,
  .hero .hero-stats.hero-stats-2 {
    display: flex !important;
    flex-wrap: wrap !important;
    column-gap: 1cm !important;
    width: 100% !important;
  }
  .hero-stats-2 .hero-stat strong,
  .hero .hero-stats-2 .hero-stat strong {
    font-size: 1.05rem !important;
  }

  .hero-actions {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 0.55rem !important;
    width: 100% !important;
    margin-top: 0.95rem !important;
    margin-bottom: 0 !important;
  }
  .hero-actions .text-cta,
  .hero-actions .text-cta.primary,
  .hero-actions a.text-cta.primary {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 2.75rem !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    font-size: 0.78rem !important;
    padding: 0.7rem 1rem !important;
    letter-spacing: 0.04em !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    box-sizing: border-box !important;
    /* Both buttons white on mobile */
    background: #fff !important;
    border: 1px solid var(--border) !important;
    color: var(--ink) !important;
    box-shadow: var(--chip-shadow) !important;
  }
  .hero-actions .text-cta:hover,
  .hero-actions .text-cta.primary:hover {
    background: var(--chip-bg) !important;
    border-color: var(--border) !important;
    color: var(--ink) !important;
  }
  .sc-back { display: none !important; }
  .sc-card-grid { grid-template-columns: 1fr; }
  .sc-match-head,
  .sc-match-board { grid-template-columns: 1fr; }
  .sc-flip-grid { grid-template-columns: 1fr; }
  .sc-flip-scene { height: 148px; }
  .sc-photo-carousel {
    max-width: min(18rem, 100%);
    gap: 0.45rem;
  }
  .sc-photo-slide img {
    max-height: min(60vh, 26rem);
  }
  .sc-photo-nav {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 1rem;
  }
}

@media (max-width: 520px) {
  .sc-flip-grid { grid-template-columns: 1fr; }
}


/* Desktop: equal gaps between photos and block edges (via full-width grid) */
@media (min-width: 901px) {
  .sc-photos {
    --photo-gap: 0.85rem;
  }
  .sc-photo-carousel {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0.85rem 0 0;
  }
  .sc-photo-nav,
  .sc-photo-dots { display: none !important; }
  .sc-photo-stage {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--photo-gap);
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
  }
  .sc-photo-slide,
  .sc-photo-slide[hidden] {
    display: block !important;
    position: static;
    width: 100%;
    max-width: none;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    cursor: zoom-in;
    box-shadow: var(--chip-shadow);
    line-height: 0;
  }
  .sc-photo-slide img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center;
    display: block;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .sc-photo-stage {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* CTAs above the stats line */
.hero-inner > .hero-actions {
  margin-top: 0.35rem;
  margin-bottom: 0.25rem;
}
.hero-inner > .hero-stats-2 {
  margin-top: 0.85rem;
}
