/* ============================================================
   Cyclink — Readability & Layout v3
   2026-11-12
   Goal: short lines, clear hierarchy, comfortable font sizes,
   and a more editorial (Japanese magazine) feel.
   Scope: body.cyclink-redesign only. Safe to remove.
   ============================================================ */

body.cyclink-redesign {
  --v3-ink: #2B2118;
  --v3-soft: #6B5D4C;
  --v3-cream: #FFF9EC;
  --v3-yellow: #FFC42E;
  --v3-border: rgba(43, 33, 24, 0.12);
  --v3-body: 17px;
  --v3-line: 1.75;
  --v3-measure: 62ch;
  font-size: var(--v3-body);
  line-height: var(--v3-line);
  letter-spacing: 0.01em;
}

body.cyclink-redesign p,
body.cyclink-redesign li {
  text-wrap: pretty;
}

body.cyclink-redesign h1,
body.cyclink-redesign h2,
body.cyclink-redesign h3 {
  text-wrap: balance;
}

/* ---------- Global type rhythm ---------- */

body.cyclink-redesign .section {
  padding-block: 72px;
}

body.cyclink-redesign .section--tight {
  padding-block: 52px;
}

body.cyclink-redesign .section-title {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
}

body.cyclink-redesign .section-sub {
  margin-top: 14px;
  font-size: clamp(1.02rem, 1.3vw, 1.12rem);
  line-height: 1.75;
  max-width: var(--v3-measure);
  color: var(--v3-soft);
}

body.cyclink-redesign .eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  padding: 0.42rem 0.9rem;
  margin-bottom: 1.1rem;
}

body.cyclink-redesign .btn {
  min-height: 48px;
  padding: 0.82rem 1.35rem;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

body.cyclink-redesign .btn--lg {
  min-height: 52px;
  padding: 0.95rem 1.55rem;
  font-size: 17px;
}

/* Long-form copy: keep lines short and comfortable. */
body.cyclink-redesign .course-page__text,
body.cyclink-redesign .acc__body-text,
body.cyclink-redesign .tile__text,
body.cyclink-redesign .price__list li,
body.cyclink-redesign .adult-class-card__facts li,
body.cyclink-redesign .course__list li {
  font-size: 16px;
  line-height: 1.78;
}

body.cyclink-redesign .course-page__text,
body.cyclink-redesign .acc__body-text,
body.cyclink-redesign .tile__text {
  max-width: var(--v3-measure);
}

body.cyclink-redesign .price__list li + li {
  margin-top: 0.45rem;
}

/* ---------- Hero ---------- */

body.cyclink-redesign .hero__title {
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.18;
  letter-spacing: -0.022em;
  max-width: 10em;
}

body.cyclink-redesign .hero .hero__sub {
  display: none;
}

body.cyclink-redesign .hero .hero__facts {
  display: none;
}

body.cyclink-redesign .hero__copy {
  max-width: 620px;
}

body.cyclink-redesign .hero__eyebrow {
  max-width: 100%;
  font-size: 0.88rem;
  line-height: 1.5;
}

body.cyclink-redesign .hero-paths {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  max-width: 640px;
}

body.cyclink-redesign .hero-path {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 18px;
  padding: 16px 18px;
  background: #fff;
  border: 1.5px solid var(--v3-border);
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(43, 33, 24, 0.05);
  text-decoration: none;
  color: var(--v3-ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body.cyclink-redesign .hero-path:hover {
  transform: translateY(-2px);
  border-color: rgba(43, 33, 24, 0.28);
  box-shadow: 0 8px 24px rgba(43, 33, 24, 0.10);
}

body.cyclink-redesign .hero-path__eyebrow {
  grid-column: 1;
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--v3-soft);
}

body.cyclink-redesign .hero-path__title {
  grid-column: 1;
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.28;
}

body.cyclink-redesign .hero-path__text {
  grid-column: 1;
  margin: 4px 0 0;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--v3-soft);
}

body.cyclink-redesign .hero-path__cta {
  grid-column: 2;
  grid-row: 1 / span 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  min-width: 126px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  text-align: right;
}

body.cyclink-redesign .hero-path__price {
  font-size: 12px;
  font-weight: 700;
  color: var(--v3-soft);
}

body.cyclink-redesign .hero-promise {
  max-width: 640px;
  margin: 18px 0 0;
  padding: 14px 18px;
  background: rgba(255, 196, 46, 0.12);
  border-left: 4px solid var(--v3-yellow);
  border-radius: 0 14px 14px 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--v3-ink);
}

body.cyclink-redesign .hero-promise strong {
  display: block;
  margin-top: 4px;
  font-size: 16.5px;
  font-weight: 800;
}

body.cyclink-redesign .hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
  max-width: 640px;
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--v3-soft);
}

