/* ============================================================
   InjuryLog — the blog (/blog/). Extends styles.css + library.css
   (same tokens). The blog runs as a weekly issue: a masthead with
   the week, a numbered running order, and a calm reading column.
   ============================================================ */

.seg-num {
  font-family: "Sora", sans-serif; font-weight: 800; color: var(--cyan);
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1;
}
/* styles.css pads every <section> for the homepage; the blog sets its own rhythm. */
.blog-front section, .post section, .blog-section section { padding: 0; }
.blog-front a:focus-visible, .post a:focus-visible, .blog-section a:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 6px;
}

/* ---------- Front page: masthead ---------- */
.blog-front { padding-bottom: 64px; }
.masthead {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding: 52px 0 24px; border-bottom: 1px solid var(--line-strong);
}
.masthead h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 800; line-height: 1; }
.issue-line { display: grid; justify-items: end; gap: 2px; color: var(--muted); font-size: 0.95rem; text-align: right; }
.issue-line strong {
  font-family: "Sora", sans-serif; font-weight: 700; color: var(--cyan);
  font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 2px;
}

/* ---------- This week: running order + lead ---------- */
.this-week {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "order lead"; gap: 56px; padding: 36px 0 12px; align-items: start;
}
.this-week .lead-story { grid-area: lead; }
.this-week .running-order { grid-area: order; }
.running-order h2 { font-size: 1.05rem; line-height: 1.6; font-weight: 700; margin-bottom: 8px; color: var(--text); }
/* The lead panel starts on the running order's first rule, not above it. */
.this-week .lead-story { margin-top: calc(1.05rem * 1.6 + 8px); }

.lead-story {
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 440px;
  background: radial-gradient(120% 130% at 0% 0%, rgba(0, 205, 255, 0.11), transparent 55%), var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 40px 44px;
  transition: border-color .25s ease, transform .25s var(--ease);
}
.lead-story:hover { border-color: rgba(0, 205, 255, 0.42); transform: translateY(-2px); }
.lead-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; line-height: 1.1;
  margin-bottom: 16px; text-wrap: balance;
}
.lead-stand { color: var(--muted); font-size: 1.12rem; line-height: 1.55; max-width: 56ch; margin-bottom: 22px; }
.lead-meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.92rem; }
/* The lead's segment number fills the top of the panel: the running order's
   numerals, at cover scale. */
.lead-num { font-size: clamp(4.5rem, 9vw, 7.5rem); margin-bottom: auto; padding-bottom: 28px; opacity: .9; }

.run-list { list-style: none; padding: 0; margin: 0; }
.run-row {
  display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 14px; align-items: baseline;
  padding: 17px 0; border-top: 1px solid var(--line);
}
.run-list li:last-child .run-row { border-bottom: 1px solid var(--line); }
.run-row .seg-num { font-size: 1.7rem; }
.rr-main { display: grid; gap: 3px; }
.rr-title { font-family: "Sora", sans-serif; font-weight: 600; font-size: 1.08rem; line-height: 1.3; color: var(--text); transition: color .2s; text-wrap: pretty; }
.rr-meta { color: var(--muted); font-size: 0.86rem; }
.rr-time { color: var(--muted); font-size: 0.86rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.run-row:hover .rr-title, .run-row[aria-current="true"] .rr-title { color: var(--cyan); }
.rr-stand { color: var(--muted); font-size: 0.95rem; max-width: 64ch; margin-top: 2px; }

/* ---------- Sections and back issues ---------- */
.sections, .back-issues { margin-top: 64px; }
.sections h2, .back-issues h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 700; margin-bottom: 14px; }
.section-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; }
.section-list a { display: grid; gap: 4px; padding: 18px 0; border-top: 1px solid var(--line); }
.sl-name { font-family: "Sora", sans-serif; font-weight: 700; color: var(--text); transition: color .2s; }
.section-list a:hover .sl-name { color: var(--cyan); }
.sl-blurb { color: var(--muted); font-size: 0.95rem; max-width: 52ch; }
.bi-week { padding: 18px 0; border-top: 1px solid var(--line); }
.bi-week h3 { font-size: 1rem; margin-bottom: 8px; }
.bi-week h3 span { color: var(--muted); font-weight: 400; font-family: "Hanken Grotesk", sans-serif; margin-left: 8px; }
.bi-week ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.bi-week a { color: var(--text); }
.bi-week a:hover { color: var(--cyan); }
.blog-note { margin-top: 56px; color: var(--muted); font-size: 0.92rem; max-width: 70ch; }
.blog-note a, .bs-back a { color: var(--cyan); }

