/* Painted labels and the painted Missoula special (partials/paint.html, site/_special.html).
   Base rules first, media queries last. The paint keeps its own colors in light and dark: the words on a
   brush stroke are always dark ink on light paint. */
.pt-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* A brush stroke behind a label */
.pt-head { margin: 0; font-size: 1.6rem; font-weight: 800; line-height: 1.2; }
.pt-swash { --pt-paint: #ffcf5a; --pt-dry: #f2a93b; position: relative; display: inline-block; isolation: isolate;
            padding: .2em .7em .25em .55em; margin-left: -.35em; color: #14181f; }
.pt-swash .pt-word { position: relative; z-index: 1; }
.pt-stroke { position: absolute; inset: -.12em -.1em -.1em -.15em; width: calc(100% + .25em); height: calc(100% + .22em); z-index: 0;
             overflow: visible; }
.pt-stroke .pt-body { fill: var(--pt-paint); }
.pt-stroke .pt-dry { fill: none; stroke: var(--pt-dry); stroke-width: 3; stroke-linecap: round; opacity: .7; }
.pt-amber { --pt-paint: #ffcf5a; --pt-dry: #f0a330; }
.pt-sky { --pt-paint: #a8dbf7; --pt-dry: #6fb6e3; }
.pt-rose { --pt-paint: #ffb0a0; --pt-dry: #f07f6a; }
.pt-sage { --pt-paint: #c4e6a6; --pt-dry: #8fc76a; }
.pt-legend { font-size: 1.15rem; font-weight: 800; }

/* The headline's painted underline */
.pt-hero { position: relative; display: inline-block; padding-bottom: .3em; }
.pt-hero > span { position: relative; z-index: 1; }
.pt-under { position: absolute; left: -.1em; right: -.1em; bottom: 0; width: calc(100% + .2em); height: .45em; }
.pt-under path { fill: #e2483a; }

/* Little painted pictures */
.pt-icon { width: 1.9rem; height: 1.9rem; flex: none; }
.pt-icon-lg { width: 3rem; height: 3rem; }
.hq-pill .pt-icon { margin: -.2rem 0; }
.hq-quote-say { display: inline-flex; align-items: center; gap: .9rem; }
.hq-quote-say > span { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; }
.hq-quote-say .pt-swash { font-weight: 800; }

/* The booking card: the special's price beside the slashed one */
.hq-prices-now { display: inline-flex; align-items: baseline; gap: .6rem; }
.hq-was { font-size: 1.5rem; font-weight: 800; opacity: .6; text-decoration-color: #e2483a; text-decoration-thickness: .14em; }
.hq-was[hidden] { display: none; }
.hq-live.is-special .fp-price { color: #c2331f; }

/* ---- The Missoula special ---------------------------------------------------------------------------- */
.sp { position: relative; overflow: hidden; isolation: isolate; margin-top: 1.5rem; border-radius: var(--radius-box);
      background: #1f2d55; color: #fff7e8; border: 3px solid #1b2440; box-shadow: 0 10px 30px rgb(20 24 40 / .25); }
/* The scene (site/_special_scene.html, baked by scripts/bake_special.py): a still sky, then layers that slide right
   as the van drives west, each at its own depth. Every layer is a baked picture cropped to the band it draws in
   (--y0 to --y1, in the scene's 460 units), repeated across two tiles and moved one tile per loop, so it never seams
   and the graphics card only ever slides it: nothing is redrawn while it moves. All share one height (--sp-h), so
   the road, the van and the hills line up at any width. */
.sp-scene { position: absolute; inset: 0; z-index: -2; overflow: hidden; container-type: size; }
.sp-scene > * { --sp-h: max(100cqh, 38.34cqw); --tile: calc(var(--sp-h) * 1200 / 460); position: absolute; }
.sp-sky, .sp-layer { bottom: calc(var(--sp-h) * (460 - var(--y1)) / 460); height: calc(var(--sp-h) * (var(--y1) - var(--y0)) / 460);
                     background-size: var(--tile) 100%; background-repeat: repeat-x; }
.sp-sky { right: 0; width: var(--tile); background-repeat: no-repeat; background-position: right bottom; }
.sp-layer { left: 0; width: calc(var(--tile) * 2); will-change: transform; backface-visibility: hidden;
            animation: sp-pan var(--sp-t, 60s) linear infinite; }
.sp-road { left: 0; right: 0; bottom: 0; height: calc(var(--sp-h) * 76 / 460); background: #2a2c33; border-top: calc(var(--sp-h) * 5 / 460) solid #8a8f99; }
.sp-van { right: 0; bottom: 0; height: var(--sp-h); aspect-ratio: 1200 / 460; }
.sp-van > *, .sp-van-body { position: absolute; display: block; }
.sp-rim { will-change: transform; animation: sp-spin 1.1s linear infinite; }
.sp-van-phone { inset: 0; width: 100%; height: 100%; }
@keyframes sp-pan { from { transform: translate3d(-50%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes sp-spin { to { transform: rotate(-360deg); } }
.sp::before { content: ""; position: absolute; inset: 0; z-index: -1;
              background: linear-gradient(180deg, rgb(31 45 85 / 0) 55%, rgb(31 45 85 / .6) 68%, rgb(31 45 85 / 0) 80%); }
.sp-body { display: grid; gap: .7rem; justify-items: start; padding: 1.25rem 1.25rem 13rem; max-width: 36rem; }
/* Phones: the painting sits under the words, van and all, instead of behind them */
.sp-scene { top: auto; height: 15rem; }
.sp-kick { margin: 0; font-size: 1.25rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; transform: rotate(-2deg); }
.sp-price { width: min(100%, 26rem); height: auto; margin: -.25rem 0 -.5rem; overflow: visible; }
.sp-lead { font-size: 1.3rem; line-height: 1.4; font-weight: 700; text-shadow: 0 1px 2px rgb(0 0 0 / .45); }
.sp-lead strong { color: #ffd25a; }
.sp-towns { display: flex; flex-wrap: wrap; gap: .3rem .2rem; list-style: none; padding: 0; margin: 0; font-size: .95rem; font-weight: 700; }
.sp-towns li { display: inline-flex; align-items: center; gap: .2rem; padding: .1rem .45rem; border-radius: 999px;
               background: rgb(255 247 232 / .14); }
.sp-towns li + li::before { content: "›"; margin-right: .2rem; opacity: .7; }
.sp-fine { font-size: 1.15rem; font-weight: 800; color: #ffe2b0; }
.sp-do { display: flex; flex-wrap: wrap; gap: .6rem; }
.sp-call { background: #ffd25a; color: #14181f; border: 3px solid #1b2440; }
.sp-call:hover { background: #ffe08a; }
.sp-text { background: #fff7e8; color: #14181f; border: 3px solid #1b2440; }
.sp-text:hover { background: #ffffff; }

[data-theme=clear-dark] .hq-live.is-special .fp-price { color: #ff7a63; }

@media (min-width: 48rem) {
    .sp-scene { top: 0; height: auto; }
    .sp::before { background: linear-gradient(90deg, rgb(20 28 56 / .88) 0%, rgb(20 28 56 / .6) 42%, rgb(20 28 56 / 0) 62%); }
    .sp-body { padding: 1.75rem 2rem 2rem; max-width: 34rem; }
    .pt-head { font-size: 1.75rem; }
}
@media (min-width: 64rem) {
    .sp-body { max-width: 38rem; padding-bottom: 2.25rem; }
}
@media (prefers-reduced-motion: reduce) {
    .sp-layer, .sp-rim { animation: none; }
}