body.cyclink-redesign .hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body.cyclink-redesign .hero-meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--v3-yellow);
  flex: 0 0 auto;
}

body.cyclink-redesign .hero__actions {
  margin-top: 18px;
  gap: 10px;
}

/* ---------- Decision tree: “你現在在哪一步？” ---------- */

body.cyclink-redesign .decision__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

body.cyclink-redesign .decision-card {
  padding: 22px 22px 18px;
  background: #fff;
  border: 1.5px solid var(--v3-border);
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(43, 33, 24, 0.04);
}

body.cyclink-redesign .decision-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
}

body.cyclink-redesign .decision-card__sub {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--v3-soft);
}

body.cyclink-redesign .decision-list {
  display: grid;
  gap: 0;
  margin-top: 14px;
}

body.cyclink-redesign .decision-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  align-items: start;
  padding: 11px 0;
  border-top: 1px solid var(--v3-border);
  text-decoration: none;
  color: var(--v3-ink);
}

body.cyclink-redesign .decision-list a:first-child {
  border-top: 0;
  padding-top: 4px;
}

body.cyclink-redesign .decision-list strong {
  grid-column: 1;
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.45;
}

body.cyclink-redesign .decision-list span {
  grid-column: 1;
  font-size: 13px;
  line-height: 1.5;
  color: var(--v3-soft);
}

body.cyclink-redesign .decision-list em {
  grid-column: 2;
  grid-row: 1;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  color: var(--v3-soft);
  white-space: nowrap;
}

/* ---------- Kids course cards ---------- */

body.cyclink-redesign #kids .kids-card {
  padding: 26px 24px 22px;
  border-radius: 22px;
}

body.cyclink-redesign #kids .kids-card__title {
  font-size: 1.5rem;
  line-height: 1.3;
  margin-top: 0.35rem;
}

body.cyclink-redesign #kids .kids-card__text {
  font-size: 15.5px;
  line-height: 1.72;
  max-width: 34em;
}

body.cyclink-redesign #kids .kids-card__price {
  margin-top: 0.7rem;
}

body.cyclink-redesign #kids .kids-card__price b {
  font-size: 1.32rem;
  line-height: 1.25;
}

body.cyclink-redesign #kids .kids-card__price span {
  font-size: 13.5px;
  line-height: 1.55;
  margin-top: 0.3rem;
}

body.cyclink-redesign #kids .kids-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

body.cyclink-redesign #kids .kids-card__facts li {
  padding: 5px 9px;
  border-radius: 999px;
  background: #f6efe2;
  color: var(--v3-ink);
  font-size: 12.5px;
  line-height: 1.4;
}

body.cyclink-redesign #kids .kids-card__link {
  font-size: 14.5px;
  padding-top: 1.2rem;
}

body.cyclink-redesign #kids .kids-assess {
  gap: 12px 24px;
  padding: 20px 24px;
}

body.cyclink-redesign #kids .kids-assess__title {
  font-size: 1.05rem;
}

body.cyclink-redesign #kids .kids-assess__text {
  font-size: 14.5px;
  line-height: 1.7;
}

/* ---------- Trust strip & lane cards ---------- */

body.cyclink-redesign .trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding: 14px 18px;
  background: #fff;
  border: 1.5px solid var(--v3-border);
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--v3-soft);
}

body.cyclink-redesign .trust-strip strong {
  color: var(--v3-ink);
}

body.cyclink-redesign .lane-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body.cyclink-redesign .lane-card {
  padding: 22px;
  background: #fff;
  border: 1.5px solid var(--v3-border);
  border-radius: 20px;
}

body.cyclink-redesign .lane-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.3;
}

body.cyclink-redesign .lane-card__text {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--v3-soft);
}

body.cyclink-redesign .lane-card__link {
  display: inline-flex;
  margin-top: 14px;
  padding-bottom: 1px;
  border-bottom: 2px solid var(--v3-yellow-deep);
  font-size: 14.5px;
  font-weight: 800;
  text-decoration: none;
}

/* ---------- Sessions & forms ---------- */

body.cyclink-redesign .session-item {
  padding: 20px 22px;
}

body.cyclink-redesign .session-item__when {
  font-size: 1.05rem;
  line-height: 1.4;
}

body.cyclink-redesign .session-item__meta {
  font-size: 15px;
}

body.cyclink-redesign .session-item__note {
  font-size: 13.5px;
  line-height: 1.6;
}

body.cyclink-redesign .session-item__details {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--v3-soft);
}

body.cyclink-redesign .booking-form label,
body.cyclink-redesign .booking-form legend {
  font-size: 15px;
  line-height: 1.5;
}

body.cyclink-redesign .booking-form input,
body.cyclink-redesign .booking-form select,
body.cyclink-redesign .booking-form textarea {
  font-size: 16px;
}

