/* ==========================================================================
   Explore W-FIT — shared stylesheet
   Brand tokens pulled from the approved Announcement teaser (cream ground,
   navy wordmark, orange/green accents) and extended with five additional
   module accents to cover all seven spaces distinctly. See HANDOFF_NOTES.md
   for the full rationale — flagged there for W-FIT team sign-off.
   ========================================================================== */

:root {
  /* Core brand (from the teaser) */
  --cream: #FBF1E4;
  --cream-deep: #F3E4CF;
  --navy: #1B3B6F;
  --ink: #2B2620;
  --ink-soft: #5C5347;
  --orange: #E8720C;
  --orange-text: #AE5509; /* darkened for small text on cream/white — #E8720C itself is 2.75:1, fails WCAG AA */
  --green: #3FA535;
  --white: #FFFFFF;
  --line: #E6D9C4;

  /* Module accents — extends the logo's four pillar colors (blue/green/orange/purple)
     to seven distinct, harmonious hues so each module reads differently at a glance.
     Values are darkened just enough from the "pure" brand hue to clear WCAG AA (4.5:1)
     as small text on both white and cream — checked against #FFFFFF and #FBF1E4. */
  --community: #7B4FA0;
  --transform: #1B6DB4;
  --nourish:   #2F7B27;
  --executive: #1B3B6F;
  --mind:      #227669;
  --focus:     #C0392B;
  --glow:      #AE5509;

  --radius: 14px;
  --shadow: 0 6px 24px rgba(43, 38, 32, 0.08);
  --max-w: 1080px;
  /* One reading width for every paragraph on every page. `none` = paragraphs fill the
     same column as cards, tables and images. For a narrower text column on wide screens
     set e.g. --measure: 80ch; and every page follows. */
  --measure: none;
  --gutter: 24px; /* side padding shared by header, banner, page sections and footer */
}

* { box-sizing: border-box; }

img { max-width: 100%; height: auto; }

/* One selection colour everywhere, for a polished feel */
::selection { background: var(--navy); color: var(--cream); }

/* Screen-reader-only text (e.g. section headings that are visually implicit). */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

/* Respect users who ask the OS to reduce motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.15;
  /* Even out wrapped heading lines where supported (progressive
     enhancement — unsupported browsers simply ignore it) */
  text-wrap: balance;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; }

p { max-width: var(--measure); }
a { color: inherit; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------------------------------- Header --------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 241, 228, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative; /* anchors the mobile nav dropdown */
  height: 72px;
  gap: 18px;
}

.site-header .logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-header .logo-link img {
  height: 44px;
  width: auto;
  display: block;
}

.site-header .logo-link span {
  font-family: "Fraunces", serif;
  font-weight: 600;
  color: var(--navy);
  font-size: 1.05rem;
}

.site-nav {
  display: flex;
  gap: 22px;
  font-size: 0.95rem;
  flex: 1;
  white-space: nowrap;
}

@media (max-width: 900px) and (min-width: 641px) {
  /* Tighten up so the now-5-item nav (Explore/Modules/Membership/FAQ/Before you decide)
     doesn't wrap mid-item on tablet widths. */
  .site-nav { gap: 14px; font-size: 0.88rem; }
}

.btn-header {
  padding: 9px 18px;
  font-size: 0.88rem;
  white-space: nowrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--navy);
}

/* --- Mobile menu (checkbox-driven, no JS; shown only under 640px) --- */
.menu-toggle-input { display: none; }
.menu-toggle { display: none; }

@media (max-width: 640px) {
  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--white);
  }

  .menu-toggle .bar {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 12px var(--gutter) 18px;
    z-index: 30;
  }

  .site-nav a { padding: 11px 0; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }

  .menu-toggle-input:checked ~ .site-nav { display: flex; }
  .menu-toggle-input:checked ~ .menu-toggle .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle-input:checked ~ .menu-toggle .bar:nth-child(2) { opacity: 0; }
  .menu-toggle-input:checked ~ .menu-toggle .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .btn-header { padding: 8px 14px; font-size: 0.82rem; }
}

/* ------------------------------- Site banner -------------------------------- */

.site-banner {
  background: var(--navy);
}

.site-banner p {
  margin: 0;
  max-width: none;
  padding: 10px 0;
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

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

.hero {
  /* padding-block (not shorthand) so .container's 24px side padding is kept and
     page content lines up with the header, banner and footer */
  padding-block: 56px 40px;
}

.hero .eyebrow {
  color: var(--orange-text);
  font-weight: 600;
  margin-bottom: 10px;
}

.hero p.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: var(--measure);
}

