/* public/amd/revamp.css: see src/amdsite/conditions.js and pages.js. Loaded after amd.css on every athleticsmd.com page. */
/* The revamp (owner, 31 Oct 2026): the story each care page tells, the home
   page's conditions, care, why physician-led, evidence and decision bands,
   and the published research charts (src/amdsite/charts.js). Motion only
   moves pictures, bars and lines, or fades a block in and lands it at
   transform: none, so text is never left scaled, blurred or offscreen.
   Everything is visible with no script; .rv-on (revamp.js) arms the
   reveals, and never with reduced motion. */

/* ── Shared ─────────────────────────────────────────────────────────── */
.rv-ico, .rv-tick, .rv-node svg, .rv-wait-ico { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.rv-why h2, .rv-wait h2, .rv-cta h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.06; margin: 0 0 .45em; }
.rv-why h2 em, .rv-wait h2 em { font-style: italic; color: var(--gold); }
.rv-cite { font-size: .8rem; color: var(--muted); margin: 10px 0 0; overflow-wrap: anywhere; }
.rv-cite a, .rv-research .nr-rsrc a { color: var(--forest); font-weight: 600; }
.rv-photo { margin: 0; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); background: var(--navy); aspect-ratio: 4 / 5; }
.rv-photo img, .rv-care-img img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.12); will-change: transform; }
.rv-h { font: 420 clamp(1.6rem, 3.4vw, 2.3rem)/1.1 var(--display); margin: 0 0 .5em; }

/* ── Reveals (armed by revamp.js) ───────────────────────────────────── */
.rv-on [data-rv] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .75, .15, 1); }
.rv-on [data-rv].in { opacity: 1; transform: none; }
.rv-pains li:nth-child(2), .rv-why-list li:nth-child(2), .rv-conds > :nth-child(2), .rv-proof-grid > :nth-child(2) { transition-delay: 90ms; }
.rv-pains li:nth-child(3), .rv-why-list li:nth-child(3), .rv-conds > :nth-child(3), .rv-proof-grid > :nth-child(3) { transition-delay: 180ms; }
.rv-pains li:nth-child(4), .rv-why-list li:nth-child(4), .rv-conds > :nth-child(4), .rv-proof-grid > :nth-child(4) { transition-delay: 270ms; }
.rv-why-list li:nth-child(5), .rv-conds > :nth-child(5) { transition-delay: 360ms; }

/* ── The symptom picker's place (another strand styles the picker) ───── */
.rv-picker-wrap { max-width: 1120px; margin: 30px auto 0; padding: 0 22px; }
.rv-picker-end { margin: 56px 0 0; }

/* ── The problem, in the reader's words ─────────────────────────────── */
.rv-pains { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .rv-pains { grid-template-columns: 1fr 1fr; gap: 14px; } }
.rv-pains li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 1.06rem; line-height: 1.45; }
.rv-tick { flex: none; width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--tint); color: var(--gold); stroke-width: 4.5; }

