/* DVC 2027 Points Explorer — themed to the Rope Drop News dark "park after dark" system
   (consumes the global v1.css tokens: --bg, --surface, --ink, --brand, --line, fonts, radii).
   Four tools over one dataset. The heatmap cells are bright data-viz tiles on the dark surface;
   the number is always shown, so colour is a hint, never the only signal. Honors reduced motion. */

.dvcp {
    color: var(--ink);
    font-family: var(--ui);
    font-synthesis-weight: none;
    /* cost heatmap ramp, cool (cheapest) to warm (peak) — bright tiles read on the dark page */
    --h0: oklch(86% 0.05 235);
    --h1: oklch(87% 0.07 200);
    --h2: oklch(88% 0.09 135);
    --h3: oklch(87% 0.12 95);
    --h4: oklch(83% 0.14 70);
    --h5: oklch(76% 0.16 52);
    --cell-ink: oklch(25% 0.04 60);
}

.dvcp .wrap { width: min(1120px, 92vw); margin-inline: auto; }
.dvcp .sec { padding-block: clamp(28px, 5vw, 52px); }

/* ---------------------------------------------------------------- hero */
.dvcp-hero {
    position: relative;
    overflow: clip;
    isolation: isolate;
    padding-block: clamp(46px, 9vw, 100px);
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(90% 120% at 82% -10%, var(--glow-violet), transparent 60%),
        radial-gradient(70% 90% at 12% 0%, var(--glow-gold), transparent 60%),
        var(--bg);
}
.dvcp-hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.dvcp-hero-grid {
    position: absolute; inset: 0; z-index: -2; opacity: 0.35;
    background-image:
        linear-gradient(oklch(84% 0.13 86 / 0.06) 1px, transparent 1px),
        linear-gradient(90deg, oklch(84% 0.13 86 / 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 28%, transparent 76%);
    mask-image: radial-gradient(120% 100% at 50% 0%, #000 28%, transparent 76%);
}
.dvcp-hero-in { position: relative; }
.dvcp-kicker {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--brand);
}
.dvcp-hero h1 {
    margin: 14px 0 0; line-height: 0.98; letter-spacing: -0.03em;
    font-family: var(--display); font-size: clamp(2.4rem, 7vw, 4.4rem); font-weight: 800; color: var(--ink);
    text-wrap: balance;
}
.dvcp-standfirst {
    margin: 18px 0 0; max-width: 60ch;
    font-size: clamp(1.02rem, 2.1vw, 1.2rem); line-height: 1.5; color: var(--ink-2); text-wrap: pretty;
}
.dvcp-hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.dvcp-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: var(--r-pill);
    background: var(--surface-2); border: 1px solid var(--line); font-size: 0.86rem; color: var(--ink-2);
}
.dvcp-chip b { color: var(--ink); }
.dvcp-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.dvcp-btn {
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
    padding: 12px 22px; border-radius: var(--r); font-weight: 700; font-size: 0.98rem;
    text-decoration: none; border: 1px solid transparent; transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.dvcp-btn-gold { background: var(--brand); color: var(--brand-ink); box-shadow: 0 0 26px oklch(70% 0.13 84 / 0.28); }
.dvcp-btn-gold:hover { background: var(--brand-press); transform: translateY(-1px); }
.dvcp-btn-ghost { background: oklch(100% 0 0 / 0.04); border-color: var(--line-2); color: var(--ink); }
.dvcp-btn-ghost:hover { border-color: var(--brand); transform: translateY(-1px); }

/* ---------------------------------------------------------------- tabs */
.dvcp-tabs {
    /* sticks just below the 61px app bar instead of fighting it for top: 0 */
    position: sticky; top: 61px; z-index: calc(var(--z-sticky, 100) - 1);
    display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
    padding: 8px max(16px, calc((100vw - min(1120px, 92vw)) / 2));
    background: oklch(21% 0.046 280 / 0.85); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.dvcp-tabs::-webkit-scrollbar { display: none; }
.dvcp-tab {
    flex: 0 0 auto; cursor: pointer; white-space: nowrap;
    padding: 9px 16px; border-radius: var(--r-sm); border: 1px solid transparent; background: transparent;
    font-size: 0.92rem; font-weight: 650; color: var(--ink-2); transition: background .12s, color .12s;
}
.dvcp-tab:hover { background: oklch(100% 0 0 / 0.06); color: var(--ink); }
.dvcp-tab.is-on { background: var(--brand); color: var(--brand-ink); box-shadow: 0 0 22px oklch(70% 0.13 84 / 0.22); }
.dvcp-tabs-set { display: flex; gap: 4px; }
/* copy a deep link to the current tab, resort, and year */
.dvcp-copylink {
    margin-left: auto; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px;
    cursor: pointer; white-space: nowrap;
    padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line-2);
    background: transparent; color: var(--ink-2); font: inherit; font-size: 0.8rem; font-weight: 700;
    transition: border-color .16s ease, color .16s ease, background-color .16s ease;
}
.dvcp-copylink svg { width: 14px; height: 14px; flex: none; }
.dvcp-copylink:hover { border-color: var(--brand); color: var(--ink); background: var(--surface-2); }
.dvcp-copylink:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.dvcp-copylink.is-done { border-color: var(--brand); color: var(--brand); }
@media (max-width: 640px) {
    .dvcp-copylink span { display: none; }
    .dvcp-copylink { padding: 8px 11px; }
}
.dvcp-copylink-solo { margin-left: 0; margin-top: 14px; }
.dvcp-copylink-solo span { display: inline !important; }
@media (max-width: 760px) {
    /* the tab row scrolls; fade the right edge so the offscreen tools announce themselves */
    .dvcp-tabs {
        -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent);
        mask-image: linear-gradient(90deg, #000 86%, transparent);
    }
}

/* ---------------------------------------------------------------- stage / panels */
.dvcp-stage { padding-block: clamp(20px, 4vw, 36px); }
.dvcp-panel { display: none; }
.dvcp-panel.is-on { display: block; animation: dvcp-fade .22s ease; }
@keyframes dvcp-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.dvcp-panel-lead { margin: 0 0 18px; max-width: 64ch; color: var(--ink-2); line-height: 1.5; }

/* ---------------------------------------------------------------- controls */
.dvcp-controls {
    display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end;
    padding: 16px; margin-bottom: 18px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.dvcp-ctl { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dvcp-ctl-wide { flex: 1 1 100%; }
.dvcp-cap { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.dvcp-select {
    appearance: none; -webkit-appearance: none;
    padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-2);
    background: var(--surface-2); color: var(--ink); font: inherit; font-size: 0.95rem; font-weight: 600;
    min-height: 42px; max-width: 100%;
}
.dvcp-select::placeholder { color: var(--ink-2); opacity: 1; }
select.dvcp-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b9a' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px;
}
.dvcp-nights { width: 90px; }
.dvcp-select:focus-visible, .dvcp-tab:focus-visible, .dvcp-year:focus-visible, .dvcp-btn:focus-visible,
.dvcp-combo-input:focus-visible {
    outline: 2px solid var(--brand); outline-offset: 2px;
}
.dvcp-toggle { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 3px; gap: 3px; }
.dvcp-year {
    cursor: pointer; border: 0; background: transparent; color: var(--ink-2);
    padding: 7px 16px; border-radius: var(--r-xs); font-weight: 700; font-size: 0.92rem; transition: background .12s, color .12s;
}
.dvcp-year.is-on { background: var(--brand); color: var(--brand-ink); }

.dvcp-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.dvcp-check {
    position: relative;
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    min-height: 40px; padding: 7px 14px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--surface-2);
    font-size: 0.9rem; font-weight: 600; color: var(--ink); user-select: none;
    transition: border-color .16s ease, background-color .16s ease, transform .12s ease;
}
.dvcp-check:hover:not(:has(input:checked)) { border-color: var(--ink-3); }
.dvcp-check:active { transform: scale(0.96); }
.dvcp-check:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.dvcp-check:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
/* native input stays for a11y + JS, but is visually replaced by .dvcp-check-ind */
.dvcp-check input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.dvcp-check-ind {
    flex: none; display: inline-grid; place-items: center; width: 16px; height: 16px;
    border-radius: 5px; border: 1.5px solid var(--line-2); background: transparent;
    transition: border-color .16s ease, background-color .16s ease;
}
.dvcp-check-ind svg {
    width: 11px; height: 11px; color: var(--brand-ink);
    opacity: 0; transform: scale(0.25); filter: blur(4px);
    transition: opacity .3s cubic-bezier(0.2, 0, 0, 1), transform .3s cubic-bezier(0.2, 0, 0, 1), filter .3s cubic-bezier(0.2, 0, 0, 1);
}
.dvcp-check:has(input:checked) .dvcp-check-ind { border-color: var(--brand); background: var(--brand); }
.dvcp-check:has(input:checked) .dvcp-check-ind svg { opacity: 1; transform: scale(1); filter: blur(0); }

/* select all / clear all */
.dvcp-cap-row { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.dvcp-cap-count { font-size: 0.72rem; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dvcp-selall {
    margin-left: auto; display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
    min-height: 40px; padding: 0 13px; border-radius: var(--r-pill);
    border: 1px solid transparent; background: transparent; color: var(--ink-2);
    font: inherit; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.01em; white-space: nowrap;
    transition: border-color .16s ease, background-color .16s ease, color .16s ease, transform .12s ease;
}
.dvcp-selall:hover { background: var(--surface-2); border-color: var(--line-2); color: var(--ink); }
.dvcp-selall:active { transform: scale(0.96); }
.dvcp-selall:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.dvcp-selall-ic { display: inline-grid; width: 15px; height: 15px; flex: none; }
.dvcp-selall-ic svg {
    grid-area: 1 / 1; width: 15px; height: 15px;
    transition: opacity .3s cubic-bezier(0.2, 0, 0, 1), transform .3s cubic-bezier(0.2, 0, 0, 1), filter .3s cubic-bezier(0.2, 0, 0, 1);
}
.dvcp-selall-clr { opacity: 0; transform: scale(0.25); filter: blur(4px); }
.dvcp-selall[data-state="clear"] .dvcp-selall-all { opacity: 0; transform: scale(0.25); filter: blur(4px); }
.dvcp-selall[data-state="clear"] .dvcp-selall-clr { opacity: 1; transform: scale(1); filter: blur(0); }
.dvcp-check-solo { margin: 0 0 16px; }

.dvcp-resort-line { margin: 2px 0 14px; color: var(--ink-2); }
.dvcp-resort-line b { color: var(--ink); font-weight: 750; }
.dvcp-tag-mover, .dvcp-tag-draft {
    display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: var(--r-pill);
    font-size: 0.66rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; vertical-align: middle;
}
.dvcp-tag-mover { background: var(--brand-tint); color: var(--brand); border: 1px solid oklch(84% 0.13 86 / 0.4); }
.dvcp-tag-draft { background: oklch(72% 0.13 80 / 0.16); color: var(--amber); border: 1px solid oklch(72% 0.13 80 / 0.4); }

/* ---------------------------------------- searchable grouped combobox (resort picker) */
.dvcp-combo { position: relative; }
.dvcp-combo-native { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.dvcp-combo-input { width: 100%; cursor: text; }
.dvcp-combo-input::-webkit-search-cancel-button { display: none; }
.dvcp-combo-list {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50;
    max-height: 340px; overflow-y: auto; padding: 6px;
    background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r);
    box-shadow: var(--shadow);
}
.dvcp-combo-group {
    padding: 9px 10px 4px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.07em;
    text-transform: uppercase; color: var(--ink-3);
}
.dvcp-combo-opt {
    padding: 8px 10px; border-radius: var(--r-sm); cursor: pointer; font-size: 0.94rem; font-weight: 600; color: var(--ink);
}
.dvcp-combo-opt:hover, .dvcp-combo-opt.is-active { background: var(--surface-3); }
.dvcp-combo-opt.is-sel { color: var(--brand); font-weight: 750; }
.dvcp-combo-empty { padding: 12px 10px; color: var(--ink-3); font-size: 0.9rem; }

/* ---------------------------------------------------------------- grid / heatmap */
.dvcp-gridwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.dvcp-grid { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 560px; }
.dvcp-grid-cap { caption-side: top; text-align: left; padding: 12px 14px; font-size: 0.84rem; color: var(--ink-3); background: var(--surface-2); }
.dvcp-grid th, .dvcp-grid td { padding: 0; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.dvcp-grid thead th {
    position: sticky; top: 0; background: var(--surface-3); color: var(--ink);
    font-size: 0.74rem; font-weight: 700; letter-spacing: 0.01em;
    padding: 9px 12px; text-align: center; z-index: 1; vertical-align: top;
}
.dvcp-grid thead th.dvcp-room-h { text-align: left; }
.dvcp-col-x { display: block; margin-top: 2px; font-size: 0.66rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.dvcp-grid tbody th.dvcp-room {
    position: sticky; left: 0; background: var(--surface); z-index: 1; color: var(--ink);
    text-align: left; padding: 11px 14px; font-weight: 700; font-size: 0.9rem; min-width: 160px;
    border-right: 1px solid var(--line-2);
}
.dvcp-room-view { display: block; font-size: 0.74rem; font-weight: 500; color: var(--ink-3); margin-top: 1px; }
.dvcp-cell { position: relative; text-align: center; vertical-align: middle; padding: 11px 10px !important; min-width: 84px; }
.dvcp-cell.is-heat { color: var(--cell-ink); }
.dvcp-wd { display: block; font-size: 1.1rem; font-weight: 800; line-height: 1; }
.dvcp-we { display: block; font-size: 0.76rem; font-weight: 650; opacity: 0.8; margin-top: 3px; }
.dvcp-we::before { content: "wknd "; font-size: 0.64rem; opacity: 0.7; letter-spacing: 0.02em; }
.dvcp-na { color: var(--ink-3); }
.dvcp-cell-best { box-shadow: inset 0 0 0 2px var(--brand); }
.dvcp-cell-best::after {
    content: "best"; position: absolute; top: 3px; right: 4px;
    font-size: 0.56rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: oklch(40% 0.08 70);
}
/* compact 12-month compare grid; varying months carry their low-to-high inline */
.dvcp-grid-months { min-width: 720px; }
.dvcp-grid-months .dvcp-cell { min-width: 56px; padding: 9px 6px !important; white-space: nowrap; }
.dvcp-grid-months .dvcp-wd { font-size: 1rem; }
.dvcp-cell-vary { cursor: help; }
.dvcp-mrange { display: block; margin-top: 2px; font-size: 0.6rem; font-weight: 650; opacity: 0.62; letter-spacing: 0.02em; }

/* ---------------------------------------------------------------- legend */
.dvcp-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; font-size: 0.82rem; color: var(--ink-3); }
.dvcp-legend-lab { font-weight: 700; color: var(--ink-2); }
.dvcp-legend-ramp {
    width: 160px; max-width: 40vw; height: 12px; border-radius: var(--r-pill); border: 1px solid var(--line);
    background: linear-gradient(90deg, var(--h0), var(--h1), var(--h2), var(--h3), var(--h4), var(--h5));
}
.dvcp-legend-scale { display: inline-flex; align-items: center; gap: 8px; }
.dvcp-legend-end { font-size: 0.72rem; }
.dvcp-legend-key b { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.dvcp-k-we { font-weight: 650; opacity: 0.8; }

/* ---------------------------------------------------------------- periods disclosure */
.dvcp-seasons { margin-top: 14px; }
.dvcp-seasons > summary { cursor: pointer; font-weight: 650; color: var(--brand); padding: 8px 0; }
.dvcp-season-list { display: grid; gap: 8px; padding: 8px 0 4px; }
.dvcp-season-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 8px 12px; border-radius: var(--r-sm); background: var(--surface-2); }
.dvcp-season-name { font-weight: 750; min-width: 92px; color: var(--ink); }
.dvcp-season-dates { color: var(--ink-2); font-size: 0.9rem; }
.dvcp-season-swatch { width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--line); }

/* ---------------------------------------------------------------- diff */
.dvcp-diff-summary { display: grid; gap: 10px; margin-bottom: 16px; padding: 16px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.dvcp-diff-head { font-weight: 750; font-size: 1.02rem; color: var(--ink); }
.dvcp-diff-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.dvcp-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--r-pill); font-size: 0.86rem; font-weight: 650; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink-2); }
.dvcp-pill.up { color: oklch(78% 0.16 20); border-color: oklch(60% 0.18 20 / 0.5); }
.dvcp-pill.down { color: var(--heat-low); border-color: oklch(70% 0.14 152 / 0.5); }
.dvcp-diff-note { color: var(--ink-2); line-height: 1.5; }
.dvcp-cell.diff-up { background: oklch(72% 0.2 20 / 0.16); }
.dvcp-cell.diff-down { background: oklch(81% 0.16 152 / 0.16); }
.dvcp-delta { display: block; font-size: 0.82rem; font-weight: 750; }
.dvcp-delta.up { color: oklch(80% 0.16 24); }
.dvcp-delta.down { color: var(--heat-low); }

/* ---------------------------------------------------------------- calculator */
.dvcp-trip-out { margin-top: 6px; }
.dvcp-trip-card { padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.dvcp-trip-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; }
.dvcp-trip-num { font-family: var(--display); font-size: clamp(2.2rem, 6vw, 3.2rem); font-weight: 800; line-height: 1; color: var(--brand); font-variant-numeric: tabular-nums; }
.dvcp-trip-lab { color: var(--ink-2); }
.dvcp-trip-sub { margin-top: 4px; color: var(--ink-3); }
.dvcp-trip-usd { margin-top: 10px; padding: 9px 12px; border-radius: var(--r-sm); background: var(--brand-tint); color: var(--ink-2); font-size: 0.94rem; }
.dvcp-trip-usd b { color: var(--ink); font-variant-numeric: tabular-nums; }
.dvcp-cap-soft { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink-3); }
.dvcp-nights-list { margin-top: 16px; display: grid; gap: 4px; }
.dvcp-night { display: flex; justify-content: space-between; gap: 12px; padding: 7px 12px; border-radius: var(--r-sm); background: var(--surface-2); font-variant-numeric: tabular-nums; }
.dvcp-night.is-weekend { background: var(--brand-tint); }
.dvcp-night-day { color: var(--ink-2); }
.dvcp-night-pts { font-weight: 750; color: var(--ink); }
.dvcp-rank { margin-top: 16px; display: grid; gap: 6px; }
.dvcp-rank-row { display: grid; grid-template-columns: 1.6rem 1fr; align-items: start; column-gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid transparent; }
.dvcp-rank-row.is-top { border-color: var(--brand); background: var(--brand-tint); }
.dvcp-rank-n { font-weight: 800; color: var(--ink-3); text-align: center; line-height: 1.5; }
.dvcp-rank-row b { color: var(--ink); }
.dvcp-rank-main { min-width: 0; display: grid; gap: 8px; }
.dvcp-rank-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 12px; }
.dvcp-rank-name { min-width: 0; }
/* every bar shares one full-width track + left origin, so lengths are directly comparable */
.dvcp-rank-track { display: block; height: 8px; border-radius: var(--r-pill); background: oklch(100% 0 0 / 0.08); overflow: hidden; }
.dvcp-rank-bar { display: block; height: 100%; min-width: 3px; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--amber-deep), var(--brand)); }
.dvcp-rank-pts { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; flex: none; }
.dvcp-rank-delta { font-size: 0.72rem; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dvcp-rank-tag { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: oklch(40% 0.08 70); background: var(--brand); padding: 2px 6px; border-radius: var(--r-pill); vertical-align: middle; }
.dvcp-warn { padding: 12px 14px; border-radius: var(--r-sm); background: oklch(72% 0.13 80 / 0.14); border: 1px solid oklch(72% 0.13 80 / 0.4); color: var(--amber); font-size: 0.92rem; }

/* ---------------------------------------------------------------- resort grid */
.dvcp-resorts { border-top: 1px solid var(--line); }
.dvcp-resorts-h { font-family: var(--display); font-size: clamp(1.4rem, 3.4vw, 1.9rem); letter-spacing: -0.02em; margin: 0 0 10px; color: var(--ink); text-wrap: balance; }
.dvcp-resorts-group {
    margin: 22px 0 10px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.07em;
    text-transform: uppercase; color: var(--ink-3);
}
.dvcp-resort-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 10px; }
.dvcp-resort-card {
    display: flex; flex-direction: column; gap: 3px;
    padding: 13px 15px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface);
    text-decoration: none; transition: border-color .14s ease, transform .12s ease, background-color .14s ease;
}
.dvcp-resort-card b { color: var(--ink); font-size: 0.96rem; line-height: 1.25; }
.dvcp-resort-card span { color: var(--ink-3); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.dvcp-resort-card:hover { border-color: var(--brand); background: var(--surface-2); transform: translateY(-1px); }
.dvcp-resort-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* previous / next resort links on the per-resort pages */
.dvcp-sisters { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; }
.dvcp-sisters a {
    display: inline-flex; align-items: center; gap: 7px; max-width: 100%;
    padding: 9px 15px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--surface);
    color: var(--ink-2); font-size: 0.88rem; font-weight: 650; text-decoration: none;
    transition: border-color .14s ease, color .14s ease;
}
.dvcp-sisters a:hover { border-color: var(--brand); color: var(--ink); }
.dvcp-sisters a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.dvcp-sisters b { color: var(--ink); font-weight: 750; }