/* ---------- Section pages ---------- */
.blog-section { padding: 8px 0 64px; }
.bs-head { padding: 28px 0 22px; max-width: 64ch; }
.bs-head h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1.08; margin-bottom: 10px; }
.bs-head p { color: var(--muted); font-size: 1.08rem; }
.bs-back { margin-top: 28px; }

/* ---------- Post ---------- */
.post { width: min(720px, 92%); margin: 0 auto; padding: 26px 0 56px; }
.post-head { padding-top: 14px; }
.post-head h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1.08; margin-bottom: 16px; text-wrap: balance; }
.standfirst { font-size: 1.2rem; line-height: 1.55; color: #C4CBD5; margin-bottom: 22px; text-wrap: pretty; }
.post-meta { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.post-meta .seg-num { font-size: 2.3rem; }
.pm-lines { display: grid; gap: 2px; color: var(--muted); font-size: 0.9rem; }
.pm-i { white-space: nowrap; }
/* The separator travels with the item after it, so a line never ends on a dot. */
.pm-i + .pm-i::before { content: "· "; color: var(--muted); }
.pm-lines a { color: var(--text); border-bottom: 1px solid var(--line-strong); }
.pm-lines a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }
/* The short answer is a reading paragraph, so it's set in the reading face,
   inside a plain 1px frame (the guides' side stripe stays on the guides). */
.post .answer-box { margin-top: 28px; border: 1px solid rgba(0, 205, 255, 0.28); padding: 22px 26px; }
.post .answer-box p { font-family: "Hanken Grotesk", sans-serif; font-weight: 600; font-size: 1.12rem; line-height: 1.6; max-width: 68ch; }

.post-body { font-size: 1.06rem; line-height: 1.7; }
.post-body > * + * { margin-top: 1.05em; }
.post-body h2 { font-size: clamp(1.4rem, 3.2vw, 1.85rem); font-weight: 700; line-height: 1.2; margin-top: 2.1em; scroll-margin-top: 90px; text-wrap: balance; }
.post-body h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.3; margin-top: 1.8em; scroll-margin-top: 90px; }
.post-body h2 + *, .post-body h3 + * { margin-top: 0.55em; }
.post-body p, .post-body li { color: var(--text); opacity: .93; max-width: 33em; }
.post .questions .q p { max-width: 33em; }
.post-body a { color: var(--cyan); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(0, 205, 255, 0.45); }
.post-body a:hover { text-decoration-color: var(--cyan); }
.post-body strong { color: #fff; font-weight: 600; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li + li { margin-top: 0.45em; }
.post-body li::marker { color: var(--cyan); }
.post-body blockquote { padding: 2px 0 2px 20px; border-left: 1px solid var(--line-strong); color: var(--muted); font-size: 1.04rem; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.post-body table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 0.94rem; width: 100%; -webkit-overflow-scrolling: touch; }
.post-body th, .post-body td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line-strong); }
.post-body thead th { background: var(--surface-2); color: var(--text); font-weight: 600; white-space: nowrap; }
.post-body td { color: var(--muted); font-variant-numeric: tabular-nums; }
.post-body td:first-child { color: var(--text); min-width: 120px; }
.post-body td:nth-child(2) { min-width: 190px; }
.post .hinge { margin-top: 48px; }

.post-related { margin: 44px 0; }
.post-related h2, .next-up h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
.post-related ul { list-style: none; padding: 0; display: grid; gap: 10px; color: var(--muted); }
.post-related a { color: var(--cyan); font-weight: 600; }
.post-related a:hover { text-decoration: underline; text-underline-offset: 3px; }

