/* SneakerPulse Stories: scrollytelling layout. Loaded after /style.css on /stories/* pages. */
main.main { max-width: none !important; padding: 0 !important; overflow: visible !important; overflow-x: clip !important; }
.story {
  --teal: #077a76; --tiff: #81d8d0; --tiff-ink: #0c2422; --warm: #b4532a; --grey: #7d898d;
  --ink: #1c2426; --ink2: #4a565b; --ink3: #5f6b71; --line: #dfe7e7; --wash: #f4f9f9;
  color: var(--ink);
}
.story a { color: var(--teal); }

/* ---------- hero ---------- */
.story-hero { max-width: 1200px; margin: 0 auto; padding: 44px 24px 8px; display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 40px; align-items: center; }
.story-crumbs { font-size: .85rem; color: var(--ink3); margin-bottom: 18px; }
.story-crumbs a { color: var(--ink3); text-decoration: none; }
.story-crumbs a:hover { color: var(--teal); }
.story-kicker { font-weight: 700; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin: 0; }
.story h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 4.6vw, 4.1rem); line-height: 1.04;
  letter-spacing: -.022em; margin: .3em 0 .35em; color: var(--ink); max-width: 18ch; }
.story-dek { font-size: 1.22rem; line-height: 1.55; color: var(--ink2); max-width: 58ch; margin: 0 0 1rem; }
.story-byline { font-size: .9rem; color: var(--ink3); margin: 0; }
.story-byline strong { color: var(--ink2); font-weight: 600; }
.story-photo { margin: 0; text-align: center; }
.story-photo img { width: 100%; max-width: 440px; height: auto; display: block; margin: 0 auto; }
.story-photo figcaption, .photo-credit { font-size: .82rem; color: var(--ink3); margin-top: 4px; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.photo-pair img { width: 100%; height: auto; }

/* big-number lede */
.lede-numbers { max-width: 1200px; margin: 18px auto 0; padding: 0 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lede-num { padding: 22px 24px 22px 0; border-top: 1px solid var(--ink); }
.lede-num + .lede-num { padding-left: 24px; border-left: 1px solid var(--line); }
.lede-num .n { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1; color: var(--teal); letter-spacing: -.02em; }
.lede-num .n.warm { color: var(--warm); }
.lede-num .n.grey { color: var(--ink3); }
.lede-num .l { display: block; margin-top: 10px; font-size: .98rem; line-height: 1.45; color: var(--ink2); max-width: 30ch; }
.scroll-cue { max-width: 1200px; margin: 0 auto; padding: 18px 24px 0; font-size: .85rem; color: var(--ink3); letter-spacing: .08em; text-transform: uppercase; }
.scroll-cue span { display: inline-block; margin-left: 6px; animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ---------- scrolly ---------- */
.scrolly { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); column-gap: 44px;
  max-width: 1360px; margin: 0 auto; padding: 0 24px; }
.scrolly-text { grid-column: 1; grid-row: 1; padding: 22vh 0 30vh; }
.scrolly-graphic { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--hdr, 64px) + 14px);
  height: calc(100vh - var(--hdr, 64px) - 28px); height: calc(100svh - var(--hdr, 64px) - 28px);
  align-self: start; display: flex; flex-direction: column; min-height: 420px; }
.chart-head { padding: 4px 0 6px; }
.chart-title { font-family: var(--serif); font-size: 1.28rem; font-weight: 500; line-height: 1.25; color: var(--ink); margin: 0; min-height: 1.6em; }
.chart-sub { font-size: .9rem; color: var(--ink3); margin: 2px 0 0; min-height: 1.3em; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .85rem; color: var(--ink2); margin-top: 6px; min-height: 1.3em; }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.lg-bar { width: 12px; height: 10px; display: inline-block; border-radius: 2px; }
.lg-line { width: 18px; display: inline-block; }
.chart-box { position: relative; flex: 1 1 auto; min-height: 0; }
.chart-box canvas, .chart-box svg { position: absolute; left: 0; top: 0; }
.chart-box svg { overflow: visible; }
.chart-box.has-hover { cursor: crosshair; }
.chart-note { font-size: .82rem; color: var(--ink3); margin: 6px 0 0; line-height: 1.4; }
.chart-error { padding: 2rem; color: var(--ink2); }

