/* The first week on Home (18 November 2026), drawn by views/firstweek.js.

   One card in the Home column, in the clean look's own values (clean.css): the surface of a post, its thin line and its
   rounded corners, so it reads as part of the page and not as a banner. A serif title on one line, a thin line of progress
   in lilac, and the steps as rows: a round tick (empty, the next one's ring in lilac, filled in lilac once done), the
   step's words, one quiet line, and its button on the right (on a phone, under the words). The next step's button is
   the one dark pill; the others are outlined. Text a doctor reads is 14 px or more. Nothing turns or follows the pointer,
   and with reduced motion everything is still. */

html #bsFirstWeek.fw {
  position: relative; margin: 0 0 20px; padding: 22px 26px 8px;
  border: 1px solid var(--cl-line); border-radius: 22px; background: var(--cl-surface); color: var(--cl-ink);
  font-family: var(--cl-sans); box-shadow: var(--cl-shadow-1);
}
html #bsFirstWeek .fw-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
html #bsFirstWeek .fw-title {
  min-width: 0; margin: 0; overflow: hidden; font-family: var(--cl-serif); font-size: 24px; font-weight: 400;
  line-height: 1.2; letter-spacing: -.01em; color: var(--cl-ink); white-space: nowrap; text-overflow: ellipsis;
}
html #bsFirstWeek .fw-hide {
  display: inline-flex; flex: none; align-items: center; gap: 6px; height: 36px; margin: -4px -12px -4px 0; padding: 0 12px;
  border: 0; border-radius: 999px; background: transparent; color: var(--cl-ink-3); font: inherit; font-size: 14px; cursor: pointer;
  transition: background-color .2s var(--cl-out), color .2s var(--cl-out);
}
html #bsFirstWeek .fw-hide i { font-size: 16px; }
@media (hover: hover) { html #bsFirstWeek .fw-hide:hover { background: var(--cl-hover); color: var(--cl-ink); } }

/* the line of progress and its words */
html #bsFirstWeek .fw-bar { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
html #bsFirstWeek .fw-line { position: relative; flex: 1; height: 3px; overflow: hidden; border-radius: 999px; background: var(--cl-line-2); }
html #bsFirstWeek .fw-fill {
  position: absolute; inset: 0; border-radius: inherit; background: var(--cl-lilac);
  transform: scaleX(var(--fw-p, 0)); transform-origin: left center; transition: transform .8s var(--cl-spring);
}
html #bsFirstWeek .fw-count { flex: none; font-size: 14px; color: var(--cl-ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* the steps */
html #bsFirstWeek .fw-steps { margin: 12px 0 0; padding: 0; list-style: none; }
html #bsFirstWeek .fw-step {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; column-gap: 16px;
  padding: 16px 0; border-top: 1px solid var(--cl-line);
}
html #bsFirstWeek .fw-step:first-child { border-top: 0; }
html #bsFirstWeek .fw-tick {
  display: grid; width: 28px; height: 28px; box-sizing: border-box; place-items: center; border: 1.5px solid var(--cl-line-3);
  border-radius: 50%; background: transparent; color: transparent;
  transition: background-color .4s var(--cl-out), border-color .4s var(--cl-out), color .3s var(--cl-out);
}
html #bsFirstWeek .fw-tick svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .5s .12s var(--cl-out);
}
html #bsFirstWeek .fw-step.is-next .fw-tick { border-color: var(--cl-lilac); }
/* the mark on the lilac is the page's lightest value: the surface on the light page, the ink on the dark one */
html #bsFirstWeek .fw-step.is-done .fw-tick, html #bsFirstWeek .fw-tick--end { border-color: var(--cl-lilac); background: var(--cl-lilac); color: var(--cl-surface); }
html:not(.light) #bsFirstWeek .fw-step.is-done .fw-tick, html:not(.light) #bsFirstWeek .fw-tick--end { color: var(--cl-ink); }
html #bsFirstWeek .fw-step.is-done .fw-tick svg, html #bsFirstWeek .fw-tick--end svg { stroke-dashoffset: 0; }
html:not(.light) #bsFirstWeek .fw-step.is-done .fw-tick svg, html:not(.light) #bsFirstWeek .fw-tick--end svg { stroke-width: 2.7; }

