/*
 * Course v2 fold 4: dates, formats and prices (#dates, .cf-). Spec: direction.md section 4 (fold 4), fold-formats.json.
 * Desktop budget at 1366x768: head <= 100px, 24px gap, body 400px (thead 40 + 4 rows of 88). Tokens only, no hex values.
 * Amber is only the one .cf-enquire. Hidden start states only under html.hv-motion and the page's armed class.
 */

/* ---------- Head ---------- */
.course-v2 .cf-head { display: grid; gap: 16px 40px; margin-bottom: 24px; }
.course-v2 .cf-lead { max-width: 68ch; margin-top: 10px; color: var(--ink-2); }
.course-v2 .cf-inc-label { font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--mute); }
.course-v2 .cf-inc-list { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 8px; }
.course-v2 .cf-inc-list li { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; line-height: 1.4; color: var(--ink); }
.course-v2 .cf-inc-list .v3-i { flex: none; width: 20px; height: 20px; padding: 3px; border-radius: 999px; background: var(--brand); color: var(--white); stroke-width: 2.5; }

/* ---------- Body ---------- */
.course-v2 .cf-body { display: grid; gap: 24px; }
.course-v2 .cf-card { position: relative; overflow: clip; overflow-clip-margin: 4px; }
.course-v2 .cf-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.course-v2 .cf-table { position: relative; z-index: 1; }
.course-v2 .cf-table thead th { height: 40px; padding-block: 8px; }
.course-v2 .cf-table td { color: var(--ink-2); }
.course-v2 .cf-table .cv2-date, .course-v2 .cf-table .cv2-price { font-weight: 500; color: var(--ink); }

/* Format cell: the whole row selects; the label is the hit area of the first cell, formats.js extends it to the row */
.course-v2 .cf-row { cursor: pointer; transition: background-color 220ms ease; }
.course-v2 .cf-label { display: flex; align-items: center; gap: 12px; margin: 0; cursor: pointer; font-weight: 400; }
.course-v2 .cf-radio { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.course-v2 .cf-row:has(.cf-radio:focus-visible) .cf-label { outline: var(--focus-light); outline-offset: 6px; border-radius: 8px; }
.course-v2 .cf-row:has(.cf-radio:checked) .cv2-dot { border-color: var(--brand); }
.course-v2 .cf-row:has(.cf-radio:checked) .cv2-dot::after { transform: scale(1); }
.course-v2 .cf-ico { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--l100); color: var(--brand-deep); transition: background-color 260ms ease, color 260ms ease; }
.course-v2 .cf-ico .v3-i { width: 22px; height: 22px; }
.course-v2 .cf-row:has(.cf-radio:checked) .cf-ico { background: var(--brand); color: var(--white); }
.course-v2 .cf-ftext { display: grid; gap: 2px; min-width: 0; }
.course-v2 .cf-fname { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 17px; line-height: 1.3; color: var(--ink); }
.course-v2 .cf-how { font-size: 16px; line-height: 1.4; color: var(--mute); }

/* Selected row: a plain fill without JS; formats.js swaps it for the sliding glider */
.course-v2 .cf-row:has(.cf-radio:checked) > * { background: var(--l100); }
.course-v2 .cf-glider { display: none; }
.course-v2 .cf-js .cf-row:has(.cf-radio:checked) > * { background: transparent; }
.course-v2 .cf-js .cf-glider {
    display: block; position: absolute; left: 0; right: 0; top: 0; z-index: 0; height: 88px; pointer-events: none;
    background: var(--l100); box-shadow: inset 4px 0 0 var(--brand);
    transform: translate3d(0, var(--cf-y, 40px), 0); height: var(--cf-h, 88px);
}
.course-v2 .cf-js .cf-glider::after { content: ''; position: absolute; right: 0; top: 50%; width: 0; height: 0; margin-top: -9px; border: 9px solid transparent; border-right-color: var(--white); }
html.hv-motion .course-v2 .cf-js.cf-ready .cf-glider { transition: transform var(--cv2-t-move) var(--cv2-ease), height var(--cv2-t-move) var(--cv2-ease); }
@media (pointer: fine) {
    .course-v2 .cf-row:not(:has(.cf-radio:checked)):hover > * { background: var(--l50); }
}
.course-v2 .cf-xrow[hidden] { display: none; }

