/* ==========================================================================
   TTW standalone page styles.
   Ported from hi-events/mlf-overrides.css (branch ttw-multi-product) plus new
   page-shell / homepage / cross-promo rules for pages that render outside the
   Hi.Events SPA (no `body[data-page-enhanced]` wrapper, no `_mainCard_` etc.
   Mantine-hashed classes).

   Ported ranges (see task-8-report.md for the full line-by-line accounting):
     - Section 2 palette comment + Section 3 background   (source lines 36-54)
     - D1-D7                                               (source lines 383-1006)
       - D3 "Instructor block" SKIPPED per task brief (instructor removed
         from the live page). D3b (course description blurb) kept.
     - Section 19 FAQ accordion                            (source lines 1609-1678)

   Any `body[data-page-enhanced="true"]` / `[class*="_mainCard_"]` ancestor
   scoping found inside the ported ranges was stripped so the `.mlf-*` (and
   native Hi.Events class) rules apply directly on standalone pages. Every
   strip is called out with an inline comment below.
   ========================================================================== */

/* ---------- Palette (ported from mlf-overrides.css section 2) ----------
   Warm earth tones pulled from MailMe brand assets:
   - bg:        #F2EFEC (warm cream)
   - card:      #FFFFFF
   - border:    #EDE5D8 (cream border)
   - text:      #382D26 (warm brown-black)
   - text2:     #5C433A (warm gray)
   - accent:    #A15533 (terracotta)
   - accent2:   #A37B45 (warm tan)
   - accent-bg: #F4ECDD (cream-tan tint)

   NOTE: source section 2 is documentation only — mlf-overrides.css never
   declares an actual `:root { --var: ...; }` block, and no font-family
   stack is set anywhere in that file (only `font-family: inherit;`). There
   is nothing literal to "port" beyond this comment. The NEW css below
   (page shell / homepage / cross-promo) uses var(--mlf-ink, #2a2520) and
   var(--mlf-accent, #A15533) as forward-looking theming hooks; since no
   such custom properties are defined here (or anywhere else in this repo),
   those always resolve to their fallback hex — which is the documented,
   intended behavior, so the var() calls are kept as specified.
*/

/* ---------- Background ---------- */
[class*="_background_"] {
  background: linear-gradient(180deg, #F2EFEC 0%, #E8E2D8 100%) !important;
}
[class*="_backgroundOverlay_"] {
  background: transparent !important;
}

/* ---------- Standalone-page background + base type ----------
   `.ttw-body` is the standalone-page equivalent of the SPA's `_background_`
   layer above (that ported gradient only matches the SPA's Mantine-hashed
   class, which never exists on these server-rendered pages). Background gradient
   + ink colour ported verbatim from mlf-overrides.css (section 3 bg + section 2
   palette: bg #F2EFEC→#E8E2D8, text #382D26). The brand faces (Outfit / Plus
   Jakarta Sans, already loaded via the template <link>) are set here so unstyled
   text no longer falls back to the browser serif default. */
.ttw-body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #F2EFEC 0%, #E8E2D8 100%);
  color: #382D26;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.ttw-body h1, .ttw-body h2, .ttw-body h3,
.mlf-hero-price, .ttw-product-card-price,
.mlf-checklist-title, .mlf-course-blurb-eyebrow, .mlf-timeline-time {
  font-family: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- D1. Custom split hero ---------- */
.mlf-custom-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 56px;
  background: #FFFFFF;
  border-bottom: 1px solid #EDE5D8;
  align-items: center;
}
@media (max-width: 820px) {
  .mlf-custom-hero {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
  }
}
.mlf-hero-image {
  aspect-ratio: 1/1;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  background-color: #D0C4AF;
  box-shadow: 0 8px 28px rgba(56, 45, 38, 0.12);
}
.mlf-hero-content {
  display: flex;
  flex-direction: column;
}
.mlf-hero-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: #A15533;
  margin-bottom: 14px;
}
.mlf-hero-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #382D26;
  margin: 0 0 14px 0;
}
.mlf-hero-subtitle {
  font-size: 16px;
  color: #5C433A;
  margin: 0 0 22px 0;
  line-height: 1.55;
}
/* Inline price line: "A$110 · 4 hours · 20 max" */
.mlf-hero-price-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.mlf-hero-price {
  font-size: 32px;
  font-weight: 800;
  color: #382D26;
  letter-spacing: -0.02em;
  line-height: 1;
}
.mlf-hero-price-meta {
  font-size: 14px;
  color: #5C433A;
  font-weight: 500;
}