.byline-card { display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 36px 0; background: var(--card); }
.bc-mark {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid rgba(0, 205, 255, 0.3); color: var(--cyan);
  font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.2rem;
}
.bc-name { font-family: "Sora", sans-serif; font-weight: 700; margin-bottom: 4px; }
.bc-bio { color: var(--muted); font-size: 0.95rem; }

.next-up { margin-top: 48px; }
.next-up ol { list-style: none; padding: 0; }
.next-up a { display: grid; grid-template-columns: 54px minmax(0, 1fr); column-gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.next-up li:last-child a { border-bottom: 1px solid var(--line); }
.next-up .seg-num { font-size: 1.6rem; grid-row: span 2; }
.nu-title { font-family: "Sora", sans-serif; font-weight: 600; color: var(--text); transition: color .2s; }
.nu-sec { color: var(--muted); font-size: 0.86rem; }
.next-up a:hover .nu-title { color: var(--cyan); }

/* ---------- Injury watch: the file, the return clock, if it were you ---------- */
.next-up a.nu-watch { grid-template-columns: minmax(0, 1fr); }

.post .ifile, .ifile {
  margin-top: 28px; padding: 26px 28px 22px; border-radius: var(--radius);
  background: radial-gradient(110% 120% at 100% 0%, rgba(0, 205, 255, 0.07), transparent 55%), var(--surface);
  border: 1px solid var(--line-strong);
}
.if-top { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 28px; align-items: start; }
.if-figure { position: relative; width: 132px; aspect-ratio: 1 / 2; }
.if-figure img { width: 100%; height: 100%; display: block; }
/* The injury, lit the way the app's body map lights an active injury. */
.if-mark {
  position: absolute; width: 12px; height: 12px; border-radius: 50%; transform: translate(-50%, -50%);
  background: var(--danger); border: 2px solid #FFD9D6;
}
.if-mark::after {
  content: ""; position: absolute; inset: -9px; border-radius: 50%;
  border: 1.5px solid rgba(248, 81, 73, 0.6); animation: if-ping 2.4s cubic-bezier(.2, .7, .2, 1) infinite;
}
@keyframes if-ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.if-name { font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.55rem; line-height: 1.15; letter-spacing: -0.02em; }
.if-team { color: var(--muted); font-size: 0.92rem; margin: 4px 0 12px; }
.ifile dl { margin: 0; }
.ifile dl > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.ifile dt {
  font-family: "Sora", sans-serif; font-weight: 600; font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); padding-top: 3px;
}
.ifile dd { margin: 0; font-size: 0.98rem; line-height: 1.5; color: var(--text); }
.if-status strong { font-weight: 600; color: #fff; }
.if-status span { color: var(--muted); font-size: 0.88rem; white-space: nowrap; }
.if-clip {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 12px; color: var(--cyan);
  font-family: "Sora", sans-serif; font-weight: 600; font-size: 0.92rem;
}
.if-clip:hover { text-decoration: underline; text-underline-offset: 3px; }
.if-clip-by { color: var(--muted); font-family: "Hanken Grotesk", sans-serif; font-weight: 400; }

.rclock { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-strong); }
.rc-title { font-family: "Sora", sans-serif; font-weight: 600; font-size: 1rem; }
.rc-title span { color: var(--muted); font-family: "Hanken Grotesk", sans-serif; font-weight: 400; font-size: 0.86rem; margin-left: 8px; }
.rc-row { margin-top: 14px; }
.rc-label { font-size: 0.94rem; line-height: 1.45; }
.rc-label strong { font-weight: 600; color: #fff; margin-right: 4px; }
.rc-by { color: var(--muted); }
.rc-track { position: relative; height: 10px; margin-top: 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); }
.rc-bar { position: absolute; top: 0; bottom: 0; border-radius: 999px; }
.rc-reported .rc-bar { background: var(--cyan); }
.rc-typical .rc-bar { background: rgba(0, 205, 255, 0.2); box-shadow: inset 0 0 0 1px rgba(0, 205, 255, 0.55); }
.rc-reported .rc-bar.rc-open { background: linear-gradient(90deg, var(--cyan), rgba(0, 205, 255, 0.35) 70%, rgba(0, 205, 255, 0)); }
.rc-typical .rc-bar.rc-open { background: linear-gradient(90deg, rgba(0, 205, 255, 0.22), rgba(0, 205, 255, 0)); box-shadow: none; }
.rc-now { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--text); }
.rc-dates { color: var(--muted); font-size: 0.86rem; margin-top: 6px; font-variant-numeric: tabular-nums; }
.rc-axis { position: relative; height: 36px; margin-top: 12px; }
.rc-axis span { position: absolute; top: 0; transform: translateX(-50%); display: grid; justify-items: center; white-space: nowrap; }
.rc-axis span:first-child { transform: none; justify-items: start; }
.rc-axis span:last-child { transform: translateX(-100%); justify-items: end; }
.rc-axis b { font-family: "Sora", sans-serif; font-weight: 600; font-size: 0.76rem; color: var(--text); font-variant-numeric: tabular-nums; }
.rc-axis i { font-style: normal; font-size: 0.72rem; color: var(--muted); }
.rc-note { color: var(--muted); font-size: 0.84rem; line-height: 1.5; margin-top: 4px; }

