/*
 * Redesign A (家庭運動會所, Max 2026-11-04): warm off-white ground, white cards,
 * teal used only as an accent, real footage first. Loaded after styles.css,
 * pages.css and the page's own stylesheet, so it only overrides tokens and the
 * look of shared components; markup hooks and matching logic are unchanged.
 * The brand logo is never recoloured or shadowed.
 */

:root {
  --tf-mint: #0fd4b2;
  --tf-mint-deep: #0a7d6a;
  --tf-blue: #0a7d6a;
  --tf-blue-soft: #e7f7f3;
  --tf-orange: #c57a00;
  --tf-orange-soft: #fbf1df;
  --ink-strong: #1d2a28;
  --ink-main: #2a3634;
  --ink-soft: #5a6865;
  --ink-faint: #85918e;
  --surface: #ffffff;
  --surface-soft: #ffffff;
  --surface-muted: #f4f3ef;
  --surface-elevated: #ffffff;
  --line-soft: #e6e4de;
  --line-strong: #d3d0c7;
  --shadow-lg: 0 24px 48px rgba(29, 42, 40, 0.09);
  --shadow-md: 0 14px 32px rgba(29, 42, 40, 0.06);
  --shadow-sm: 0 6px 16px rgba(29, 42, 40, 0.05);
  --font-sans: "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-latin: "Manrope", "Noto Sans TC", "PingFang HK", sans-serif;
  --a-ground: #faf9f6;
  --a-teal-wash: #e7f7f3;
  color-scheme: light;
}

body {
  background: var(--a-ground);
  color: var(--ink-main);
}

.page-glow {
  display: none;
}

.page {
  width: min(1240px, calc(100% - 32px));
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-md);
  backdrop-filter: none;
}

.hero-kicker,
.eyebrow {
  color: var(--tf-mint-deep);
}

/* ---------- Header: one white bar across the page ---------- */

.site-nav {
  width: 100%;
  margin: 0;
  padding: 0;
  gap: 0;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
  backdrop-filter: none;
}

.site-nav-main,
.site-nav-member {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.site-nav-main {
  min-height: 64px;
  gap: 18px;
}

.site-nav-brand {
  color: var(--ink-strong);
  font-size: 1rem;
}

.site-nav-brand img {
  width: 36px;
  height: 36px;
}

.site-nav-links {
  gap: 4px;
}

.site-nav-links a,
.site-nav-member-links a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav-links a:hover,
.site-nav-member-links a:hover {
  background: var(--surface-muted);
  color: var(--tf-mint-deep);
}

.site-nav-links a[aria-current="page"],
.site-nav-member-links a[aria-current="page"] {
  color: var(--tf-mint-deep);
  background: var(--a-teal-wash);
}

.site-nav .nav-cta {
  padding: 10px 18px;
  background: var(--tf-mint-deep);
  box-shadow: none;
}

.site-nav .nav-cta:hover {
  filter: none;
  background: #086b5b;
}

.site-nav-member {
  padding: 8px 0 10px;
  border-top: 1px solid var(--line-soft);
}

.site-nav-member-label {
  border-color: rgba(10, 125, 106, 0.2);
  background: var(--a-teal-wash);
  color: var(--tf-mint-deep);
}

@media (min-width: 900px) {
  .site-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 max(16px, calc((100% - 1240px) / 2));
  }

  .site-nav-main {
    width: auto;
    flex: 1 1 auto;
    margin: 0;
  }

  .site-nav-member {
    width: auto;
    flex: 0 0 auto;
    margin: 0 0 0 14px;
    padding: 0 0 0 14px;
    border-top: 0;
    border-left: 1px solid var(--line-soft);
  }
}

@media (max-width: 640px) {
  .site-nav-main {
    min-height: 0;
    flex-wrap: wrap;
    gap: 4px 8px;
    padding-top: 10px;
  }

  .site-nav-brand span {
    display: inline;
  }

  .site-nav-main .nav-cta {
    margin-left: auto;
  }

  .site-nav-main .site-nav-links {
    order: 3;
    flex: 1 0 100%;
    margin: 0 -8px;
  }

  .site-nav-member {
    padding: 7px 0 9px;
  }
}

/* ---------- Buttons: solid teal, no gradients ---------- */

.submit-btn,
.whatsapp-btn,
.cta-btn,
.campaign-cta,
.schedule-submit {
  background: var(--tf-mint-deep);
  color: #ffffff;
  box-shadow: none;
}

.submit-btn:hover,
.whatsapp-btn:hover,
.cta-btn:hover,
.campaign-cta:hover,
.schedule-submit:hover {
  background: #086b5b;
  filter: none;
}

