/*
 * DG-FORMULA1-SECTION-23-STANDALONE — styles of the standalone Formula 1 section
 * (v2/views/partials/v3/formula1-standalone-section.php). UNMOUNTED: no layout or page loads this file yet.
 * Every rule is scoped under .v3-f1-standalone with its own v3-f1s-* names: no global element, .btn, .hn, body or header
 * selector, so the current Formula 1 / combo intro, header, cart and payment styles are untouched. The font is the host's
 * (Plus Jakarta Sans on the storefront); heading weight from the storefront (see HOUSE-STYLE below).
 * Design: V20 DG-FORMULA1-SECTION-23 PREVIEW (approved by Mark, 23 Nov 2026): full-width light lavender band, own content
 * in the storefront .container (HOUSE-STYLE; first built as max 1224px incl. 32px); desktop photo left, heading + three steps + actions right, the white day card below;
 * phones photo / facts / milk context first, then heading, steps, actions and the day card with three compact rows.
 * FIX01 (Mark): the day example is its own sibling section BELOW the band, outside it: white background, one subtle border on its
 * one card, calm space between both; the two eyebrows are plain small text without a dot.
 * FORMULA1-HOUSE-STYLE-ALIGNMENT-23 (Mark): both sections now follow the storefront house style instead of their own type and
 * width: the inner wrappers are the storefront .container (its --container width and --page-gutter, set by the partial's class);
 * the two section eyebrows are the existing .pill.berry (set by the partial's classes); both h2s use the storefront section-head
 * size / line height / tracking (--d-h2-section, 1.1, --d-tracking-tight) and the storefront's own heading weight; the lead and
 * day-card copy follow the homepage body copy (16px / 1.55, 15.5px at 720px and narrower, --h1-muted); every ordinary text in
 * both sections is weight 500, the meal titles 700; the step numbers are --berry-dark with white digits. Meal labels unchanged.
 */

.v3-f1-standalone {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  color: #1c2822;
  font-family: inherit;
}
/* FORMULA1-CONSISTENT-SECTION-SPACING-23 (Mark): ONE visible gap per transition. Above the band the storefront section gap
   --d-section-gap (76px, 64px at 720px and narrower) as its margin (page background); DG-HOME-THREE-VIEWS-25 T6: on the home the
   main block gap --u24-main (24 / 32 / 48px) instead. The band's inner padding is its own space.
   FORMULA1-ROUTINE-BALANCE-AND-CARD-TYPE-23 (Mark via V20, 23 Nov): the day section is a calmer 46px above AND below its card
   at every width and has no background of its own (the page background shows around the white card, which keeps its border);
   it owns the 46px below, so the block directly after it (guest price block / member help strip) adds no top space there. */
