/* ==========================================================
   Tennis Courses (/courses) and The Rematch episodes (/courses/rematch)
   Builds on css/style.css tokens. Mobile first.
   ========================================================== */
.rm {
  padding: calc(72px + 1.25rem) 16px 3rem;
  min-height: 80vh;
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(39, 67, 160, .45), transparent 60%),
    linear-gradient(180deg, var(--navy), var(--navy-2));
  scroll-margin-top: 72px;
}
.rm__inner { max-width: 820px; margin: 0 auto; }
.rm h2 { font-size: clamp(1.6rem, 6vw, 2.5rem); margin: .1rem 0 1.1rem; }
.rm h2:focus { outline: none; }
.rm h3 { font-size: 1.15rem; letter-spacing: .04em; margin-bottom: .4rem; }
.rm .btn { cursor: pointer; border: 0; }
.rm button:focus-visible, .rm a:focus-visible, .rm input:focus-visible {
  outline: 3px solid var(--ball); outline-offset: 3px;
}

.rm-crumb { font-size: .9rem; margin-bottom: 1rem; opacity: .8; }
.rm-crumb a:hover { color: var(--ball); }
.rm-muted { opacity: .75; }
.rm-small { font-size: .88rem; }
.rm-lede { font-family: var(--font-serif); font-size: clamp(1.1rem, 3.6vw, 1.3rem); margin-bottom: 1rem; color: #e8ecff; }
.rm-question { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; font-size: 1.1rem; color: var(--orange-hi); margin: 1.2rem 0 .8rem; }

.rm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: 1.4rem; }
.rm-actions .btn { min-height: 48px; }
.rm-actions .btn--sm { min-height: 42px; }
@media (max-width: 480px) {
  .rm-actions { flex-direction: column; align-items: stretch; }
  .rm-actions .btn { width: 100%; text-align: center; }
}

.rm-warning {
  background: #5c1f14; border: 1px solid #e7941f; color: #ffe7c7;
  padding: .75rem 1rem; border-radius: 10px; margin-bottom: 1rem;
}

/* progress */
.rm-steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-bottom: 1.4rem; counter-reset: rs; }
.rm-steps li { counter-increment: rs; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; font-family: var(--font-display); opacity: .55; }
.rm-steps li::before { content: ""; display: block; height: 5px; border-radius: 3px; background: rgba(207, 232, 255, .22); margin-bottom: .35rem; }
.rm-steps li.is-done { opacity: .85; }
.rm-steps li.is-done::before { background: var(--royal); }
.rm-steps li.is-current { opacity: 1; color: var(--ball); }
.rm-steps li.is-current::before { background: var(--ball); }
@media (max-width: 420px) { .rm-steps li span { display: none; } .rm-steps li.is-current span { display: inline; white-space: nowrap; } }

/* intro */
.rm-intro { display: grid; gap: 1.4rem; align-items: start; }
.rm-intro__img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; border: 4px solid var(--ball); background: #0b1d3a; }
@media (min-width: 700px) { .rm-intro { grid-template-columns: 200px 1fr; } .rm-intro__img { width: 200px; height: 200px; } }

