/* Beat `lp-trips` of the landing page (LP, 2026-11-14, round two 2026-11-15; .scratch/ui_integration/briefs/LP_DESIGN.md §5,
   §7 and §8.5, brief LP2_B3): its OWN styles only (its object, inside templates/dashboard/landing/trips.html). The type,
   the content box, the night band, the strings and the dock are the frame's (static/css/a2/landing.css). Flat, every
   class lp-trips-.

   The object: THE ROUTE, one row of the six main cities (the owner, 2026-11-15: "just show one row of main cities").
   They stand on a grid laid in the route's order (.lp-trips-route, an <ol>):
     · 1000px and wider: ONE row across the whole content box, right to left from where the string arrives; the
       pearls sized from the box (100cqw / 7.8, so the five gaps are each .36 of a pearl and the row fills the column:
       about 206px at 2000 wide, 172 at 1728, 143 at 1440, 127 at 1280, 99 at 1000);
     · below 1000px (one row would put the pearls under 100px and the names in their art under 10px): the phone's
       zigzag down the page, the cities alternating right and left (three on each side), at the phone's spacing and
       centred in the column, a pressed city's places beside it.
   static/js/a2/landing/trips.js draws the teal string through their centres (.lp-trips-rt, the end in the string's
   dot) and writes a pressed city's places under it (beside it in the zigzag). The string's two states are the
   frame's: thin and quiet at rest, 3.2px full colour while the section is `lp-live`. */

.lp-trips{--lp-trips-c:18,140,132}
/* the beat's foot keeps the docked press clear of a pressed city's places, which run on about 48px past the row's box
   (round four, 2026-11-16: the press's capsule is twice its old size, and Tehran, rung at rest, stands right above
   it): the frame's --lp-foot and those 48px */
.lp-beat.lp-trips{padding-bottom:max(var(--lp-pb),calc(var(--lp-foot) + 48px))}

/* the object's box: its height is the route's */
.lp-trips-ob{min-height:0;container-type:inline-size}