.v3-f1-standalone--band {
  margin-top: var(--u24-main, var(--d-section-gap, 76px)); /* DG-HOME-THREE-VIEWS-25 T6: on the home the main block gap 24 / 32 / 48 */
  padding: 48px 0;
  background: linear-gradient(125deg, #e8e0fa, #e7e0f8 55%, #eee5f4);
}
.v3-f1-standalone--routine {
  padding: 26px 0 46px 0;
}
/* DG-STOREFRONT-NEXT-25-FOLLOWUP F7 (Mark): desktop (the F1 section's own >= 1024 px step; the max-width 1023 rule marks smaller)
   the day section starts 46 px below the block above it; phones and tablets keep 26 px; left / right 0 and bottom 46 px unchanged */
@media (min-width: 1024px) {
  .v3-f1-standalone--routine {
    padding-top: 46px;
  }
}
/* the block directly after the day section adds no top space of its own (the day section's 46px bottom is the one gap):
   the guest price block, and the member help strip (the home's own top-gap rule for it is (0,5,1), so the same home scope) */
.v3-f1-standalone--routine + #register.d-reg-section,
body.v3-storefront[data-storefront="unified"][data-v3-page="home"] [data-h1-home] > .v3-f1-standalone--routine + .d-home-support {
  padding-top: 0;
}
.v3-f1-standalone *,
.v3-f1-standalone *::before,
.v3-f1-standalone *::after {
  box-sizing: border-box;
}
/* ---- top: photo left, copy right ---- */
.v3-f1-standalone .v3-f1s-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.v3-f1-standalone .v3-f1s-visual {
  min-width: 0;
}
.v3-f1-standalone .v3-f1s-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #dfd8d1;
  aspect-ratio: 1 / 1;
}
.v3-f1-standalone .v3-f1s-photo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.v3-f1-standalone .v3-f1s-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0 8px;
  padding: 0;
  list-style: none;
}
.v3-f1-standalone .v3-f1s-facts li {
  margin: 0;
  padding: 6px 11px;
  border: 1px solid var(--berry, #8e1566); /* DG-STOREFRONT-NEXT-25 N2 (Mark): thin berry information outline (was #e2dae9) */
  border-radius: 30px;
  background: transparent; /* N2: the section's own surface shows through (was #fff): information, no button look */
  color: #4a3f50;
  font-size: 12px;
  font-weight: 600; /* DG-STOREFRONT-NEXT-25-FOLLOWUP F1 (Mark): was 500 */
  line-height: 1.4;
}
.v3-f1-standalone .v3-f1s-note {
  margin: 8px 0 0;
  color: #5f5763;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
}

.v3-f1-standalone .v3-f1s-eyebrow {
  margin: 0 0 15px;
}
.v3-f1-standalone .v3-f1s-title {
  max-width: 440px;
  margin: 0 0 18px;
  color: var(--h1-ink, #25262b);
  font-size: var(--d-h2-section, clamp(28px, 3.2vw, 38px));
  letter-spacing: var(--d-tracking-tight, -0.02em);
  line-height: 1.1;
}
.v3-f1-standalone .v3-f1s-lead {
  max-width: 440px;
  margin: 0 0 25px;
  color: var(--h1-muted, #5f626c);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
}

/* ---- three steps in one compact white panel ---- */
.v3-f1-standalone .v3-f1s-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid #fff;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.72);
}
.v3-f1-standalone .v3-f1s-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 17px 19px;
}
.v3-f1-standalone .v3-f1s-step + .v3-f1s-step::before {
  content: "";
  position: absolute;
  top: 0;
  right: 19px;
  left: 63px;
  height: 1px;
  background: #e5dfe8;
}
.v3-f1-standalone .v3-f1s-num {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--berry-dark, #6b0f4d);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.v3-f1-standalone .v3-f1s-step-copy {
  display: block;
  min-width: 0;
}
.v3-f1-standalone .v3-f1s-step-title {
  display: block;
  margin: 0 0 3px;
  color: #1c2822;
  font-size: 15px;
  font-weight: 700; /* DG-STOREFRONT-NEXT-25-FOLLOWUP F1 (Mark): was 600 */
  line-height: 1.5;
}
.v3-f1-standalone .v3-f1s-step-body {
  display: block;
  color: #69626b;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.6;
}

/* ---- actions ---- */
.v3-f1-standalone .v3-f1s-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}
.v3-f1-standalone .v3-f1s-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 19px;
  border: 1px solid #c9c4cb;
  border-radius: 24px;
  background: #fff;
  color: #27332a;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.v3-f1-standalone .v3-f1s-btn:hover {
  border-color: #a79fab;
  background: #faf8fb;
  color: #1c2822;
}
.v3-f1-standalone .v3-f1s-btn--primary {
  border-color: #2e8528;
  background: #2e8528;
  color: #fff;
  font-weight: 800; /* DG-STOREFRONT-NEXT-25 N3 (Mark): primary CTA 800 (was 600); the info button keeps 500 */
}
.v3-f1-standalone .v3-f1s-btn--primary:hover {
  border-color: #246b20;
  background: #246b20;
  color: #fff;
}
.v3-f1-standalone .v3-f1s-btn:focus-visible {
  outline: 3px solid #922273;
  outline-offset: 3px;
}
.v3-f1-standalone .v3-f1s-ico {
  display: block;
  flex: none;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- the day example: its own section below the band (page background); the white card is the one bordered surface ---- */
.v3-f1-standalone .v3-f1s-routine {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.65fr);
  column-gap: 30px;
  row-gap: 15px;
  align-items: center;
  margin: 0;
  padding: 29px;
  border: 1px solid #e5dfeb;
  border-radius: 20px;
  background: #fff;
}
.v3-f1-standalone .v3-f1s-routine-title {
  margin: 0 0 13px;
  color: var(--h1-ink, #25262b);
  font-size: var(--d-h2-section, clamp(28px, 3.2vw, 38px));
  letter-spacing: var(--d-tracking-tight, -0.02em);
  line-height: 1.1;
}
.v3-f1-standalone .v3-f1s-routine-body {
  margin: 0;
  color: var(--h1-muted, #5f626c);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
}
.v3-f1-standalone .v3-f1s-meals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.v3-f1-standalone .v3-f1s-meal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 179px;
  margin: 0;
  padding: 17px 14px;
  border: 1px solid #f2ddc7;
  border-radius: 13px;
  background: #fff3e8;
}
.v3-f1-standalone .v3-f1s-meal--dinner {
  border-color: #e0d9ef;
  background: #eeebf7;
}
.v3-f1-standalone .v3-f1s-meal-icon {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  margin-bottom: 12px;
  color: #bc612b;
}
.v3-f1-standalone .v3-f1s-meal--dinner .v3-f1s-meal-icon {
  color: #77568b;
}
.v3-f1-standalone .v3-f1s-meal-icon .v3-f1s-ico {
  width: 24px;
  height: 24px;
  stroke-width: 1.6;
}
.v3-f1-standalone .v3-f1s-meal-when {
  display: block;
  margin-bottom: 6px;
  color: #8c6550;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 1.4;
  text-transform: uppercase;
}
.v3-f1-standalone .v3-f1s-meal--dinner .v3-f1s-meal-when {
  color: #6d607d;
}
.v3-f1-standalone .v3-f1s-meal-title {
  display: block;
  margin-bottom: 7px;
  color: #1c2822;
  font-size: 14.5px;
  font-weight: 800; /* DG-STOREFRONT-NEXT-25-FOLLOWUP F1 (Mark): was 700 */
  line-height: 1.45;
}
.v3-f1-standalone .v3-f1s-meal-body {
  display: block;
  color: #6d625e;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.65;
}
.v3-f1-standalone .v3-f1s-routine-foot {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  padding-top: 13px;
  border-top: 1px solid #ece8ef;
  color: #6f6b73;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
}

/* ---- tablet: two columns stay, a little tighter; the day card stacks its copy above the three meals ---- */
@media (max-width: 1023px) {
  .v3-f1-standalone .v3-f1s-top {
    gap: 32px;
  }
  .v3-f1-standalone .v3-f1s-routine {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- phones and small tablets: photo / facts / milk context first, then heading, steps, actions, the day card ---- */
@media (max-width: 759px) {
  .v3-f1-standalone--band {
    padding: 28px 0;
  }
  .v3-f1-standalone .v3-f1s-top {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 23px;
  }
  .v3-f1-standalone .v3-f1s-visual {
    width: 100%;
    max-width: 560px;
  }
  .v3-f1-standalone .v3-f1s-photo {
    border-radius: 15px;
  }
  .v3-f1-standalone .v3-f1s-facts {
    gap: 5px;
    margin-top: 12px;
  }
  .v3-f1-standalone .v3-f1s-facts li {
    padding: 6px 9px;
    font-size: 11.5px;
  }
  .v3-f1-standalone .v3-f1s-eyebrow {
    margin-bottom: 11px;
  }
  .v3-f1-standalone .v3-f1s-title {
    max-width: 330px;
    margin-bottom: 13px;
  }
  .v3-f1-standalone .v3-f1s-lead {
    max-width: none;
    margin: 0 0 23px;
  }
  .v3-f1-standalone .v3-f1s-steps {
    border-radius: 12px;
  }
  .v3-f1-standalone .v3-f1s-step {
    gap: 11px;
    padding: 14px 12px;
  }
  .v3-f1-standalone .v3-f1s-step + .v3-f1s-step::before {
    right: 12px;
    left: 51px;
  }
  .v3-f1-standalone .v3-f1s-num {
    width: 28px;
    height: 28px;
  }
  .v3-f1-standalone .v3-f1s-step-title {
    font-size: 14.5px;
  }
  .v3-f1-standalone .v3-f1s-step-body {
    font-size: 13px;
  }
  .v3-f1-standalone .v3-f1s-actions {
    gap: 8px;
    margin-top: 18px;
  }
  .v3-f1-standalone .v3-f1s-btn {
    padding: 10px 16px;
    font-size: 13px;
  }
  .v3-f1-standalone .v3-f1s-routine {
    display: block;
    padding: 20px 17px;
    border-radius: 16px;
  }
  .v3-f1-standalone .v3-f1s-routine-title {
    max-width: 290px;
  }
  .v3-f1-standalone .v3-f1s-meals {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 20px;
  }
  .v3-f1-standalone .v3-f1s-meal {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 11px;
    align-items: center;
    min-height: 0;
    padding: 13px 12px;
  }
  .v3-f1-standalone .v3-f1s-meal-icon {
    grid-row: 1 / 4;
    margin: 0;
  }
  .v3-f1-standalone .v3-f1s-meal-when {
    margin: 0 0 3px;
  }
  .v3-f1-standalone .v3-f1s-meal-title {
    margin: 0;
    font-size: 14px;
  }
  .v3-f1-standalone .v3-f1s-meal-body {
    grid-column: 2;
    margin: 4px 0 0;
  }
  .v3-f1-standalone .v3-f1s-routine-foot {
    margin-top: 18px;
    font-size: 11.5px;
  }
}

/* the homepage body copy's phone size (the same 720px step as the storefront's own) */
@media (max-width: 720px) {
  .v3-f1-standalone .v3-f1s-lead,
  .v3-f1-standalone .v3-f1s-routine-body {
    font-size: 15.5px;
  }
}

/* ---- DG-HOME-THREE-VIEWS-25 T3 (Mark): the day example as a phone disclosure (v3-f1s-routine.js; max-width 720px only).
   The h2 keeps its size; its words sit in a full-width native button with a quiet chevron (44px hit area, the section's own
   focus ring). Closed: only the eyebrow + title row; the three [data-f1s-routine-panel] parts carry `hidden` (this rule beats
   their own display values). The section's 26 / 46px stay its own space, open or closed. The controller slides the card's height
   for 220ms on a phone toggle (instant with reduced motion); the chevron turns with it. ---- */
.v3-f1-standalone [data-f1s-routine-panel][hidden] {
  display: none;
}
.v3-f1-standalone .v3-f1s-routine-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.v3-f1-standalone .v3-f1s-routine-toggle:focus-visible {
  outline: 3px solid #922273;
  outline-offset: 4px;
}
.v3-f1-standalone .v3-f1s-routine-chevron {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #e5dfeb;
  border-radius: 50%;
  color: var(--berry-dark, #6b0f4d);
  transition: transform 0.2s ease;
}
.v3-f1-standalone .v3-f1s-routine-chevron svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.v3-f1-standalone .v3-f1s-routine-toggle[aria-expanded="true"] .v3-f1s-routine-chevron {
  transform: rotate(180deg);
}
.v3-f1-standalone[data-f1s-routine-state="closed"] .v3-f1s-routine-title {
  margin-bottom: 0;
}
/* the trigger row is the card's full width (chevron at the right edge); the words keep the title's own 290px wrap */
.v3-f1-standalone[data-f1s-routine-state] .v3-f1s-routine-title {
  max-width: none;
}
.v3-f1-standalone[data-f1s-routine-state] .v3-f1s-routine-label {
  max-width: 290px;
}
@media (prefers-reduced-motion: reduce) {
  .v3-f1-standalone .v3-f1s-routine-chevron {
    transition: none;
  }
}

@media (max-width: 359px) {
  .v3-f1-standalone .v3-f1s-btn {
    padding: 10px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v3-f1-standalone .v3-f1s-btn {
    transition: none;
  }
}