/* ── The pictorial: a path through care ─────────────────────────────── */
.rv-path { position: relative; margin: 30px 0 0; padding: 0; }
.rv-path-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; position: relative; z-index: 1; }
.rv-path-steps li { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto 1fr; column-gap: 16px; align-items: start; }
.rv-path-steps b { font: 680 1.1rem/1.25 var(--sans); padding-top: 8px; }
.rv-path-steps li > span:last-child { grid-column: 2; color: var(--muted); }
.rv-node { grid-row: 1 / span 2; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(160deg, #ffffff, #eef3fb); border: 2px solid var(--forest); color: var(--forest); box-shadow: 0 10px 24px -14px rgba(11, 42, 143, .7); }
.rv-node svg { width: 34px; height: 34px; }
.rv-rail { position: absolute; left: 31px; top: 32px; bottom: 40px; width: 2px; background: var(--hair); }
.rv-rail i { position: absolute; inset: 0; background: linear-gradient(180deg, var(--forest), var(--gold)); transform-origin: top; }
@media (min-width: 820px) {
  .rv-path-steps { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 26px; }
  .rv-path-steps li { grid-template-columns: 1fr; grid-template-rows: auto; row-gap: 10px; justify-items: center; text-align: center; }
  .rv-node { grid-row: auto; width: 76px; height: 76px; }
  .rv-node svg { width: 40px; height: 40px; }
  .rv-path-steps b { padding-top: 6px; }
  .rv-path-steps li > span:last-child { grid-column: 1; max-width: 26ch; }
  .rv-rail { left: calc(50% / var(--n)); right: calc(50% / var(--n)); top: 37px; bottom: auto; width: auto; height: 2px; }
  .rv-rail i { transform-origin: left; background: linear-gradient(90deg, var(--forest), var(--gold)); }
}
.rv-on .rv-rail i { transform: scaleY(0); transition: transform 1.6s cubic-bezier(.3, .6, .2, 1) .15s; }
@media (min-width: 820px) { .rv-on .rv-rail i { transform: scaleX(0); } }
.rv-on .rv-path.in .rv-rail i { transform: none; }
.rv-on .rv-node { opacity: 0; transform: scale(.6); transition: opacity .5s ease, transform .6s cubic-bezier(.2, 1.4, .4, 1); transition-delay: calc(var(--i) * 240ms + 250ms); }
.rv-on .rv-path-steps li > b, .rv-on .rv-path-steps li > span:last-child { opacity: 0; transition: opacity .7s ease; transition-delay: calc(var(--i) * 240ms + 380ms); }
.rv-on .rv-path.in .rv-node { opacity: 1; transform: none; }
.rv-on .rv-path.in .rv-path-steps li > b, .rv-on .rv-path.in .rv-path-steps li > span:last-child { opacity: 1; }

/* ── Published research (the .nr-research block, drawn by site.js) ──── */
.rv-research { margin-top: 26px; background: var(--card); }
.rv-pub { margin: 0 0 6px; font: 700 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.rv-about { margin: 14px 0 0; color: var(--ink); font-size: .95rem; max-width: 70ch; }
.rv-research .nr-rsrc { line-height: 1.5; overflow-wrap: anywhere; }
.rv-research .nr-rtabs button[aria-selected=true] { background: var(--forest); color: #fff; }
.rv-bars { display: grid; gap: 14px; margin: 18px 0 4px; }
.rv-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l v" "t t"; gap: 6px 12px; align-items: center; }
.rv-bar-l { grid-area: l; font-weight: 600; font-size: .95rem; }
.rv-bar > b { grid-area: v; font: 700 1.05rem var(--sans); font-variant-numeric: tabular-nums; color: var(--ink); }
.rv-bar-t { grid-area: t; display: block; height: 16px; border-radius: 99px; background: rgba(15, 26, 51, .07); overflow: hidden; }
.rv-bar-t i { display: block; height: 100%; border-radius: 99px; background: var(--forest); transform-origin: left; }
.rv-bar.off .rv-bar-t i { background: var(--terra); }
.rv-bar.muted .rv-bar-t i { background: #9db3c8; }
.rv-bar.on > b { color: var(--forest); } .rv-bar.off > b { color: #b8361f; }
@media (min-width: 760px) { .rv-bar { grid-template-columns: minmax(200px, 34%) 1fr minmax(84px, auto); grid-template-areas: "l t v"; } .rv-bar > b { text-align: right; } }
.rv-on .rv-bar-t i { transform: scaleX(0); transition: transform 1.4s cubic-bezier(.2, .75, .15, 1); }
.rv-on .nr-rchart.drawn .rv-bar-t i { transform: none; }
.rv-line { max-width: 760px; margin: 14px 0 0; }
.rv-line .nr-ax-l { font-size: 14px; }
.rv-line .nr-note { font-size: 16px; font-weight: 700; }
.rv-line .nr-note.s { fill: #0b6b3e; }
.rv-line .nr-note.t { fill: #b8361f; }
.rv-line .nr-ln.keep { stroke: var(--gold); }
.rv-dot { stroke: #fff; stroke-width: 2; opacity: 0; transition: opacity .6s ease 1.8s; }
.rv-dot.on { fill: var(--forest); } .rv-dot.off { fill: var(--terra); } .rv-dot.keep { fill: var(--gold); }
.nr-rchart.drawn .rv-dot { opacity: 1; }
@media (max-width: 600px) { .rv-line .nr-ax-l { font-size: 22px; } .rv-line .nr-note { font-size: 23px; } }

/* ── Said plainly (photo beside words) ──────────────────────────────── */
.rv-split { display: grid; gap: 24px; align-items: center; grid-template-columns: 1fr; }
.rv-split .rv-photo { aspect-ratio: 16 / 10; }
@media (min-width: 860px) { .rv-split { grid-template-columns: 5fr 6fr; gap: 48px; } .rv-split .rv-photo { aspect-ratio: 4 / 3; } }

/* ── What waiting costs ─────────────────────────────────────────────── */
.rv-wait-in { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 30px 26px; border-radius: 28px; background: linear-gradient(180deg, #fff, #fbf3f1); border: 1px solid rgba(224, 83, 61, .25); box-shadow: var(--shadow); }
.rv-wait .nr-kicker { color: #b8361f; }
.rv-wait-ico { width: 52px; height: 52px; color: #b8361f; }
.rv-wait-in p { max-width: 68ch; font-size: 1.06rem; }
.rv-wait-in .rv-cite { font-size: .8rem; }
@media (min-width: 760px) { .rv-wait-in { grid-template-columns: 60px 1fr; padding: 40px 44px; } }

/* ── The decision ───────────────────────────────────────────────────── */
.rv-cta { position: relative; overflow: hidden; isolation: isolate; border-radius: 30px; background: var(--navy); color: #fff; padding: 52px 24px; box-shadow: 0 30px 60px -34px rgba(10, 27, 77, .9); }
.rv-cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.rv-cta::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(7, 18, 52, .94) 0%, rgba(7, 18, 52, .88) 55%, rgba(7, 18, 52, .74) 100%); }
.rv-cta-in { max-width: 720px; }
.rv-cta .nr-kicker { color: var(--on-navy); }
.rv-cta h2 { color: #fff; }
.rv-cta h2 em { font-style: italic; color: var(--on-navy); }
.rv-cta-in > p { color: rgba(255, 255, 255, .92); font-size: 1.06rem; margin: 0 0 12px; }
.rv-cta-go { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px !important; }
.rv-cta .nr-btn.gold { background: linear-gradient(135deg, #0d8447, #087a41 55%, #066234); color: #fff; }
.rv-cta .nr-btn.glass { background: rgba(7, 18, 52, .55); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .78); }
.rv-cta-fine { font-size: .86rem; color: rgba(255, 255, 255, .86) !important; margin-top: 14px !important; }
@media (min-width: 900px) { .rv-cta { padding: 72px 64px; } }

/* ── Home: conditions as photographs ────────────────────────────────── */
.rv-conds { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; }
@media (min-width: 1000px) { .rv-conds { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; } }
.rv-cond { position: relative; overflow: hidden; isolation: isolate; border-radius: 22px; aspect-ratio: 3 / 4; display: flex; align-items: flex-end; color: #fff; text-decoration: none; background: var(--navy); box-shadow: var(--shadow); }
.rv-cond:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
@media (min-width: 1000px) { .rv-cond:last-child:nth-child(odd) { grid-column: auto; aspect-ratio: 3 / 4; } }
.rv-cond > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s cubic-bezier(.2, .75, .15, 1); }
.rv-cond:hover > img, .rv-cond:focus-visible > img { transform: scale(1.06); }
.rv-cond::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 18, 52, .05) 20%, rgba(7, 18, 52, .7) 52%, rgba(7, 18, 52, .94) 100%); }
.rv-cond > span { display: grid; gap: 4px; padding: 16px; }
.rv-cond b { font: 420 1.25rem/1.15 var(--display); }
.rv-cond small { font-size: .84rem; line-height: 1.35; color: rgba(255, 255, 255, .92); }

/* ── Home: care, with photographs ───────────────────────────────────── */
.rv-cares { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin-top: 24px; }
.rv-care { display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.rv-care-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy); }
.rv-care-txt { display: grid; gap: 6px; padding: 18px 20px 22px; }
.rv-care-txt small { font: 700 .68rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.rv-care-txt b { font: 420 1.45rem/1.15 var(--display); }
.rv-care-txt > span { color: var(--muted); }
.rv-care-txt em { font-style: normal; font-weight: 650; color: var(--forest); font-size: .92rem; }
.rv-care-txt u { text-decoration: none; font-weight: 650; color: var(--forest); margin-top: 4px; }
.rv-care:hover u, .rv-care:focus-visible u { text-decoration: underline; }

/* ── Home: why physician-led ────────────────────────────────────────── */
.rv-why { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; }
.rv-why .rv-photo { aspect-ratio: 16 / 11; }
@media (min-width: 900px) { .rv-why { grid-template-columns: 5fr 6fr; gap: 56px; } .rv-why .rv-photo { aspect-ratio: 4 / 5; } }
.rv-why-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 16px; }
.rv-why-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.rv-why-list .rv-ico { width: 44px; height: 44px; padding: 9px; border-radius: 14px; background: var(--sky); color: var(--forest); stroke-width: 3; }
.rv-why-list b { display: block; font-size: 1.05rem; }
.rv-why-list span { color: var(--muted); }

/* ── Home: the evidence, one finding per card ───────────────────────── */
.rv-proof-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin-top: 24px; }
.rv-fact { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.rv-fact small { font: 700 .68rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.rv-fact > b { font: 400 clamp(2.4rem, 5vw, 3.2rem)/1 var(--display); color: var(--forest); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rv-fact p { margin: 0; }
.rv-fact .nr-link { margin-top: auto; padding-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  .rv-photo img, .rv-care-img img { transform: none; }
  .rv-cond > img { transition: none; }
}