/* ---------------------------------------------------------------- prose / faq */
/* prose sections read as one article column; boxes, faq, and credit align to the text measure */
.dvcp-prose .wrap { width: min(680px, 92vw); }
.dvcp-prose h2 { font-family: var(--display); font-size: clamp(1.4rem, 3.4vw, 1.9rem); letter-spacing: -0.02em; margin: 28px 0 10px; color: var(--ink); text-wrap: balance; }
.dvcp-prose p { line-height: 1.62; color: var(--ink-2); max-width: 70ch; margin: 0 0 14px; }
.dvcp-prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.dvcp-callout { margin-top: 18px; padding: 18px 20px; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--surface); }
.dvcp-callout h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--ink); }
.dvcp-callout p { margin: 0; }
.dvcp-faq { display: grid; gap: 10px; }
.dvcp-faq details { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.dvcp-faq summary { cursor: pointer; padding: 14px 16px; font-weight: 700; color: var(--ink); list-style: none; }
.dvcp-faq summary::-webkit-details-marker { display: none; }
.dvcp-faq summary::after { content: "+"; float: right; color: var(--brand); font-weight: 800; }
.dvcp-faq details[open] summary::after { content: "\2212"; }
.dvcp-faq p { padding: 0 16px 16px; margin: 0; color: var(--ink-2); line-height: 1.6; }
.dvcp-fineprint { margin-top: 10px; font-size: 0.85rem; color: var(--ink-3); }
.dvcp-disclaimer { margin-top: 22px; font-size: 0.8rem; color: var(--ink-3); line-height: 1.5; max-width: 72ch; }
.dvcp-empty { padding: 24px; text-align: center; color: var(--ink-3); }
.dvcp-draftnote { margin: 0 0 12px; padding: 9px 14px; border-radius: var(--r-sm); background: oklch(72% 0.13 80 / 0.12); border: 1px solid oklch(72% 0.13 80 / 0.35); color: var(--amber); font-size: 0.86rem; }

/* ---------------------------------------------------------------- print row (resort pages) */
.dvcp-printrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; }
.dvcp-printbtn {
    display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
    padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line-2);
    background: transparent; color: var(--ink-2); font: inherit; font-size: 0.82rem; font-weight: 700;
    transition: border-color .16s ease, color .16s ease, background-color .16s ease;
}
.dvcp-printbtn svg { width: 14px; height: 14px; flex: none; }
.dvcp-printbtn:hover { border-color: var(--brand); color: var(--ink); background: var(--surface-2); }
.dvcp-printbtn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.dvcp-printnote { color: var(--ink-3); font-size: 0.78rem; }

