/* Whose Skis? alternate website style: "Trail map" (?theme=trail; switch in js/theme.js).
   Styling only: same markup, steps, prices and the real 3D print preview as css/app.css, which loads first.
   Every rule is scoped to html.t-trail, except the small footer style switch (.theme-pick) used by all styles.
   Concept: a resort trail map and its signage. Paper with topo contour lines, pine-green ink, trail-sign
   yellow for highlights, signal red for the one action, steps marked like runs (green circle, blue square,
   black diamond), and the buy bar as a lift ticket. Type: Barlow Condensed (signs) + Barlow (text),
   self-hosted, OFL (site/vendor/fonts/OFL-Barlow.txt). Contours: site/img/topo-*.svg from src/web/topo_tile.py.
   The tag lettering is unchanged (Liberation Sans Bold from the print model). */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url(../vendor/fonts/Barlow-Regular-latin.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url(../vendor/fonts/Barlow-SemiBold-latin.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url(../vendor/fonts/BarlowCondensed-SemiBold-latin.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url(../vendor/fonts/BarlowCondensed-ExtraBold-latin.woff2) format("woff2"); }

/* footer style switch (all styles) */
.theme-pick { max-width: 1280px; margin: 0 auto; padding: 0 14px 14px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 14px; opacity: .9; }
.theme-pick a { color: inherit; padding: 6px 2px; min-height: 32px; display: inline-flex; align-items: center; }
.theme-pick a[aria-current] { font-weight: 700; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.foot .theme-pick a { margin-left: 0; font-size: 14px; }

/* ---------- tokens ---------- */
html.t-trail {
  --navy: #10261F;          /* pine ink: text, dark panels, selected states */
  --pine-2: #1B3A2F;
  --blue: #1F5FBF;          /* blue-square run */
  --orange: #D7331F;        /* signal red: the one action */
  --orange-dark: #A8230F;
  --cream: #F2EBD9;
  --yellow: #F2B705;        /* trail-sign yellow: highlights */
  --green: #1E7A46;         /* green-circle run */
  --red: #C62A1A;
  --black: #111613;         /* black-diamond run */
  --ink: var(--navy);
  --ink-2: #53625A;
  --bg: #F6F2E7;            /* map paper */
  --paper: #FFFDF7;
  --line: #D6CDB6;
  --ok: var(--green);
  --bad: var(--red);
  --r: 4px;
  --r-s: 3px;
  --shadow: 0 1px 0 rgba(16, 38, 31, .1), 0 8px 22px rgba(16, 38, 31, .08);
  --font: "Barlow", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-d: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --topo: url(../img/topo-dark.svg);
  --topo-light: url(../img/topo-light.svg);
}
.t-trail body { background: var(--bg) var(--topo) 0 0 / 640px 640px; font-size: 16px; }
.t-trail :focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; box-shadow: 0 0 0 5px var(--navy); }
.t-trail h1, .t-trail h2, .t-trail legend, .t-trail .brand-word, .t-trail .primary, .t-trail .buy-price strong,
.t-trail .yours, .t-trail .how b, .t-trail .stand-steps b, .t-trail .foot b, .t-trail .topnav a, .t-trail .faq summary { font-family: var(--font-d); }
.t-trail strong, .t-trail b, .t-trail h3 { font-weight: 600; }

/* ---------- header: a trail-head sign ---------- */
.t-trail .top { background: var(--navy) var(--topo-light) 120px -80px / 640px 640px; padding: 10px 14px; }
.t-trail .brand { background: var(--paper); color: var(--navy); border: 2px solid var(--navy); box-shadow: 0 0 0 2px var(--paper); border-radius: 3px; transform: none; padding: 4px 12px 4px 6px; gap: 8px; }
.t-trail .brand-mark circle { fill: var(--yellow); }
.t-trail .brand-mark path:first-of-type { fill: var(--navy); }
.t-trail .brand-mark path:last-of-type { stroke: var(--orange); }
.t-trail .brand-word { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 23px; }
.t-trail .topnav a { text-transform: uppercase; letter-spacing: .08em; font-weight: 600; font-size: 17px; border-bottom-width: 4px; }
.t-trail .topnav a[aria-current] { border-color: var(--yellow); }
.t-trail .cartlink { border-radius: 3px; border-color: rgba(242, 235, 217, .7); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; font-size: 15px; }
.t-trail .count { background: var(--yellow); color: var(--navy); border-radius: 2px; font-weight: 600; }

/* boundary rope under the header and over the footer (replaces the retro stripes) */
.t-trail .stripes i:nth-child(1) { height: 3px; background: var(--cream); }
.t-trail .stripes i:nth-child(2) { height: 6px; background: repeating-linear-gradient(90deg, var(--yellow) 0 26px, var(--black) 26px 52px); }
.t-trail .stripes i:nth-child(3) { height: 0; }

/* ---------- 3D preview: a snowfield on the map ---------- */
.t-trail .stage { background: #EEF1EC var(--topo) -160px -60px / 640px 640px; border-bottom: 2px solid var(--navy); }
.t-trail .stage::before { content: "Live 3D · the real print model"; position: absolute; top: 10px; left: 12px; z-index: 1; font: 600 12px/1 var(--font-d); text-transform: uppercase; letter-spacing: .12em; color: var(--navy); background: var(--yellow); padding: 5px 8px 4px; border-radius: 2px; pointer-events: none; }
.t-trail .stage:fullscreen { background: #EEF1EC var(--topo) 0 0 / 640px 640px; }
.t-trail .preview-status { font-family: var(--font-d); text-transform: uppercase; letter-spacing: .06em; }
.t-trail .tool { border-radius: 3px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; font-family: var(--font-d); font-size: 15px; }
.t-trail .tool[aria-pressed=true] { background: var(--green); }
.t-trail .tool.icon-only { background: var(--paper); border-color: var(--navy); }
.t-trail .hint { font-style: italic; }
.t-trail .stage-msg { background: var(--paper); border-left: 0; border-top: 3px solid var(--bad); }

/* ---------- steps: each step is a run marker ---------- */
.t-trail legend { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 25px; gap: 12px; }
.t-trail legend::after { height: 3px; border-radius: 0; background: repeating-linear-gradient(90deg, var(--navy) 0 7px, transparent 7px 13px); opacity: .35; }
.t-trail .n { width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; font: 800 17px/1 var(--font-d); }
/* steps 1-2 green circle, 3-4 blue square, 5-7 black diamond (clip-path keeps the number upright) */
.t-trail #step-colours .n, .t-trail #step-extras .n, .t-trail #step-qty .n { width: 36px; height: 36px; margin: -3px; border-radius: 0; background: var(--black); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); font-size: 16px; }
.t-trail #step-name .n, .t-trail #step-icon .n { border-radius: 2px; background: var(--blue); }
.t-trail .fit-ok { font-family: var(--font); font-weight: 600; font-size: 14px; letter-spacing: 0; text-transform: none; }
.t-trail h3 { font: 600 13px/1.2 var(--font-d); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); }
.t-trail .picked { text-transform: none; letter-spacing: 0; color: var(--navy); font-family: var(--font); font-size: 14px; }

/* size + design cards: printed map legend boxes; selected = yellow sign + red stamp */
.t-trail .choice-row label, .t-trail .design-grid label { background: var(--paper); border: 2px solid var(--line); border-radius: var(--r); box-shadow: none; }
.t-trail .choice-row label strong { font: 800 22px/1.05 var(--font-d); text-transform: uppercase; letter-spacing: .03em; }
.t-trail .choice-row .price { font-weight: 600; color: var(--navy); }
.t-trail .design-grid label strong { font: 600 14px/1.1 var(--font-d); text-transform: uppercase; letter-spacing: .05em; }
.t-trail .design-grid svg [stroke="#0B2545"] { stroke: var(--navy); }
.t-trail .design-grid svg [fill="#0B2545"] { fill: var(--navy); }
.t-trail .choice-row label:hover, .t-trail .design-grid label:hover { border-color: var(--navy); }
.t-trail input:checked + label { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: #FFF3C4; }
.t-trail .design-grid input:checked + label { background: #FFF3C4; }
.t-trail .design-grid input:checked + label::after, .t-trail .choice-row input:checked + label::after { background: var(--orange); border-radius: 2px; top: 5px; right: 5px; font-weight: 700; }
.t-trail input:focus-visible + label { outline: 3px solid var(--yellow); box-shadow: 0 0 0 5px var(--navy); }

/* name fields: typed like sign lettering */
.t-trail .field { font-weight: 600; font-size: 14px; }
.t-trail input[type=text], .t-trail input[type=email], .t-trail input[type=number], .t-trail input[type=search], .t-trail textarea {
  font: 800 24px/1.1 var(--font-d); letter-spacing: .06em; border: 2px solid var(--navy); border-radius: var(--r-s); background: var(--paper); }
.t-trail input[type=search], .t-trail textarea, .t-trail input[type=email] { font: 400 17px/1.3 var(--font); letter-spacing: 0; }
.t-trail #c-name { font: 400 17px/1.3 var(--font); letter-spacing: 0; }
.t-trail input::placeholder, .t-trail textarea::placeholder { color: #9AA39B; }
.t-trail input[type=text]:focus, .t-trail input[type=email]:focus, .t-trail input[type=number]:focus, .t-trail input[type=search]:focus, .t-trail textarea:focus {
  outline: 3px solid var(--yellow); outline-offset: 0; border-color: var(--navy); }

/* messages: a coloured cap instead of a side stripe */
.t-trail .msg { border-left: 0; border-top: 3px solid; border-radius: var(--r-s); background: var(--paper); font-weight: 600; box-shadow: 0 0 0 1px var(--line); }
.t-trail .msgs .msg { font-weight: 400; }
.t-trail .msg.info { border-color: var(--yellow); }
.t-trail .chip { background: var(--blue); border-radius: 3px; font: 600 16px/1 var(--font-d); text-transform: uppercase; letter-spacing: .06em; }
.t-trail .chip:hover { background: #174C99; }

/* icons */
.t-trail .icon-search input { border-radius: 3px; }
.t-trail .chip-cat { background: var(--paper); border-radius: 2px; border-color: var(--line); font: 600 15px/1 var(--font-d); text-transform: uppercase; letter-spacing: .07em; }
.t-trail .chip-cat[aria-selected=true] { background: var(--navy); border-color: var(--navy); color: var(--cream); box-shadow: inset 0 -3px 0 var(--yellow); }
.t-trail .icon-none { background: var(--paper); border-radius: 3px; font: 600 15px/1 var(--font-d); text-transform: uppercase; letter-spacing: .07em; }
.t-trail .icon { background: var(--paper); border-radius: 3px; border-color: var(--line); }
.t-trail .icon:hover { border-color: var(--navy); }
.t-trail .icon[aria-pressed=true] { background: var(--navy); border-color: var(--navy); box-shadow: 0 0 0 2px var(--yellow); }
.t-trail .icon[aria-pressed=true] i { background: var(--cream); }
.t-trail .icon[aria-pressed=true]::after { background: var(--orange); border-radius: 2px; border-color: var(--paper); }

/* colours: round paint dots */
.t-trail .sw { border-radius: 50%; border-color: rgba(16, 38, 31, .28); }
.t-trail .sw[aria-checked=true] { outline: 3px solid var(--navy); outline-offset: 3px; }
.t-trail .sw[aria-checked=true]::after { color: var(--navy); border-color: var(--navy); }

/* switches: a square slider, green when on */
.t-trail .switch { font-weight: 600; }
.t-trail .switch .track { border-radius: 3px; background: #BFC6BA; }
.t-trail .switch .track::after { border-radius: 2px; }
.t-trail .switch input:checked + .track { background: var(--green); }
.t-trail .switch input:focus-visible + .track { outline: 3px solid var(--yellow); box-shadow: 0 0 0 5px var(--navy); }

/* quantity */
.t-trail .qty button { background: var(--paper); border: 2px solid var(--navy); border-radius: 3px; font-family: var(--font-d); }
.t-trail .qty button:hover { background: var(--navy); color: var(--cream); }

/* ---------- buy bar: a lift ticket ---------- */
.t-trail .buybar { background: var(--navy); color: var(--cream); border-top: 0; box-shadow: 0 -8px 22px rgba(16, 38, 31, .22); }
.t-trail .buybar::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 7px; background: radial-gradient(circle at 7px 0, transparent 4px, var(--navy) 4.5px) 0 0 / 14px 7px repeat-x; }
.t-trail .buy-price strong { font-weight: 800; font-size: 36px; color: var(--yellow); letter-spacing: .01em; }
.t-trail .buy-price .note { color: #B5C2B9; text-transform: uppercase; letter-spacing: .08em; font: 600 13px/1.2 var(--font-d); }
.t-trail .blocker { color: #FF9C8C; }
.t-trail .added { color: #8FE3B0; }
.t-trail .primary { border-radius: 3px; font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: .06em; box-shadow: 0 3px 0 var(--orange-dark); padding: 12px 24px; }
.t-trail .primary:disabled { background: #3A5247; color: #A7B6AD; box-shadow: none; }
.t-trail .secondary { background: var(--paper); border-color: var(--navy); border-radius: 3px; font: 600 17px/1 var(--font-d); text-transform: uppercase; letter-spacing: .06em; }
.t-trail .page .primary:disabled, .t-trail .checkout .primary:disabled { background: #C9CFC4; color: #5A665E; }

/* ---------- promo: the trail-head board ---------- */
.t-trail .promo { background: var(--navy) var(--topo-light) -200px -120px / 640px 640px; color: var(--cream); border-radius: var(--r); }
.t-trail .yours { font-weight: 800; font-style: normal; text-transform: uppercase; letter-spacing: .02em; font-size: 38px; color: var(--paper); }
.t-trail .yours span { color: var(--yellow); }
.t-trail .yours span::after { background: var(--orange); height: 4px; bottom: -3px; transform: none; border-radius: 0; }
.t-trail .how svg { color: var(--yellow); }
.t-trail .how b { text-transform: uppercase; letter-spacing: .05em; font-size: 20px; font-weight: 800; }
.t-trail .how b .n { background: var(--yellow); color: var(--navy); width: 22px; height: 22px; font-size: 14px; clip-path: none; margin: 0; border-radius: 2px; }
.t-trail .how span:not(.n) { color: #C5D0C8; }
.t-trail .badge-kids { background: var(--orange); color: #fff; border: 2px dashed rgba(255, 255, 255, .8); outline: 3px solid var(--orange); border-radius: 3px; box-shadow: none; font: 800 15px/1.1 var(--font-d); text-transform: uppercase; letter-spacing: .07em; padding: 5px 10px; }
@media (min-width: 900px) {
  .t-trail .how li { border-left-color: rgba(242, 235, 217, .18); }
  .t-trail .badge-kids { transform: rotate(4deg); }
}

/* ---------- FAQ + footer ---------- */
.t-trail .faq h2 { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 28px; }
.t-trail .faq details { background: var(--paper); border-radius: var(--r); border-color: var(--line); }
.t-trail .faq details[open] { border-color: var(--navy); }
.t-trail .faq summary { font-weight: 600; font-size: 19px; letter-spacing: .02em; }
.t-trail .faq summary::marker { color: var(--orange); }
.t-trail .foot { background: var(--navy) var(--topo-light) 0 0 / 640px 640px; color: var(--cream); }
.t-trail .foot b { font-style: normal; text-transform: uppercase; letter-spacing: .05em; font-weight: 800; font-size: 21px; color: var(--yellow); }
.t-trail .foot a { color: var(--cream); }

/* ---------- booth / tablet ---------- */
.t-trail.stand .stand-hero { background: var(--navy) var(--topo-light) 0 0 / 640px 640px; }
.t-trail.stand .stand-hero h1 { color: var(--yellow); text-transform: uppercase; letter-spacing: .04em; font-weight: 800; font-size: 46px; }
.t-trail .stand-steps a { background: var(--paper); border-radius: var(--r); box-shadow: none; border: 2px solid var(--cream); }
.t-trail .stand-steps b { text-transform: uppercase; letter-spacing: .04em; font-size: 22px; font-weight: 800; }
.t-trail .stand-actions .secondary { border-radius: 3px; border-color: var(--cream); background: transparent; color: var(--cream); }
.t-trail .primary.big { border-radius: 3px; }
.t-trail.stand legend { font-size: 29px; }
.t-trail.stand .n { width: 36px; height: 36px; font-size: 20px; }
.t-trail.stand #step-colours .n, .t-trail.stand #step-extras .n, .t-trail.stand #step-qty .n { width: 42px; height: 42px; }
@media (min-width: 900px) {
  .t-trail .stage { border: 2px solid var(--navy); border-radius: var(--r); box-shadow: var(--shadow); background: #EEF1EC var(--topo) -160px -60px / 640px 640px; }
  .t-trail .brand-word { font-size: 27px; }
  .t-trail.stand .stand-hero h1 { font-size: 60px; }
}

/* ---------- cart / checkout ---------- */
.t-trail .page h1 { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 34px; }
.t-trail .page h1 .back { background: var(--paper); border-radius: 3px; border-color: var(--navy); font-family: var(--font); }
.t-trail .page h1 .note { text-transform: none; letter-spacing: 0; font: 400 15px var(--font); }
.t-trail .page h2 { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 24px; }
.t-trail .page h2::after { height: 3px; background: repeating-linear-gradient(90deg, var(--navy) 0 7px, transparent 7px 13px); opacity: .35; }
/* the order as a ticket stub: perforated top edge */
.t-trail .card { position: relative; background: var(--paper); border: 2px solid var(--navy); border-radius: var(--r); box-shadow: var(--shadow); margin-top: 10px; }
.t-trail .card::before { content: ""; position: absolute; left: 10px; right: 10px; top: -2px; height: 2px; background: repeating-linear-gradient(90deg, var(--paper) 0 8px, transparent 8px 14px); }
.t-trail .line { border-bottom: 2px dashed var(--line); }
.t-trail .line .shot { background: #EEF1EC var(--topo) 0 0 / 320px 320px; border-radius: 3px; }
.t-trail .line h3 { font: 800 20px/1.1 var(--font-d); text-transform: uppercase; letter-spacing: .04em; color: var(--navy); }
.t-trail .line .lp { font: 800 24px/1 var(--font-d); }
.t-trail .dot { border-radius: 50%; }
.t-trail .line-foot .qty button { border-width: 2px; }
.t-trail .line-foot .qty input { font-size: 20px; }
.t-trail .totals tr.grand td { font: 800 28px/1 var(--font-d); text-transform: uppercase; letter-spacing: .03em; border-top: 2px solid var(--navy); }
.t-trail .panel { border: 2px dashed var(--navy); border-radius: var(--r); background: #FFF3C4; }
.t-trail .done { border-radius: var(--r); background: var(--paper); }