.if-updates { margin: 44px 0; }
.if-updates h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
.if-updates ol { list-style: none; padding: 0; }
.if-updates li { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.if-updates li:last-child { border-bottom: 1px solid var(--line); }
.if-updates time { font-family: "Sora", sans-serif; font-weight: 600; font-size: 0.88rem; color: var(--text); font-variant-numeric: tabular-nums; padding-top: 2px; }
.if-updates p { font-size: 0.98rem; line-height: 1.6; color: var(--text); opacity: .92; max-width: 33em; }
.if-reviewed { color: var(--muted); font-size: 0.9rem; margin-top: 20px; }

.post .if-you {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 36px; align-items: center;
  margin-top: 48px; padding: 32px; border-radius: var(--radius);
  background: radial-gradient(120% 130% at 0% 0%, rgba(0, 205, 255, 0.09), transparent 55%), var(--surface);
  border: 1px solid rgba(0, 205, 255, 0.3);
}
.if-you .phone { max-width: 200px; border-radius: 30px; padding: 6px; }
.if-you .phone-screen { border-radius: 25px; }
.if-you .phone-screen picture { display: block; width: 100%; height: 100%; }
.iy-copy h2 { font-size: clamp(1.4rem, 3.2vw, 1.75rem); font-weight: 700; line-height: 1.2; margin-bottom: 8px; }
.iy-lede { color: var(--muted); font-size: 1rem; margin-bottom: 16px; }
.iy-copy ol { list-style: none; padding: 0; margin: 0 0 22px; counter-reset: iy; display: grid; gap: 12px; }
.iy-copy li { counter-increment: iy; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; font-size: 0.98rem; line-height: 1.55; }
.iy-copy li::before {
  content: counter(iy); font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.15rem; line-height: 1.35;
  color: var(--cyan); font-variant-numeric: tabular-nums;
}
.iy-note { color: var(--muted); font-size: 0.84rem; line-height: 1.5; margin-top: 14px; }

/* ---------- Front page: the injury watch board ---------- */
.watch-board { margin-top: 64px; }
.wb-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 14px; }
.wb-head h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 700; }
.wb-head p { color: var(--muted); font-size: 0.95rem; }
.wb-head a { color: var(--cyan); white-space: nowrap; }
.wb-list { list-style: none; padding: 0; }
.wb-list a {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr) minmax(0, 1fr) 56px; gap: 20px;
  align-items: baseline; padding: 15px 0; border-top: 1px solid var(--line);
}
.wb-list li:last-child a { border-bottom: 1px solid var(--line); }
.wb-who { display: grid; gap: 2px; }
.wb-name { font-family: "Sora", sans-serif; font-weight: 600; font-size: 1.04rem; color: var(--text); transition: color .2s; }
.wb-list a:hover .wb-name { color: var(--cyan); }
.wb-team, .wb-status { color: var(--muted); font-size: 0.88rem; }
.wb-injury { color: var(--text); font-size: 0.96rem; opacity: .92; }
.wb-date { color: var(--muted); font-size: 0.86rem; text-align: right; font-variant-numeric: tabular-nums; }