.submit-btn:disabled,
.whatsapp-btn:disabled {
  background: #b9c3c0;
}

.cta-btn {
  box-shadow: none;
}

.step-list li::before {
  background: var(--tf-mint-deep);
}

/* ---------- Home hero: loop on top, copy + matching entry below ---------- */

.hero.hero-a {
  --hv-top: 0px;
  --hv-x: 0px;
  padding: 0;
  text-align: left;
  border-color: var(--line-soft);
}

.hero.hero-a::before,
.hero.hero-a::after {
  display: none;
}

.hero.hero-a .hero-video {
  margin: 0;
  width: 100%;
}

.hero-film-cap {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 1;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-strong);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
}

.hero-a-body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding: 40px 40px 44px;
}

.hero-a-copy {
  display: grid;
  gap: 20px;
  align-content: start;
}

.hero-a-copy .hero-kicker,
.home-proof-copy .eyebrow {
  justify-self: start;
}

.hero-a-copy .hero-kicker {
  margin: 0;
  font-family: var(--font-latin);
}

.hero.hero-a h1 {
  margin: 0;
  max-width: none;
  color: var(--ink-strong);
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.hero.hero-a h1 em {
  font-style: normal;
  color: var(--tf-mint-deep);
}

.hero-a-subhead {
  margin: -8px 0 0;
  color: var(--ink-strong);
  font-size: clamp(1.12rem, 2vw, 1.4rem);
  font-weight: 700;
}

.hero.hero-a .hero-lead {
  margin: 0;
  max-width: 34em;
  color: var(--ink-soft);
  font-size: 1.04rem;
  line-height: 1.75;
}

.hero-a-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-a-facts span {
  padding: 6px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-main);
  font-size: 0.88rem;
  font-weight: 500;
}

.hero-a-entry {
  display: grid;
  gap: 16px;
  padding: 26px 24px 22px;
  border-radius: 24px;
  background: var(--a-ground);
}

.hero-a-entry h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1.3;
}

.hero-a-entry > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.65;
}

.hero-a-entry .steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  justify-content: stretch;
}

.hero-a-entry .steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink-main);
  font-size: 0.95rem;
  font-weight: 700;
}

.hero-a-entry .steps li b {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 999px;
  background: var(--a-teal-wash);
  color: var(--tf-mint-deep);
  font-family: var(--font-latin);
  font-size: 0.85rem;
}

.hero-a-entry .steps li small {
  margin-left: auto;
  color: var(--ink-faint);
  font-size: 0.8rem;
  font-weight: 500;
  text-align: right;
}

.hero-a-start {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border-radius: 999px;
  background: var(--tf-mint-deep);
  color: #ffffff;
  font-size: 1.06rem;
  font-weight: 800;
  text-decoration: none;
}

.hero-a-start:hover {
  background: #086b5b;
}

.hero-a-start:focus-visible,
.hero-a-entry a:focus-visible {
  outline: 3px solid var(--tf-mint);
  outline-offset: 2px;
}

.hero-a-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  text-align: center;
}

.hero-a-note a {
  color: var(--tf-mint-deep);
  font-weight: 700;
}

@media (max-width: 900px) {
  .hero-a-body {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 26px 20px 28px;
  }
}

@media (max-width: 480px) {
  .hero-a-body {
    padding: 22px 16px 24px;
  }

  .hero-a-entry {
    padding: 20px 16px 18px;
  }

  .hero-film-cap {
    left: 12px;
    bottom: 12px;
  }
}

/* ---------- Matching form ---------- */

.form-section {
  border-color: var(--line-soft);
}

.section-heading .eyebrow {
  font-family: var(--font-latin);
}

.section-heading h2 {
  color: var(--ink-strong);
}

input,
select {
  border-color: var(--line-soft);
}

input:focus,
select:focus {
  border-color: var(--tf-mint-deep);
  box-shadow: 0 0 0 3px rgba(15, 212, 178, 0.22);
}

.item-card,
.compact-option {
  border-color: var(--line-soft);
  background: var(--surface);
  box-shadow: none;
}

.item-card:hover {
  border-color: var(--line-strong);
  box-shadow: none;
}

.item-card:has(input:checked),
.compact-option:has(input:checked) {
  border-color: var(--tf-mint-deep);
  background: var(--a-teal-wash);
  box-shadow: none;
}

.item-bike {
  border-left-color: var(--tf-mint-deep);
  background: var(--surface);
}

.item-athletics {
  border-left-color: var(--tf-orange);
  background: var(--surface);
}

.item-athletics:has(input:checked) {
  border-color: var(--tf-orange);
  background: var(--tf-orange-soft);
}

.area-box {
  background: var(--a-ground);
  box-shadow: none;
}