/* Also styles the intro lede on module/membership/essentials heroes */
.module-hero p.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: var(--measure);
}

/* ------------------------------ Module quick nav ---------------------------- */

.quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 8px;
}

.quick-nav a {
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.quick-nav a:hover { border-color: currentColor; }

/* ------------------------------ Module card grid ---------------------------- */

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  /* No bottom margin: section.block's 40px padding already gives
     the standard 80px gap to the next section (was 64px, which
     made the gap before #practice nearly double the rest) */
  margin: 28px 0 0;
}

.module-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--accent, var(--navy));
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  transition: transform 0.15s ease;
}

.module-card:hover { transform: translateY(-3px); }

/* The essentials and connect tiles are card links too —
   give them the same hover lift as the module cards. */
.essential-card, .connect-card { transition: transform 0.15s ease; }
.essential-card:hover, .connect-card:hover { transform: translateY(-3px); }

.module-card .module-icon {
  width: 96px;
  height: 96px;
  margin-bottom: 4px;
}

.module-card h3 {
  /* Inherits the navy every other card heading uses
     (was var(--ink), the only non-navy card title on the site) */
  margin: 0;
}

.module-card .tagline {
  color: var(--accent, var(--navy));
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0;
}

.module-card p.hook {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
}

.module-card .go {
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent, var(--navy));
}

/* --------------------------------- Sections --------------------------------- */

section.block {
  position: relative;
  padding-block: 40px;
}

/* Section divider drawn inside the gutters so it is exactly as wide as the content
   (a border on the padded .container would run 24px past it on each side). */
section.block::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--line);
}

/* Pages that start a block without a divider (essentials, brochure, infographic band) */
section.block[style*="border-top:none"]::before,
.infographic-block::before { display: none; }

.callout {
  background: var(--cream-deep);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 8px 0;
}

.callout.notice {
  border-left: 4px solid var(--focus);
  background: #FBEAE7;
}

.callout.notice h3 { color: var(--focus); font-family: inherit; font-size: 1rem; }

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 0;
}

.pill {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.88rem;
}

/* ------------------------------ Essentials grid ------------------------------ */

.essentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin: 8px 0 24px;
}

.essential-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 26px 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--accent, var(--navy));
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  align-items: center;
}

/* The essentials tiles carry their own full-color lockup (logo + wordmark). */
.essential-card .icon-logo {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.essential-card h3 { margin: 0; }

.essential-card p.blurb {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0;
}

.essential-card .go {
  margin-top: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent, var(--navy));
}

.essential-card .external-hint {
  font-size: 0.76rem;
  color: #7A7066; /* darkened from the original #9A9186 (3.1:1, failed WCAG AA) to clear 4.5:1 */
}

/* ------------------------------- FAQ / decide grid -------------------------- */

.decide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.decide-grid .item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.decide-grid .item h3 { font-size: 1rem; }
.decide-grid .item p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

.decide-grid .item.highlight {
  background: var(--cream-deep);
  border: 1px solid var(--orange-text);
}

.decide-grid .item.full-width {
  grid-column: 1 / -1;
}

.date-highlight {
  color: var(--orange-text);
  background: var(--white);
  padding: 1px 8px;
  border-radius: 6px;
}

/* ---------------------------------- Buttons ---------------------------------- */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.reg-note {
  margin-top: 14px;
  font-size: 0.86rem;
  color: var(--ink-soft);
  max-width: var(--measure);
}

.reg-note a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
}

/* ------------------------------------ Tables --------------------------------- */

.table-wrap {
  overflow-x: auto;
  margin: 8px 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.94rem;
}

table.data th, table.data td {
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
}

table.data th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: 0.86rem;
}

table.data tbody tr:nth-child(even) { background: var(--cream-deep); }
table.data td.num { font-variant-numeric: tabular-nums; }