@media (max-width: 720px) {
  .wb-list a { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; }
  .wb-injury, .wb-status { grid-column: 1 / -1; }
  .wb-date { grid-row: 1; grid-column: 2; }
  .post .if-you { grid-template-columns: 1fr; padding: 26px 22px; gap: 24px; }
  .if-you .phone { width: 170px; }
  .if-updates li { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 560px) {
  .post .ifile { padding: 20px 18px 18px; }
  .if-top { grid-template-columns: 84px minmax(0, 1fr); gap: 16px; }
  .if-figure { width: 84px; }
  .if-name { font-size: 1.3rem; }
  .ifile dl > div { grid-template-columns: 1fr; gap: 2px; }
  .rc-axis i { display: none; }
  .rc-axis .rc-minor { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .if-mark::after { animation: none; transform: scale(1.2); opacity: .7; }
}

/* ---------- Audit fixes ---------- */
/* .post section { padding: 0 } (homepage reset) was eating the byline card's inset. */
.post .byline-card { padding: 20px 22px; }
.post-body p, .post-body li, .q p, .rc-note, .iy-note, .if-updates p, .lessons p, .rb-panel p, .rb-panel li { text-wrap: pretty; }
.rc-label, .rc-note, .early-cta, .iy-lede, .rb-lede, .sh-lede { max-width: 68ch; }

/* ---------- Lead picture ---------- */
.post-image { margin: 28px 0 0; }
.post-image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.post-image figcaption { color: var(--muted); font-size: 0.8rem; margin-top: 8px; }
.post-image figcaption a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line-strong); }