body.cyclink-redesign .form-note {
  font-size: 13.5px;
  line-height: 1.65;
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  body.cyclink-redesign .decision__grid,
  body.cyclink-redesign .lane-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  body.cyclink-redesign {
    --v3-body: 16px;
  }

  body.cyclink-redesign .section {
    padding-block: 52px;
  }

  body.cyclink-redesign .hero__title {
    font-size: clamp(34px, 10vw, 48px);
  }

  body.cyclink-redesign .hero-path {
    grid-template-columns: 1fr;
    padding: 15px 16px;
  }

  body.cyclink-redesign .hero-path__cta {
    grid-column: 1;
    grid-row: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--v3-border);
    text-align: left;
  }

  body.cyclink-redesign .decision__grid,
  body.cyclink-redesign .lane-grid {
    grid-template-columns: 1fr;
  }

  body.cyclink-redesign #kids .kids-card {
    padding: 20px 18px 18px;
  }

  body.cyclink-redesign #kids .kids-card__title {
    font-size: 1.3rem;
  }

  body.cyclink-redesign #kids .kids-card__text {
    font-size: 15px;
  }

  body.cyclink-redesign #kids .kids-card__price b {
    font-size: 1.22rem;
  }

  body.cyclink-redesign .hero-promise {
    font-size: 14.5px;
  }
}

@media (max-width: 900px) {
  body.cyclink-redesign .hero {
    padding-bottom: 32px;
    margin-bottom: 40px;
  }

  body.cyclink-redesign .hero__art {
    height: 300px;
  }
}

@media (max-width: 480px) {
  body.cyclink-redesign .container {
    width: calc(100% - 32px);
  }

  body.cyclink-redesign .hero__title {
    font-size: clamp(32px, 9.6vw, 42px);
  }

  body.cyclink-redesign .hero-path__title {
    font-size: 19px;
  }

  body.cyclink-redesign .hero-path__text {
    font-size: 14px;
  }

  body.cyclink-redesign .hero-meta {
    font-size: 12px;
  }
}

body.cyclink-redesign .hero-path__cta {
  text-decoration: none;
  color: var(--v3-ink);
}

/* Bilingual price lists: show only the page language. */
html[lang^="zh"] .price-list[lang="en"] {
  display: none;
}

html[lang^="en"] .price-list[lang="zh-Hant-HK"] {
  display: none;
}

body.cyclink-redesign .decision-list a:hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Homepage section order: insert the decision tree right after the hero. */
body.cyclink-redesign main#main > .hero { order: 1; }
body.cyclink-redesign main#main > .aud-tabs { order: 1; }
body.cyclink-redesign main#main > #start-here { order: 2; }
body.cyclink-redesign main#main > #kids { order: 3; }
body.cyclink-redesign main#main > #next-classes { order: 4; }
body.cyclink-redesign main#main > .assessment-strip { order: 5; }
body.cyclink-redesign main#main > #parent-voices { order: 6; }
body.cyclink-redesign main#main > #learning-paths { order: 7; }
body.cyclink-redesign main#main > #about-proof { order: 8; }
body.cyclink-redesign main#main > .rd-about { order: 9; }
body.cyclink-redesign main#main > #learning-style { order: 10; }
body.cyclink-redesign main#main > .rd-locations { order: 11; }
body.cyclink-redesign main#main > #cycling-map { order: 12; }
body.cyclink-redesign main#main > .rd-faq { order: 13; }
body.cyclink-redesign main#main > #latest-events { order: 14; }
body.cyclink-redesign main#main > .cta-band { order: 15; }

/* Booking page: show the chosen class before the form. */
body.cyclink-redesign .booking-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

body.cyclink-redesign .booking-layout > aside {
  order: -1;
}

/* Put the form before the “how it works” steps. */
body.cyclink-redesign .booking-layout > form#bookingForm { order: 1; }
body.cyclink-redesign .booking-layout > .form-note { order: 2; }
body.cyclink-redesign .booking-layout > .form-actions { order: 3; }
body.cyclink-redesign .booking-layout > .booking-steps { order: 4; margin-top: 8px; }
body.cyclink-redesign .booking-layout > #bookingUnavailable { order: 0; }

body.cyclink-redesign .booking-session-summary:empty::before {
  content: "班次資料載入中…";
  display: block;
  padding: 14px 0;
  color: var(--v3-soft);
  font-size: 14px;
}

/* Sessions page: beginners need a visible appointment route. */
body.cyclink-redesign .session-private-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin: 18px 0 22px;
  padding: 16px 18px;
  background: rgba(255, 196, 46, 0.14);
  border-left: 4px solid var(--v3-yellow);
  border-radius: 0 14px 14px 0;
}

body.cyclink-redesign .session-private-note p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
}

body.cyclink-redesign .session-private-note__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