/* speech */
.rm-say { display: grid; grid-template-columns: 64px 1fr; gap: .8rem; align-items: start; margin: .4rem 0 1rem; }
.rm-say img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; border: 3px solid var(--orange); background: #0b1d3a; }
.rm-say blockquote { background: var(--panel); color: var(--panel-ink); border-radius: 4px 16px 16px 16px; padding: .8rem 1rem; font-size: 1.05rem; }
.rm-say figcaption { font-family: var(--font-display); text-transform: uppercase; font-size: .75rem; letter-spacing: .1em; color: #4a5680; margin-top: .3rem; }
.rm-say--coach img { border-color: var(--ball); }
.rm-say--coach blockquote { background: #eef5c8; }

/* replay frames */
.rm-frames { display: grid; gap: .5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 620px) { .rm-frames { gap: .7rem; } }
@media (max-width: 619px) {
  .rm-frame .rm-art__tag { display: none; }
  .rm-frame__label { flex-direction: column; align-items: flex-start; gap: .3rem; padding: .5rem; font-size: .78rem; line-height: 1.15; }
  .rm-frame__seen { position: absolute; top: .3rem; right: .4rem; }
  .rm-frame { position: relative; }
}
.rm-frame {
  display: flex; flex-direction: column; text-align: left; cursor: pointer;
  background: rgba(5, 8, 24, .45); color: var(--white); font: inherit;
  border: 2px solid rgba(207, 232, 255, .25); border-radius: 12px; padding: 0; overflow: hidden;
  transition: border-color .15s, transform .15s;
}
.rm-frame:hover { border-color: var(--line); }
.rm-frame[aria-pressed="true"] { border-color: var(--ball); box-shadow: 0 0 0 3px rgba(202, 219, 42, .25); }
.rm-frame__label { display: flex; align-items: center; gap: .5rem; padding: .6rem .8rem; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; font-size: .92rem; }
.rm-frame__num { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--orange); color: #1a1200; font-size: .85rem; flex: none; }
.rm-frame__seen { margin-left: auto; color: var(--ball); }
.rm-observe { margin-top: 1rem; padding: .9rem 1rem; border-radius: 10px; background: rgba(5, 8, 24, .4); border-left: 4px solid var(--ball); min-height: 3.2rem; }
.rm-observe__label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; color: var(--ball); margin-bottom: .2rem; }

/* storyboard art */
.rm-art { display: block; width: 100%; height: auto; }
.rm-art__sky { fill: #16305e; }
.rm-art__court { fill: #2554a6; }
.rm-art__line, .rm-art__net { stroke: #cfe8ff; stroke-width: 2; fill: none; }
.rm-art__baseline { fill: #f5f7ff; }
.rm-art__skin { fill: #f2c9a0; }
.rm-art__hair { stroke: #5a3420; stroke-width: 6; fill: none; stroke-linecap: round; }
.rm-art__shirt { stroke: #e7941f; stroke-width: 14; stroke-linecap: round; }
.rm-art__legs { stroke: #0d1533; stroke-width: 7; stroke-linecap: round; fill: none; }
.rm-art__arm { stroke: #f2c9a0; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.rm-art__grip { stroke: #222; stroke-width: 4; stroke-linecap: round; }
.rm-art__racket { fill: rgba(245, 247, 255, .15); stroke: #f5f7ff; stroke-width: 3; }
.rm-art__ball { fill: #cadb2a; stroke: #93a416; stroke-width: 1.5; }
.rm-art__path { stroke: #cadb2a; stroke-width: 2; stroke-dasharray: 5 6; fill: none; opacity: .8; }
.rm-art__path--future { opacity: .35; }
.rm-art__bounce { stroke: #f5f7ff; stroke-width: 2; fill: none; }
.rm-art__alert { fill: none; stroke: #ff6b5a; stroke-width: 3; stroke-dasharray: 4 4; }
.rm-art__space { stroke: #cadb2a; stroke-width: 3; fill: none; }
.rm-art__space-label { fill: #cadb2a; font: 700 12px var(--font-body); text-anchor: middle; }
.rm-art__tag { fill: #f5f7ff; font: 600 15px var(--font-display); text-transform: uppercase; letter-spacing: .06em; text-anchor: middle; }
.rm-art__tag--good { fill: #cadb2a; }

/* coaching */
.rm-choices { display: grid; gap: .7rem; margin-bottom: 1.2rem; }
@media (min-width: 620px) { .rm-choices { grid-template-columns: 1fr 1fr; } }
.rm-choice {
  font: 600 1.05rem var(--font-display); text-transform: uppercase; letter-spacing: .04em; text-align: left;
  padding: 1rem 1.1rem; min-height: 64px; border-radius: 12px; cursor: pointer;
  background: rgba(5, 8, 24, .45); color: var(--white); border: 2px solid rgba(207, 232, 255, .3);
}
.rm-choice:hover { border-color: var(--line); }
.rm-choice[aria-pressed="true"] { border-color: var(--orange); background: rgba(231, 148, 31, .16); }
.rm-still { margin: .4rem 0 0; max-width: 420px; border-radius: 12px; overflow: hidden; border: 2px solid var(--ball); }
.rm-still figcaption { padding: .55rem .8rem; background: rgba(5, 8, 24, .5); font-size: .92rem; }

/* court card */
.rm-card { background: var(--panel); color: var(--panel-ink); border-radius: 14px; padding: 1.2rem 1rem 1rem; }
.rm-card .kicker { color: #b5661a; }
.rm-card h2 { color: #14265c; }
.rm-card__needs { margin-bottom: 1rem; }
.rm-card__grid { display: grid; gap: 1.2rem; }
@media (min-width: 700px) { .rm-card__grid { grid-template-columns: 240px 1fr; align-items: start; } }
/* Cards for drills that need no court diagram (diagram: 'none'): the steps use the full width. */
.rm-card__grid.rm-card__grid--plain { grid-template-columns: 1fr; }
.rm-card__diagram { max-width: 260px; margin: 0 auto; }
@media (max-width: 699px) { .rm-card__diagram { max-width: 190px; } }
.cr-print-only { display: none; }
.rm-card__steps { padding-left: 1.3rem; display: grid; gap: .7rem; }
.rm-card__steps li::marker { font-family: var(--font-display); color: #b5661a; font-weight: 700; }
.rm-card__blanks { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px dashed #9aa3c4; }
.rm-card__blank-row { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: baseline; margin-top: .7rem; }
.rm-card__blank-row > div { display: flex; gap: .4rem; align-items: baseline; }
.rm-card__blank-head { font-family: var(--font-display); text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; min-width: 8.5rem; }
.rm-blank { display: inline-block; width: 2.6rem; border-bottom: 2px solid #1b2440; height: 1.2rem; }
.rm-card__site { margin-top: 1rem; font-size: .85rem; text-align: center; color: #4a5680; letter-spacing: .04em; }

.rm-court { display: block; width: 100%; height: auto; }
.rm-court__surface { fill: #2554a6; }
.rm-court__lines { fill: none; stroke: #fff; stroke-width: 5; }
.rm-court__net { stroke: #0d1533; stroke-width: 9; }
.rm-court__target { fill: #e7941f; opacity: .85; }
.rm-court__zone { fill: rgba(202, 219, 42, .3); stroke: #cadb2a; stroke-width: 4; stroke-dasharray: 10 7; }
.rm-court__zone--deep { fill: rgba(255, 255, 255, .2); stroke: #fff; }
.rm-court__feed { fill: none; stroke: #cadb2a; stroke-width: 3; stroke-dasharray: 8 8; }
.rm-court__shot, .rm-court__shot-head { fill: none; stroke: #0d1533; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.rm-court__person { fill: #e7941f; stroke: #0d1533; stroke-width: 4; }
.rm-court__person--feeder { fill: #cadb2a; }
.rm-court__label { font: 700 26px var(--font-display); fill: #0d1533; text-anchor: middle; letter-spacing: 1px; }
.rm-court__label--target { fill: #0d1533; }
.rm-court__small { font: 700 19px var(--font-body); fill: #fff; text-anchor: middle; }
.rm-court__small.rm-court__label--target { fill: #0d1533; }

/* scores */
.rm-form { display: grid; gap: .4rem; }
.rm-field { display: grid; gap: .35rem; max-width: 320px; }
.rm-field label { font-weight: 700; }
.rm-field input {
  font: 700 1.6rem var(--font-display); width: 6rem; min-height: 56px; padding: .4rem .8rem; text-align: center;
  border-radius: 10px; border: 2px solid rgba(207, 232, 255, .4); background: #f5f7ff; color: var(--panel-ink);
}
.rm-field input[aria-invalid="true"] { border-color: #ff6b5a; background: #fff0ee; }
.rm-error { color: #ffb4a8; font-weight: 700; min-height: 1.4em; font-size: .95rem; }
.rm-ref { padding: .8rem 1rem; border-radius: 10px; background: rgba(5, 8, 24, .4); margin-bottom: 1rem; }
.rm-ref__label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; opacity: .8; margin-bottom: .4rem; }

.rm-scores { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-bottom: 1.2rem; }
.rm-scores > div { background: rgba(5, 8, 24, .45); border-radius: 12px; padding: .8rem 1rem; border: 1px solid rgba(207, 232, 255, .18); }
.rm-scores dt { font-size: .85rem; opacity: .8; }
.rm-scores dd { font: 700 2.2rem/1.1 var(--font-display); color: var(--ball); }
.rm-scores dd span { font-size: 1rem; color: var(--white); opacity: .6; }
.rm-scores--small { margin: 0; }
.rm-scores--small > div { padding: .5rem .8rem; }
.rm-scores--small dd { font-size: 1.5rem; }

.rm-assign { background: var(--panel); color: var(--panel-ink); border-radius: 14px; padding: 1.1rem 1.1rem 1rem; border-top: 6px solid var(--orange); }
.rm-assign__kicker { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: #b5661a; }
.rm-assign h3 { font-size: clamp(1.4rem, 5vw, 1.9rem); color: #14265c; margin: .2rem 0 .5rem; }
.rm-note { margin-top: .8rem; padding: .7rem .9rem; border-radius: 8px; background: #fff4dc; border-left: 4px solid var(--orange); }
.rm-assign__extra { margin-top: .8rem; }
.rm-assign__extra a { color: #2743a0; text-decoration: underline; font-weight: 700; }
.rm-retest { margin-top: 1.2rem; padding: .9rem 1rem; border-radius: 10px; background: rgba(5, 8, 24, .4); }

.rm-compare { width: 100%; border-collapse: collapse; margin-bottom: 1.2rem; background: rgba(5, 8, 24, .45); border-radius: 12px; overflow: hidden; }
.rm-compare th, .rm-compare td { padding: .7rem .6rem; text-align: center; border-bottom: 1px solid rgba(207, 232, 255, .15); }
.rm-compare thead th { font: 500 .78rem var(--font-display); text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.rm-compare tbody th { text-align: left; }
.rm-compare td { font: 700 1.4rem var(--font-display); }
.rm-delta.is-up { color: var(--ball); }
.rm-delta.is-down { color: #ffb4a8; }

/* start over */
.rm-toolbar { margin-top: 2rem; text-align: right; }
.rm-link { background: none; border: 0; color: var(--line); text-decoration: underline; font: inherit; font-size: .9rem; cursor: pointer; padding: .5rem; opacity: .8; }
.rm-link--strong { color: var(--ball); font-weight: 700; opacity: 1; font-size: 1rem; }
.rm-card__jump { margin: -.4rem 0 .6rem; }
.rm-confirm { margin-top: 1rem; padding: 1rem; border-radius: 12px; background: #2a1420; border: 2px solid var(--orange); }

.rm-mount { display: block; }

/* ---------- Lab page tile ---------- */
.rm-tile-wrap { padding: 0 16px clamp(2.5rem, 6vw, 4rem); background: linear-gradient(180deg, var(--navy-2), var(--navy)); }
.rm-tile {
  max-width: 880px; margin: 0 auto; display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: center;
  padding: 1.1rem; border-radius: 16px; border: 2px solid var(--ball);
  background: radial-gradient(500px 200px at 0% 0%, rgba(202, 219, 42, .18), transparent 70%), rgba(5, 8, 24, .5);
  transition: transform .15s, box-shadow .15s;
}
.rm-tile:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(202, 219, 42, .2); }
.rm-tile:focus-visible { outline: 3px solid var(--ball); outline-offset: 4px; }
.rm-tile img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; border: 3px solid var(--orange); }
.rm-tile > svg { width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--orange); }
.rm-tile + .rm-tile { margin-top: 1rem; }
.rm-tile h3 { font-size: clamp(1.15rem, 3.6vw, 1.5rem); margin-bottom: .35rem; }
.rm-tile p { opacity: .9; margin-bottom: .7rem; }
.rm-tile .kicker { margin-bottom: .3rem; }
@media (min-width: 700px) { .rm-tile { grid-template-columns: 150px 1fr; padding: 1.4rem 1.6rem; } .rm-tile img, .rm-tile > svg { width: 150px; height: 150px; } }

/* ---------- Billson Method Courses: menu, course and lesson pages ---------- */
.cr-title { font-size: clamp(2rem, 7vw, 3.2rem); margin: .2rem 0 1rem; }
.cr-title em { font-style: italic; font-weight: 400; color: var(--orange-hi); }
.cr-title--lesson { font-size: clamp(1.7rem, 6vw, 2.6rem); }
.rm .cr-h2 { font-size: clamp(1.4rem, 5vw, 2rem); margin: 2.4rem 0 1rem; }
.rm .cr-h3 { font-size: 1.3rem; margin: 2rem 0 .6rem; }
.cr-sub { margin: -.5rem 0 1rem; }
.cr-chip {
  display: inline-block; align-self: flex-start; font: 600 .72rem var(--font-display); text-transform: uppercase; letter-spacing: .1em;
  padding: .3rem .65rem; border-radius: 999px; background: rgba(207, 232, 255, .14); color: var(--line);
}
.cr-chip--go { background: var(--orange); color: #1a1200; }
.cr-chip--optional { background: rgba(202, 219, 42, .2); color: var(--ball); }
.cr-card__meta { display: block; font-size: .82rem; opacity: .7; }

.cr-start { margin-top: 1.6rem; padding: 1.1rem 1.2rem; border-radius: 16px; border: 2px dashed rgba(202, 219, 42, .55); background: rgba(5, 8, 24, .35); }
.cr-start__head { display: flex; gap: .5rem; margin-bottom: .6rem; }
.rm .cr-start__title { font-size: clamp(1.2rem, 4.5vw, 1.6rem); margin-bottom: .4rem; }
.cr-start p { margin-bottom: .3rem; opacity: .9; }
.cr-start__also { margin-top: .6rem; }
.cr-start__also a { color: var(--ball); text-decoration: underline; }

.cr-grid { list-style: none; display: grid; gap: .8rem; }
@media (min-width: 700px) { .cr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cr-grid > li { display: flex; scroll-margin-top: 90px; }
.cr-card {
  flex: 1; display: grid; grid-template-columns: 52px 1fr; gap: .9rem; align-items: start;
  padding: 1rem 1.1rem; border-radius: 14px; background: rgba(5, 8, 24, .45); border: 2px solid rgba(207, 232, 255, .16);
}
.cr-card__body { display: flex; flex-direction: column; gap: .3rem; }
.cr-card__num {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  font: 700 1.4rem var(--font-display); background: rgba(207, 232, 255, .12); color: var(--line);
}
.cr-card__kicker { font: 500 .72rem var(--font-display); text-transform: uppercase; letter-spacing: .16em; color: var(--orange-hi); }
.cr-card__title { font: 600 1.3rem/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.cr-card__tag { opacity: .88; }
.cr-card.is-live { border-color: var(--ball); background: radial-gradient(400px 180px at 0% 0%, rgba(202, 219, 42, .16), transparent 70%), rgba(5, 8, 24, .5); transition: transform .15s, box-shadow .15s; }
.cr-card.is-live .cr-card__num { background: var(--ball); color: var(--navy); }
.cr-card.is-live:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(202, 219, 42, .18); }
.cr-card.is-live:focus-visible { outline: 3px solid var(--ball); outline-offset: 3px; }
.cr-card.is-soon { opacity: .72; }

.cr-library { list-style: none; display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); margin-bottom: 1.4rem; }
.cr-library li { display: flex; flex-direction: column; gap: .3rem; padding: .9rem 1rem; border-radius: 12px; border: 1px solid rgba(207, 232, 255, .16); background: rgba(5, 8, 24, .3); }
.cr-library strong { font: 600 1.05rem var(--font-display); text-transform: uppercase; letter-spacing: .03em; }
.cr-library__kind { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--orange-hi); }

.cr-lessons { list-style: none; display: grid; gap: .6rem; }
.cr-lesson {
  display: grid; grid-template-columns: 40px 1fr; gap: .8rem; align-items: start; padding: .9rem 1rem;
  border-radius: 12px; background: rgba(5, 8, 24, .45); border: 2px solid rgba(207, 232, 255, .16); transition: border-color .15s;
}
.cr-lesson:hover { border-color: var(--line); }
.cr-lesson:focus-visible { outline: 3px solid var(--ball); outline-offset: 3px; }
.cr-lesson__num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 700 1.1rem var(--font-display); background: var(--orange); color: #1a1200; }
.cr-lesson.is-done .cr-lesson__num { background: var(--ball); color: var(--navy); }
.cr-lesson__title { display: block; font: 600 1.1rem var(--font-display); text-transform: uppercase; letter-spacing: .03em; margin-bottom: .2rem; }
.cr-lesson__sum { display: block; opacity: .85; font-size: .95rem; }

.cr-lesson-body { margin-top: .4rem; }
.cr-pager { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: 2.6rem; padding-top: 1.2rem; border-top: 1px solid rgba(207, 232, 255, .16); }
.cr-pager a { display: flex; flex-direction: column; gap: .15rem; padding: .7rem .9rem; border-radius: 10px; background: rgba(5, 8, 24, .4); font-weight: 700; }
.cr-pager a:hover { background: rgba(5, 8, 24, .7); }
.cr-pager a span { font: 500 .72rem var(--font-display); text-transform: uppercase; letter-spacing: .14em; color: var(--orange-hi); }
.cr-pager__next { text-align: right; align-items: flex-end; }

.cr-checks fieldset { border: 0; margin: 1.2rem 0 0; }
.cr-checks legend { font: 600 1.05rem var(--font-display); text-transform: uppercase; letter-spacing: .05em; color: var(--orange-hi); margin-bottom: .5rem; }
.cr-check { display: grid; grid-template-columns: 28px 1fr; gap: .7rem; align-items: start; padding: .75rem .9rem; margin-bottom: .5rem; border-radius: 10px; background: rgba(5, 8, 24, .4); cursor: pointer; }
.cr-check input { width: 22px; height: 22px; margin-top: .15rem; accent-color: var(--ball); }
.cr-check:has(input:checked) { background: rgba(202, 219, 42, .14); }
.cr-check input:focus-visible { outline: 3px solid var(--ball); outline-offset: 2px; }
.cr-status { margin-top: 1rem; padding: .7rem .9rem; border-radius: 10px; border-left: 4px solid var(--line); background: rgba(5, 8, 24, .4); }
.cr-status.is-done { border-color: var(--ball); color: var(--ball); font-weight: 700; }
.cr-record { margin-top: .6rem; }
.cr-history { margin-top: 1rem; }

/* ---------- print: just the court card ---------- */
@media print {
  @page { margin: 12mm; }
  body { background: #fff !important; color: #000; }
  .nav, .rm-noprint, .mobile-menu, .cookiebar, .footer { display: none !important; }
  .rm { padding: 0; background: none; min-height: 0; }
  /* print only the card that is on screen */
  body:has([data-print-card]) .rm__inner > :not(:has([data-print-card])):not([data-print-card]),
  .rm-screen > :not([data-print-card]), .cr-lesson-body > :not([data-print-card]):not(.rm-screen) { display: none !important; }
  .rm-card { background: #fff; color: #000; padding: 0; }
  .rm-card__grid { grid-template-columns: 200px 1fr; }
  .rm-court__surface { fill: #fff; }
  .rm-court__lines { stroke: #000; }
  .rm-court__small { fill: #000; }
  .rm-court__zone, .rm-court__zone--deep { fill: #eee; stroke: #000; }
  .rm-court__feed { stroke: #555; }
  .rm-court__target { fill: #f6c98a; opacity: 1; }
  .rm-card__site { color: #000; }
  .cr-print-only { display: block; }
  .rm-card__diagram { max-width: 200px; }
}