/* Upcoming sessions list — clickable cards, jump to that session in modal */
.mlf-hero-sessions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.mlf-hero-session {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #FFFFFF;
  border: 1px solid #EDE5D8;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: all 0.15s ease;
  width: 100%;
}
.mlf-hero-session:hover:not(:disabled) {
  border-color: #A15533;
  background: #F4ECDD;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(161, 85, 51, 0.12);
}
.mlf-hero-session-date {
  font-weight: 700;
  color: #382D26;
  font-size: 14px;
}
.mlf-hero-session-spots {
  color: #5C433A;
  font-size: 13px;
  font-weight: 500;
}
.mlf-hero-session--soldout {
  opacity: 0.55;
  cursor: default;
}
.mlf-hero-session--soldout .mlf-hero-session-date { text-decoration: line-through; }
.mlf-hero-sessions-loading,
.mlf-hero-sessions-empty,
.mlf-hero-sessions-error {
  color: #5C433A;
  font-size: 13px;
  font-style: italic;
  padding: 8px 0;
}
.mlf-hero-cta {
  display: inline-block;
  background: #A15533;
  color: #FFFFFF !important;
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none !important;
  text-align: center;
  box-shadow: 0 4px 16px rgba(161, 85, 51, 0.3);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  letter-spacing: 0.01em;
}
.mlf-hero-cta:hover {
  background: #8B4527;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(161, 85, 51, 0.4);
}
.mlf-hero-footnote {
  font-size: 12.5px;
  color: #5C433A;
  margin-top: 14px;
  text-align: center;
}

/* ---------- D2. Stats strip ---------- */
.mlf-stats-strip {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  background: #F4ECDD;
  padding: 18px 40px;
  border-bottom: 1px solid #EDE5D8;
}
.mlf-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #382D26;
  font-size: 13.5px;
  font-weight: 500;
}
.mlf-check {
  color: #A15533;
  font-weight: 800;
  font-size: 14px;
}

/* ---------- D3. Instructor block — SKIPPED ----------
   Per task brief: the instructor was removed from the live page. Source
   lines 558-626 (.mlf-instructor / .mlf-instructor-avatar / etc.) are
   intentionally not ported here.
*/

/* ---------- D3b. Course description blurb (below instructor) ---------- */
.mlf-course-blurb {
  margin: 24px 40px;
  padding: 0 4px;
}
@media (max-width: 820px) {
  .mlf-course-blurb { margin: 20px 16px; padding: 0; }
}
.mlf-course-blurb-eyebrow {
  font-size: 22px;
  font-weight: 700;
  color: #382D26;
  margin-bottom: 14px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.mlf-course-blurb p {
  color: #382D26;
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0;
}
.mlf-course-blurb p strong {
  color: #1B171A;
  font-weight: 700;
}

/* ---------- D4. Checklist card (transformed "À apporter") ---------- */
.mlf-checklist-card {
  background: #FFFFFF;
  border: 1px solid #EDE5D8;
  border-radius: 12px;
  padding: 28px 32px;
  margin: 24px 0;
  box-shadow: 0 2px 8px rgba(56, 45, 38, 0.04);
}
/* Scoping prefix `[class*="_mainCard_"] > ` stripped (source line 665) — no
   SPA wrapper on standalone pages. This rule now applies unconditionally
   and, per normal CSS cascade order, its margin (24px 40px) wins over the
   base .mlf-checklist-card margin (24px 0) above. See task-8-report.md. */
.mlf-checklist-card {
  margin: 24px 40px;
}
@media (max-width: 820px) {
  .mlf-checklist-card { margin: 20px 0; padding: 20px 22px; }
  /* Scoping prefix `[class*="_mainCard_"] > ` stripped (source line 670) —
     same cascade note as above, mobile variant. */
  .mlf-checklist-card { margin: 20px 16px; }
}
.mlf-checklist-title {
  font-size: 22px;
  font-weight: 700;
  color: #382D26;
  margin-bottom: 16px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.mlf-checklist-card ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.mlf-checklist-card li {
  margin-bottom: 12px !important;
  color: #382D26 !important;
  font-size: 14.5px !important;
  line-height: 1.55 !important;
  padding-left: 30px !important;
  position: relative !important;
}
.mlf-checklist-card li:last-of-type { margin-bottom: 0 !important; }
.mlf-checklist-card li > p { margin: 0 !important; }

/* Custom checklist bullets — replace ✅ and ❌ emojis */
.mlf-checklist-card li.mlf-li-yes::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  background: #A15533;
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2.5 6.2 L4.8 8.5 L9.5 3.8' stroke='%23ffffff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
}
.mlf-checklist-card li.mlf-li-no::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  background: #FFFFFF;
  border: 1.5px solid #D0C4AF;
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M3 3 L9 9 M9 3 L3 9' stroke='%235C433A' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
  box-sizing: border-box;
}

