/* The home's simplified Tide (operator 18 Nov). The line colours are the /stats wave's: the app's Tide in both themes. */
.home-tide{--section-colour:var(--pep-tide);--tide-line:#2A6E72;--tide-fill:#6EB8B4;--tide-fill-o:.28;--tide-hair:rgba(16,20,24,.16);--tide-ground:#E4F2F0;padding-top:calc(var(--section-gap)/2);padding-bottom:calc(var(--section-gap)/2 + 24px)}
.tide-body{display:grid;gap:18px;margin-top:8px}
/* The step eyebrow, in Step 1's larger heading: balanced, so a phone never leaves one word on its second line. */
.home-tide .eyebrow{text-wrap:balance}
.tide-card{margin:0;padding:34px 30px 24px;border-radius:24px;background:var(--tide-ground);box-sizing:border-box}
.tide-card svg{display:block;width:100%;height:236px;overflow:visible}
.tide-card path{fill:none;vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round}
.tide-card .tide-fill{fill:var(--tide-fill);opacity:var(--tide-fill-o);stroke:none}
.tide-line{stroke:var(--tide-line);stroke-width:2.5px}
.tide-forecast{stroke:var(--tide-line);stroke-width:2px;stroke-dasharray:6 6;opacity:.7}
.tide-base{stroke:var(--tide-hair);stroke-width:1px}
.tide-now{stroke:var(--tide-line);stroke-width:1px;opacity:.6}
.tide-shot{stroke:var(--tide-line);stroke-width:10px}
.tide-now-dot{stroke:var(--tide-line);stroke-width:12px}
/* The app's Tide weight line (chart C): overlay weight colour, 2 pt, weigh-ins r 3 with a ground ring, dotted ahead. */
.home-tide{--tide-weight:#806A8F}
.tide-weight{stroke:var(--tide-weight);stroke-width:2px}
.tide-weight-halo{stroke:var(--tide-ground);stroke-width:6px}
.tide-weight-forecast{stroke:var(--tide-weight);stroke-width:2px;stroke-dasharray:4 6}
.tide-weigh-ring{stroke:var(--tide-ground);stroke-width:9px}
.tide-weigh-in{stroke:var(--tide-weight);stroke-width:6px}
/* The line labels (operator 18 Nov: "a small text that say GLP-1 on the green line and "weight" on the purple line"): chart C's end label look, Inter 500 11 px in the line colour with a 4 px ground halo. */
.tide-plot{position:relative}
.tide-card .tide-tags{position:absolute;inset:0;height:100%;pointer-events:none}
.tide-tag{font-family:Inter,system-ui,sans-serif;font-weight:500;font-size:11px;paint-order:stroke;stroke:var(--tide-ground);stroke-width:4px;stroke-linejoin:round}
.tide-tag-glp{fill:var(--tide-line)}
.tide-tag-weight{fill:var(--tide-weight)}
.tide-caption{margin:16px 0 0;font-size:15px;line-height:1.45;color:var(--ink)}
/* The scroll draw-in (operator 19 Nov: "Can we please ask some Opus 5.5 to make a micro animation on this so that the lines
   are moving as they scroll?"). tide-draw.js sets is-drawing only while the chart is not whole and moves the clips it
   makes; without the class (no script, Reduce Motion, p = 1) the chart is the chart as served. */
.tide-plot.is-drawing .tide-fill,.tide-plot.is-drawing .tide-line{clip-path:url(#tide-draw-glp)}
.tide-plot.is-drawing .tide-weight-halo,.tide-plot.is-drawing .tide-weight{clip-path:url(#tide-draw-weight)}
.tide-plot.is-drawing .tide-forecast{clip-path:url(#tide-draw-glp-ahead)}
.tide-plot.is-drawing .tide-weight-forecast{clip-path:url(#tide-draw-weight-ahead)}
.tide-plot.is-drawing .tide-now{clip-path:url(#tide-draw-now)}
.tide-plot.is-drawing .tide-tag{transform-box:fill-box;transform-origin:center}
.tide-pep{display:flex;flex-direction:column;align-items:flex-start}
.tide-bubble{position:relative;padding:18px 22px;border-radius:18px;background:var(--surface);color:var(--ink);border:1px solid var(--border);box-shadow:0 12px 26px -8px #1014183d}
.tide-bubble:after{content:"";position:absolute;left:96px;bottom:-8px;width:14px;height:14px;background:var(--surface);border-right:1px solid var(--border);border-bottom:1px solid var(--border);transform:rotate(45deg)}
.tide-speaker{display:block;font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin-bottom:5px}
.tide-line-words{font-family:Outfit,system-ui,sans-serif;font-size:16px;line-height:1.4;margin:0}
.tide-fish{display:block;width:250px;height:250px;margin:-10px 0 -20px 18px}
@media(prefers-color-scheme:dark){html:not([data-theme="light"]) .home-tide{--tide-line:#7DC8C3;--tide-fill-o:.2;--tide-hair:rgba(246,241,232,.16);--tide-ground:#1B2229;--tide-weight:#D1B0E4}}
html[data-theme="dark"] .home-tide{--tide-line:#7DC8C3;--tide-fill-o:.2;--tide-hair:rgba(246,241,232,.16);--tide-ground:#1B2229;--tide-weight:#D1B0E4}
/* Desktop: Pep's column spans the heading row too, so his longer line (operator 12:17 UTC) never pushes the chart down. */
@media(min-width:761px){
  .home-tide{display:grid;grid-template-columns:minmax(0,1fr) 330px;grid-template-areas:"head ." "head pep" "card pep";column-gap:36px}
  /* Operator 19 Nov: "Move the bubble box down to the red line" (the cap top of "Your Tide."). The heading's two lines
     share the section's rows (subgrid), so Pep's column starts at the title row even when the eyebrow wraps. */
  .home-tide .pyp-heading{grid-area:head;display:grid;grid-template-rows:subgrid}
  .tide-body{display:contents}
  .tide-card{grid-area:card;margin-top:8px}
  /* Operator 18 Nov: "Keep all in the box proplery.. the bubble is too big". Pep's column fills the left column's
     height: the bubble's top on the title's cap top (19 Nov), Pep's body at the card's bottom (the still is clear
     below his body for 89 of its 640 px, so the picture's foot sits that far below). */
  .tide-pep{grid-area:pep;align-self:stretch;justify-content:space-between}
  /* The bubble's top edge on the title's cap top: the cap offset inside the Outfit title is .215 of its size. */
  .tide-bubble{margin-top:calc(.215 * clamp(36px, 4vw, 54px))}
  /* Operator 20 Nov (layout rules, docs/web-layout.md): Pep sits on a named line, the centre line of his column; the
     bubble's tail moves with him (it pointed 40 px left of his centre before, and still does). */
  .tide-fish{width:250px;height:250px;margin:12px auto calc(-250px * 89 / 640)}
  .tide-bubble:after{left:118px}
}
@media(max-width:760px){
  .tide-body{grid-template-columns:1fr;gap:18px}
  .tide-card{padding:24px 18px 18px;border-radius:20px}
  .tide-card svg{height:166px}
  /* The line labels (operator 18 Nov: "a small text that say GLP-1 on the green line and "weight" on the purple line"): chart C's end label look, Inter 500 11 px in the line colour with a 4 px ground halo. */
.tide-plot{position:relative}
.tide-card .tide-tags{position:absolute;inset:0;height:100%;pointer-events:none}
.tide-tag{font-family:Inter,system-ui,sans-serif;font-weight:500;font-size:11px;paint-order:stroke;stroke:var(--tide-ground);stroke-width:4px;stroke-linejoin:round}
.tide-tag-glp{fill:var(--tide-line)}
.tide-tag-weight{fill:var(--tide-weight)}
.tide-caption{margin-top:14px;font-size:14px}
  .tide-pep{flex-direction:row;align-items:center;gap:4px}
  .tide-bubble{flex:1;padding:14px 16px}
  .tide-bubble:after{left:auto;right:-8px;bottom:auto;top:44%;border-bottom:0;border-top:1px solid var(--border);transform:rotate(45deg)}
  .tide-line-words{font-size:16px;line-height:1.3}
  /* His right edge on the page column (it ran 8 px past it). */
  .tide-fish{width:120px;height:120px;margin:0;flex:none}
}