/* ---------- Rebuilding it: the app's phase stepper ---------- */
.post .rebuild { margin-top: 48px; }
.rebuild h2 { font-size: clamp(1.4rem, 3.2vw, 1.85rem); font-weight: 700; line-height: 1.2; margin-bottom: 8px; text-wrap: balance; }
.rb-lede { color: var(--muted); margin-bottom: 18px; }
.rb-steps { display: none; }
.rb-js .rb-steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; margin-bottom: 18px; }
.rb-step {
  position: relative; display: grid; justify-items: center; align-content: start; gap: 6px; padding: 4px 4px 8px;
  background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; text-align: center; min-height: 44px;
}
/* the line between dots: solid up to the current phase, dashed after it */
.rb-step::before {
  content: ""; position: absolute; top: 15px; left: calc(-50% + 14px); right: calc(50% + 14px);
  border-top: 2px dashed rgba(255, 255, 255, 0.16);
}
.rb-step:first-child::before { display: none; }
.rb-step.rb-done::before, .rb-step[aria-selected="true"]::before { border-top: 2px solid var(--cyan); }
.rb-dot {
  width: 24px; height: 24px; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, 0.28); background: var(--ink);
  display: grid; place-items: center; transition: border-color .2s, background .2s;
}
.rb-step.rb-done .rb-dot { border: 2px solid var(--cyan); background: var(--cyan); }
.rb-step.rb-done .rb-dot::after {
  content: ""; width: 12px; height: 12px;
  background: center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3 5 8.6l4.5-5.2' fill='none' stroke='%230D1117' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.rb-step[aria-selected="true"] .rb-dot { border: 2px solid var(--cyan); background: rgba(0, 205, 255, 0.14); }
.rb-step[aria-selected="true"] .rb-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.rb-name { font-family: "Sora", sans-serif; font-weight: 600; font-size: 0.86rem; line-height: 1.25; color: var(--text); }
.rb-step[aria-selected="true"] .rb-name { color: var(--cyan); }
.rb-when { font-size: 0.78rem; color: var(--muted); line-height: 1.3; }
.rb-step:hover .rb-name { color: var(--cyan); }
.rb-step:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 10px; }
.rb-panel {
  padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: radial-gradient(120% 140% at 0% 0%, rgba(0, 205, 255, 0.06), transparent 55%), var(--surface);
}
.rb-panel + .rb-panel { margin-top: 12px; }
.rb-js .rb-panel + .rb-panel { margin-top: 0; }
.rb-panel h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
.rb-panel h3 span { font-family: "Hanken Grotesk", sans-serif; font-weight: 400; font-size: 0.92rem; color: var(--muted); margin-left: 6px; }
.rb-goal { color: var(--text); opacity: .92; margin-bottom: 14px; max-width: 33em; }
.rb-sub { font-family: "Sora", sans-serif; font-weight: 600; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.rb-panel ul { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 0; }
.rb-panel li { padding: 10px 0; border-top: 1px solid var(--line); line-height: 1.55; max-width: 36em; }
.rb-panel li strong { color: #fff; font-weight: 600; }
.rb-next { padding-top: 12px; border-top: 1px solid var(--line-strong); color: var(--text); max-width: 36em; }
.rb-next strong { color: var(--cyan); font-weight: 600; }
.rb-note { color: var(--muted); font-size: 0.86rem; line-height: 1.5; margin-top: 12px; }

/* ---------- What the rest of us can take from it ---------- */
.post .lessons { margin-top: 44px; }
.lessons h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
.lessons ul { list-style: none; padding: 0; }
.lessons li { padding: 14px 0; border-top: 1px solid var(--line); }
.lessons li:last-child { border-bottom: 1px solid var(--line); }
.ls-title { font-family: "Sora", sans-serif; font-weight: 600; font-size: 1.04rem; color: var(--text); margin-bottom: 4px; }
.lessons li p:last-child { color: var(--text); opacity: .9; max-width: 33em; }

/* ---------- If it were you: the window calculator (the app's Back est. card) ---------- */
.iy-calc { margin: 4px 0 20px; display: grid; gap: 8px; max-width: 360px; }
.iy-calc label { font-family: "Sora", sans-serif; font-weight: 600; font-size: 0.92rem; }
.iy-input {
  font: inherit; color: var(--text); color-scheme: dark; background: rgba(13, 17, 23, 0.6);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm, 12px); padding: 11px 14px; min-height: 44px;
}
.iy-input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 205, 255, 0.14); }
.iy-window { margin-top: 6px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid rgba(0, 205, 255, 0.3); background: rgba(9, 12, 16, 0.55); }
.iy-wlabel { font-family: "Sora", sans-serif; font-weight: 600; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.iy-range { font-family: "Sora", sans-serif; font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.1rem); line-height: 1.1; letter-spacing: -0.02em; color: var(--cyan); margin: 4px 0 10px; font-variant-numeric: tabular-nums; }
.iy-track { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.iy-fill { display: block; height: 100%; width: 0; background: var(--cyan); border-radius: 999px; transition: width .6s cubic-bezier(.2, .7, .2, 1); }
.iy-day { font-size: 0.92rem; color: var(--text); margin-top: 8px; }
.iy-by { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }

/* ---------- Share ---------- */
.post .share { margin-top: 44px; padding: 22px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.share h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 4px; }
.sh-lede { color: var(--muted); margin-bottom: 14px; }
.sh-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sh-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--card); color: var(--text);
  font-family: "Sora", sans-serif; font-weight: 600; font-size: 0.92rem; cursor: pointer; transition: border-color .2s, color .2s;
}
.sh-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.sh-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.sh-native { border-color: rgba(0, 205, 255, 0.45); }
.sh-status { color: var(--green); font-size: 0.9rem; }

/* ---------- Injury watch: sport chips ---------- */
.wb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.wb-chip {
  min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  color: var(--text); font: inherit; font-size: 0.92rem; cursor: pointer; transition: border-color .2s, color .2s;
}
.wb-chip:hover { border-color: var(--cyan); }
.wb-chip[aria-pressed="true"] { border-color: var(--cyan); color: var(--cyan); background: rgba(0, 205, 255, 0.08); }
.wb-chip:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.bl-lede { color: var(--muted); font-size: 1.08rem; max-width: 64ch; margin-top: 18px; }

