/* "What it helps" concern pages and motion pages.
   Loaded only on /what-it-helps/… and /motion-types/…; colours are the theme's
   own tokens, so the light and dark skins both work without a second set. */

.cond .page-hero { padding: 64px 0 8px; }
.cond .page-hero .lede { max-width: 58ch; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px;
  font-size: 13.5px; color: var(--mut); }
.crumbs a { color: var(--blue-lt); }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }

.cond-flag { margin-top: 20px; max-width: 72ch; font-size: 13.5px; line-height: 1.55; color: var(--mut2); }

/* ── hero band: full-bleed dark gradient on every What it helps page ──
   Fixed colours, not theme tokens: the band stays dark in the light skin too. */
.cond-band { position: relative; isolation: isolate; overflow: hidden; padding: 72px 0 80px; color: #fff;
  background:
    radial-gradient(ellipse 60% 120% at 88% 0%, rgba(75,69,228,.55), transparent 62%),
    radial-gradient(ellipse 50% 100% at 8% 110%, rgba(37,96,240,.38), transparent 60%),
    linear-gradient(135deg, #050b16 0%, #0a1733 52%, #14206b 100%); }
.cond-band::before { content: ""; position: absolute; z-index: -1; right: -180px; top: 50%; width: 1100px; height: 1100px;
  transform: translateY(-50%); pointer-events: none;
  background: repeating-radial-gradient(circle at 50% 50%, transparent 0 54px, rgba(130,175,255,.14) 54px 55px);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 12%, transparent 66%);
          mask-image: radial-gradient(circle at 50% 50%, #000 12%, transparent 66%); }
.cond-band::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(130,175,255,.35), transparent); }
.cond-band h1 { font-family: var(--disp); font-size: clamp(34px, 5vw, 56px); letter-spacing: -.03em; margin: 0 0 14px; color: #fff; }
.cond-band .lede { max-width: 58ch; color: rgba(255,255,255,.8); }
.cond-band .kick { color: #9cc0ff; }
.cond-band .crumbs { color: rgba(255,255,255,.62); }
.cond-band .crumbs a { color: #9cc0ff; }
.cond-band .cond-flag { color: rgba(255,255,255,.58); }

/* ── body: explanation beside the session card ── */
.cond-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.cond-about h2, .cond-session h2, .cond-care h2, .cond-related h2 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.02em; margin-bottom: 18px; }
.cond-about p { font-size: 18px; line-height: 1.7; color: var(--mut); max-width: 62ch; }
.cond-about p + p { margin-top: 16px; }

.cond-session { background: var(--surf); border: 1px solid var(--line); border-radius: 22px; padding: 28px 30px; box-shadow: var(--card-shadow); }
.cond-session dl { display: grid; gap: 18px; }
.cond-session dt { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--blue-lt); margin-bottom: 4px; }
.cond-session dd { font-size: 16.5px; line-height: 1.55; color: var(--txt); margin: 0; }
.cond-more { display: block; margin-top: 6px; font-size: 14.5px; color: var(--blue-lt); }
.cond-more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── "check first" ── */
.cond-care { margin-top: 8px; padding: 26px 30px; border-radius: 18px; background: var(--wash); border: 1px solid var(--line2); }
.cond-care h2 { margin-bottom: 10px; }
.cond-care p { font-size: 16.5px; line-height: 1.65; color: var(--txt); max-width: 90ch; }
.cond-care .cond-care-all { margin-top: 10px; font-size: 14.5px; color: var(--mut); }

/* ── machines ── */
.cond .head { margin-bottom: 34px; }
.cond .head h2 { max-width: 22ch; }
.cond-machines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.cond-machines.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cond-allm { margin-top: 26px; }
.cond-allm a { color: var(--blue-lt); font-weight: 600; }
.cond-allm a:hover { text-decoration: underline; text-underline-offset: 3px; }

.cmach { display: flex; flex-direction: column; background: var(--surf); border: 1px solid var(--line); border-radius: 22px;
  overflow: hidden; box-shadow: var(--card-shadow); transition: transform .25s, border-color .25s; }
.cmach:hover { transform: translateY(-4px); border-color: var(--line2); }
.cm-shot { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: var(--ph-b); overflow: hidden; }
.cm-shot img { width: 100%; height: 100%; object-fit: contain; }
.cm-ph { font-family: var(--disp); font-weight: 600; font-size: 28px; letter-spacing: -.04em; color: var(--mut2); }
.cm-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; flex: 1; }
.cm-fam { font-size: 11.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--blue-lt); }
.cm-body h3 a:hover { color: var(--blue-lt); }
.cm-why { font-size: 16px; line-height: 1.58; color: var(--mut); }
.cm-specs { display: flex; flex-wrap: wrap; gap: 8px; }
.cm-specs span { border: 1px solid var(--line2); border-radius: 100px; padding: 4px 12px; font-size: 12.5px; color: var(--mut); }
.cm-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 16px; }
.cm-price { font-family: var(--disp); font-size: 22px; font-weight: 600; letter-spacing: -.02em; }