/* --------------------------------- Status badges ------------------------------ */

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-badge.explore-now { background: #E2F2DE; color: #2B6E1F; }
.status-badge.opening-launch { background: #DCEAF7; color: #14508A; }
.status-badge.in-development { background: var(--cream-deep); color: #9C4C08; } /* darker than --orange-text: that pair is 4.10:1 on cream-deep, fails AA */
.status-badge.future-prospect { background: #ECEAE6; color: #5C5347; }

.badge-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.badge-legend .row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.badge-legend p { margin: 4px 0 0; font-size: 0.88rem; color: var(--ink-soft); }

/* ---------------------------------- Roadmap ----------------------------------- */

.roadmap {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  border-left: 3px solid var(--line);
}

.roadmap li {
  position: relative;
  padding: 2px 0 28px 26px;
}

.roadmap li::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 4px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent, var(--navy));
  border: 3px solid var(--cream);
}

.roadmap .date {
  font-weight: 700;
  color: var(--accent, var(--navy));
  font-size: 0.92rem;
}

.roadmap h3 { margin: 2px 0 6px; }
.roadmap p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.96rem;
}

.btn.primary {
  background: var(--navy);
  color: var(--white);
}

.btn.secondary {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

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

footer.site-footer {
  margin-top: 40px;
  padding: 34px 0;
  background: linear-gradient(90deg, var(--orange), var(--green));
  color: var(--white);
}

footer.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

footer.site-footer .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

footer.site-footer .brand img {
  height: 30px;
  border-radius: 6px;
  background: var(--white);
  padding: 2px;
}

footer.site-footer .tagline {
  font-style: italic;
  font-size: 0.9rem;
  opacity: 0.92;
}

.footer-artistic {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

footer.site-footer .footer-link {
  color: var(--white);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: underline;
}

/* ------------------------------- Module detail hero -------------------------- */

.module-hero {
  padding-block: 44px 8px;
}

.module-hero .module-eyebrow {
  color: var(--accent, var(--navy));
  font-weight: 600;
  margin-bottom: 6px;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.breadcrumb a { color: var(--ink-soft); text-decoration: underline; }

@media (max-width: 640px) {
  .hero, .module-hero { padding-top: 36px; }
  section.block { padding-block: 30px; }
  table.data th, table.data td { padding: 10px 12px; font-size: 0.88rem; }
}

@media (max-width: 420px) {
  :root { --gutter: 18px; }
  .essential-card, .module-card { padding-left: 20px; padding-right: 20px; }
}

/* ------------------------------------ FAQ ------------------------------------- */

.faq-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 8px;
}

.faq-jump a {
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
}

.faq-category h2 {
  margin-top: 0;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 0 12px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ink-soft);
  flex-shrink: 0;
}

.faq-item[open] summary::after { content: "\2212"; }

.faq-item .faq-answer {
  padding: 0 20px 18px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.faq-item .faq-answer p { margin: 0 0 10px; }
.faq-item .faq-answer p:last-child { margin-bottom: 0; }
.faq-item .faq-answer a { color: var(--navy); font-weight: 600; }

/* "Ask W-FIT directly" callout with its QR shortcut, at the bottom of the FAQ page */
.ask-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}

.ask-callout-text { flex: 1; min-width: 220px; }

.ask-callout-hint {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.ask-callout-qr {
  flex-shrink: 0;
  line-height: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.ask-callout-qr img { display: block; width: 110px; height: 110px; }

@media (max-width: 480px) {
  .ask-callout { justify-content: center; text-align: center; }
  .ask-callout-text { text-align: center; }
}

/* --------------------------------- Stay connected ------------------------------ */

.connect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 24px 0 8px;
}

.connect-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 22px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--ink);
  border-top: 4px solid var(--accent, var(--navy));
}

.connect-card img.connect-qr {
  width: 92px;
  height: 92px;
  flex-shrink: 0;
  border-radius: 8px;
}

.connect-card .connect-body h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.connect-card .connect-body p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.connect-card .connect-open {
  display: inline-block;
  margin-top: 6px;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--accent, var(--navy));
}

/* ---------------------------------- Brochure ----------------------------------- */

.brochure-frame {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--white);
  margin: 8px 0 20px;
}

.brochure-frame img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

.brochure-zoom-input { display: none; }

.brochure-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(27, 21, 15, 0.92);
  overflow: auto;
  text-align: center;
  padding: 24px 16px;
}

.brochure-zoom-input:checked ~ .brochure-lightbox { display: block; }

.brochure-lightbox img {
  max-width: 100%;
  border-radius: 8px;
  cursor: zoom-out;
}

.brochure-lightbox .brochure-close {
  position: sticky;
  top: 0;
  display: inline-block;
  margin: 0 0 14px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
/* ------------------------------- Bilingual (EN/TH) ---------------------------- */
/* Default (no JS, or JS hasn't run yet): English shown, Thai hidden. */
.i18n-th { display: none; }

/* Once html[data-lang="th"] is set (by the inline bootstrap script or the
   header switcher), flip which span is visible. display:initial restores
   each element's natural display (inline text, block paragraphs, etc.). */
html[data-lang="th"] .i18n-en { display: none; }
html[data-lang="th"] .i18n-th { display: initial; }

.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 600;
}