.loading {
  border-color: var(--line-soft);
  background: var(--a-ground);
  box-shadow: none;
}

.no-match-panel {
  border-color: var(--line-soft);
  background: var(--a-ground);
  box-shadow: none;
}

/* ---------- Results ---------- */

.class-card,
.selectable-card {
  border-color: var(--line-soft);
  box-shadow: var(--shadow-sm);
}

.bike-card.selected-card {
  border-color: var(--tf-mint-deep);
  background: #f5fbf9;
  box-shadow: 0 0 0 2px rgba(10, 125, 106, 0.18), var(--shadow-sm);
}

.bike-badge {
  background: var(--a-teal-wash);
  color: var(--tf-mint-deep);
}

.bike-card .trial-date-pill:has(.trial-date-input:checked) {
  border-color: rgba(10, 125, 106, 0.5);
  background: var(--a-teal-wash);
  color: var(--tf-mint-deep);
}

.status-card {
  border-color: var(--line-soft);
  background: var(--a-ground);
  color: var(--ink-main);
}

.athletics-card.selected-card {
  border-color: var(--tf-orange);
  box-shadow: 0 0 0 2px rgba(197, 122, 0, 0.18), var(--shadow-sm);
}

/* ---------- Campaign offer ---------- */

.campaign-offer {
  border-color: rgba(10, 125, 106, 0.24);
  background: linear-gradient(168deg, #ffffff 0%, var(--a-teal-wash) 100%);
}

/* Eligible classes start collapsed (founder 2026-11-04) */
.campaign-schedule-head { margin-bottom: 4px; }

.campaign-schedule-note {
  margin: 0 0 12px;
  color: var(--ink-soft, #5b6460);
  font-size: 0.88rem;
  line-height: 1.5;
}

.campaign-schedule-summary {
  margin: 0 0 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 212, 178, 0.12);
  color: var(--ink-strong);
  font-weight: 800;
}

.campaign-schedule-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin: 0 0 14px;
  padding: 10px 16px;
  border: 1.5px solid var(--tf-mint-deep, #0a7d6a);
  border-radius: 999px;
  background: #fff;
  color: var(--tf-mint-deep, #0a7d6a);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
}

.campaign-schedule-toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.campaign-schedule-toggle[aria-expanded="true"]::after {
  transform: translateY(2px) rotate(-135deg);
}

.campaign-schedule-toggle:hover { background: rgba(15, 212, 178, 0.1); }

.campaign-schedule-toggle:focus-visible {
  outline: 3px solid var(--tf-mint-deep, #0a7d6a);
  outline-offset: 3px;
}

.campaign-schedule-panel { margin-bottom: 14px; }
.campaign-schedule-panel[hidden] { display: none; }

@media (max-width: 599px) {
  .campaign-schedule-head { margin: 4px 0 4px; }
  .campaign-schedule-toggle { display: flex; width: 100%; justify-content: center; padding: 13px 16px; }
}

/* ---------- Home: courses + pathway teaser ---------- */

.home-sec {
  position: relative;
  z-index: 1;
  margin-top: 56px;
}

.home-sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 10px 24px;
  margin-bottom: 24px;
}

.home-sec-head h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 900;
  line-height: 1.3;
}

.home-sec-head p {
  margin: 0;
  max-width: 36em;
  color: var(--ink-soft);
  line-height: 1.7;
}

.home-courses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.home-course {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: var(--surface);
}

.home-course-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--a-teal-wash);
}

.home-course-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-course-body {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 22px 24px 26px;
}

.home-course-body h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 1.35rem;
  font-weight: 900;
}

.home-course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.home-course-meta b {
  color: var(--ink-strong);
  font-family: var(--font-latin);
}

.home-course-body p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

.home-course-link {
  color: var(--tf-mint-deep);
  font-weight: 700;
  text-decoration: none;
}

.home-course-link:hover {
  text-decoration: underline;
}

.home-proof {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 40px;
}

.home-proof-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.home-proof-photos img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  object-fit: cover;
}

.home-proof-copy {
  display: grid;
  gap: 16px;
}

.home-proof-copy .eyebrow {
  margin: 0;
}

.home-proof-copy h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(1.45rem, 2.8vw, 1.95rem);
  font-weight: 900;
  line-height: 1.3;
}

.home-proof-copy p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

.home-duo {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.home-duo div {
  display: grid;
}

.home-duo b {
  color: var(--tf-mint-deep);
  font: 800 2.5rem/1.1 var(--font-latin);
}

.home-duo div + div b {
  color: var(--ink-faint);
}

.home-duo span {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.home-proof-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--a-teal-wash);
  color: var(--tf-mint-deep);
  font-weight: 700;
  text-decoration: none;
}