html #bsFirstWeek .fw-text { min-width: 0; }
html #bsFirstWeek .fw-name { margin: 0; font-size: 16px; line-height: 1.35; color: var(--cl-ink); text-wrap: pretty; }
html #bsFirstWeek .fw-of { margin-left: 8px; font-size: 14px; color: var(--cl-ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
html #bsFirstWeek .fw-of:empty { display: none; }
html #bsFirstWeek .fw-why { margin: 3px 0 0; font-size: 14px; line-height: 1.45; color: var(--cl-ink-3); text-wrap: pretty; }
html #bsFirstWeek .fw-step.is-done .fw-name { color: var(--cl-ink-3); }
html #bsFirstWeek .fw-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
html #bsFirstWeek .fw-act { display: flex; justify-content: flex-end; }
html #bsFirstWeek .fw-act[hidden], html #bsFirstWeek .fw-act:empty { display: none; }

/* the buttons: outlined, and the next step's one dark pill (the page's own ink, so it is light on the dark page) */
html #bsFirstWeek .fw-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; box-sizing: border-box;
  border: 1px solid var(--cl-line-3); border-radius: 999px; background: transparent; color: var(--cl-ink);
  font: inherit; font-size: 14px; line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--cl-out), border-color .2s var(--cl-out), scale .12s var(--cl-out);
}
html #bsFirstWeek .fw-btn i { font-size: 16px; }
html #bsFirstWeek .fw-btn--go { border-color: var(--cl-ink); background: var(--cl-ink); color: var(--cl-surface); }
@media (hover: hover) {
  html #bsFirstWeek .fw-btn:hover { background: var(--cl-hover); }
  html #bsFirstWeek .fw-btn--go:hover { background: color-mix(in srgb, var(--cl-ink) 86%, var(--cl-surface)); }
}
html #bsFirstWeek .fw-btn:active { scale: .97; }
html #bsFirstWeek :is(.fw-btn, .fw-hide):focus-visible { outline: 2px solid var(--cl-lilac); outline-offset: 2px; }

/* the done state: one large tick and two lines, said once */
html #bsFirstWeek.fw.is-done { padding-bottom: 22px; }
html #bsFirstWeek .fw-end { display: flex; align-items: center; gap: 16px; }
html #bsFirstWeek .fw-tick--end { width: 44px; height: 44px; flex: none; }
html #bsFirstWeek .fw-tick--end svg { width: 22px; height: 22px; stroke-width: 2.2; animation: fw-draw .6s .2s var(--cl-out) both; }
html #bsFirstWeek .fw-end__w { min-width: 0; }
html #bsFirstWeek .fw-end .fw-why { margin-top: 4px; }
@keyframes fw-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* "Show me": the first post's Save, ringed softly once */
html .fc [data-save].fw-spot { border-radius: 999px; animation: fw-spot 2.8s var(--cl-out) both; }
@keyframes fw-spot {
  0% { box-shadow: 0 0 0 0 transparent; }
  16%, 72% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--cl-lilac) 55%, transparent), 0 0 0 9px color-mix(in srgb, var(--cl-lilac) 16%, transparent); }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* a phone: the button goes under the words, at full height for a thumb */
@media (max-width: 640px) {
  html #bsFirstWeek.fw { margin-bottom: 16px; padding: 18px 18px 6px; border-radius: 20px; }
  html #bsFirstWeek .fw-title { font-size: 22px; }
  html #bsFirstWeek .fw-step { grid-template-columns: 28px minmax(0, 1fr); align-items: start; column-gap: 14px; row-gap: 12px; padding: 14px 0; }
  html #bsFirstWeek .fw-tick { margin-top: -3px; }
  html #bsFirstWeek .fw-act { grid-column: 2; justify-content: flex-start; }
  html #bsFirstWeek .fw-btn { height: 44px; padding: 0 18px; }
  html #bsFirstWeek .fw-end { gap: 14px; }
  html #bsFirstWeek .fw-tick--end { margin-top: 0; }
}

/* everything still */
@media (prefers-reduced-motion: reduce) {
  html #bsFirstWeek, html #bsFirstWeek *, html .fc [data-save].fw-spot { transition: none !important; animation: none !important; }
  html .fc [data-save].fw-spot { box-shadow: 0 0 0 3px color-mix(in srgb, var(--cl-lilac) 55%, transparent); }
}
html.a11y-reduce-motion #bsFirstWeek, html.a11y-reduce-motion #bsFirstWeek *, html.a11y-reduce-motion .fc [data-save].fw-spot { transition: none !important; animation: none !important; }
html.a11y-reduce-motion .fc [data-save].fw-spot { box-shadow: 0 0 0 3px color-mix(in srgb, var(--cl-lilac) 55%, transparent); }
