/* Destination Hydration: the Places pages (/service-area/ and every town page; built 2026-11-11 from the Bozeman and
   Billings pages, the model for every other town). Loads after base.css, dh.css and inner.css. Prefix pl-.
   The two sides always get the same piece, the same size and the same words: Billings is never second to Bozeman. */

/* a town at a glance: four plain facts, like the signs at the base area */
.pl-glance{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(10px,1.2vw,20px);margin:0;padding:0}
.pl-glance div{position:relative;overflow:hidden;margin:0;padding:clamp(20px,1.8vw,30px) clamp(20px,1.8vw,30px) clamp(24px,2vw,34px);border-radius:24px;background:var(--ice);box-shadow:0 0 0 1px rgba(13,62,91,.05)}
.pl-glance div::after{content:"";position:absolute;right:-10px;bottom:-1px;width:120px;height:44px;opacity:.08;background:var(--navy);clip-path:polygon(0 100%,30% 30%,46% 60%,68% 0,100% 100%);pointer-events:none}
.pl-glance dt{margin:0 0 10px;font:700 12px/1.2 Montserrat,system-ui,sans-serif;letter-spacing:.2em;text-transform:uppercase;color:#186E74}
.pl-glance dd{position:relative;z-index:1;margin:0;font:800 clamp(19px,1.4vw,26px)/1.2 Montserrat,system-ui,sans-serif;letter-spacing:-.01em;color:var(--navy);text-wrap:balance}
.pl-glance__k{margin:0 0 clamp(14px,1.4vw,22px)}

/* what the town books us for: a card per need (the card opens the need page), the runs that suit it under it (each
   opens its run page) */
.pl-needs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(12px,1.3vw,22px);list-style:none;margin:0;padding:0}
.pl-need{position:relative;display:flex;flex-direction:column;height:100%;overflow:hidden;padding:clamp(24px,2vw,36px);border-radius:24px;background:#fff;
  box-shadow:0 0 0 1px rgba(13,62,91,.06),0 18px 46px rgba(13,62,91,.05);transition:transform .35s cubic-bezier(.2,.8,.2,1),box-shadow .35s ease}
.pl-need::after{content:"";position:absolute;right:-10px;bottom:-1px;width:120px;height:44px;opacity:.08;background:var(--navy);clip-path:polygon(0 100%,30% 30%,46% 60%,68% 0,100% 100%);pointer-events:none}
.pl-need:hover,.pl-need:focus-within{transform:translateY(-4px);box-shadow:0 0 0 1px rgba(13,62,91,.08),0 26px 56px rgba(13,62,91,.12)}
.pl-need__name{margin:0;font:800 clamp(22px,1.6vw,30px)/1.12 Montserrat,system-ui,sans-serif;letter-spacing:-.012em;color:var(--navy)}
.pl-need__name a{display:inline-flex;align-items:center;gap:12px;min-height:44px;color:inherit;text-decoration:none}
.pl-need__name a::before{content:"";position:absolute;inset:0;z-index:0;border-radius:24px}
.pl-need__name svg{flex:none;width:18px;height:11px;color:var(--teal-deep);transition:transform .2s}
.pl-need:hover .pl-need__name svg{transform:translateX(4px)}
.pl-need__line{margin:6px 0 0;max-width:42ch;font-size:clamp(16.5px,1.05vw,18.5px);line-height:1.6;color:var(--slate)}
.pl-need__runs{position:relative;z-index:1;display:grid;gap:0;margin:auto 0 0;padding:16px 0 0;list-style:none}
.pl-need__line+.pl-need__runs{margin-top:auto}
.pl-need__runs li+li{border-top:1px solid rgba(13,62,91,.1)}
.pl-need__runs a{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;min-height:48px;padding:6px 0;color:var(--navy);text-decoration:none}
.pl-need__runs .oa-mk{width:20px;height:20px}.pl-need__runs .oa-mk--wide{width:32px}
.pl-need__runs b{font:800 15.5px/1.2 Montserrat,system-ui,sans-serif;text-transform:uppercase;letter-spacing:.02em}
.pl-need__runs i{font:700 18px/1 Montserrat,system-ui,sans-serif;font-style:normal;font-variant-numeric:tabular-nums lining-nums}
.pl-need__runs a:hover b,.pl-need__runs a:focus-visible b{text-decoration:underline;text-decoration-thickness:3px;text-underline-offset:5px;text-decoration-color:var(--teal)}
.pl-need__top{display:flex;align-items:center;gap:10px;margin:0 0 10px;font:700 12px/1.2 Montserrat,system-ui,sans-serif;letter-spacing:.18em;text-transform:uppercase;color:var(--teal-deep)}