.home-proof-link:hover {
  background: #d8f1ea;
}

@media (max-width: 900px) {
  .home-courses,
  .home-proof {
    grid-template-columns: 1fr;
  }

  .home-proof-photos img {
    aspect-ratio: 4 / 5;
    object-position: 50% 20%;
  }

  .home-proof {
    gap: 24px;
    padding: 24px 20px 28px;
  }
}

@media (max-width: 480px) {
  .home-sec {
    margin-top: 40px;
  }

  .home-proof {
    padding: 20px 16px 24px;
  }

  .home-course-body {
    padding: 18px 18px 22px;
  }
}

/* ---------- Content pages ---------- */

.content-hero h1,
.content-panel h2,
.schedule-copy h1 {
  font-weight: 900;
}

.info-card {
  border-radius: 20px;
}

.info-card.info-bike {
  border-top-color: var(--tf-mint-deep);
}

.info-card.info-athletics {
  border-top-color: var(--tf-orange);
}

.content-note {
  background: var(--a-ground);
}

/* Content-page hero with a photo: portrait photo beside the copy, or a wide
   banner under it. On phones the photo always sits under the copy. */
.content-hero.has-media,
.content-hero.has-banner {
  overflow: hidden;
}

.content-hero.has-media {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 0 0 0 36px;
}

.content-hero.has-media .content-hero-copy {
  padding: 36px 0;
}

.content-hero-media {
  display: block;
}

.content-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.content-hero.has-banner .content-hero-media img {
  object-position: 50% 60%;
}

.content-hero.has-media .content-hero-media {
  align-self: stretch;
  min-height: 420px;
  max-height: 480px;
}

.content-hero.has-banner .content-hero-media {
  margin: 24px -28px -34px;
  aspect-ratio: 16 / 7;
}

.info-card-media {
  display: block;
  margin: -20px -20px 16px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.info-card-video {
  background: #e7f7f3;
}

.info-card-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-proof-photos picture {
  display: block;
}

.info-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
}

@media (max-width: 760px) {
  .content-hero.has-media {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }

  .content-hero.has-media .content-hero-copy {
    padding: 28px 22px 22px;
  }

  .content-hero.has-media .content-hero-media {
    min-height: 0;
    max-height: none;
    aspect-ratio: 4 / 3;
  }

  .content-hero.has-banner .content-hero-media {
    aspect-ratio: 4 / 3;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 24px;
  background: var(--surface);
  backdrop-filter: none;
}

.site-footer-inner {
  width: min(1240px, calc(100% - 32px));
}

.site-footer-links a:hover,
.site-footer-whatsapp:hover {
  color: var(--tf-mint-deep);
}

/* ---------- Pathway apply card: members only ---------- */

.apply-panel .apply-eligibility {
  margin: 0 0 14px;
  padding: 12px 16px;
  border-left: 4px solid var(--tf-mint-deep);
  border-radius: 12px;
  background: var(--a-teal-wash);
  color: var(--ink-strong);
  font-weight: 800;
  line-height: 1.6;
}

.apply-alt-links {
  display: grid;
  gap: 6px;
}

.apply-alt-links .apply-alt {
  color: var(--tf-mint-deep);
  font-weight: 700;
}

/* ---------- Check list (brand line check, replaces emoji bullets) ---------- */

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin: 6px 0;
  line-height: 1.6;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='8.6' fill='none' stroke='%230a7d6a' stroke-width='1.8'/%3E%3Cpath d='M6 10.4l2.7 2.6L14.2 7.3' fill='none' stroke='%230a7d6a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Courses: richer cards, coaches, results ---------- */

.info-card h4 {
  margin: 18px 0 6px;
  color: var(--tf-mint-deep);
  font-size: 0.98rem;
  font-weight: 800;
}

.info-card p {
  line-height: 1.75;
}

.tbc {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #fff1b8;
  color: #7a5a00;
  font-size: 0.72rem;
  font-weight: 800;
  vertical-align: middle;
}

.coach-grid,
.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.coach-card,
.result-card {
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--surface-muted, #f3f1ec);
  border: 1px solid var(--line-soft, rgba(0, 0, 0, 0.06));
}

.coach-card h3,
.result-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.result-stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 4px 0 8px;
}