.lang-switch button {
  border: none;
  background: var(--white);
  color: var(--ink-soft);
  padding: 6px 12px;
  cursor: pointer;
  font: inherit;
}

html[data-lang="en"] .lang-switch button[data-set="en"],
html:not([data-lang]) .lang-switch button[data-set="en"],
html[data-lang="th"] .lang-switch button[data-set="th"] {
  background: var(--navy);
  color: var(--white);
}

@media (max-width: 640px) {
  .lang-switch { order: -1; }
}

/* ------------------- Phase availability badges (charter v1.0) ------------------- */
/* Badge sits under the module name on hub cards and under the H1 on module pages. */
.module-card .status-badge { align-self: center; margin: 2px 0 8px; font-size: 0.74rem; }
.module-hero .status-badge { margin-top: 12px; }
table.data td .status-badge { font-size: 0.74rem; white-space: nowrap; }

/* ------------------- Attraction highlights (Founding 200 offer & key perks) ------------------- */

/* Marker-pen highlight: keeps the text color (so contrast is unchanged) and
   paints a soft orange band behind the lower half of the line. */
.hl {
  background: linear-gradient(transparent 58%, rgba(232, 114, 12, 0.28) 58%);
  font-weight: 600;
  padding: 0 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Sitewide ribbon under the navy banner. Gradient stops darkened so white
   text clears WCAG AA (≥5:1) across the whole ribbon, not just its ends. */
.offer-ribbon {
  display: block;
  background: linear-gradient(90deg, #B03A1E 0%, #A85A12 50%, #3B7322 100%);
  color: #FFFFFF;
  text-align: center;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 9px 0;
}
.offer-ribbon .container { display: block; }
.offer-ribbon strong { font-weight: 700; }
.offer-ribbon .offer-go { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.offer-ribbon:hover .offer-go, .offer-ribbon:focus-visible .offer-go { text-decoration-thickness: 2px; }

/* Offer card (hub hero and Membership page) */
.offer-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 28px 22px;
  margin: 26px 0 8px;
  border-top: 5px solid transparent;
  border-image: linear-gradient(90deg, #E8720C, #3FA535) 1;
}
.offer-card h2, .offer-card h3 { margin: 4px 0 10px; color: var(--navy); }
.offer-card p { margin: 0 0 10px; }
.offer-card .btn-row { margin-top: 14px; }
.offer-eyebrow {
  display: inline-block;
  background: #FDEBD8;
  color: #9A4A08;               /* 5.4:1 on #FDEBD8 */
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin: 0 0 6px !important;
}
.price-big { color: var(--orange-text); font-size: 1.25em; white-space: nowrap; }
.price-note { margin-top: 4px; color: var(--ink-soft); }

/* "Save up to 10%" pill beside a heading */
.save-pill {
  display: inline-block;
  vertical-align: middle;
  background: #E2F2DE;
  color: #2B6E1F;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-left: 8px;
}

/* Perk chips: short reassurance messages with a check mark */
.perk-chips {
  list-style: none;
  padding: 0;
  margin: 18px 0 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.perk-chips li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px 6px 12px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink);
}
.perk-chips li::before { content: "\2713"; color: #2B6E1F; font-weight: 700; margin-right: 6px; }

@media (max-width: 640px) {
  .offer-ribbon { font-size: 0.84rem; padding: 8px 0; }
  .offer-card { padding: 20px 18px 18px; }
  .perk-chips li { font-size: 0.8rem; }
}

/* Narrow phones: the Thai "Get started" label is much longer than the English one and
   was squeezing the header until the EN/ไทย switch was clipped. Hide the "Explore W-FIT"
   wordmark text (the logo stays) and tighten the button so every control fits. */
@media (max-width: 480px) {
  .logo-link span { display: none; }
  .btn-header { padding: 7px 11px; font-size: 0.76rem; white-space: nowrap; }
  .lang-switch { flex-shrink: 0; }
}

/* ------------------- v5: identity narrative, infographics, Member Login (14 Oct 2026) ------------------- */
/* Infographic figures: full width of the content column, rounded like cards.
   Click/keyboard-activate opens a full-size lightbox (zero-JS checkbox
   trick, same as the brochure zoom) that fits the screen. */
.infographic { margin: 0; }
.infographic img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius); box-shadow: var(--shadow); background: var(--white);
}
.infographic-frame { display: block; cursor: zoom-in; border-radius: var(--radius); }
.infographic-frame:focus-visible img { outline: 3px solid var(--navy); outline-offset: 3px; }
.infographic-block { border-top: none; padding-top: 4px; }

/* Narrative text: readable line length, justified like W-FIT documents */
.narrative p { margin: 0 0 14px; line-height: 1.7; }
.narrative.narrow { margin: 22px 0 0; }
.pull-quote {
  font-family: "Fraunces", Georgia, serif; font-size: 1.18rem; font-weight: 600; color: var(--navy);
  border-left: 4px solid var(--green); padding: 4px 0 4px 16px; margin-top: 18px !important;
}

/* Hub: intro and outro span the full width; infographic left,
   the six dimension points right (stacked on phones). The image
   and the list are similar heights, so the row has no dead space. */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; margin: 22px 0; }
