/* Trip pages (src/pages/trips/), imported only by them. The look is the improved drawing Caleb accepted on Nov 19,
   2026 ("Yes, as drawn"): the home page's own night look, Ink ground, night Ember for what you tap with Ink words on it,
   its three typefaces, its map colours, pins and chips. Sizes are the drawing's, which drew a phone 390 wide and a
   computer 1,440 wide. Three ranges:
   - Small, up to 599 wide: as drawn at 390, the map first, then the words (the rules with no media query)
   - Middle, 600 to 1,199: the same order, in one column 720 wide at most, centred, with a map drawn for it; card grids
     go to two columns from 760
   - Large, 1,200 and up: as drawn at 1,440, the map filling the first screen with the words on its left, in the
     site's 1,120 column
   The header and the footer are the site's own (src/styles/site.css). Every class starts with t-, so nothing meets
   the site's own classes. Nothing here moves by itself: the drawing is still. */
.page-trip main{
  /* the side of the page's column */
  --side:20px;
  --ember:var(--orange-hi); --gold:#ffc266; --river:#8cc3dd;
  /* a pixel of the drawing, on a phone's maps (below) */
  --u:1px;
  padding-bottom:32px;
}
/* Under 390 wide a phone's maps show smaller than drawn, and the pins, names and chips on them shrink with them, so the
   map is the drawing made smaller and nothing on it meets. Taps keep their full size */
@media (max-width:389.98px){.page-trip main{--u:calc(100vw / 390)}}
/* the drawing's resets, with no weight of their own, so every rule below wins over them */
:where(.page-trip main) :where(h4,p,ul,ol,figure){margin:0}
:where(.page-trip main) :where(ul,ol){padding:0;list-style:none}
:where(.page-trip main) :where(a){text-decoration:none}
:where(.page-trip main) :where(svg){display:block}
:where(.page-trip main) :where(h4){font-family:var(--f-head);text-wrap:balance}

/* ---------- Maps: a picture with the pins, names and chips on top, each placed in percent of the picture's own box
   (the stage), so it holds its place at any width. Where each sits, for each range: src/components/trips/geo.ts */