.result-stat b {
  color: var(--tf-mint-deep);
  font-family: Manrope, "Noto Sans TC", sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.result-note {
  margin: 12px 0 0;
  color: var(--ink-soft, #5b6460);
  font-size: 0.85rem;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 18px 22px;
}

.home-stats div {
  display: grid;
  gap: 2px;
}

.home-stats b {
  color: var(--tf-mint-deep);
  font-family: Manrope, "Noto Sans TC", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
}

.home-stats span {
  color: var(--ink-soft, #5b6460);
  font-size: 0.88rem;
}

.home-stats a {
  align-self: center;
  justify-self: end;
  font-weight: 800;
}

@media (max-width: 640px) {
  .coach-grid,
  .result-grid,
  .home-stats {
    grid-template-columns: 1fr;
  }

  .home-stats a {
    justify-self: start;
  }
}

/* ---------- Black brand footer (direction B footer, all pages) ---------- */

.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: 56px;
  padding: 56px 0 0;
  background: #020000;
  color: #fff;
  border-top: 0;
}

.site-footer::after {
  content: "";
  display: block;
  height: 90px;
  margin-top: 32px;
  background: url(/assets/brand/speed-strip.svg?v=brand-b-20261104) right center / auto 100% no-repeat;
}

.site-footer-inner {
  position: relative;
  align-items: flex-start;
}

.site-footer-brand strong {
  display: block;
  width: 210px;
  height: 79px;
  font-size: 0;
  background: url(/team-futura-logo-large-nobg.png) left center / contain no-repeat;
}

.site-footer-brand p,
.site-footer-links a,
.site-footer-whatsapp {
  color: rgba(255, 255, 255, 0.82) !important;
}

.site-footer-links a:hover,
.site-footer-links a:focus-visible,
.site-footer-whatsapp:hover,
.site-footer-whatsapp:focus-visible {
  color: #00e1b5 !important;
}

@media (max-width: 900px) {
  .site-footer::after {
    height: 60px;
    margin-top: 24px;
  }
}

/* ---------- Hero X2: every hero card is the brand spot ----------
   Black copy area, original-colour symbol, three facts, speed stripes only
   along the bottom of the black area (never between the black and a photo). */

.hero-x-symbol {
  display: block;
  width: 46px;
  height: auto;
  margin: 0 0 18px;
}

.hero-x .hero-kicker {
  color: #00e1b5;
  background: rgba(0, 225, 181, 0.12);
  border-color: rgba(0, 225, 181, 0.3);
}

.hero-x h1 {
  color: #fff;
}

.hero-x h1 em {
  color: #00e1b5;
}

.hero-x p {
  color: rgba(255, 255, 255, 0.8);
}

.hero-x-facts {
  display: flex;
  flex-wrap: wrap;
  row-gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.hero-x-facts li {
  display: grid;
  gap: 2px;
  padding: 0 26px;
  border-left: 1px solid rgba(0, 225, 181, 0.4);
}

.hero-x-facts li:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-x-facts b {
  color: #fff;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.15;
}

.hero-x-facts span {
  color: #00e1b5;
  font-size: 0.9rem;
  font-weight: 700;
}

/* Every black hero clips its stripes to the rounded corners (Max 2026-11-04: schedule stripes poked out) */
.hero-x,
.award-board {
  overflow: hidden;
}

/* Shared bottom stripes */
.hero-x-stripes::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80px;
  background: url(/assets/brand/speed-strip.svg?v=brand-b-20261104) right center / auto 100% no-repeat;
  -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent);
  mask-image: linear-gradient(90deg, #000 80%, transparent);
}

/* 1) Copy + portrait photo (courses, trial, faq) */
.content-hero.has-media.hero-x {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  background: #020000;
  border-color: #020000;
}

.content-hero.has-media.hero-x .content-hero-copy {
  position: relative;
  isolation: isolate;
  align-self: stretch;
  padding: 40px 60px 104px 0;
}

.content-hero.has-media.hero-x .content-hero-copy::after {
  left: -36px;
  right: -40px;
  -webkit-mask-image: none;
  mask-image: none;
  clip-path: polygon(0 0, 100% 0, calc(100% - 46px) 100%, 0 100%);
}

/* The slant follows the symbol (231/402): its top offset is 0.5746 × the
   photo height. hero-x.js keeps --hx-h equal to the real height. */
.content-hero.has-media.hero-x .content-hero-media {
  --hx-h: 450px;
  position: relative;
  align-self: stretch;
  min-height: 450px;
  max-height: none;
  margin-left: -150px;
  clip-path: polygon(calc(var(--hx-h) * 0.5746) 0, 100% 0, 100% 100%, 0 100%);
}

.content-hero.hero-x .content-hero-media img {
  position: absolute;
  inset: 0;
}

/* 2) Copy + wide banner (locations): banner on top, slanted bottom edge */
.content-hero.has-banner.hero-x {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #020000;
  border-color: #020000;
}

.content-hero.has-banner.hero-x .content-hero-media {
  position: relative;
  order: -1;
  margin: 0;
  aspect-ratio: 16 / 6;
  clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%);
}

.content-hero.has-banner.hero-x .content-hero-copy {
  position: relative;
  isolation: isolate;
  padding: 24px 40px 112px;
}

/* Wide black areas: stripes run from the left edge and fade out, as on home */
.content-hero.has-banner.hero-x .content-hero-copy::after,
.content-hero.hero-x.hero-x-video::after,
.schedule-lookup-panel.hero-x::after,
.hero-x.hero-x-plain::after {
  right: auto;
  width: min(640px, 100%);
}

/* 3a) Home: video on top, black copy, white matching card */
.hero.hero-a.hero-x {
  background: #020000;
  border-color: #020000;
}

.hero.hero-a.hero-x .hero-a-body {
  position: relative;
  isolation: isolate;
  background: #020000;
}

.hero.hero-a.hero-x .hero-a-copy {
  position: relative;
  isolation: isolate;
  gap: 18px;
  padding-bottom: 96px;
}

.hero.hero-a.hero-x .hero-a-copy .hero-x-symbol {
  margin: 0;
}

.hero.hero-a.hero-x .hero-a-copy::after {
  left: -40px;
  bottom: -44px;
}

.hero.hero-a.hero-x h1,
.content-hero.hero-x h1,
.schedule-lookup-panel.hero-x h1 {
  color: #fff;
}

.hero.hero-a.hero-x h1 em {
  color: #00e1b5;
}

.hero.hero-a.hero-x .hero-a-subhead {
  color: #fff;
}

.hero.hero-a.hero-x .hero-lead {
  color: rgba(255, 255, 255, 0.8);
}

.hero.hero-a.hero-x .hero-x-facts {
  margin-top: 4px;
}

.hero.hero-a.hero-x .hero-a-entry {
  background: #fff;
}

.hero.hero-a.hero-x .hero-a-entry p {
  color: var(--ink-soft);
}

/* 3b) Pathway: video on top, then the black copy */
.content-hero.hero-x.hero-x-video {
  position: relative;
  isolation: isolate;
  padding-bottom: 112px;
  background: #020000;
  border-color: #020000;
}

.content-hero.hero-x.hero-x-video::after {
  left: 0;
  right: 0;
}

.hero-x .pathway-chips span,
.hero-x .pathway-chips span:nth-child(2) {
  background: rgba(0, 225, 181, 0.1);
  border-color: rgba(0, 225, 181, 0.35);
  color: #00e1b5;
}

/* 4) Copy + form (schedule): black panel, white form card */
.schedule-lookup-panel.hero-x {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-bottom: 112px;
  background: #020000;
  border-color: #020000;
}

.schedule-lookup-panel.hero-x .schedule-form {
  padding: 24px;
  border-radius: 24px;
  background: #fff;
}

.schedule-lookup-panel.hero-x .schedule-form p {
  color: var(--ink-soft);
}

/* 5) No media (match intro): the whole card is black */
.hero-x.hero-x-plain {
  position: relative;
  isolation: isolate;
  padding-bottom: 112px;
  background: #020000;
  border-color: #020000;
}

@media (max-width: 900px) {
  .hero.hero-a.hero-x .hero-a-copy {
    padding-bottom: 0;
  }

  .hero.hero-a.hero-x .hero-a-copy::after {
    display: none;
  }

  .hero.hero-a.hero-x .hero-a-body {
    padding-bottom: 84px;
  }

  .hero.hero-a.hero-x .hero-a-entry {
    position: relative;
  }

  .hero.hero-a.hero-x .hero-a-entry::after {
    content: "";
    position: absolute;
    left: -20px;
    right: -20px;
    top: calc(100% + 24px);
    height: 48px;
    background: url(/assets/brand/speed-strip.svg?v=brand-b-20261104) right center / auto 100% no-repeat;
  }
}

@media (max-width: 760px) {
  .hero-x-symbol {
    width: 36px;
    margin-bottom: 14px;
  }

  .hero-x-facts {
    display: grid;
    gap: 10px;
  }

  .hero-x-facts li {
    grid-template-columns: auto 1fr;
    align-items: baseline;
    gap: 10px;
    padding: 0 0 10px;
    border-left: 0;
    border-bottom: 1px solid rgba(0, 225, 181, 0.3);
  }

  .hero-x-facts li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .hero-x-facts b {
    font-size: 1.3rem;
  }

  .hero-x-stripes::after,
  .content-hero.has-banner.hero-x .content-hero-copy::after,
  .content-hero.hero-x.hero-x-video::after,
  .schedule-lookup-panel.hero-x::after,
  .hero-x.hero-x-plain::after {
    right: 0;
    width: auto;
    height: 52px;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .content-hero.has-media.hero-x {
    grid-template-columns: 1fr;
  }

  .content-hero.has-media.hero-x .content-hero-media {
    order: -1;
    min-height: 0;
    margin-left: 0;
    aspect-ratio: 4 / 3;
    clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%);
  }

  .content-hero.has-media.hero-x .content-hero-copy {
    margin-top: -4%;
    padding: 24px 22px 76px;
  }

  .content-hero.has-media.hero-x .content-hero-copy::after {
    left: 0;
    right: 0;
    clip-path: none;
  }

  .content-hero.has-banner.hero-x .content-hero-media {
    aspect-ratio: 4 / 3;
  }

  .content-hero.has-banner.hero-x .content-hero-copy {
    margin-top: -4%;
    padding: 24px 22px 76px;
  }

  .content-hero.hero-x.hero-x-video,
  .schedule-lookup-panel.hero-x,
  .hero-x.hero-x-plain {
    padding-bottom: 76px;
  }

  .schedule-lookup-panel.hero-x .schedule-form {
    padding: 20px 16px;
  }

  /* Phones: the facts already carry the pathway; drop the age chips here */
  .hero-x .pathway-chips {
    display: none;
  }
}

.home-stats-links {
  display: grid;
  gap: 6px;
  margin: 0;
  align-self: center;
  justify-self: end;
  text-align: right;
}

.home-stats-links a {
  color: var(--tf-mint-deep);
  font-weight: 800;
}

@media (max-width: 760px) {
  .home-stats-links {
    justify-self: start;
    text-align: left;
  }
}

/* ---------- /match/ intro ---------- */

.match-intro h1 {
  margin: 6px 0 8px;
}

.match-intro .match-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.match-intro .match-steps li {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-muted, #f3f1ec);
  font-weight: 700;
}

.match-intro .match-steps li b {
  color: var(--tf-mint-deep, #0a7d6a);
}

.match-intro .match-steps li small {
  color: var(--ink-soft, #5b6460);
  font-weight: 500;
}

@media (max-width: 640px) {
  .match-intro .match-steps {
    gap: 6px;
  }

  .match-intro .match-steps li {
    padding: 10px;
    font-size: 0.88rem;
    line-height: 1.35;
  }

  .match-intro .match-steps li small {
    font-size: 0.75rem;
  }
}

/* ---------- Hero photo framing (per image, desktop / phone) ---------- */
.content-hero.hero-x .content-hero-media img {
  object-position: var(--hx-pos-d, 50% 20%);
}

.content-hero.has-banner.hero-x .content-hero-media img {
  object-position: var(--hx-pos-d, 50% 60%);
}

@media (max-width: 760px) {
  .content-hero.hero-x .content-hero-media img {
    object-position: var(--hx-pos-m, 50% 20%);
  }

  /* Locations: show the whole scene on phones too, as on desktop */
  .content-hero.has-banner.hero-x .content-hero-media {
    aspect-ratio: 16 / 7;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
  }

  .content-hero.has-banner.hero-x .content-hero-media img {
    object-position: 50% 50%;
  }
}

/* ---------- 勇者獎賞 board (courses #award) ---------- */
.award-board {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 40px 40px 120px;
  border-color: #020000;
  background: #020000;
  color: #fff;
}

.award-board::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  bottom: 0;
  width: min(640px, 100%);
  height: 80px;
  background: url(/assets/brand/speed-strip.svg?v=brand-b-20261104) right center / auto 100% no-repeat;
  -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent);
  mask-image: linear-gradient(90deg, #000 80%, transparent);
}

.award-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 20px;
  row-gap: 6px;
}

.award-head .hero-x-symbol {
  grid-row: span 2;
  width: 64px;
  margin: 0;
}

.award-title {
  margin: 0;
  line-height: 1;
}

.award-title span {
  position: relative;
  display: inline-block;
  padding: 0 0.18em 0.06em 0;
  color: #fff;
  font-size: clamp(2.6rem, 6.4vw, 4.8rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  transform: skewX(-8deg);
}

.award-title span::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0.08em;
  right: 0;
  bottom: -0.04em;
  height: 0.24em;
  background: #00e1b5;
  transform: skewX(-22deg);
}

.award-sub {
  margin: 0;
  color: #00e1b5;
  font-size: 1.1rem;
  font-weight: 800;
}

.award-board .award-lead {
  margin: 26px 0 22px;
  color: #fff;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 800;
  line-height: 1.6;
}

.award-tiers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}