/* a side of the map: its photo, its big town, the side's own map from the home page, every town as a link */
.pl-sides{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(14px,1.6vw,28px);align-items:stretch}
.pl-side{position:relative;display:flex;flex-direction:column;overflow:hidden;border-radius:30px;background:#fff;box-shadow:0 30px 80px rgba(13,62,91,.08),0 0 0 1px rgba(13,62,91,.05)}
.pl-side__pic{position:relative;margin:0}
.pl-side__pic img{display:block;width:100%;height:auto;aspect-ratio:16/8;object-fit:cover;object-position:var(--pos,50% 50%)}
.pl-side__credit{margin:0;padding:10px clamp(22px,2.4vw,44px) 0;font-size:13px;line-height:1.45;color:#4A5B66}
.pl-side__credit a{color:inherit}
.pl-side__body{display:flex;flex-direction:column;flex:1;padding:clamp(20px,2vw,36px) clamp(22px,2.4vw,44px) clamp(26px,2.6vw,48px)}
.pl-side__k{display:flex;align-items:center;gap:10px;margin:0;font:800 13px/1.2 Montserrat,system-ui,sans-serif;letter-spacing:.2em;text-transform:uppercase;color:var(--navy)}
.pl-side__hub{display:inline-flex;align-items:center;gap:16px;align-self:flex-start;min-height:56px;margin:8px 0 0;font:800 clamp(38px,3.6vw,72px)/1 Montserrat,system-ui,sans-serif;letter-spacing:-.03em;color:var(--navy);text-decoration:none}
.pl-side__hub svg{flex:none;width:clamp(26px,2vw,38px);height:clamp(16px,1.2vw,23px);color:var(--teal-deep);transition:transform .2s}
.pl-side__hub:hover svg,.pl-side__hub:focus-visible svg{transform:translateX(5px)}
.pl-side__hub:hover span{text-decoration:underline;text-decoration-thickness:4px;text-underline-offset:8px;text-decoration-color:var(--teal)}
.pl-side__line{margin:10px 0 0;max-width:46ch;font-size:clamp(16.5px,1.05vw,18.5px);line-height:1.6;color:var(--slate)}
.pl-side__map{margin:clamp(14px,1.6vw,26px) 0 clamp(16px,1.6vw,26px);padding:clamp(8px,1vw,16px);border-radius:22px;background:var(--ice)}
.pl-side__map .oa-tmap{width:100%;height:auto;overflow:hidden}
/* on wide screens the Billings map is drawn smaller than Bozeman's, so its names step up; below that the home page's
   own sizes for narrower screens (bigger still) stay in charge */
@media (min-width:1000px){
  .pl-side__map .oa-tmap--bil .oa-town text{font-size:23px}
  .pl-side__map .oa-tmap--bil .oa-town--big text{font-size:27px}
}
.pl-side .pg-chips{margin-top:0;padding-top:clamp(14px,1.4vw,22px)}
/* the side maps were drawn for the home page phone view: at wider sizes Three Forks drops under its dot, clear of the
   side label, and the "and Bridger Canyon" note (Bridger Canyon is in the town list) steps aside */
.pl-side__map .oa-tmap--boz [data-town="Three Forks"] text{transform:translate(-14px,46px)}
.pl-side__map .oa-tmap .oa-region__more{display:none}
.pl-side__more{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin:clamp(16px,1.6vw,24px) 0 0}

/* a town page's nearby towns: its side's map beside the towns, and the other side one tap away */
.pl-near{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:clamp(20px,3vw,72px);align-items:center}
.pl-near .pl-side__map{margin:0}
/* the Billings side map is taller than it is wide: on big screens it stops growing, so it never towers over its towns */
.pl-near .pl-side__map .oa-tmap{max-height:600px}
.pl-near__words .pg-chips{margin-top:clamp(18px,1.8vw,28px)}
.pl-near__other{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:clamp(22px,2.2vw,34px) 0 0;padding-top:clamp(18px,1.8vw,26px);border-top:1px solid rgba(13,62,91,.12)}
.pl-near__k{flex-basis:100%;margin:0 0 4px;font:700 13px/1.3 Montserrat,system-ui,sans-serif;letter-spacing:.16em;text-transform:uppercase;color:#40545F}
.pl-cred{margin:0}

/* where in town: their own photo, their words, the reviews that name the town */
.pl-where .oa-quotes{margin-top:clamp(22px,2.4vw,36px)}
.pl-where .oa-quote{padding:clamp(22px,2.2vw,38px)}
.pl-where .oa-quote blockquote p{font-size:clamp(18px,1.25vw,23px)}
.pl-where .oa-quote:nth-child(2){margin-left:0}
.pl-where .oa-score{margin-top:clamp(26px,2.6vw,40px)}
.pl-say{margin:clamp(20px,2vw,30px) 0 0;padding:0 0 0 22px;border-left:4px solid var(--teal);font:500 clamp(19px,1.35vw,25px)/1.5 Cabin,system-ui,sans-serif;color:var(--navy)}
.pl-say p{margin:0}
.pl-photo-cap{margin-top:12px;font:700 13px/1.4 Montserrat,system-ui,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#33515F}

@media (max-width:1199px){
  .pl-needs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pl-glance{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:999px){
  .pl-sides{grid-template-columns:minmax(0,1fr)}
  .pl-near{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:640px){
  .pl-needs{grid-template-columns:minmax(0,1fr)}
  .pl-need{text-align:center;align-items:center}
  .pl-need__name a{justify-content:center}
  .pl-need__line{margin-left:auto;margin-right:auto}
  .pl-need__runs{width:100%;text-align:left}
  .pl-glance div{text-align:center}
  .pl-glance__k{justify-content:center}
  .pl-glance__k::after{content:"";flex:0 0 30px;height:3px;border-radius:3px;background:var(--teal)}
  .pl-side__body{align-items:center;text-align:center}
  .pl-side__k{justify-content:center}
  .pl-side__hub{align-self:center}
  .pl-side__line{margin-left:auto;margin-right:auto}
  .pl-side__credit{text-align:center}
  .pl-side__map{width:100%}
  .pl-near__words{text-align:center}
  .pl-near__other{justify-content:center;text-align:center}
  .pl-where .pg-words{text-align:center}
  .pl-where .oa-k{justify-content:center}
  .pl-where .oa-k::after{content:"";flex:0 0 30px;height:3px;border-radius:3px;background:var(--teal)}
  .pl-where .pg-words p{margin-left:auto;margin-right:auto}
  .pl-where .oa-quote{text-align:left}
  .pl-where .oa-score{justify-content:center}
  .pl-say{padding:18px 0 0;border-left:0;border-top:4px solid var(--teal);max-width:30ch;margin-left:auto;margin-right:auto}
  .pl-photo-cap{text-align:center}
}
@media (prefers-reduced-motion:reduce){
  .pl-need{transition:box-shadow .35s ease}
  .pl-need:hover,.pl-need:focus-within{transform:none}
}

/* the hub's trail map (the home page's, every town on it), above the two sides */
.pl-map{margin:0 0 clamp(16px,1.8vw,30px)}
.pl-nw{white-space:nowrap}

/* ---- every other place's page (written by tools/build-towns.mjs, 2026-11-11) and the hub's list of every place.
   Added rules only: nothing above changes, so the Bozeman, Billings and hub pages look as approved. ---- */
/* at a glance with two, three or four facts (a place has as many as the Census and the research give it) */
.pl-glance--n2{grid-template-columns:repeat(2,minmax(0,1fr));max-width:900px}
.pl-glance--n3{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:760px){
  .pl-glance--n3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pl-glance--n3>div:first-child{grid-column:1/-1}
}
/* what is around the place: its landmarks, from the research (0 to 3) */
.pl-marks{margin-top:clamp(36px,3.6vw,64px)}
.pl-marks__k{margin:0 0 clamp(14px,1.4vw,22px)}
.pl-marks__list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(10px,1.2vw,20px);list-style:none;margin:0;padding:0}
.pl-marks__list--n1{grid-template-columns:minmax(0,1fr);max-width:760px}
.pl-marks__list--n2{grid-template-columns:repeat(2,minmax(0,1fr))}
.pl-mark{position:relative;overflow:hidden;padding:clamp(22px,2vw,34px);border-radius:24px;background:#fff;box-shadow:0 0 0 1px rgba(13,62,91,.1),0 18px 46px rgba(13,62,91,.05)}
.pl-mark::before{content:"";display:block;width:30px;height:3px;margin:0 0 16px;border-radius:3px;background:var(--teal)}
.pl-mark__name{margin:0;font:800 clamp(19px,1.35vw,24px)/1.2 Montserrat,system-ui,sans-serif;letter-spacing:-.01em;color:var(--navy);text-wrap:balance}
.pl-mark__line{margin:8px 0 0;font-size:clamp(16px,1vw,18px);line-height:1.6;color:var(--slate)}
/* three needs sit in one row from tablet up; the link to every need under them */
@media (min-width:900px){.pl-needs--n3{grid-template-columns:repeat(3,minmax(0,1fr))}}
.pl-needs__more{margin:clamp(22px,2.2vw,34px) 0 0}
/* a bag as the opening picture: the whole card opens its run */
.pl-bag{padding:0}
.pl-bag__a{display:grid;justify-items:center;width:100%;padding:clamp(28px,3vw,56px) 28px clamp(28px,2.6vw,44px);color:inherit;text-decoration:none;border-radius:inherit}
.pl-bag__a:hover .pg-bag__name,.pl-bag__a:focus-visible .pg-bag__name{text-decoration:underline;text-decoration-thickness:3px;text-underline-offset:6px;text-decoration-color:var(--teal)}
/* nearby: the five nearest places, then the side's city and every town */
.pl-nearby .pg-head{margin-bottom:clamp(20px,2vw,32px)}
/* the hub: every place on a side, grouped by county */
.pl-cos{display:grid;gap:clamp(16px,1.6vw,24px);padding-top:clamp(14px,1.4vw,22px)}
.pl-side .pl-co .pg-chips{padding-top:0}
.pl-co__k{margin:0 0 10px;font:700 12px/1.2 Montserrat,system-ui,sans-serif;letter-spacing:.18em;text-transform:uppercase;color:var(--teal-deep)}
.pg-chips a b{font-weight:800}
@media (max-width:999px){.pl-marks__list,.pl-marks__list--n2{grid-template-columns:minmax(0,1fr)}}
@media (max-width:640px){
  .pl-marks__k{justify-content:center}
  .pl-marks__k::after{content:"";flex:0 0 30px;height:3px;border-radius:3px;background:var(--teal)}
  .pl-mark{text-align:center}
  .pl-mark::before{margin-left:auto;margin-right:auto}
  .pl-needs__more{text-align:center}
}
/* nearby on a wide screen: the heading on the left, the places and the side on the right */
@media (min-width:1000px){
  .pl-nearby__grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:clamp(28px,4vw,110px);align-items:start}
  .pl-nearby .pl-nearby__grid .pg-head{margin:0}
  .pl-nearby .pg-chips a{min-height:48px;padding:0 22px;font-size:15.5px}
}