/* ── related concerns ── */
.cond-related { margin: 24px 0 8px; }
.cond-related .chips { display: flex; flex-wrap: wrap; gap: 10px; }
.cond-related .chips a { border: 1px solid var(--line2); border-radius: 100px; padding: 9px 18px; font-size: 15px; color: var(--mut);
  background: var(--ghost-bg); transition: border-color .2s, color .2s; }
.cond-related .chips a:hover { border-color: var(--blue-lt); color: var(--blue-lt); }
.cond-related .chips a.all { border-color: transparent; color: var(--blue-lt); font-weight: 600; }

/* ── more concerns in the same group ── */
.cond-also { margin: 56px 0 8px; padding: 44px 0 0; border-top: 1px solid var(--line); }
.cond-also-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.cond-also-head .kick { display: block; margin-bottom: 10px; }
.cond-also-head h2 { margin: 0; font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.02em; }
.cond-also-all { flex: none; color: var(--blue-lt); font-weight: 600; padding-bottom: 6px; }
.cond-also-all:hover { text-decoration: underline; text-underline-offset: 3px; }
.cond-also-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.cond-rel { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px 76px 26px 26px; min-height: 132px;
  border-radius: 20px; background: var(--surf); border: 1px solid var(--line); box-shadow: var(--card-shadow);
  transition: transform .25s, border-color .25s; }