/* ---------------------------------------------------------------- quick reads (resort pages) */
.dvcp-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-top: 14px; }
.dvcp-quick-stat {
    display: flex; flex-direction: column; gap: 3px;
    padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface);
}
.dvcp-quick-stat b { font-family: var(--display); font-size: 1.7rem; line-height: 1.1; color: var(--brand); font-variant-numeric: tabular-nums; }
.dvcp-quick-stat span { color: var(--ink-3); font-size: 0.84rem; line-height: 1.4; }
.dvcp-sub-h { font-family: var(--display); font-size: clamp(1.2rem, 3vw, 1.5rem); letter-spacing: -0.02em; margin: 28px 0 8px; color: var(--ink); text-wrap: balance; }
.dvcp-grid-weeks { min-width: 480px; }
.dvcp-grid-weeks .dvcp-cell { color: var(--ink); }
.dvcp-grid-weeks .dvcp-wd { font-size: 1rem; }
.dvcp-year-details { margin-top: 18px; }

/* ---------------------------------------------------------------- owner credit */
.dvcp-owner {
    display: flex; gap: 14px; align-items: flex-start;
    margin-top: 22px; padding: 16px 18px;
    border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--surface);
}
.dvcp-owner-photo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--brand); }
.dvcp-owner-name a { color: var(--ink); font-weight: 750; text-decoration: none; }
.dvcp-owner-name a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.dvcp-owner-role { color: var(--ink-3); font-size: 0.82rem; margin-left: 8px; }
.dvcp-owner-note { margin: 5px 0 0; color: var(--ink-2); font-size: 0.92rem; line-height: 1.5; max-width: 64ch; }