.mlf-checklist-card blockquote {
  background: #FFF1E5 !important;
  border-left: 4px solid #A15533 !important;
  margin: 18px 0 0 0 !important;
  padding: 14px 18px !important;
  border-radius: 0 8px 8px 0 !important;
}
.mlf-checklist-card blockquote p { margin: 0 !important; color: #382D26 !important; }

/* ---------- D5. Timeline (transformed "Au programme" ul) ---------- */
.mlf-timeline {
  position: relative;
  padding-left: 40px;
  margin: 24px 0;
}
.mlf-timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #D0C4AF;
}
.mlf-timeline-item {
  position: relative;
  padding-bottom: 24px;
}
.mlf-timeline-item:last-child { padding-bottom: 0; }
.mlf-timeline-item::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #A15533;
}
.mlf-timeline-time {
  font-weight: 800;
  color: #382D26;
  font-size: 15px;
  margin-bottom: 4px;
  letter-spacing: 0;
}
.mlf-timeline-text {
  color: #5C433A;
  font-size: 14.5px;
  line-height: 1.55;
}
.mlf-timeline-text p { margin: 0 !important; }
.mlf-timeline-text strong { color: #382D26; }

/* ---------- D6b. Booking widget — give it a soft accent so it stands out as the conversion point ---------- */
[class*="_section_"][class*="_ticketsSection_"] {
  background: #FFFFFF !important;
  border: 1px solid #EDE5D8 !important;
  border-radius: 16px !important;
  padding: 28px !important;
  margin: 24px 40px !important;
  box-shadow: 0 4px 20px rgba(56, 45, 38, 0.05) !important;
}
@media (max-width: 820px) {
  [class*="_section_"][class*="_ticketsSection_"] {
    margin: 20px 16px !important;
    padding: 20px !important;
  }
}

/* Native section margin reset for tickets/location sections so they line up with our injected blocks */
/* Scoping prefix `[class*="_mainCard_"] > ` stripped (source line 799) —
   this targets a native Hi.Events SPA class (`_section_`), which will not
   exist in standalone-page DOM either way; kept verbatim for parity. */
[class*="_section_"]:not([class*="_ticketsSection_"]) {
  padding-left: 40px !important;
  padding-right: 40px !important;
}
@media (max-width: 820px) {
  /* Scoping prefix `[class*="_mainCard_"] > ` stripped (source line 804). */
  [class*="_section_"]:not([class*="_ticketsSection_"]) {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* Organizer card hidden — info is already covered by the RTO footer */
/* Scoping prefix `body[data-page-enhanced="true"] ` stripped (source line
   811) — this targets a native Hi.Events SPA class (`_organizerCard_`),
   which will not exist in standalone-page DOM either way; kept verbatim
   for parity. */
[class*="_organizerCard_"] {
  display: none !important;
}

/* ---------- D6c. Custom location card (replaces native location section body) ---------- */
.mlf-location-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: #FFFFFF;
  border: 1px solid #EDE5D8;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(56, 45, 38, 0.05);
  margin-top: 8px;
  min-height: 360px;
}
@media (max-width: 820px) {
  .mlf-location-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }
}

.mlf-location-info {
  padding: 32px 32px 28px;
  display: flex;
  flex-direction: column;
}
.mlf-location-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: #A15533;
  margin-bottom: 10px;
}
.mlf-location-name {
  font-size: 24px;
  font-weight: 800;
  color: #382D26 !important;
  margin: 0 0 8px 0 !important;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.mlf-location-address {
  font-size: 15px;
  color: #5C433A;
  margin: 0 0 22px 0;
  line-height: 1.5;
}
.mlf-location-transport {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 24px 0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mlf-location-transport li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: #382D26;
  line-height: 1.45;
  margin: 0 !important;
}
.mlf-location-transport-icon {
  font-size: 17px;
  line-height: 1.2;
  flex-shrink: 0;
  width: 22px;
  text-align: center;
}
.mlf-location-transport strong {
  color: #382D26;
  font-weight: 700;
}
.mlf-location-directions {
  display: inline-flex;
  align-self: flex-start;
  background: #A15533;
  color: #FFFFFF !important;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(161, 85, 51, 0.25);
  margin-top: auto;
  letter-spacing: 0.01em;
}
.mlf-location-directions:hover {
  background: #8B4527;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(161, 85, 51, 0.35);
}

.mlf-location-map {
  background: #F4ECDD;
  position: relative;
  min-height: 320px;
}
.mlf-location-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  position: absolute;
  inset: 0;
}
@media (max-width: 820px) {
  .mlf-location-map { min-height: 240px; position: relative; }
  .mlf-location-map iframe { position: absolute; }
  .mlf-location-info { padding: 24px; }
  .mlf-location-name { font-size: 22px; }
}