.cond-rel:hover { transform: translateY(-3px); border-color: var(--blue-lt); }
.cond-rel b { font-family: var(--disp); font-size: 19px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.cond-rel span { font-size: 15px; line-height: 1.5; color: var(--mut); }
.cond-rel-go { position: absolute; right: 22px; bottom: 22px; display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 50%; border: 1px solid var(--line2); font-style: normal; font-size: 17px; color: var(--blue-lt);
  transition: background .25s, color .25s, border-color .25s; }
.cond-rel:hover .cond-rel-go { background: linear-gradient(135deg, var(--btn-a), var(--btn-b)); border-color: transparent; color: #fff; }

/* ── the index ── */
.cond-group h2 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.02em; margin-bottom: 22px; }
.cond-group { padding: 40px 0 8px; }
.cond-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.cond-list a { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border-radius: 18px; background: var(--surf);
  border: 1px solid var(--line); box-shadow: var(--card-shadow); transition: transform .2s, border-color .2s; }
.cond-list a:hover { transform: translateY(-3px); border-color: var(--blue-lt); }
.cond-list b { font-family: var(--disp); font-size: 19px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.cond-list span { font-size: 15px; line-height: 1.5; color: var(--mut); }

/* ── motion page ──
   A short guide: the shared dark band with the name and four facts, then a
   pinned column (the clip and a contents list) beside numbered chapters. The
   clip's card stays white in both skins, because the render has a white ground. */
.mo-band h1 { font-family: var(--disp); font-weight: 700; margin: 0 0 0 -.04em; line-height: .9; letter-spacing: -.05em;
  font-size: clamp(34px, calc(var(--mo-k, 5) * 1vw), 72px); }
.mo-intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; align-items: end; margin-top: 36px; }
.mo-band .lede { max-width: 26em; font-size: clamp(20px, 2vw, 26px); line-height: 1.5; font-weight: 600; color: rgba(255,255,255,.86); }
.mo-acts { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }
.mo-band .btn.fill { background: #fff; color: #123a99; box-shadow: none; }
.mo-band .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.mo-spec { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 56px 0 0; }
.mo-spec > div { border-top: 1px solid rgba(255,255,255,.28); padding-top: 16px; }
.mo-spec dt { margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #9cc0ff; }
.mo-spec dd { margin: 0; font-family: var(--disp); font-size: clamp(19px, 1.8vw, 25px); font-weight: 600; letter-spacing: -.02em; line-height: 1.25; color: #fff; }

.mo-grid { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: clamp(48px, 6vw, 96px); align-items: start; padding-top: 72px; padding-bottom: 24px; }
.mo-rail { position: sticky; top: 104px; }
.mo-stage { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; box-shadow: var(--card-shadow); }
.mo-stage-pic { background: #fff; }
.mo-stage-pic img, .mo-stage-pic video { display: block; width: 100%; height: auto; aspect-ratio: 5 / 3; object-fit: contain; background: #fff; }
.mo-stage figcaption { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 18px; border-top: 1px solid #e3eaf4; background: #f6f9fd; color: #5b6b85; font-size: 13px; }
.mo-stage-cap { font-weight: 600; letter-spacing: .02em; }
.mo-stage-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px 0 12px; border: 1px solid #c6d5e8;
  border-radius: 999px; background: #fff; color: #1d3fa8; font: inherit; font-weight: 600; cursor: pointer; }
.mo-stage-btn[hidden] { display: none; }
.mo-stage-btn:hover { border-color: #1d3fa8; }
.mo-stage-btn:focus-visible { outline: 2px solid #1d3fa8; outline-offset: 2px; }
.mo-stage-btn svg { width: 14px; height: 14px; flex: none; }
.mo-stage-btn .i-play { display: none; }
.mo-stage-btn.is-paused .i-play { display: block; }
.mo-stage-btn.is-paused .i-pause { display: none; }

.mo-toc { margin-top: 32px; }
.mo-toc ol { list-style: none; margin: 12px 0 0; padding: 0; }
.mo-toc a { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 6px; align-items: center; padding: 12px 0;
  border-top: 1px solid var(--line); font-weight: 600; font-size: 16px; color: var(--txt); }
.mo-toc li:last-child a { border-bottom: 1px solid var(--line); }
.mo-toc a span { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--blue-lt); }
.mo-toc a:hover { color: var(--blue-lt); }

.mo-main { min-width: 0; }
.mo-ch { margin-top: 56px; padding-top: 56px; border-top: 2px solid var(--txt); scroll-margin-top: 100px; }
.mo-ch:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.mo-chn { display: block; font-family: var(--disp); font-size: clamp(56px, 6vw, 88px); font-weight: 700; line-height: .9; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 2px var(--blue-lt); }
.mo-ch h2 { margin: 16px 0 0; font-family: var(--disp); font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -.035em; }
.mo-prose p { margin-top: 20px; max-width: 36em; font-size: 19px; line-height: 1.72; color: var(--mut); }
.mo-pull { margin-top: 28px; max-width: 28em; padding: 30px 34px; border-radius: 24px; background: var(--bg2); border: 1px solid var(--line);
  font-size: clamp(19px, 1.9vw, 23px); line-height: 1.5; font-weight: 600; letter-spacing: -.01em; color: var(--txt); }

.mo-checks { list-style: none; margin: 26px 0 0; padding: 0; }
.mo-checks li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; align-items: start; padding: 20px 0;
  border-top: 1px solid var(--line); font-size: 19px; line-height: 1.5; font-weight: 600; }
.mo-checks li:last-child { border-bottom: 1px solid var(--line); }
.mo-tick { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff;
  background: linear-gradient(135deg, var(--btn-a), var(--btn-b)); }
.mo-tick svg { width: 20px; height: 20px; }

.mo-uselist { margin: 26px 0 0; }
.mo-uselist > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 28px; padding: 26px 0; border-top: 1px solid var(--line); }
.mo-uselist > div:last-child { border-bottom: 1px solid var(--line); }
.mo-uselist dt { font-family: var(--disp); font-size: 21px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.mo-uselist dd { margin: 0; font-size: 17px; line-height: 1.68; color: var(--mut); }
.mo-ch .cond-flag { margin-top: 24px; }
.mo-sub { margin: 36px 0 0; font-family: var(--disp); font-size: 22px; letter-spacing: -.02em; }
.mo-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.mo-chips a { border: 1px solid var(--line2); border-radius: 100px; padding: 9px 18px; font-size: 15px; color: var(--mut);
  background: var(--ghost-bg); transition: border-color .2s, color .2s; }
.mo-chips a:hover { border-color: var(--blue-lt); color: var(--blue-lt); }
.mo-chips a.all { border-color: transparent; color: var(--blue-lt); font-weight: 600; }

.mo-tbl { margin-top: 26px; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--surf); }
.mo-tr { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 22px; align-items: baseline; padding: 18px 26px; border-top: 1px solid var(--line); }
.mo-tbl.has-stroke .mo-tr { grid-template-columns: 160px 150px minmax(0, 1fr); }
.mo-tr:first-child { border-top: 0; }
.mo-th { padding-top: 13px; padding-bottom: 13px; background: var(--bg2); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-lt); }
.mo-tr.on { background: var(--surf2); }
.mo-tr b { font-family: var(--disp); font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.mo-s { font-weight: 700; color: var(--blue-lt); font-variant-numeric: tabular-nums; }
.mo-tr p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--mut); }

.mo-main .cond-machines.five { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }

/* the see-saw */
.mo-lab { margin-top: 32px; padding: 28px; border-radius: 26px; background: var(--bg2); border: 1px solid var(--line); }
.mo-lab-fig { padding: 10px 10px 2px; border-radius: 20px; background: var(--surf); border: 1px solid var(--line); }
.mo-lab-fig svg { display: block; width: 100%; height: auto; }
.s-ground, .s-pivot { fill: var(--line2); }
.s-centre { stroke: var(--gold); }
.s-label { fill: var(--gold); font-family: var(--txtf); }
.s-deck { fill: var(--txt); }
.s-grip { fill: var(--surf2); }
.s-foot { fill: var(--blue-lt); }
.mo-rock { transform-box: view-box; transform-origin: 320px 196px; animation: mo-rock 3.4s ease-in-out infinite; }
@keyframes mo-rock { 0%, 100% { transform: rotate(-4.5deg); } 50% { transform: rotate(4.5deg); } }
.mo-lab-ctl { margin-top: 24px; }
.mo-lab-ctl[hidden] { display: none; }
.mo-lab-ctl label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 600; }
.mo-lab-ctl input[type=range] { width: 100%; height: 32px; accent-color: var(--blue-lt); cursor: pointer; }
.mo-lab-ends { display: flex; justify-content: space-between; font-size: 13px; color: var(--mut2); }
.mo-lab-presets { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.mo-lab-presets button { min-height: 44px; padding: 0 18px; border-radius: 100px; border: 1px solid var(--line2);
  background: var(--ghost-bg); color: var(--txt); font-weight: 600; font-size: 14.5px; }
.mo-lab-presets button:hover, .mo-lab-presets button.on { border-color: var(--blue-lt); color: var(--blue-lt); }
.mo-lab-read { display: flex; align-items: center; gap: 22px; margin-top: 22px; padding: 18px 22px; border-radius: 18px; background: var(--surf); border: 1px solid var(--line); }
.mo-lab-big { font-family: var(--disp); font-size: 20px; color: var(--blue-lt); white-space: nowrap; }
.mo-lab-big b { font-size: 44px; line-height: 1; font-weight: 700; letter-spacing: -.04em; }
.mo-lab-txt { flex: 1; min-width: 0; }
.mo-lab-txt strong { display: block; font-size: 17px; }
.mo-lab-txt > span { display: block; margin-top: 2px; font-size: 15px; line-height: 1.5; color: var(--mut); }
.mo-lab-meter { display: block; height: 8px; margin-top: 12px; border-radius: 99px; background: var(--line); overflow: hidden; }
.mo-lab-meter u { display: block; height: 100%; border-radius: 99px; text-decoration: none; background: linear-gradient(90deg, var(--btn-a), var(--btn-b)); }
.mo-lab-note { margin: 12px 0 0; font-size: 13px; color: var(--mut2); }

@media (max-width: 1100px) {
  .mo-intro { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .mo-acts { justify-content: flex-start; }
  .mo-spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mo-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .mo-rail { position: static; }
  .mo-stage { max-width: 560px; }
  .cond-machines, .cond-machines.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cond-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .cond-body { grid-template-columns: 1fr; gap: 32px; }
  .mo-uselist > div { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .mo-tr, .mo-tbl.has-stroke .mo-tr { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .mo-th { display: none; }
  .mo-main .cond-machines.five { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .cond-band { padding: 44px 0 48px; }
  .cond-band::before { right: -420px; width: 900px; height: 900px; }
  .cond-also { margin-top: 40px; padding-top: 32px; }
  .cond-also-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .cond-also-all { padding-bottom: 0; }
  .cond-rel { min-height: 0; }
  .cond .page-hero { padding-top: 40px; }
  .cond-machines, .cond-machines.five, .cond-list { grid-template-columns: 1fr; }
  .cond-about p { font-size: 17px; }
  .cond-session { padding: 22px 22px; }
  .mo-grid { padding-top: 48px; }
  .mo-pull { padding: 24px; }
  .mo-lab { padding: 18px; }
  .mo-lab-read { gap: 14px; padding: 16px; }
  .mo-lab-big b { font-size: 36px; }
  .mo-stage-btn-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .mo-stage-btn { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .cmach, .cond-list a, .cond-rel { transition: none; }
  .cmach:hover, .cond-list a:hover, .cond-rel:hover { transform: none; }
  .mo-rock { animation: none; }
}