.award-tiers div {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 18px 20px 16px;
  border: 1px solid rgba(0, 225, 181, 0.35);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(0, 225, 181, 0.14), rgba(0, 225, 181, 0.02));
}

.award-tiers div:first-child {
  border-color: rgba(231, 181, 68, 0.7);
  background: linear-gradient(160deg, rgba(231, 181, 68, 0.28), rgba(231, 181, 68, 0.04));
}

.award-tiers b {
  color: #fff;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1;
}

.award-tiers span {
  color: #00e1b5;
  font-size: 1rem;
  font-weight: 800;
}

.award-tiers div:first-child span {
  color: #e7b544;
}

.award-rules {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 22px;
  padding: 22px 24px;
  border-radius: 20px;
  background: #fff;
  color: var(--ink-main);
}

.award-rules > div h3 {
  margin: 0 0 8px;
  color: var(--ink-strong);
  font-size: 1rem;
}

.award-rules p {
  margin: 0;
  line-height: 1.75;
}

@media (max-width: 900px) {
  .award-rules {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 760px) {
  .award-board {
    padding: 28px 20px 84px;
  }

  .award-board::after {
    right: 0;
    width: auto;
    height: 52px;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .award-head .hero-x-symbol {
    width: 44px;
  }

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

  .award-rules {
    padding: 18px 16px;
  }
}

/* ---------- Phones: black footer runs to the very bottom ---------- */
html {
  background: #020000;
  overscroll-behavior-y: none;
}

/* iOS Safari tints the area behind its floating address bar from the body's background colour,
   not the html one (Max 2026-11-04: a light band still showed under the footer). The body colour
   is therefore black, and the light page ground is painted as an image that stops 200px short of
   the bottom, which is always behind the black footer (379px+ tall). */
body {
  background-color: #020000;
  background-image: linear-gradient(var(--a-ground), var(--a-ground));
  background-repeat: no-repeat;
  background-size: 100% calc(100% - 200px);
}

.site-footer {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ---------- Language switch (EN／中文) ---------- */
.site-nav .nav-lang {
  flex: 0 0 auto;
  padding: 5px 10px;
  border: 1.5px solid var(--line-soft, #dcdcd6);
  border-radius: 999px;
  color: var(--ink-strong);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
}

.site-nav .nav-lang:hover {
  border-color: var(--tf-mint-deep, #0a7d6a);
  color: var(--tf-mint-deep, #0a7d6a);
}

@media (max-width: 640px) {
  .site-nav-main .nav-lang { margin-left: auto; }
  .site-nav-main .nav-lang + .nav-cta { margin-left: 0; }
}

/* ---------- /en/ intro page ---------- */
.en-page .content-hero h1 {
  max-width: 18ch;
}

.en-hero-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.en-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.en-btn-primary {
  background: #00e1b5;
  color: #020000;
}

.en-btn-primary:hover { background: #2debc6; }

.en-btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff;
}

.en-btn-ghost:hover { border-color: #fff; }

.en-price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.en-price {
  display: grid;
  gap: 4px;
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(15, 212, 178, 0.1);
}

.en-price span {
  color: var(--ink-strong);
  font-weight: 800;
}

.en-price b {
  color: var(--tf-mint-deep, #0a7d6a);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.1;
}

.en-price small {
  color: var(--ink-soft, #5b6460);
  font-size: 0.9rem;
}

.en-note {
  margin: 16px 0 0;
  color: var(--ink-soft, #5b6460);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .en-price-grid { grid-template-columns: minmax(0, 1fr); }
  .en-hero-actions .en-btn { flex: 1 1 100%; }
}

/* ---------- Area pages (/locations/<sport>/<area>/) ---------- */
.area-chip-links a {
  padding: 7px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--surface);
  color: var(--tf-mint-deep, #0a7d6a);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.area-chip-links a:hover {
  border-color: var(--tf-mint-deep, #0a7d6a);
  background: rgba(15, 212, 178, 0.1);
}

.area-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
  color: var(--ink-soft, #5b6460);
  font-size: 0.88rem;
}

.area-crumbs a {
  color: var(--tf-mint-deep, #0a7d6a);
  font-weight: 700;
  text-decoration: none;
}

.area-venue {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(15, 212, 178, 0.1);
  color: var(--ink-strong);
  font-weight: 700;
}

.area-venue b {
  color: var(--tf-mint-deep, #0a7d6a);
}

.area-timetable {
  display: grid;
  gap: 0;
  margin-bottom: 14px;
  border-top: 1px solid var(--line-soft);
}

.area-day {
  display: grid;
  grid-template-columns: 6.5em minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.area-day > b {
  padding-top: 6px;
  color: var(--ink-strong);
}

.area-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.area-slot {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-strong);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.area-slot small {
  color: var(--tf-mint-deep, #0a7d6a);
  font-size: 0.78rem;
  font-weight: 800;
}

@media (max-width: 640px) {
  .area-day { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .area-day > b { padding-top: 0; }
}