.t-map{position:relative;background:#1f282b;isolation:isolate}
.t-stage{position:relative}
.t-base{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover}
.t-over{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.t-at{left:var(--xs);top:var(--ys)}
@media (max-width:599.98px){.t-map [data-r]:not([data-r*="s"]){display:none}}

.t-pin{position:absolute;width:calc(22 * var(--u));height:calc(22 * var(--u));margin:calc(-11 * var(--u)) 0 0 calc(-11 * var(--u));border-radius:50%;display:grid;place-items:center;
  font:800 calc(11.5 * var(--u))/1 var(--f-head);color:#111214;background:var(--ember);text-decoration:none;
  box-shadow:0 0 0 2.5px rgba(12,13,15,.9),0 0 0 3.5px rgba(255,255,255,.2),0 6px 14px rgba(0,0,0,.6)}
.t-pin.t-stop,.t-pin.t-eat{background:#15171a;color:#fff;box-shadow:inset 0 0 0 1.5px #fff,0 0 0 2.5px rgba(12,13,15,.9),0 6px 14px rgba(0,0,0,.6)}
.t-pin svg{width:calc(11 * var(--u));height:calc(11 * var(--u))}
.t-pin.t-d2{background:var(--gold)}
/* a pin on the top map is a link: its tap area is larger than what is drawn, 44 across at any size */
.t-map a.t-pin::after{content:"";position:absolute;inset:calc(11 * var(--u) - 22px);border-radius:50%}
.t-area{position:absolute;transform:translate(-50%,-50%);font:600 calc(9.5 * var(--u))/1 var(--f-body);letter-spacing:.16em;text-transform:uppercase;
  color:rgba(245,243,239,.78);white-space:nowrap;text-shadow:0 0 6px rgba(12,13,15,.95),0 1px 2px rgba(12,13,15,.9)}
.t-water{position:absolute;transform:translate(-50%,-50%) rotate(var(--r,0deg));font:italic 900 calc(10.5 * var(--u))/1 var(--f-place);letter-spacing:.05em;
  color:var(--river);white-space:nowrap;text-shadow:0 0 5px rgba(12,13,15,.95),0 1px 2px rgba(12,13,15,.9)}
.t-road{position:absolute;transform:translate(-50%,-50%) rotate(var(--r,0deg));font:500 calc(10.5 * var(--u))/1 var(--f-body);letter-spacing:.02em;
  color:rgba(245,243,239,.7);white-space:nowrap;text-shadow:0 0 5px rgba(12,13,15,.95),0 1px 2px rgba(12,13,15,.9)}
.t-chip{position:absolute;display:flex;gap:calc(6 * var(--u));align-items:baseline;padding:calc(5 * var(--u)) calc(9 * var(--u)) calc(5 * var(--u)) calc(8 * var(--u));border-radius:999px;white-space:nowrap;
  font:500 calc(12 * var(--u))/1.1 var(--f-body);color:var(--fg);background:rgba(17,18,20,.88);border:1px solid rgba(255,255,255,.1);
  box-shadow:0 8px 20px rgba(0,0,0,.45);transform:var(--ts)}
.t-chip b{font-weight:700;color:var(--c,var(--ember))}
.t-daytag{position:absolute;left:calc(12 * var(--u));top:calc(12 * var(--u));display:flex;gap:calc(8 * var(--u));align-items:baseline;padding:calc(7 * var(--u)) calc(12 * var(--u)) calc(7 * var(--u)) calc(10 * var(--u));border-radius:999px;
  font:500 calc(12.5 * var(--u))/1.1 var(--f-body);color:var(--fg-2);background:rgba(17,18,20,.88);border:1px solid rgba(255,255,255,.1)}
.t-daytag b{font:800 calc(12.5 * var(--u))/1 var(--f-head);color:var(--ember);letter-spacing:.02em}
.t-key{position:absolute;left:var(--side);right:var(--side);bottom:calc(10 * var(--u));display:flex;flex-wrap:wrap;gap:calc(6 * var(--u)) calc(14 * var(--u));font:500 calc(12.5 * var(--u))/1 var(--f-body);color:var(--fg-2)}
.t-key span{display:inline-flex;align-items:center;gap:calc(6 * var(--u))}
.t-key i{position:static;margin:0;width:calc(16 * var(--u));height:calc(16 * var(--u));font-size:calc(9 * var(--u));font-style:normal;box-shadow:none}
.t-key i.t-stop,.t-key i.t-eat{box-shadow:inset 0 0 0 1.25px #fff}
.t-key i svg{width:calc(9 * var(--u));height:calc(9 * var(--u))}
.t-credit{font:400 9.5px/1.2 var(--f-body);color:rgba(255,255,255,.74);letter-spacing:.01em;text-shadow:0 0 4px rgba(12,13,15,.95),0 1px 2px rgba(12,13,15,.9)}

/* ---------- The top: the map, then the words */
.t-top{position:relative}
.t-top-map{overflow:hidden}
.t-top-map .t-stage{aspect-ratio:780/760}
.t-top-map::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:
  linear-gradient(180deg,rgba(12,13,15,.86) 0,rgba(12,13,15,.5) 13%,rgba(12,13,15,0) 26%),
  linear-gradient(0deg,rgba(12,13,15,1) 0,rgba(12,13,15,.55) 7%,rgba(12,13,15,0) 17%)}
.t-top-copy{padding:10px var(--side) 0}
.t-top-credit{display:none}
.t-eyebrow{margin-top:18px;font:600 12px/1.35 var(--f-body);letter-spacing:.14em;text-transform:uppercase;color:var(--fg-3);text-wrap:balance}
.t-top h1{margin-top:10px;font-weight:800;font-size:25px;line-height:1.15;letter-spacing:-.03em}
/* The place's name, in Noto Serif (preloaded on trip pages). It keeps one line, so the swap from the stand-in face
   moves nothing under it; at 320 wide it shrinks so "Lethbridge" fits */
.t-top h1 em{display:block;margin:2px 0 0 -2px;font-family:var(--f-place);font-style:italic;font-weight:900;font-size:clamp(44px,14.4vw,56px);line-height:1.04;letter-spacing:-.015em;white-space:nowrap}
.t-by{margin-top:12px;font:400 14px/1.3 var(--f-body);color:var(--fg-3)}
.t-lead{margin-top:14px;font-size:17px;line-height:1.55;color:var(--fg-2)}
.t-cta{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin-top:24px}
.t-btn{display:inline-flex;align-items:center;justify-content:center;padding:15px 24px;border-radius:999px;background:var(--ember);color:var(--on-ember);
  font:700 16px/1 var(--f-head);letter-spacing:-.01em;white-space:nowrap;text-decoration:none}
.t-free{font:500 14px/1.3 var(--f-body);color:var(--fg-3)}

/* three facts at a glance */
.t-glance{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:32px var(--side) 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.t-glance div{padding:14px 8px 14px 0}
.t-glance div + div{padding-left:12px;border-left:1px solid var(--line)}
.t-glance b{display:block;font:800 21px/1.1 var(--f-head);letter-spacing:-.03em;white-space:nowrap}
.t-glance span{display:block;margin-top:5px;font:400 12.5px/1.35 var(--f-body);color:var(--fg-3);text-wrap:balance}

/* the row of buttons to the page's parts, as the home page's row of part buttons. Where it is wider than the screen
   (under about 375 wide) it scrolls sideways inside itself, starting at its left; its box keeps room above and below
   for each button's tap area, and gives the room below back, so the part under it sits where it was drawn. Each button
   is at least 44 across, to tap: "Eat" is wider than drawn by 8, and the other four narrower by 2 each, so the row is
   as long as drawn */
.t-rail-wrap{margin:13px 0 -7px;padding:7px 12px;overflow-x:auto;scrollbar-width:none}
.t-rail-wrap::-webkit-scrollbar{display:none}
.t-rail{display:flex;width:max-content;margin:0 auto;padding:4px;border-radius:999px;background:rgba(17,18,20,.9);border:1px solid rgba(255,255,255,.1)}
.t-rail a{position:relative;min-width:44px;padding:9px 7px;border-radius:999px;font:600 12.5px/1 var(--f-body);color:var(--fg-2);text-align:center;white-space:nowrap;text-decoration:none}
.t-rail a::after{content:"";position:absolute;inset:-7px 0}

/* the row of three photos under the row of buttons, on every trip page (Caleb, Nov 20, 2026: "A row of three, under the
   buttons"; src/components/trips/Photos.astro). On a phone it slides sideways inside itself, starting at its left, and
   comes to rest with a photo at the column's edge and the next one's edge showing; from 600 wide the three sit side by
   side across the column (the ranges, below). Each photo is four wide to three tall, its corners as round as a part's,
   with one short line under it naming the place. While it slides, the keyboard can reach it, and it shows so */
.t-photos{display:flex;gap:12px;margin-top:24px;padding:0 var(--side);overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:var(--side);
  overscroll-behavior-x:contain;scrollbar-width:none}
.t-photos::-webkit-scrollbar{display:none}
.t-photos:focus-visible{outline:2px solid var(--ember);outline-offset:3px}
.t-photo{flex:0 0 84%;min-width:0;scroll-snap-align:start}
.t-photo img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:18px;background:var(--bg-2)}
.t-photo figcaption{margin-top:9px;font:500 13.5px/1.35 var(--f-body);color:var(--fg-3)}
@media (min-width:600px){.t-photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;overflow:visible;scroll-snap-type:none}}
@media (min-width:1200px){
  .t-photos{gap:20px;margin-top:40px}
  .t-photo img{border-radius:22px}
  .t-photo figcaption{margin-top:12px;font-size:15px}
}

/* ---------- The parts */
.t-sec{padding:56px var(--side) 0}
.t-sec > h2{font-weight:800;font-size:30px;line-height:1.08;letter-spacing:-.035em}
.t-intro{margin-top:12px;font-size:17px;line-height:1.55;color:var(--fg-2)}
.t-cols,.t-pair,.t-four,.t-know{display:grid;gap:16px;margin-top:24px}

/* Where the games are: on a computer three columns (South; North and the drive time box; West and the tip), which is
   the order the page reads in. On a phone one column, as drawn: South, North, West, then the box and the tip */
.t-col{display:contents}
.t-col:nth-child(2) > :first-child{order:2}
.t-col:nth-child(2) > :nth-child(2){order:4}
.t-col:nth-child(3) > :first-child{order:3}
.t-col:nth-child(3) > :nth-child(2){order:5}

/* a group of places */
.t-grp{border:1px solid var(--line);border-radius:22px;background:var(--bg-2);overflow:hidden}
.t-grp-h{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:16px 17px 14px;border-bottom:1px solid var(--line)}
.t-grp-h h3{font-weight:800;font-size:17px;line-height:1.2;letter-spacing:-.02em}
.t-grp-h span{font:500 13px/1.2 var(--f-body);color:var(--fg-3);white-space:nowrap}
.t-row{display:grid;grid-template-columns:26px minmax(0,1fr);gap:12px;padding:15px 17px 16px}
.t-row + .t-row{border-top:1px solid var(--line)}
.t-row .t-pin{position:static;margin:0;width:26px;height:26px;font-size:13px;box-shadow:none}
.t-row .t-pin.t-stop,.t-row .t-pin.t-eat{box-shadow:inset 0 0 0 1.5px #fff}
.t-row .t-pin svg{width:13px;height:13px}
.t-row-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;min-height:26px}
.t-name{padding-top:2px;font-weight:700;font-size:16.5px;line-height:1.3;letter-spacing:-.015em}
.t-tag{display:inline-block;margin-right:8px;padding:4px 7px;border-radius:999px;border:1px solid var(--line-2);font:600 10px/1 var(--f-body);letter-spacing:.1em;text-transform:uppercase;color:var(--fg-2);vertical-align:2px}
.t-ad{margin-top:4px;font:400 15px/1.4 var(--f-body);color:var(--fg-2)}
.t-d{margin-top:6px;font:400 15px/1.45 var(--f-body);color:var(--fg-3)}
.t-d a{color:var(--fg-2);text-decoration:underline;text-decoration-color:rgba(255,122,69,.7);text-underline-offset:3px}
.t-go{position:relative;flex:none;display:inline-flex;align-items:center;gap:4px;padding:6px 0 4px;font:700 13.5px/1 var(--f-head);color:var(--ember);white-space:nowrap;text-decoration:none}
.t-go svg{width:13px;height:13px}
.t-go::after{content:"";position:absolute;inset:-10px -8px}
.t-hours{display:inline-flex;align-items:center;gap:7px;margin-top:10px;padding:7px 11px 7px 9px;border-radius:999px;background:rgba(255,255,255,.05);border:1px solid var(--line-2);font:500 13.5px/1 var(--f-body);color:var(--fg-2)}
.t-hours svg{width:14px;height:14px;color:var(--fg-3)}
/* Where a team can eat and Between games: one card on a phone, a card each from 760 wide */
.t-pair,.t-four{gap:0;border:1px solid var(--line);border-radius:22px;background:var(--bg-2);overflow:hidden}
.t-pair > .t-grp,.t-four > .t-grp{border:0;border-radius:0;background:none}
.t-pair > .t-grp + .t-grp,.t-four > .t-grp + .t-grp{border-top:1px solid var(--line)}

/* how long between two: the browser's own lists, drawn as the boxes (16 px words, so an iPhone does not zoom in when
   one is tapped). Shown only when scripts run */
.t-far{padding:18px 18px 16px;border-radius:22px;border:1px solid rgba(255,122,69,.32);background:rgba(255,122,69,.07)}
html:not(.js) .t-far{display:none}
.t-far h3{font:700 12.5px/1.2 var(--f-body);letter-spacing:.1em;text-transform:uppercase;color:var(--ember)}
.t-sel{display:grid;grid-template-columns:40px minmax(0,1fr);align-items:center;gap:8px 10px;margin-top:14px}
.t-lab{font:500 14px/1 var(--f-body);color:var(--fg-2)}
.t-box{position:relative;min-width:0}
.t-box select{display:block;width:100%;height:44px;margin:0;padding:0 36px 0 14px;-webkit-appearance:none;appearance:none;cursor:pointer;border-radius:12px;background:var(--bg-2);border:1px solid var(--line-2);font:500 16px/1 var(--f-body);color:var(--fg);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}
.t-box svg{position:absolute;right:12px;top:50%;width:16px;height:16px;margin-top:-8px;color:var(--ember);pointer-events:none}
.t-ans{margin-top:16px;font:800 26px/1.1 var(--f-head);letter-spacing:-.03em}
.t-sub{margin-top:6px;font-size:15px;line-height:1.4;color:var(--fg-2)}
.t-fine{margin-top:12px;font-size:13px;line-height:1.45;color:var(--fg-3)}
.t-tip{display:grid;grid-template-columns:20px minmax(0,1fr);gap:12px;padding:16px 18px;border-radius:22px;background:var(--bg-2);border:1px solid var(--line);font-size:15.5px;line-height:1.5;color:var(--fg-2)}
.t-tip svg{width:20px;height:20px;margin-top:2px;color:var(--ember)}
.t-tip b{color:var(--fg);font-weight:600}
.t-small{margin-top:14px;font-size:14.5px;line-height:1.45;color:var(--fg-3)}

/* the weekend */
.t-wk{display:block;margin-top:24px}
.t-wk-map{margin:0 calc(-1 * var(--side));overflow:hidden;aspect-ratio:780/560;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.t-wk-map .t-stage{position:absolute;inset:0}
.t-wk-map .t-credit{position:absolute;right:10px;bottom:8px}
.t-day{margin-top:28px}
.t-day > h3{display:flex;align-items:center;gap:10px;font-weight:800;font-size:20px;line-height:1.2;letter-spacing:-.02em}
.t-day > h3 i{flex:none;width:10px;height:10px;border-radius:50%;background:var(--c)}
.t-slots{margin:14px 0 0 4px;padding-left:22px;border-left:2px solid var(--line)}
.t-slot{position:relative;padding-bottom:22px}
.t-slot:last-child{padding-bottom:0}
.t-slot::before{content:"";position:absolute;left:-29px;top:1px;width:12px;height:12px;border-radius:50%;background:var(--bg);border:2px solid var(--c)}
.t-slot p{margin-top:6px;font-size:16px;line-height:1.5;color:var(--fg-2)}
.t-slot .t-when{font:600 11.5px/1.2 var(--f-body);letter-spacing:.14em;text-transform:uppercase;color:var(--c)}
.t-slot h4{margin-top:8px;font-weight:700;font-size:17px;line-height:1.25;letter-spacing:-.015em}
.t-slot p.t-note{margin-top:8px;font-size:14.5px;line-height:1.45;color:var(--fg-3)}
.t-fri{--c:var(--fg-3)}.t-sat{--c:var(--ember)}.t-sun{--c:var(--gold)}

/* good to know */
.t-know{gap:0}
.t-know li{display:grid;grid-template-columns:20px minmax(0,1fr);gap:12px;padding:16px 18px;font-size:16px;line-height:1.5;color:var(--fg-2)}
.t-know li + li{border-top:1px solid var(--line)}
.t-know svg{width:18px;height:18px;margin-top:3px;color:var(--ember)}

/* send this page: shown only when scripts run */
.t-send{margin:40px var(--side) 0;padding:22px 20px 24px;border-radius:22px;border:1px solid var(--line);background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.01))}
html:not(.js) .t-send{display:none}
.t-send h2{font-weight:800;font-size:20px;line-height:1.2;letter-spacing:-.025em}
.t-send p{margin-top:6px;font-size:16px;line-height:1.5;color:var(--fg-2)}
.t-ghost{display:inline-flex;align-items:center;gap:9px;margin:24px 0 0;padding:14px 22px;border:0;border-radius:999px;background:transparent;cursor:pointer;box-shadow:inset 0 0 0 1px var(--line-2);font:700 15.5px/1 var(--f-head);letter-spacing:-.01em;color:var(--fg);white-space:nowrap}
.t-ghost svg{width:17px;height:17px;color:var(--ember)}

/* the closing block, over the map as the home page's sits over its photo */
.t-end{position:relative;margin-top:48px;padding:120px var(--side) 76px;isolation:isolate;overflow:hidden}
.t-end > picture{display:contents} /* the picture box itself takes no place in the block, on a computer's grid too */
.t-end-bg{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;object-position:68% 46%}
.t-end::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,var(--bg) 0,rgba(12,13,15,.35) 22%,rgba(12,13,15,.62) 52%,rgba(12,13,15,.9) 100%)}
.t-end h2{font-weight:800;font-size:36px;line-height:1.02;letter-spacing:-.04em;text-shadow:0 2px 34px rgba(0,0,0,.5)}
.t-end-sub{margin-top:16px;font-size:18px;line-height:1.5;color:var(--fg);opacity:.9}
.t-end .t-cta{margin-top:24px}
.t-end .t-free{color:var(--fg-2)}
.t-where{position:absolute;right:var(--side);bottom:26px;font:italic 900 20px/1.1 var(--f-place);color:#fff;text-shadow:0 2px 14px rgba(0,0,0,.7)}
.t-scan{display:none}
.t-end .t-credit{position:absolute;left:var(--side);bottom:8px}

.t-src{padding:32px var(--side) 0;font-size:13.5px;line-height:1.55;color:var(--fg-3)}

/* ---------- Narrow phones, which the drawing did not draw */
/* under 390 wide the top map's key shrinks with the map (--u, above), its sides too */
@media (max-width:389.98px){.t-key{left:calc(20 * var(--u));right:calc(20 * var(--u))}}
/* under 375 wide the two lists take the box's whole width, with "From" and "To" above them, so the pair it opens on
   shows in full; and a place's name and Directions don't fit side by side ("VisitLethbridge.com" is one word, and
   needs 371 wide), so Directions goes under the name, in every row alike */
@media (max-width:374.98px){
  .t-far{padding:18px 14px 16px}
  .t-sel{grid-template-columns:minmax(0,1fr);gap:6px}
  .t-sel .t-box + .t-lab{margin-top:6px}
  .t-row-top{flex-direction:column;gap:2px}
}

/* ---------- Middle: 600 to 1,199 wide. The phone's order in one column, 720 wide at most, centred */
@media (min-width:600px) and (max-width:1199.98px){
  .page-trip main{--side:max(20px,calc((100% - 720px) / 2))}
  .t-at{left:var(--xm);top:var(--ym)}
  .t-chip{transform:var(--tm)}
  .t-map [data-r]:not([data-r*="m"]){display:none}
  /* the map drawn for this range, two wide to one tall, the full width of the window and at least 400 tall: from
     600 to 799 wide its sides are cut evenly */
  .t-top-map{display:flex;justify-content:center}
  .t-top-map .t-stage{flex:none;width:max(100%,800px);aspect-ratio:2/1}
  /* Saturday's map: the wide map inside the column, and at least as wide as the column's 720: from 600 to 759 wide
     its sides are cut evenly, so the day, the chips and the credit keep their room */
  .t-wk-map{display:flex;justify-content:center;margin:0;aspect-ratio:auto;border:1px solid var(--line);border-radius:22px}
  .t-wk-map .t-stage{position:relative;inset:auto;flex:none;width:max(100%,718px);aspect-ratio:2240/1000}
  .t-end-bg{object-position:50% 50%}
}
@media (min-width:760px) and (max-width:1199.98px){
  .t-cols{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
  .t-col{display:grid;gap:16px}
  .t-col:nth-child(3){grid-column:1 / -1;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
  .t-pair,.t-four{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;border:0;border-radius:0;background:none;overflow:visible}
  .t-pair > .t-grp,.t-four > .t-grp{border:1px solid var(--line);border-radius:22px;background:var(--bg-2)}
  .t-pair > .t-grp + .t-grp,.t-four > .t-grp + .t-grp{border-top:1px solid var(--line)}
  /* two groups of places (Banff's): the first down the left, then the second, the drive time box and the tip down the
     right, where the third column's two would sit side by side under them */
  .t-cols.t-two{grid-template-rows:auto 1fr}
  .t-cols.t-two > .t-col:first-child{grid-row:span 2}
  .t-cols.t-two > .t-col:nth-child(3){grid-column:2;grid-template-columns:minmax(0,1fr)}
}

/* ---------- Large: 1,200 wide and up, as drawn at 1,440. The site's 1,120 column */
@media (min-width:1200px){
  .page-trip main{--side:max(var(--gut),calc((100% - 1200px) / 2 + var(--gut)));padding-bottom:40px}
  .t-at{left:var(--xl);top:var(--yl)}
  .t-chip{transform:var(--tl)}
  .t-map [data-r]:not([data-r*="l"]){display:none}

  /* The first screen, 760 tall at 1,440 as drawn. The map keeps its shape and is at least as tall as the first
     screen: where that makes it wider than the window (under about 1,330 wide) it is held to the right edge, so the
     pins stay clear of the words; where it is taller (over about 1,630 wide) it is centred, its top and bottom cut
     evenly. From 1,920 wide it stops growing and stays centred, its sides fading into the page */
  .t-top{height:clamp(700px,52.78vw,860px)}
  .t-top-map{position:absolute;inset:0;display:flex;align-items:center;justify-content:flex-end}
  .t-top-map .t-stage{flex:none;width:min(1920px,max(100%,calc(clamp(700px,52.78vw,860px) * 2880 / 1519)));aspect-ratio:2880/1519}
  .t-top-map::before{background:
    linear-gradient(90deg,rgba(12,13,15,.97) 0%,rgba(12,13,15,.95) 24%,rgba(12,13,15,.8) 37%,rgba(12,13,15,.3) 49%,rgba(12,13,15,0) 58%),
    linear-gradient(180deg,rgba(12,13,15,.82) 0,rgba(12,13,15,0) 15%),
    linear-gradient(0deg,rgba(12,13,15,1) 0,rgba(12,13,15,.6) 6%,rgba(12,13,15,0) 15%)}
  .t-pin{width:26px;height:26px;margin:-13px 0 0 -13px;font-size:13px;box-shadow:0 0 0 3px rgba(12,13,15,.9),0 0 0 4.5px rgba(255,255,255,.2),0 8px 18px rgba(0,0,0,.6)}
  .t-pin.t-stop,.t-pin.t-eat{box-shadow:inset 0 0 0 1.5px #fff,0 0 0 3px rgba(12,13,15,.9),0 8px 18px rgba(0,0,0,.6)}
  .t-pin svg{width:13px;height:13px}
  .t-area{font-size:11px}
  .t-water{font-size:13px}
  .t-road{font-size:11.5px}
  .t-chip{gap:7px;padding:6px 12px 6px 10px;font-size:13.5px}
  /* the words: on the column, 152 from the top; from 1,200 to 1,440 wide the place's name and the block shrink with
     the window */
  .t-top-copy{position:absolute;left:var(--side);top:152px;width:clamp(480px,40.3vw,580px);padding:0}
  .t-top-copy .t-credit{display:none}
  .t-eyebrow{margin-top:0;font-size:13px}
  .t-top h1{margin-top:18px;font-size:38px;line-height:1.1;letter-spacing:-.035em}
  .t-top h1 em{margin:4px 0 0 -4px;font-size:clamp(84px,7.23vw,104px);line-height:1;letter-spacing:-.02em}
  .t-by{margin-top:18px;font-size:15px}
  .t-lead{margin-top:18px;max-width:520px;font-size:19px}
  .t-top .t-cta{margin-top:28px}
  .t-key{left:auto;right:max(36px,calc((100% - 1920px) / 2 + 36px));bottom:40px;gap:8px 18px;font-size:13.5px;padding:9px 14px 9px 12px;border-radius:999px;background:rgba(17,18,20,.86);border:1px solid rgba(255,255,255,.1)}
  .t-key i{width:18px;height:18px;font-size:10px}
  .t-top-credit{display:block;position:absolute;right:max(36px,calc((100% - 1920px) / 2 + 36px));bottom:14px;font-size:11px;z-index:2}

  .t-glance{margin:0 var(--side);border-top:0}
  .t-glance div{padding:26px 24px 26px 0}
  .t-glance div + div{padding-left:28px}
  .t-glance b{font-size:30px}
  .t-glance span{margin-top:8px;font-size:15.5px}
  .t-rail-wrap{margin-top:21px;padding:7px 0 7px calc(var(--side) - 5px)}
  .t-rail{margin:0;padding:5px;gap:2px}
  .t-rail a{padding:10px 16px;font-size:14px}

  .t-sec{padding:96px var(--side) 0}
  .t-sec > h2{font-size:48px;line-height:1.04}
  .t-intro{margin-top:14px;max-width:720px;font-size:19px}
  .t-cols{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:36px;align-items:start}
  .t-col{display:grid;gap:20px}
  .t-pair,.t-four{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:36px;border:0;border-radius:0;background:none;overflow:visible}
  .t-pair > .t-grp,.t-four > .t-grp{border:1px solid var(--line);border-radius:22px;background:var(--bg-2)}
  .t-pair > .t-grp + .t-grp,.t-four > .t-grp + .t-grp{border-top:1px solid var(--line)}
  .t-know{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:36px}
  .t-grp-h{padding:20px 22px 16px}
  .t-grp-h h3{font-size:19px}
  .t-row{grid-template-columns:28px minmax(0,1fr);gap:14px;padding:20px 22px 22px}
  .t-row .t-pin{width:28px;height:28px;font-size:13.5px}
  .t-far{padding:22px 22px 20px}
  .t-tip{padding:20px 22px;font-size:16px}
  .t-know li{padding:24px 26px;font-size:16.5px}
  .t-know li + li{border-top:0;border-left:1px solid var(--line)}

  .t-wk{margin-top:40px}
  .t-wk-map{margin:0;aspect-ratio:2240/1000;border:1px solid var(--line);border-radius:28px}
  .t-wk-map .t-credit{right:16px;bottom:12px;font-size:11px}
  .t-days{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px;margin-top:44px;align-items:start}
  .t-day{margin-top:0}
  .t-day > h3{font-size:24px}
  .t-slot h4{font-size:18.5px}
  .t-slot p{font-size:16.5px}
  .t-slot p.t-note{font-size:14.5px}
  .t-daytag{left:16px;top:16px;font-size:13.5px;padding:8px 14px 8px 12px}
  .t-daytag b{font-size:13px}

  .t-send{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:28px;align-items:center;margin:72px var(--side) 0;padding:30px 34px;border-radius:28px}
  .t-send h2{font-size:24px}
  .t-ghost{margin-top:0}

  .t-end{margin-top:96px;min-height:620px;padding:0 var(--side);display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:40px;align-items:end}
  .t-end-bg{object-position:50% 50%}
  .t-end::before{background:
    linear-gradient(180deg,var(--bg) 0,rgba(12,13,15,.2) 18%,rgba(12,13,15,0) 40%),
    linear-gradient(90deg,rgba(12,13,15,.94) 0,rgba(12,13,15,.8) 30%,rgba(12,13,15,.3) 58%,rgba(12,13,15,.12) 100%),
    linear-gradient(0deg,rgba(12,13,15,.85) 0,rgba(12,13,15,0) 36%)}
  .t-end-copy{padding:150px 0 88px}
  .t-end h2{font-size:72px;line-height:1;max-width:11ch}
  .t-end-sub{margin-top:18px;font-size:19px;max-width:46ch}
  .t-end .t-cta{margin-top:30px}
  .t-scan{display:block;margin-bottom:88px;padding:22px 22px 20px;border-radius:30px;background:rgba(22,23,26,.78);border:1px solid rgba(255,255,255,.12)}
  .t-qr{padding:20px;border-radius:18px;background:#fff}
  .t-qr img{width:100%;height:auto}
  .t-scan p{margin-top:16px;font:600 17px/1.3 var(--f-head);letter-spacing:-.01em;color:var(--fg);text-wrap:balance}
  /* the place's name in the corner, as the top's key: from 1,920 wide it keeps to the map's own width */
  .t-where{right:max(36px,calc((100% - 1920px) / 2 + 36px));bottom:26px;font-size:26px}
  .t-end .t-credit{bottom:32px;font-size:11px}

  /* the sources line ends 820 from the window's left, as drawn, and is never under 660 wide (the drawn width) */
  .t-src{padding:40px var(--side) 0;max-width:max(calc(820px + var(--side)),calc(660px + 2 * var(--side)));font-size:14px}
}
/* From 1,920 wide the top map stops growing: centred, its sides fading into the page */
@media (min-width:1920px){
  .t-top-map{justify-content:center}
  .t-top-map .t-stage::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,var(--bg) 0,rgba(12,13,15,0) 12%,rgba(12,13,15,0) 88%,var(--bg) 100%)}
}

/* ---------- A road trip page (src/pages/trips/calgary-to-yellowstone.astro): the whole drive on one map at the top,
   as drawn on a phone (Nov 19, 2026), and the parts a town page does not have. Each range holds as a town page's top
   does: the map first and the words under it up to 1,199 wide, then from 1,200 the map filling the first screen with
   the words on its left. The drive's maps are drawn for each range: 780 by 960 on a phone, 2,000 by 1,250 on a tablet
   or a small laptop (its sides cut evenly from 600 to 799 wide, as a town's are), and 2,880 by 1,519 on a computer,
   the town map's own shape, so a computer's top needs nothing of its own */
@media (max-width:599.98px){.t-drive .t-top-map .t-stage{aspect-ratio:780/960}}
@media (min-width:600px) and (max-width:1199.98px){.t-drive .t-top-map .t-stage{aspect-ratio:2000/1250}}
/* the drawn shading, lighter at the bottom than a town map's, where the drive ends */
@media (max-width:1199.98px){
  .t-drive .t-top-map::before{background:
    linear-gradient(180deg,rgba(12,13,15,.9) 0,rgba(12,13,15,.55) 10%,rgba(12,13,15,0) 20%),
    linear-gradient(0deg,rgba(12,13,15,1) 0,rgba(12,13,15,.5) 4%,rgba(12,13,15,0) 10%)}
}
/* The place's name, longer than a town's: 52 at 390, as drawn, and smaller on a narrower phone, so it keeps one line */
.t-top h1 em.t-long{font-size:clamp(40px,13.33vw,52px)}
/* the three facts under the top: under 390 wide their large words shrink with the phone, so "Passport" fits its third */
@media (max-width:389.98px){.t-drive + .t-glance b{font-size:calc(21 * var(--u))}}
/* a page whose facts are words, not numbers (Calgary to Kelowna's "Winter tires", 112 px at 21): on a phone all three
   large words shrink with the screen, so the longest keeps one line in its third (96 px at 390 wide, 73 at 320) */
@media (max-width:599.98px){.t-drive + .t-glance.t-fit b{font-size:min(21px,calc(6.1vw - 6.25px))}}
/* the row of three buttons, as drawn: none needs the room a town page's "Eat" takes (.t-rail a, above) */
@media (max-width:1199.98px){.t-drive ~ .t-rail-wrap .t-rail a{padding:9px 8px}}
/* on the drive's map: the province and the states dimmer than the countries, a town as a dot with its name beside it,
   a small orange pin where the drive starts and a dark one with a white ring at the crossing */
.t-area.t-dim{font-size:calc(9 * var(--u));color:rgba(245,243,239,.58)}
.t-dot{position:absolute;width:calc(7 * var(--u));height:calc(7 * var(--u));margin:calc(-3.5 * var(--u)) 0 0 calc(-3.5 * var(--u));border-radius:50%;background:#F5F3EF;box-shadow:0 0 0 2px rgba(12,13,15,.9)}
.t-town{position:absolute;font:500 calc(11.5 * var(--u))/1 var(--f-body);color:rgba(245,243,239,.86);white-space:nowrap;text-shadow:0 0 5px rgba(12,13,15,.95),0 1px 2px rgba(12,13,15,.9)}
.t-town.t-s{transform:translate(calc(9 * var(--u)),-50%)}
.t-town.t-e{transform:translate(calc(-100% - 9 * var(--u)),-50%)}
/* a town's name nudged off the line, where the drive runs east and west (Calgary to Kelowna): its own --tdx and --tdy,
   in the drawing's pixels as a chip's nudge is, and a fifth further on a computer, as a chip's */
.t-town.t-nudge{translate:calc(var(--tdx) * var(--u)) calc(var(--tdy) * var(--u))}
.t-pin.t-start{width:calc(14 * var(--u));height:calc(14 * var(--u));margin:calc(-7 * var(--u)) 0 0 calc(-7 * var(--u))}
.t-pin.t-gate{width:calc(16 * var(--u));height:calc(16 * var(--u));margin:calc(-8 * var(--u)) 0 0 calc(-8 * var(--u));box-shadow:inset 0 0 0 2px #fff,0 0 0 2.5px rgba(12,13,15,.9),0 6px 14px rgba(0,0,0,.6)}

/* Getting there from Canada: the drawn cards, each a row with its icon in a dark ring (one card on a phone, a card each
   from 760 wide, as .t-four) */
.t-info .t-name{padding-top:3px}
.t-info-t{margin-top:6px;font:400 15.5px/1.5 var(--f-body);color:var(--fg-2)}
.t-info-note{margin-top:8px;font:400 14.5px/1.45 var(--f-body);color:var(--fg-3)}
.t-info-note a{color:var(--fg-2);text-decoration:underline;text-decoration-color:rgba(255,122,69,.7);text-underline-offset:3px}

/* The trip, day by day: a town page's days, each with how far it drives under its heading. A long heading wraps with
   its dot on its first line; a part of the day with no time of day starts at its heading, its dot beside it */
.t-tone-ember{--c:var(--ember)}.t-tone-gold{--c:var(--gold)}.t-tone-grey{--c:var(--fg-3)}
.t-road-days .t-day > h3{align-items:flex-start}
.t-road-days .t-day > h3 i{margin-top:calc((1.2em - 10px) / 2)}
.t-day-drive{margin:6px 0 0 20px;font:500 14.5px/1.4 var(--f-body);color:var(--fg-3)}
.t-slot > h4:first-child{margin-top:0}
.t-slot:has(> h4:first-child)::before{top:5px}

@media (min-width:1200px){
  /* the place's name, as large as fits the words' block on one line: 90 at 1,440 (the block is 580 wide), 75 at 1,200
     (484 wide) */
  .t-top h1 em.t-long{font-size:clamp(75px,6.29vw,90px)}
  /* the opening lines never end on one word alone (at 1,200 wide, "day.") */
  .t-drive .t-lead{text-wrap:pretty}
  .t-area.t-dim{font-size:10.5px}
  .t-dot{width:8px;height:8px;margin:-4px 0 0 -4px}
  .t-town{font-size:13px}
  .t-town.t-s{transform:translate(10px,-50%)}
  .t-town.t-e{transform:translate(calc(-100% - 10px),-50%)}
  .t-town.t-nudge{translate:calc(var(--tdx) * 1.2px) calc(var(--tdy) * 1.2px)}
  .t-pin.t-start{width:16px;height:16px;margin:-8px 0 0 -8px}
  .t-pin.t-gate{width:18px;height:18px;margin:-9px 0 0 -9px;box-shadow:inset 0 0 0 2px #fff,0 0 0 3px rgba(12,13,15,.9),0 8px 18px rgba(0,0,0,.6)}
  .t-info-t{font-size:16px}
  .t-day-drive{font-size:15px}
  /* six lines in Good to know: two rows of three, a line between the rows */
  .t-know li:nth-child(3n+1){border-left:0}
  .t-know li:nth-child(n+4){border-top:1px solid var(--line)}
}

/* ---------- The Trips page (src/pages/trips.astro): every trip page as a card, in the trip pages' column, under the
   header as a trip page's words sit. No drawing: the parts are the trip pages' own (the eyebrow, a title with its
   place name in the place typeface, a card with a 1 px line and 22 px corners), one card a row on a phone, two from
   760 wide and three from 1,200. A card answers to its title's link anywhere on it, and its line turns night Ember
   under a mouse (never under a finger, where it would stay lit, as the site's other cards) or when its link has the
   keyboard */
.t-list{padding:calc(var(--top) + 28px) var(--side) 24px}
.t-list h1{font-weight:800;font-size:38px;line-height:1.08;letter-spacing:-.035em}
.t-list-lead{margin-top:12px;max-width:46ch;font-size:17px;line-height:1.55;color:var(--fg-2)}
.t-cards{display:grid;gap:16px;margin-top:28px}
.t-card{position:relative;border:1px solid var(--line);border-radius:22px;background:var(--bg-2);overflow:hidden;transition:border-color .2s var(--ease)}
.t-card:has(a:focus-visible){border-color:var(--ember)}
@media (hover:hover){.t-card:hover{border-color:var(--ember)}}
.t-card img{display:block;width:100%;height:auto;aspect-ratio:2/1;object-fit:cover;border-bottom:1px solid var(--line)}
.t-card-words{padding:16px 18px 20px}
.t-card .t-eyebrow{margin-top:0}
.t-card h2{margin-top:8px;font-weight:800;font-size:21px;line-height:1.2;letter-spacing:-.02em}
.t-card h2 a{color:var(--fg)}
.t-card h2 a::after{content:"";position:absolute;inset:0;z-index:1}
.t-card h2 em{font-family:var(--f-place);font-style:italic;font-weight:900;letter-spacing:-.01em}
.t-card-text{margin-top:8px;font-size:15px;line-height:1.45;color:var(--fg-2)}
@media (min-width:760px){.t-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1200px){
  .t-list{padding-top:calc(var(--top) + 56px)}
  .t-list h1{font-size:48px}
  .t-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
}