@media (max-width: 860px) { .story-grid { grid-template-columns: 1fr; gap: 20px; } }

/* Hub "Who we are" bands: the intro and outro text spans the full
   content column — as wide as the infographic and the six dimension
   points combined — instead of the default 68ch measure. */
#community-dimensions .narrative p,
#community-dimensions .pull-quote { max-width: none; }

/* Hub "From Clarity to Practice" band: same full-width treatment
   (was .narrative.narrow — a 760px centred column). */
#practice .narrative.narrow { max-width: none; }
#practice .narrative p,
#practice .pull-quote { max-width: none; }

/* The six dimensions, each with its accent colour */
.dimension-list { list-style: none; padding: 0; margin: 6px 0 16px; display: grid; gap: 8px; }
.dimension-list li {
  background: var(--white); border-radius: 10px; padding: 10px 14px;
  border-left: 4px solid var(--accent, var(--navy)); box-shadow: var(--shadow);
}
.dimension-list a { color: var(--ink); text-decoration: none; display: block; }
.dimension-list a:hover strong, .dimension-list a:focus-visible strong { text-decoration: underline; }
.dimension-list strong { color: var(--accent, var(--navy)); }

/* Member Login: visible but inactive until the Members' Area exists.
   Label and note are stacked so the item stays narrow in the desktop header. */
.nav-login {
  display: inline-flex; flex-direction: column; align-items: center; line-height: 1.15;
  color: #7A7166; cursor: not-allowed; white-space: nowrap; font-size: 0.86em;
  border: 1px dashed #CDBFA8; border-radius: 10px; padding: 3px 9px;
}
.nav-login em { font-style: normal; font-size: 0.74em; color: #9C4C08; }
.site-nav { align-items: center; }
/* Logo and language switch must never be squeezed by the nav */
.site-header .logo-link, .lang-switch { flex-shrink: 0; }
/* Wordmark text next to the logo is dropped on narrower desktops to make room */
@media (max-width: 1240px) { .site-header .logo-link span { display: none; } }
@media (max-width: 900px) and (min-width: 641px) {
  .site-nav { gap: 10px; font-size: 0.8rem; }
  .btn-header { padding: 8px 12px; font-size: 0.8rem; }
}
/* Phone menu: the item sits in the drop-down list like the other links */
@media (max-width: 640px) { .nav-login { flex-direction: row; gap: 6px; align-self: center; margin: 10px auto 4px; } }
@media (max-width: 820px) and (min-width: 641px) {
  .site-nav { gap: 8px; font-size: 0.76rem; }
  .site-header .container { gap: 10px; }
  .nav-login { padding: 2px 6px; }
}

/* Section eyebrows outside the hero use the same small orange label as the hero */
.block .eyebrow { color: var(--orange-text); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.04em; margin: 0 0 6px; }

/* Infographic lightbox: full-screen overlay. The image is constrained
   to the viewport and never upscaled past its intrinsic width, so it
   always fits the screen it is viewed on. Shown by the :checked
   checkbox that generate.py's infographic() injects before each figure
   (same zero-JS trick as the brochure zoom). */
.zoom-input { display: none; }

.infographic-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(27, 21, 15, 0.92);
  overflow: auto;
  text-align: center;
  padding: 24px 16px;
}

.zoom-input:checked ~ .infographic-lightbox { display: block; }

.infographic-lightbox img {
  max-width: min(100%, 1536px);
  max-height: calc(100vh - 140px);
  width: auto;
  height: auto;
  border-radius: 8px;
  cursor: zoom-out;
}

.infographic-lightbox .lightbox-close {
  position: sticky;
  top: 0;
  display: inline-block;
  margin: 0 0 10px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  cursor: pointer;
}

.infographic-lightbox .lightbox-close:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.infographic-lightbox .lightbox-full {
  display: block;
  margin: 0 0 14px;
  color: #E6D9C4;
  font-size: 0.85rem;
  text-decoration: underline;
}