/* ---------------------------------------------------------------- print */
@media print {
    .dvcp-hero { padding-block: 10px; border: 0; background: none; }
    .dvcp-hero-canvas, .dvcp-hero-grid, .dvcp-hero-cta, .dvcp-tabs, .dvcp-sisters, .dvcp-legend,
    .dvcp-faq, .dvcp-callout, .dvcp-quick, .dvcp-resorts, .dvcp-owner, .dvcp-printrow { display: none !important; }
    .dvcp, .dvcp-hero h1, .dvcp-grid tbody th.dvcp-room, .dvcp-grid thead th, .dvcp-cell, .dvcp-wd { color: #000; }
    .dvcp-standfirst, .dvcp-grid-cap, .dvcp-prose p, .dvcp-we, .dvcp-kicker, .dvcp-chip, .dvcp-room-view, .dvcp-col-x { color: #333; }
    .dvcp-gridwrap { border: 1px solid #999; overflow: visible; background: #fff; }
    .dvcp-grid thead th { position: static; background: #eee; }
    .dvcp-grid tbody th.dvcp-room { position: static; background: #fff; }
    .dvcp-grid th, .dvcp-grid td { border-color: #ccc; }
    .dvcp-cell.is-heat { background: #fff !important; }
    .dvcp-chip { border-color: #ccc; background: #fff; }
    .dvcp-seasons > summary { color: #000; }
    .dvcp-season-row { background: #f4f4f4; }
    .dvcp-season-name, .dvcp-season-dates { color: #222; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 640px) {
    .dvcp-controls { gap: 12px; }
    .dvcp-ctl { flex: 1 1 calc(50% - 6px); }
    .dvcp-ctl-wide, .dvcp-ctl-year { flex: 1 1 100%; }
    .dvcp-cell { min-width: 64px; }
    /* the 18-resort check wall collapses to one scrollable card on phones */
    .dvcp-checks { max-height: 176px; overflow-y: auto; padding-right: 4px; }
}
.dvcp-pos { display: inline-block; min-width: 1.5em; margin-right: 2px; color: var(--ink-3); font-weight: 800; font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
    .dvcp-panel.is-on { animation: none; }
    .dvcp-btn { transition: none; }
    .dvcp-check { transition: border-color .16s ease, background-color .16s ease; }
    .dvcp-check:active { transform: none; }
    .dvcp-check-ind svg { transition: opacity .16s ease; transform: none; filter: none; }
    .dvcp-selall { transition: border-color .16s ease, background-color .16s ease, color .16s ease; }
    .dvcp-selall:active { transform: none; }
    .dvcp-selall-ic svg { transition: opacity .16s ease; transform: none; filter: none; }
    .dvcp-hero-canvas { display: none; }
}