/* Radio pop when a row is chosen */
html.hv-motion .course-v2 .cf-row.cf-pop .cv2-dot::after { animation: v3Pop 160ms var(--ease); }

/* ---------- Side panel ---------- */
.course-v2 .cf-side { display: flex; flex-direction: column; min-width: 0; padding: 24px; background: var(--white); border: var(--cv2-border); border-radius: 26px; box-shadow: var(--shadow-card); }
.course-v2 .cf-panels { display: grid; flex: 1 1 auto; min-height: 0; }
.course-v2 .cf-panel { grid-area: 1 / 1; min-width: 0; }
@supports selector(:has(*)) {
    .course-v2 .cf-panel { visibility: hidden; opacity: 0; transform: translate3d(0, 10px, 0); }
    .course-v2 .cf-root:has(#cf-live:checked) .cf-panel[data-format="live_online"],
    .course-v2 .cf-root:has(#cf-self:checked) .cf-panel[data-format="self_paced"],
    .course-v2 .cf-root:has(#cf-class:checked) .cf-panel[data-format="classroom"],
    .course-v2 .cf-root:has(#cf-onsite:checked) .cf-panel[data-format="onsite"] { visibility: visible; opacity: 1; transform: none; }
    html.hv-motion .course-v2 .cf-ready .cf-panel { transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms; }
    html.hv-motion .course-v2 .cf-root.cf-ready:has(#cf-live:checked) .cf-panel[data-format="live_online"],
    html.hv-motion .course-v2 .cf-root.cf-ready:has(#cf-self:checked) .cf-panel[data-format="self_paced"],
    html.hv-motion .course-v2 .cf-root.cf-ready:has(#cf-class:checked) .cf-panel[data-format="classroom"],
    html.hv-motion .course-v2 .cf-root.cf-ready:has(#cf-onsite:checked) .cf-panel[data-format="onsite"] {
        transition: opacity 340ms ease 140ms, transform 420ms var(--cv2-ease) 140ms, visibility 0s linear 0s;
    }
}
@supports not selector(:has(*)) {
    .course-v2 .cf-panel { grid-area: auto; }
    .course-v2 .cf-panel + .cf-panel { margin-top: 24px; padding-top: 24px; border-top: var(--cv2-border); }
}
.course-v2 .cf-ph { display: flex; align-items: center; gap: 12px; }
.course-v2 .cf-ph-ico { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--l100); color: var(--brand-deep); }
.course-v2 .cf-ph-ico .v3-i { width: 22px; height: 22px; }
.course-v2 .cf-h3 { font-size: 21px; }
.course-v2 .cf-note { margin-top: 14px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.course-v2 .cf-note .cv2-link { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; cursor: pointer; }

/* Facts under a panel */
.course-v2 .cf-facts { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 18px 0 0; padding-top: 16px; border-top: var(--cv2-border); }
.course-v2 .cf-facts:not(:has(div)) { display: none; }
.course-v2 .cf-facts dt { font-size: 16px; line-height: 1.4; color: var(--mute); }
.course-v2 .cf-facts dd { margin: 2px 0 0; font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 18px; line-height: 1.35; color: var(--ink); }
.course-v2 .cf-facts .cf-f-wide { flex: 1 1 100%; }
.course-v2 .cf-facts .cf-f-wide dd { font-family: 'Work Sans', sans-serif; font-weight: 500; font-size: 16px; }

/* Date rows (only when a date gate is on) */
.course-v2 .cf-dates { display: grid; margin-top: 12px; }
.course-v2 .cf-date { display: flex; align-items: center; gap: 12px; min-height: var(--cv2-row-min); border-bottom: var(--cv2-border); }
.course-v2 .cf-date:last-child { border-bottom: 0; }
.course-v2 .cf-d-when { display: grid; flex: 1 1 auto; min-width: 0; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.course-v2 .cf-d-town { font-weight: 400; color: var(--mute); }
.course-v2 .cf-d-price { flex: none; font-weight: 500; color: var(--ink-2); }
.course-v2 .cf-d-act { display: inline-flex; flex: none; align-items: center; gap: 14px; }
.course-v2 .cf-book { min-height: 40px; padding: 6px 14px; }
@media (pointer: fine) { .course-v2 .cf-book:hover { transform: translateY(-2px); } }
.course-v2 .cf-denq { font-size: 16px; font-weight: 600; }
.course-v2 .cf-more { margin-top: 8px; padding: 6px 0; border: 0; background: none; font-size: 16px; cursor: pointer; }
html.hv-motion .course-v2 .cf-date.cf-new { animation: cfRow 360ms var(--ease) both; animation-delay: calc(var(--cf-i, 0) * 60ms); }
@keyframes cfRow { from { opacity: 0; transform: translate3d(0, 8px, 0); } to { opacity: 1; transform: none; } }

/* Self-paced */
.course-v2 .cf-sp-price { margin-top: 12px; font-size: 16px; color: var(--ink-2); }
.course-v2 .cf-sp-price strong { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 20px; color: var(--ink); }
.course-v2 .cf-selfform { margin-top: 14px; }
.course-v2 .cf-addons { margin: 0 0 12px; padding: 0; border: 0; min-width: 0; }
.course-v2 .cf-addons-legend { padding: 0; margin-bottom: 6px; font-size: 16px; font-weight: 600; color: var(--mute); }
.course-v2 .cf-addon { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 16px; cursor: pointer; }
.course-v2 .cf-addon input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--brand); }
.course-v2 .cf-total { margin-bottom: 12px; font-size: 16px; color: var(--ink-2); }
.course-v2 .cf-total strong { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 20px; color: var(--ink); }

/* Selects (town, team size) */
.course-v2 .cf-townform { margin-top: 14px; }
.course-v2 .cf-flabel { display: block; margin-top: 14px; margin-bottom: 6px; font-size: 16px; font-weight: 600; color: var(--ink); }
.course-v2 .cf-townform .cf-flabel { margin-top: 0; }
.course-v2 .cf-selectwrap { position: relative; }
.course-v2 .cf-select { width: 100%; min-height: 48px; padding: 10px 44px 10px 14px; border: 2px solid var(--l200); border-radius: var(--r-btn); background: var(--white); color: var(--ink); font: inherit; font-size: 16px; -webkit-appearance: none; appearance: none; cursor: pointer; transition: border-color var(--t-base) ease; }
.course-v2 .cf-select:hover { border-color: var(--l300); }
.course-v2 .cf-select:focus-visible { outline: var(--focus-light); outline-offset: 2px; border-color: var(--brand); }
.course-v2 .cf-select-i { position: absolute; right: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--brand-deep); pointer-events: none; }
.course-v2 .cf-townsubmit { margin-top: 10px; }

/* The fold's one amber button */
.course-v2 .cf-cta { margin-top: 20px; }
.course-v2 .cf-enquire { width: 100%; }

/* Price digit roll (aria-hidden slots; the real text is in .sr-only) */
.course-v2 .cf-roll { display: inline; }
.course-v2 .cf-slot { display: inline-block; overflow: hidden; height: 1.5em; line-height: 1.5em; vertical-align: bottom; }
.course-v2 .cf-slot > span { display: block; }
html.hv-motion .course-v2 .cf-rolling .cf-slot > span { animation: cfDigit 520ms var(--ease) both; animation-delay: calc(var(--cf-d, 0) * 40ms); }
@keyframes cfDigit { from { transform: translate3d(0, 100%, 0); } to { transform: none; } }

/* ---------- Desktop: one screen (1024px+ wide, 620px+ tall) ---------- */
@media (min-width: 1024px) {
    /* H2 across the full width (one line), then the 2-line lead beside the included ticks: head held to about 100px */
    .course-v2 .cf-head { grid-template-columns: 1.45fr 1fr; align-items: end; row-gap: 0; }
    .course-v2 .cf-head-main { display: contents; }
    .course-v2 .cf-head .v3-h2 { grid-column: 1 / -1; }
    .course-v2 .cf-head .cf-lead { grid-column: 1; }
    .course-v2 .cf-head:not(:has(.cf-inc)) .cf-lead { grid-column: 1 / -1; max-width: 90ch; }
    .course-v2 .cf-inc { grid-column: 2; padding-bottom: 2px; }
    .course-v2 .cf-body { grid-template-columns: 1.45fr 1fr; align-items: stretch; }
    .course-v2 .cf-table { table-layout: fixed; }
    .course-v2 .cf-cols-4 .cf-c-format { width: 46%; }
    .course-v2 .cf-cols-4 .cf-c-len, .course-v2 .cf-cols-4 .cf-c-price, .course-v2 .cf-cols-4 .cf-c-date { width: 18%; }
    .course-v2 .cf-cols-3 .cf-c-format { width: 56%; }
    .course-v2 .cf-cols-3 .cf-c-len { width: 20%; }
    .course-v2 .cf-cols-3 .cf-c-date { width: 24%; }
    .course-v2 .cf-table tbody tr.cf-row { height: 88px; }
    .course-v2 .cf-table tbody tr.cf-row > * { padding-block: 8px; }
    .course-v2 .cf-table tbody tr.cf-row:nth-last-child(2) > * { border-bottom: 0; }
    .course-v2 .cf-table tbody th { padding-left: 20px; }
    .course-v2 .cf-xrow { display: none !important; }
}
@media (min-width: 1024px) and (min-height: 620px) {
    /* 400px body (thead 40 + 4 x 88). min-height, not height: a taller panel grows the fold rather than being clipped. */
    .course-v2 .cf-body { min-height: 400px; }
}
/* Real 1366x768 laptops (about 657px inner height) and other short screens: 76px rows keep 90px+ free */
@media (min-width: 1024px) and (min-height: 620px) and (max-height: 700px) {
    .course-v2 .cf-body { min-height: 344px; }
    .course-v2 .cf-table tbody tr.cf-row { height: 76px; }
    .course-v2 .cf-table tbody tr.cf-row > * { padding-block: 4px; line-height: 1.35; }
    .course-v2 .cf-table thead th { height: 40px; padding-block: 6px; }
    .course-v2 .cf-ftext { gap: 0; }
    .course-v2 .cf-fname { line-height: 1.25; }
    .course-v2 .cf-how { line-height: 1.35; }
    .course-v2 .cf-ph-ico { width: 34px; height: 34px; }
    .course-v2 .cf-side { padding: 20px 22px; }
    .course-v2 .cf-note { margin-top: 10px; line-height: 1.5; }
    .course-v2 .cf-facts { margin-top: 12px; padding-top: 12px; }
    .course-v2 .cf-cta { margin-top: 14px; }
    .course-v2 .cf-flabel { margin-top: 10px; }
    .course-v2 .cf-head { margin-bottom: 18px; }
}

/* ---------- Phones and tablets (<1024px): stacked choice cards, the panel opens under the chosen card ---------- */
@media (max-width: 1023px) {
    .course-v2 .cf-inc { order: 0; }
    .course-v2 .cf-card { overflow: visible; background: transparent; border: 0; box-shadow: none; }
    .course-v2 .cf-table, .course-v2 .cf-table tbody, .course-v2 .cf-table tr, .course-v2 .cf-table th, .course-v2 .cf-table td { display: block; width: auto; }
    .course-v2 .cf-table { border-spacing: 0; }
    .course-v2 .cf-table colgroup { display: none; }
    .course-v2 .cf-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
    .course-v2 .cf-table tbody { display: grid; gap: 12px; }
    .course-v2 .cf-table tbody tr.cf-row { display: grid; grid-template-columns: 1fr 1fr; height: auto; padding: 16px; background: var(--white); border: 2px solid var(--l200); border-radius: var(--r-card); box-shadow: var(--shadow-card); transition: border-color var(--t-base) ease; }
    .course-v2 .cf-table tbody tr.cf-row > * { padding: 0; border: 0; background: transparent !important; }
    .course-v2 .cf-table tbody tr.cf-row > th { grid-column: 1 / -1; margin-bottom: 12px; }
    .course-v2 .cf-table tbody tr.cf-row > td { padding-top: 10px; border-top: var(--cv2-border); }
    .course-v2 .cf-table tbody tr.cf-row > td:last-child:nth-child(even) { grid-column: 1 / -1; }
    .course-v2 .cf-table tbody tr.cf-row > td::before { content: attr(data-label); display: block; font-size: 16px; font-weight: 400; color: var(--mute); }
    .course-v2 .cf-table tbody tr.cf-row:has(.cf-radio:checked) { border-color: var(--brand); }
    .course-v2 .cf-js .cf-glider { display: none; }
    .course-v2 .cf-row:has(.cf-radio:focus-visible) .cf-label { outline: 0; }
    .course-v2 .cf-table tbody tr.cf-row:has(.cf-radio:focus-visible) { outline: var(--focus-light); outline-offset: 2px; }
    .course-v2 .cf-xrow > td { padding: 0; border: 0; }
    .course-v2 .cf-xslot { display: grid; grid-template-rows: 0fr; opacity: 0; }
    .course-v2 .cf-xrow.is-open .cf-xslot { grid-template-rows: 1fr; opacity: 1; }
    html.hv-motion .course-v2 .cf-ready .cf-xslot { transition: grid-template-rows 240ms var(--ease), opacity 240ms ease; }
    html.hv-motion .course-v2 .cf-ready .cf-xrow.is-open .cf-xslot { transition: grid-template-rows 380ms var(--ease), opacity 380ms ease; }
    .course-v2 .cf-xin { min-height: 0; overflow: hidden; }
    .course-v2 .cf-xin > .cf-side { margin-top: 0; }
    .course-v2 .cf-side { padding: 20px; border-radius: var(--r-panel); }
    /* Only the active panel takes space on phones */
    @supports selector(:has(*)) {
        .course-v2 .cf-panel { display: none; }
        .course-v2 .cf-root:has(#cf-live:checked) .cf-panel[data-format="live_online"],
        .course-v2 .cf-root:has(#cf-self:checked) .cf-panel[data-format="self_paced"],
        .course-v2 .cf-root:has(#cf-class:checked) .cf-panel[data-format="classroom"],
        .course-v2 .cf-root:has(#cf-onsite:checked) .cf-panel[data-format="onsite"] { display: block; }
    }
    .course-v2 .cf-d-act { gap: 12px; }
    .course-v2 .cf-date { flex-wrap: wrap; padding: 8px 0; }
}
@media (max-width: 767px) {
    .course-v2 .cf-table tbody tr.cf-row { padding: 14px; }
    .course-v2 .cf-date .cf-d-act { width: 100%; justify-content: space-between; }
}

/* formats.js adds .cf-settled 700ms after each change: transitions stop and the end state applies even if frames never ran */
html.hv-motion .course-v2 .cf-root.cf-settled .cf-panel, html.hv-motion .course-v2 .cf-root.cf-settled .cf-glider,
html.hv-motion .course-v2 .cf-root.cf-settled .cf-xslot { transition: none !important; }
html.hv-motion .course-v2 .cf-root.cf-settled .cf-date.cf-new { animation: none !important; }

/* ---------- Reduced motion, forced colours, print ---------- */
@media (prefers-reduced-motion: reduce) {
    .course-v2 .cf-glider, .course-v2 .cf-panel, .course-v2 .cf-xslot, .course-v2 .cf-row, .course-v2 .cf-ico { transition: none !important; animation: none !important; }
    .course-v2 .cf-slot > span, .course-v2 .cf-date { animation: none !important; }
}
@media (forced-colors: active) {
    .course-v2 .cf-row:has(.cf-radio:checked) > * { outline: 2px solid Highlight; }
    .course-v2 .cf-js .cf-glider { display: none; }
}
@media print {
    .course-v2 .cf-panel { visibility: visible !important; opacity: 1 !important; transform: none !important; display: block !important; grid-area: auto; }
    .course-v2 .cf-body { height: auto !important; }
}

/* ---------- Compact panel rows (town select beside the heading; total beside the Book button) ---------- */
.course-v2 .cf-ph-room { flex-wrap: wrap; row-gap: 10px; }
.course-v2 .cf-ph-room .cf-townform { display: flex; align-items: center; gap: 8px; margin: 0 0 0 auto; }
.course-v2 .cf-ph-room .cf-flabel { margin: 0; font-weight: 500; color: var(--mute); }
.course-v2 .cf-ph-room .cf-selectwrap { width: 190px; }
.course-v2 .cf-ph-room .cf-select { min-height: 44px; padding-block: 8px; }
.course-v2 .cf-selfrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.course-v2 .cf-selfrow .cf-total { margin: 0; }
.course-v2 .cf-sp-price { margin-top: 10px; }
.course-v2 .cf-selfform { margin-top: 10px; }
.course-v2 .cf-addons { margin-bottom: 8px; }
.course-v2 .cf-addons-legend { margin-bottom: 2px; }
@media (min-width: 1024px) { .course-v2 .cf-head { grid-template-columns: 1.7fr 1fr; } }
@media (max-width: 479px) {
    .course-v2 .cf-ph-room .cf-townform { width: 100%; margin-left: 0; }
    .course-v2 .cf-ph-room .cf-selectwrap { flex: 1 1 auto; width: auto; }
}
/* Desktop table: the glider and the filled icon tile mark the choice, so the radio dot is shown on phone cards only */
@media (min-width: 1024px) {
    .course-v2 .cf-table .cv2-dot { display: none; }
    .course-v2 .cf-body:has(.cf-cols-4) { grid-template-columns: 1.6fr 1fr; }
    .course-v2 .cf-cols-4 .cf-c-format { width: 40%; }
    .course-v2 .cf-cols-4 .cf-c-len { width: 15%; }
    .course-v2 .cf-cols-4 .cf-c-price, .course-v2 .cf-cols-4 .cf-c-date { width: 22.5%; }
    .course-v2 .cf-ph-room .cf-flabel-town { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
    .course-v2 .cf-ph-room .cf-selectwrap { width: 160px; }
}
.course-v2 .cf-d-when { line-height: 1.3; }
.course-v2 .cf-date { padding-block: 4px; }
.course-v2 .cf-d-sub { font-weight: 400; color: var(--mute); }
@media (min-width: 1024px) {
    .course-v2 .cf-cols-4 .cf-c-format { width: 44%; }
    .course-v2 .cf-cols-4 .cf-c-len { width: 15%; }
    .course-v2 .cf-cols-4 .cf-c-price, .course-v2 .cf-cols-4 .cf-c-date { width: 20.5%; }
    .course-v2 .cf-cols-4 th, .course-v2 .cf-cols-4 td { padding-inline: 12px; }
    .course-v2 .cf-cols-4 tbody th { padding-left: 16px; }
}
@media (min-width: 1024px) {
    .course-v2 .cf-ph-room .cf-selectwrap { width: 172px; }
    .course-v2 .cf-ph-room .cf-select { padding: 8px 34px 8px 12px; }
    .course-v2 .cf-ph-room .cf-select-i { right: 10px; }
}
@media (min-width: 1024px) {
    .course-v2 .cf-ph-room { column-gap: 10px; }
    .course-v2 .cf-ph-room .cf-selectwrap { width: 160px; }
    .course-v2 .cf-ph-room .cf-select { padding: 8px 30px 8px 10px; }
    .course-v2 .cf-ph-room .cf-select-i { right: 8px; }
}
/* Short screens with dates and prices shown: tighter panel rhythm (rows stay 48px+ tap targets) */
@media (min-width: 1024px) and (min-height: 620px) and (max-height: 700px) {
    .course-v2 .cf-dates { margin-top: 6px; }
    .course-v2 .cf-date { min-height: 48px; padding-block: 2px; }
    .course-v2 .cf-more { margin-top: 2px; padding-block: 2px; }
    .course-v2 .cf-sp-price, .course-v2 .cf-selfform { margin-top: 6px; }
    .course-v2 .cf-addon { min-height: 36px; }
    .course-v2 .cf-h3 { font-size: 20px; }
}
@media (max-width: 1023px) {
    .course-v2 .cf-table tbody tr.cf-xrow { height: auto; margin-top: -4px; }
}
/* The side panel sits inside the table on phones: keep button styling, not the table's link styling */
.course-v2 .cf-table .cf-side a.v3-btn { text-decoration: none; }
.course-v2 .cf-table .cf-side a.v3-btn-primary { color: var(--ink); }
.course-v2 .cf-table .cf-side a.v3-btn-secondary { color: var(--brand-deep); }
.course-v2 .cf-table .cf-side th, .course-v2 .cf-table .cf-side td { border: 0; }

/* ---------- Format panels without date rows (date gates off): what the format gives you, then the next step ---------- */
.course-v2 .cf-ticks { margin-top: 16px; gap: 10px; }
.course-v2 .cf-ticks li { color: var(--ink); }
.course-v2 .cf-note.cf-next { margin-top: 16px; padding-top: 14px; border-top: var(--cv2-border); color: var(--ink-2); }
@media (min-width: 1024px) and (min-height: 620px) and (max-height: 700px) {
    .course-v2 .cf-ticks { margin-top: 12px; gap: 6px; }
    .course-v2 .cf-note.cf-next { margin-top: 12px; padding-top: 10px; }
}