/* ---------- D6. RTO / legal footer ---------- */
.mlf-rto-footer {
  background: #FAFAF7;
  border-top: 1px solid #EDE5D8;
  padding: 28px 40px;
  text-align: center;
}
.mlf-rto-row {
  display: flex;
  gap: 36px;
  justify-content: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.mlf-rto-row > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mlf-rto-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5C433A;
  font-weight: 600;
}
.mlf-rto-value {
  font-size: 14px;
  font-weight: 700;
  color: #382D26;
}
.mlf-rto-fineprint {
  font-size: 12px;
  color: #5C433A;
  line-height: 1.55;
  max-width: 640px;
  margin: 0 auto;
}
.mlf-rto-fineprint a {
  color: #A15533;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- D7. Mobile breakpoint refinements ---------- */
@media (max-width: 820px) {
  .mlf-custom-hero {
    padding: 32px 20px;
    gap: 20px;
  }
  .mlf-hero-title {
    font-size: 26px;
  }
  .mlf-hero-subtitle {
    font-size: 15px;
  }
  .mlf-stats-strip {
    padding: 14px 20px;
    gap: 16px;
    font-size: 12px;
  }
  .mlf-stat {
    font-size: 12.5px;
  }
  .mlf-rto-footer {
    padding: 20px 20px;
  }
  .mlf-rto-row {
    gap: 18px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .mlf-rto-row > div {
    align-items: center;
  }
}

/* ---------- 19. FAQ accordion (existing, unchanged) ---------- */
.mlf-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 8px;
}
.mlf-faq-item {
  background: #FAFAF7;
  border: 1px solid #EDE5D8;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.mlf-faq-item[open] {
  border-color: #D0C4AF;
  background: #FFFFFF;
}
.mlf-faq-question {
  padding: 16px 52px 16px 20px;
  font-weight: 700;
  color: #382D26;
  cursor: pointer;
  list-style: none;
  position: relative;
  user-select: none;
  font-size: 1rem;
  line-height: 1.4;
  transition: background 0.15s ease;
}
.mlf-faq-question::-webkit-details-marker { display: none; }
.mlf-faq-question::marker { display: none; content: ''; }
.mlf-faq-question::after {
  content: '+';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 300;
  color: #A15533;
  transition: transform 0.25s ease;
  line-height: 1;
}
.mlf-faq-item[open] .mlf-faq-question::after {
  transform: translateY(-50%) rotate(45deg);
}
.mlf-faq-question:hover {
  background: #F4ECDD;
}
.mlf-faq-item[open] .mlf-faq-question:hover {
  background: #FAFAF7;
}
.mlf-faq-answer {
  padding: 0 20px 18px;
  color: #44403c;
  line-height: 1.65;
  font-size: 0.98rem;
}
.mlf-faq-answer p {
  margin: 0 !important;
}
.mlf-faq-answer p + p {
  margin-top: 0.6em !important;
}
.mlf-faq-answer a {
  color: #A15533 !important;
  text-decoration: underline !important;
}

/* ---------- TTW page shell (standalone pages, no SPA wrapper) ---------- */
/* max-width 1180 + 32px side padding port the SPA wrapper (`_wrapper_`)
   wide-desktop override (mlf-overrides.css line 27): the header, footer and the
   card all align to this bound. */
.ttw-page { max-width: 1180px; margin: 0 auto; padding: 24px 32px 80px; }
@media (max-width: 820px) { .ttw-page { padding: 16px 16px 60px; } }

/* ---------- Main card ----------
   Ported verbatim from mlf-overrides.css `_mainCard_` (section 4): the white
   card floating on the warm page background, so the standalone pages read
   identically to the original SPA. `overflow:hidden` is load-bearing — the hero
   (card's first child) and the RTO footer (last child) are full-bleed and must
   clip to the 18px rounded corners; without it they square off the card. */
.ttw-card {
  background: #FFFFFF;
  border: 1px solid #EDE5D8;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(56, 45, 38, 0.08), 0 2px 8px rgba(56, 45, 38, 0.04);
  overflow: hidden;
}
/* Blocks with no horizontal inset of their own would touch the card edges —
   give them the 40px gutter the other content blocks already use (mirrors the
   original's native `_section_` 40px padding). Full-bleed blocks (hero, stats
   strip, RTO footer) are intentionally NOT inset.
   NOTE: `.ttw-card > .ttw-product-grid` was removed here — the homepage no
   longer nests `.ttw-product-grid` inside `.ttw-card` (see "Homepage"
   section below), and no other template pairs the two classes. */
.ttw-card > .mlf-location-card { margin-left: 40px; margin-right: 40px; }
.ttw-card > .ttw-crosspromo { margin-left: 40px; margin-right: 40px; }
@media (max-width: 820px) {
  .ttw-card > .mlf-location-card { margin-left: 16px; margin-right: 16px; }
  .ttw-card > .ttw-crosspromo { margin-left: 16px; margin-right: 16px; }
}
.ttw-header { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 24px; }
.ttw-header-logo img { height: 44px; width: auto; display: block; }
.ttw-header-nav a { color: var(--mlf-ink, #2a2520); text-decoration: none; font-weight: 600; font-size: 14px; margin-left: 20px; }
/* Footer text darkened #80766b -> #5d554c: #80766b on the warm page bg (#E8E2D8)
   is only 3.45:1 (fails AA); #5d554c is 5.68:1 (pass). */
.ttw-footer { margin-top: 56px; padding-top: 20px; border-top: 1px solid rgba(0,0,0,.08); font-size: 13px; color: #5d554c; display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; }

/* ---------- Homepage ---------- */
.ttw-home-hero { text-align: center; padding: 40px 0 28px; }
.ttw-home-hero h1 { font-size: clamp(26px, 4.5vw, 40px); letter-spacing: -0.01em; margin: 0 0 10px; }
.ttw-home-hero p { font-size: 17px; color: #5d554c; max-width: 640px; margin: 0 auto; }
.ttw-product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin: 28px 0 24px; }
/* Homepage badges strip sits directly on the bare gradient background (no
   `.ttw-card` behind it — see task-13-report.md "Homepage unnesting").
   product.html's strip stays nested in `.ttw-card` and keeps the plain
   bottom-border divider from the base `.mlf-stats-strip` rule above; this
   override only matches the strip when it's a direct child of `.ttw-page`,
   which is true for home.html only. Full border + radius + a checklist-card-
   scale shadow give it the same "chip" definition already used for other
   floating blocks (`.mlf-checklist-card`, `.mlf-location-card`,
   `.ttw-crosspromo`) since the base border-bottom + #F4ECDD fill read as
   near-invisible directly against the #F2EFEC/#E8E2D8 page gradient. */
.ttw-page > .mlf-stats-strip {
  border: 1px solid #EDE5D8;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(56, 45, 38, 0.04);
}
.ttw-product-card { display: flex; flex-direction: column; background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 22px rgba(0,0,0,.05); transition: transform .15s ease, box-shadow .15s ease; }
.ttw-product-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 12px 32px rgba(0,0,0,.09); }
.ttw-product-card-image { aspect-ratio: 16 / 7; background-size: cover; background-position: center; }
.ttw-product-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.ttw-product-card-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--mlf-accent, #A15533); font-weight: 700; }
.ttw-product-card-title { font-size: 21px; margin: 0; letter-spacing: -0.01em; }
.ttw-product-card-pitch { font-size: 14px; color: #5d554c; margin: 0; }
.ttw-product-card-meta { display: flex; gap: 14px; align-items: baseline; margin-top: 4px; }
.ttw-product-card-price { font-size: 20px; font-weight: 700; color: var(--mlf-accent, #A15533); }
/* "Next date" darkened #80766b -> #5d554c: #80766b on white is 4.45:1 (just
   fails AA); #5d554c is 7.32:1. Also gives the next-date more prominence
   (principle 1: "the next date is the product"). */
.ttw-product-card-next { font-size: 13px; color: #5d554c; }
.ttw-product-card-cta { margin-top: 10px; font-weight: 700; color: var(--mlf-accent, #A15533); }

/* ---------- Cross-promo block (product pages) ---------- */
.ttw-crosspromo { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #f7f2ea; border: 1px solid rgba(0,0,0,.06); border-radius: 12px; padding: 18px 22px; margin: 32px 0; flex-wrap: wrap; }
.ttw-crosspromo-copy { font-size: 15px; font-weight: 600; }
.ttw-crosspromo a { color: var(--mlf-accent, #A15533); font-weight: 700; text-decoration: none; white-space: nowrap; }

/* ---------- .mlf-desc-section (Schedule / FAQ headings) ---------- */
.mlf-desc-section { margin: 24px 40px; }
.mlf-desc-section h3 {
  font-size: 22px;
  font-weight: 700;
  color: #382D26;
  margin: 0 0 16px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
@media (max-width: 820px) {
  .mlf-desc-section { margin: 20px 16px; }
}

/* ==========================================================================
   POLISH PASS — refinement of the existing language (no new patterns).
   Contrast fixes live inline above; below: hover/focus states, touch targets,
   typographic wrapping, reduced motion.
   ========================================================================== */

/* ---------- Interaction states: hover ---------- */
.ttw-crosspromo a:hover { color: #8B4527; text-decoration: underline; text-underline-offset: 2px; }
.ttw-header-nav a:hover { color: #A15533; }

/* ---------- Interaction states: focus-visible ----------
   Extends the same 2px terracotta ring system defined in ttw-booking.css onto
   the page-level interactive elements the booking file doesn't cover. */
.mlf-hero-session:focus-visible,
.ttw-product-card:focus-visible,
.mlf-location-directions:focus-visible,
.ttw-crosspromo a:focus-visible,
.ttw-header-nav a:focus-visible,
.ttw-header-logo:focus-visible,
.ttw-footer a:focus-visible {
  outline: 2px solid #A15533;
  outline-offset: 2px;
}

/* ---------- Touch targets (established 44px project standard) ----------
   Session buttons measured ~43px and Get-directions ~41px from their padding;
   floor both to 44px. The hero CTA is already 48px via its padding. */
.mlf-hero-session { min-height: 44px; }
.mlf-location-directions { min-height: 44px; align-items: center; }

/* ---------- Typographic wrapping ---------- */
.mlf-hero-title, .ttw-home-hero h1 { text-wrap: balance; }
.mlf-hero-subtitle, .ttw-home-hero p, .ttw-product-card-pitch, .mlf-course-blurb p { text-wrap: pretty; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .mlf-hero-session:hover:not(:disabled),
  .mlf-hero-cta:hover,
  .ttw-product-card:hover,
  .mlf-location-directions:hover { transform: none !important; }
}