.chart-box .tick text { fill: var(--ink3); font-size: 13px; font-family: 'Source Sans 3', system-ui, sans-serif; }
.chart-box .l-xaxis path, .chart-box .l-yaxis path { stroke: #c9d4d4; }
.chart-box .l-xaxis line, .chart-box .l-yaxis line { stroke: #c9d4d4; }
.chart-box .l-grid line { stroke: #eef3f3; }
.chart-box .l-grid path { display: none; }
.axis-label { font-size: 13px; fill: var(--ink3); font-weight: 600; }
.rule-label { font-size: 13px; font-weight: 600; paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.note-text { font-size: 13.5px; fill: var(--ink); font-weight: 600; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.note-text.big { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.note-text.muted { fill: var(--ink3); font-weight: 600; }
.note-text.teal { fill: var(--teal); }
.note-text.warm { fill: var(--warm); }
.note-leader { stroke: var(--ink2); stroke-width: 1; }
.chart-tip { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 6px 22px rgba(12, 36, 34, .12); border-radius: 8px; padding: 8px 10px; font-size: 13px; line-height: 1.4;
  color: var(--ink); max-width: 260px; }
.chart-tip b { font-family: var(--serif); font-weight: 600; font-size: 15px; }
.chart-tip .t-sub { color: var(--ink3); }

.step { min-height: 78vh; display: flex; align-items: center; padding: 6vh 0; }
.step:first-child { min-height: 60vh; }
.step-card { max-width: 30em; opacity: .28; transition: opacity .35s ease; }
.step.active .step-card { opacity: 1; }
.step h2 { font-family: var(--serif); font-weight: 500; font-size: 1.62rem; line-height: 1.2; margin: 0 0 .55rem; color: var(--ink); letter-spacing: -.01em; }
.step p { font-size: 1.07rem; line-height: 1.68; color: var(--ink2); margin: 0 0 .85rem; }
.step p:last-child { margin-bottom: 0; }
.step strong { color: var(--ink); font-weight: 700; }
.step .step-num { font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); display: block; margin-bottom: .4rem; }
.step .fine { font-size: .86rem; color: var(--ink3); line-height: 1.5; }
.k-teal, .k-warm, .k-grey { font-weight: 700; white-space: nowrap; }
.k-teal { color: var(--teal); } .k-warm { color: var(--warm); } .k-grey { color: var(--ink3); }
.k-teal::before, .k-warm::before, .k-grey::before { content: ""; display: inline-block; width: .62em; height: .62em; border-radius: 50%; margin-right: .3em; vertical-align: .05em; }
.k-teal::before { background: var(--teal); } .k-warm::before { background: var(--warm); } .k-grey::before { background: var(--grey); }
.hl { background: linear-gradient(transparent 58%, rgba(129, 216, 208, .55) 58%); color: var(--ink); font-weight: 700; padding: 0 .1em; }
.step-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin: .3rem 0 .9rem; }
.step-photos figure { margin: 0; text-align: center; }
.step-photos img { width: 100%; height: auto; aspect-ratio: 7 / 5; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.step-photos figcaption { font-size: .82rem; line-height: 1.3; color: var(--ink2); margin-top: 3px; }
.step-photos figcaption b { color: var(--teal); }

/* ---------- after the scrolly ---------- */
.story-after { max-width: 780px; margin: 0 auto; padding: 8px 24px 48px; }
.story-after h2 { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; margin: 2.2rem 0 .7rem; }
.story-after p, .story-after li { color: var(--ink2); line-height: 1.7; font-size: 1.02rem; }
.recap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); margin: 1rem 0 1.5rem; }
.recap div { padding: 14px 14px 14px 0; }
.recap div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.recap .n { display: block; font-family: var(--serif); font-size: 2rem; color: var(--teal); line-height: 1.05; }
.recap .l { display: block; font-size: .9rem; color: var(--ink2); margin-top: 4px; line-height: 1.4; }
.method { font-size: .88rem !important; color: var(--ink3) !important; line-height: 1.6 !important; border-top: 1px solid var(--line); padding-top: 1rem; }
.keep { margin: 2rem 0 0; }
.keep-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.keep-grid a { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; text-decoration: none; background: #fff; transition: border-color .15s, transform .15s; min-height: 44px; }
.keep-grid a:hover { border-color: var(--teal); transform: translateY(-1px); }
.keep-grid .kk { display: block; font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.keep-grid .kt { display: block; font-family: var(--serif); font-size: 1.12rem; color: var(--ink); margin: 3px 0 2px; line-height: 1.25; }
.keep-grid .kd { display: block; font-size: .9rem; color: var(--ink2); line-height: 1.45; }
.keep-grid a.feature { grid-column: 1 / -1; background: var(--wash); border-color: #cfeae6; }

/* ---------- phones and small tablets: chart pinned on top, cards scroll over it ---------- */
@media (max-width: 899px) {
  .story-hero { grid-template-columns: 1fr; gap: 14px; padding: 22px 16px 4px; }
  .story h1 { font-size: clamp(2rem, 8.6vw, 2.7rem); }
  .story-dek { font-size: 1.06rem; }
  .story-photo img { max-width: 300px; }
  .lede-numbers { grid-template-columns: 1fr; padding: 0 16px; }
  .lede-num, .lede-num + .lede-num { padding: 14px 0; border-left: 0; }
  .lede-num + .lede-num { border-top: 1px solid var(--line); }
  .lede-num .n { font-size: 2.6rem; }
  .lede-num .l { max-width: none; }
  .scroll-cue { padding: 12px 16px 0; }
  .scrolly { display: block; padding: 0; }
  .scrolly-graphic { position: sticky; top: var(--hdr, 56px); z-index: 1; height: 56vh; height: 56svh; min-height: 300px;
    background: #fff; padding: 6px 12px 4px; border-bottom: 1px solid var(--line); }
  .chart-title { font-size: 1.02rem; min-height: 1.3em; }
  .chart-sub { font-size: .8rem; min-height: 0; }
  .chart-legend { font-size: .82rem; margin-top: 3px; }
  .chart-note { display: none; }
  .scrolly-text { position: relative; z-index: 2; padding: 4vh 16px 40vh; }
  .step, .step:first-child { min-height: 100vh; align-items: flex-start; padding: 0; }
  .step.active .step-card { opacity: 1; }
  .step-card { opacity: .12; background: rgba(255, 255, 255, .97); border: 1px solid var(--line); border-radius: 12px;
    padding: 14px 16px; box-shadow: 0 8px 28px rgba(12, 36, 34, .10); max-width: none; }
  .step h2 { font-size: 1.3rem; }
  .step p { font-size: 1rem; line-height: 1.6; }
  .note-text { font-size: 13px; }
  .note-text.big { font-size: 17px; }
  .story-after { padding: 8px 16px 40px; }
  .recap { grid-template-columns: 1fr; }
  .recap div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .keep-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .step-card, .keep-grid a { transition: none; }
  .scroll-cue span { animation: none; }
}

/* ---------- FAQ (stories that pass S["faqs"]) ---------- */
.story .faqs { display: grid; gap: 8px; }
.story .faq { border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; background: #fff; }
.story .faq summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; color: var(--ink); }
.story .faq p { margin: 0 0 12px; }

/* ---------- The collab tax: 13 px floor for every label, row labels, taller phone chart ---------- */
.collab-tax .story-kicker, .collab-tax .step .step-num, .collab-tax .keep-grid .kk { font-size: 13px; }
.collab-tax .story-photo figcaption, .collab-tax .step-photos figcaption, .collab-tax .chart-note { font-size: 13px; }
.collab-tax .k-warm, .collab-tax .k-teal { white-space: normal; }
.collab-tax .step-photos figcaption .t-src { color: var(--ink3); font-weight: 400; }
.collab-tax .step-photos { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
.collab-tax .chart-box .tick text, .collab-tax .axis-label, .collab-tax .rule-label { font-size: 13px; }
.collab-tax .chart-box .note-text { font-size: 13px; }
.collab-tax .chart-box .note-text.big { font-size: 20px; }
.collab-tax .chart-box .note-text.rowlab { font-size: 13px; font-weight: 600; fill: var(--ink); }
.collab-tax .chart-box .note-text.rowlab.faded { fill: var(--ink3); font-weight: 400; }
.collab-tax .chart-box .note-text.rowlab.ref { font-weight: 700; }
@media (max-width: 899px) {
  .collab-tax .step-card { opacity: 0; }  /* the chart is busy: hide cards until they are the active step */
  .collab-tax .scrolly-graphic { height: 64vh; height: 64svh; min-height: 380px; }
  .collab-tax .chart-sub, .collab-tax .chart-legend { font-size: 13px; }
  .collab-tax .chart-head { min-height: 136px; }  /* box size is measured once; keep it stable when a step's subtitle wraps */
  .collab-tax .story-photo figcaption { font-size: 13px; }
}
/* ---------- in-chart controls (running-shoe-takeover month slider) ---------- */
.chart-ctrl { display: none; align-items: center; gap: 8px; margin-top: 6px; font-size: .9rem; color: var(--ink2); }
.chart-ctrl.on { display: flex; }
.chart-ctrl button { min-width: 44px; min-height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 22px; color: var(--ink);
  font: inherit; font-weight: 700; cursor: pointer; padding: 0 14px; }
.chart-ctrl button:hover, .chart-ctrl button:focus-visible { border-color: var(--teal); outline: none; box-shadow: 0 0 0 2px rgba(7, 122, 118, .25); }
.chart-ctrl input[type=range] { flex: 1 1 auto; min-width: 0; height: 44px; accent-color: #077a76; }
.chart-ctrl .cc-month { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); min-width: 6.6em; text-align: right; }
@media (max-width: 899px) { .chart-ctrl { margin-top: 2px; } }
/* running-shoe-takeover */
.note-text.note-on-fill { fill: #fff; stroke: none; font-size: 13px; }
.note-text.note-on-light { fill: #0c2422; stroke: none; font-size: 13px; }
.note-text.model-l { font-size: 13px; }
.note-text.strip-n { font-family: var(--serif); font-size: 15px; font-weight: 600; }
@media (max-width: 899px) { .note-text.model-l { font-size: 13px; } .note-text.strip-n { font-size: 13px; } }
@media (max-width: 899px) { .scrolly-graphic.fixed-head .chart-sub { min-height: 2.6em; } .scrolly-graphic.fixed-head .chart-legend { min-height: 2.7em; align-content: flex-start; } }


/* ---------- Payday: chart menus, calendar labels, schedule buttons, 13 px floor ---------- */
.payday .story-kicker, .payday .step .step-num, .payday .keep-grid .kk { font-size: 13px; }
.payday .story-photo figcaption, .payday .photo-credit, .payday .step-photos figcaption, .payday .chart-note { font-size: 13px; }
.payday .k-warm, .payday .k-teal { white-space: normal; }
.payday .photo-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.payday .photo-trio img { width: 100%; height: auto; aspect-ratio: 7 / 5; object-fit: contain; background: #fff; }
.payday .step-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.payday .step-photos figcaption .t-src { color: var(--ink3); font-weight: 400; }
.payday .chart-box .tick text, .payday .axis-label, .payday .rule-label { font-size: 13px; }
.payday .chart-box .note-text { font-size: 13px; }
.payday .chart-box .note-text.rowlab { font-weight: 600; fill: var(--ink); }
.payday .chart-box .note-text.rowlab.faded { fill: var(--ink3); font-weight: 400; }
.payday .chart-box .note-text.calnum { font-weight: 700; fill: var(--ink); }
.payday .chart-box .note-text.calnum.pay { font-size: 15px; }
.payday .chart-box .note-text.calpay { font-weight: 700; fill: var(--ink); }
.payday .pd-ctrl { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; visibility: hidden; }
.payday .pd-ctrl-on .pd-ctrl { visibility: visible; }
.payday .pd-ctrl select { min-height: 44px; font: 600 14px/1.2 'Source Sans 3', system-ui, sans-serif; color: var(--ink); background: #fff;
  border: 1px solid #b9c7c7; border-radius: 10px; padding: 0 28px 0 10px; max-width: 100%; cursor: pointer; }
.payday .pd-ctrl select:focus-visible, .payday .pd-sched button:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.payday .pd-sched { display: flex; flex-wrap: wrap; gap: 6px; margin: .4rem 0 .8rem; }
.payday .pd-sched button { min-height: 44px; padding: 6px 12px; border-radius: 10px; border: 1px solid #b9c7c7; background: #fff; color: var(--ink);
  font: 600 14px/1.25 'Source Sans 3', system-ui, sans-serif; cursor: pointer; }
.payday .pd-sched button[aria-pressed="true"] { background: var(--tiff); border-color: var(--tiff); color: var(--tiff-ink); }
.payday .pd-readout { background: var(--wash); border-left: 4px solid var(--teal); padding: 10px 12px; border-radius: 0 8px 8px 0; color: var(--ink) !important; }
.payday .pd-readout .t-sub { color: var(--ink3); }
@media (max-width: 899px) {
  .payday .step-card { opacity: 0; }  /* the chart is busy: show only the active card */
  .payday .scrolly-graphic { height: 64vh; height: 64svh; min-height: 430px; }
  .payday .chart-head { min-height: 158px; }  /* keep the box size stable when a subtitle wraps or the menus appear */
  .payday .chart-sub, .payday .chart-legend { font-size: 13px; }
  .payday .pd-ctrl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 4px; }
  .payday .pd-ctrl select { font-size: 13px; padding: 0 12px 0 4px; width: 100%; }
  .payday .step-photos { gap: 6px; }
  /* "your payday" card: one swipeable row of schedules + the result, so the calendar above stays in view */
  .payday .step[data-step="yours"] .pd-intro { display: none; }
  .payday .step-card { min-width: 0; width: 100%; box-sizing: border-box; }
  .payday .pd-sched { flex-wrap: nowrap; overflow-x: auto; margin: .2rem -4px .6rem; padding: 0 4px 4px; scrollbar-width: thin; }
  .payday .pd-sched button { flex: 0 0 auto; white-space: nowrap; font-size: 14px; }
  .payday .pd-readout { font-size: .95rem !important; line-height: 1.5 !important; margin: 0; }
}