@media (max-width: 560px) {
  .rb-name { font-size: 0.78rem; }
  .rb-when { display: none; }
  .rb-panel { padding: 18px 16px; }
  .sh-btn { padding: 10px 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .iy-fill { transition: none; }
}

/* ---------- In-post visuals: one injury start to finish, and an app tour ---------- */
.post-body .injury-life { list-style: none; padding: 0; margin-top: 1.4em; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 18px; row-gap: 22px; counter-reset: il; }
.post-body .injury-life li { counter-increment: il; position: relative; padding-top: 16px; border-top: 2px solid rgba(0, 205, 255, 0.35); max-width: none; opacity: 1; display: grid; gap: 4px; align-content: start; }
.post-body .injury-life li + li { margin-top: 0; }
.post-body .injury-life li::before {
  content: counter(il, decimal-leading-zero); position: absolute; top: -12px; left: 0; padding-right: 8px; background: var(--ink);
  font-family: "Sora", sans-serif; font-weight: 800; font-size: 0.86rem; color: var(--cyan); font-variant-numeric: tabular-nums; line-height: 22px;
}
.post-body .injury-life b { font-family: "Sora", sans-serif; font-weight: 600; font-size: 1rem; color: var(--text); }
.post-body .injury-life span { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.post-body .app-tour {
  display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 18px; margin-top: 1.8em;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-color: rgba(0, 205, 255, 0.4) transparent;
}
.post-body .app-tour figure { margin: 0; scroll-snap-align: start; }
.post-body .app-tour .phone { max-width: 168px; border-radius: 28px; padding: 6px; }
.post-body .app-tour .phone-screen { border-radius: 23px; }
.post-body .app-tour picture { display: block; width: 100%; height: 100%; }
.post-body .app-tour figcaption { margin-top: 10px; color: var(--muted); font-size: 0.86rem; line-height: 1.45; }
.post-body .app-tour figcaption b { display: block; font-family: "Sora", sans-serif; font-weight: 600; font-size: 0.92rem; color: var(--text); margin-bottom: 2px; }
.post-body .app-tour:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 12px; }
@media (max-width: 720px) {
  .post-body .injury-life { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .post-body .injury-life { grid-template-columns: 1fr; row-gap: 0; }
  .post-body .injury-life li { border-top: 0; border-left: 2px solid rgba(0, 205, 255, 0.35); padding: 0 0 18px 22px; }
  .post-body .injury-life li::before { top: -2px; left: -12px; padding: 0 0 4px; line-height: 1.2; }
  .post-body .app-tour { grid-auto-columns: 150px; }
}

/* ---------- Small screens: lead first, then the running order ---------- */
@media (max-width: 900px) {
  .this-week { grid-template-columns: 1fr; grid-template-areas: "lead" "order"; gap: 34px; }
  .lead-story { min-height: 0; padding: 30px 26px; }
  .this-week .lead-story { margin-top: 0; }
  .section-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .masthead { flex-direction: column; align-items: flex-start; padding-top: 36px; }
  .issue-line { justify-items: start; text-align: left; }
  .run-row { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; }
  .run-row .seg-num { font-size: 1.35rem; }
  .post-meta { align-items: flex-start; }
  .post-meta .seg-num { font-size: 1.8rem; }
  .standfirst { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .lead-story, .lead-story:hover { transition: none; transform: none; }
}
.if-mark-unsure { background: transparent; border-color: rgba(248, 81, 73, 0.85); }

/* ---------- App icons in the lists post (linked to each store listing) ---------- */
.post-body .app-chips { display: flex; flex-wrap: wrap; gap: 10px; max-width: none; opacity: 1; }
.post-body a.app-chip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 5px 16px 5px 5px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--card); color: var(--text); text-decoration: none;
  font-family: "Sora", sans-serif; font-weight: 600; font-size: 0.88rem; transition: border-color .2s, color .2s;
}
.post-body a.app-chip:hover { border-color: var(--cyan); color: var(--cyan); }
.post-body .app-chip img { width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; }
.post-body .tbl-icon { width: 22px; height: 22px; border-radius: 6px; vertical-align: -6px; margin-right: 8px; display: inline-block; }

/* ---------- Exercise diagrams (our own SVGs, language-neutral) ---------- */
.post-body figure.diagram { margin: 1.4em 0 1.6em; }
.post-body figure.diagram img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.post-body figure.diagram figcaption { color: var(--muted); font-size: 0.88rem; line-height: 1.5; margin-top: 10px; max-width: 60ch; }

/* ---------- Injury watch faces ---------- */
.wb-who:has(.wb-photo) { grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; align-items: center; }
.wb-photo { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-strong); background: var(--surface); }
.wb-list a { align-items: center; }