/* the string, under the pearls */
.lp-trips-rt{position:absolute;left:0;top:0;z-index:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.lp-trips-rp{fill:none;stroke:rgba(var(--lp-trips-c),.62);stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round;transition:stroke-width .3s ease-in-out,stroke .3s ease-in-out}
.lp-trips-rd{fill:rgba(var(--lp-trips-c),.62);transition:fill .3s ease-in-out}
.lp-trips.lp-live .lp-trips-rp{stroke:rgb(var(--lp-trips-c));stroke-width:3.2px}
.lp-trips.lp-live .lp-trips-rd{fill:rgb(var(--lp-trips-c))}

/* the stops: one row in the route's order, Tehran at the right where the string arrives, Mashhad at the left where it
   ends. Under the row the box keeps 56px and a pressed city's places run on into the beat's own foot (absolutely
   placed, so the row never moves), still well clear of its end. */
.lp-trips-route{--lp-trips-p:clamp(88px,calc(100cqw / 7.8),280px);--lp-trips-pb:56px;--lp-trips-tail:26px;position:relative;z-index:1;display:grid;grid-template-columns:repeat(6,var(--lp-trips-p));grid-auto-rows:var(--lp-trips-p);justify-content:space-between;margin:0;padding:0 0 var(--lp-trips-pb) var(--lp-trips-tail);list-style:none}
/* the row stands in by the string's last run (--lp-trips-tail, trips.js reads it), so the string's dot, past the last
   city, sits on the column's left edge, under the statement's (review R9: it stood 26px left of it) */
.lp-trips-i:nth-child(1){grid-area:1 / 6}
.lp-trips-i:nth-child(2){grid-area:1 / 5}
.lp-trips-i:nth-child(3){grid-area:1 / 4}
.lp-trips-i:nth-child(4){grid-area:1 / 3}
.lp-trips-i:nth-child(5){grid-area:1 / 2}
.lp-trips-i:nth-child(6){grid-area:1 / 1}

/* a city: its pearl (the kit's flat pearl, painted over the still <img> a page with no script shows) */
.lp-trips-i{position:relative;width:var(--lp-trips-p);height:var(--lp-trips-p);align-self:center}
.lp-trips-c{position:relative;display:block;width:100%;height:100%;margin:0;padding:0;border:0;border-radius:50%;background:none;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .32s cubic-bezier(.3,1.5,.5,1),box-shadow .2s}
.lp-trips-im,.lp-trips-c canvas{position:absolute;left:0;top:0;display:block;width:100%;height:100%;border-radius:50%}
.lp-trips-im{object-fit:cover;box-shadow:0 7px 12px -4px rgba(10,14,40,.3)}
.lp-trips-c canvas{filter:drop-shadow(0 7px 7px rgba(10,14,40,.24))}
.lp-trips-js .lp-trips-im{display:none}
.lp-trips-c:hover{transform:scale(1.03)}
/* pressed: a teal ring and a slight growth that pushes nothing (a transform); the keyboard's ring is ink */
.lp-trips-i.on .lp-trips-c{transform:scale(1.06);box-shadow:0 0 0 4px #F4EFE6,0 0 0 8px rgb(var(--lp-trips-c))}
.lp-trips-c:focus-visible{outline:none;box-shadow:0 0 0 4px #F4EFE6,0 0 0 7px var(--ink)}
.lp-trips-i.on .lp-trips-c:focus-visible{box-shadow:0 0 0 4px #F4EFE6,0 0 0 8px rgb(var(--lp-trips-c)),0 0 0 11px #F4EFE6,0 0 0 14px var(--ink)}

/* its places, one per line, in the teal: centred under the pearl (trips.js moves them in only where the row's end
   would take them nearer than 16px to the window's edge or past the gap before the lanes: --lp-trips-x); in the
   zigzag beside it, on the side the route leaves free (.lp-trips-pl-l / -r) */
.lp-trips-pl{position:absolute;left:var(--lp-trips-x,0px);top:calc(100% + var(--lp-trips-p) * .03 + 18px);z-index:2;margin:0;padding:0;list-style:none;text-align:center;white-space:nowrap;font:700 clamp(17px,1vw,20px)/1.32 var(--fb);color:rgb(var(--lp-trips-c));visibility:hidden;opacity:0;transition:opacity .16s,visibility 0s .16s;pointer-events:none}
.lp-trips-i.on .lp-trips-pl{visibility:visible;opacity:1;transition:opacity .22s .1s,visibility 0s}

/* with no script the places cannot be measured: the first city's (rung at rest) are centred under it on a wide screen,
   and beside it, on its left, in the zigzag */
@media (min-width:1000px) and (orientation:landscape),(min-width:1200px){
  .lp-trips:not(.lp-trips-js) .lp-trips-pl{left:50%;transform:translateX(-50%)}
}

/* the hook: the first city's centre (the frame's run ends there, under its pearl; this beat's string goes on) */
.lp-trips-hook{left:50%;top:50%}

/* -- below 1000px: the route zigzags down, the cities alternating right and left, the two columns as far apart as on a
   phone (71px; less where the column is narrower) and centred in the column; a pressed city's places beside it, on
   its outer side where there is room (a tablet), else between the strings that leave it (a phone) --------------- */
@media (max-width:999px),(orientation:portrait) and (max-width:1199px){
  .lp-trips-route{--lp-trips-p:120px;--lp-trips-dy:132px;grid-template-columns:repeat(2,var(--lp-trips-p));grid-auto-rows:var(--lp-trips-dy);column-gap:clamp(24px,calc(100cqw - 2 * var(--lp-trips-p)),71px);justify-content:center;padding:0 0 12px}
  .lp-trips-i:nth-child(odd){grid-column:2}
  .lp-trips-i:nth-child(even){grid-column:1}
  .lp-trips-i:nth-child(1){grid-row:1}
  .lp-trips-i:nth-child(2){grid-row:2}
  .lp-trips-i:nth-child(3){grid-row:3}
  .lp-trips-i:nth-child(4){grid-row:4}
  .lp-trips-i:nth-child(5){grid-row:5}
  .lp-trips-i:nth-child(6){grid-row:6}
  .lp-trips-pl{top:50%;width:var(--lp-trips-w,calc(100cqw - var(--lp-trips-p) - 18px));white-space:normal;font-size:var(--lp-trips-fs,15px);line-height:1.3;transform:translateY(-50%)}
  .lp-trips-pl-l{left:auto;right:calc(100% + 18px);text-align:right}
  .lp-trips-pl-r{left:calc(100% + 18px);text-align:left}
  .lp-trips:not(.lp-trips-js) .lp-trips-i:nth-child(1) .lp-trips-pl{left:auto;right:calc(100% + 18px);width:calc(100cqw - var(--lp-trips-p) - 18px);text-align:right}
  .lp-trips-pl li{text-wrap:balance}
  .lp-trips-pl li+li{margin-top:.2em}
}

@media (prefers-reduced-motion:reduce){
  .lp-trips-rp,.lp-trips-rd,.lp-trips-c,.lp-trips-pl,.lp-trips-i.on .lp-trips-pl{transition:none}
}
