/* Saved Trips (Caroline, 11 Nov 2026; snow/templates/snow/pages/trips.html), in the peaksignal page kit (pk.css). The page's
   own parts: the Favorites layout (two equal columns, the map 100vh - 108px from 76px down, on a plain white page) and the trip
   cards, which take the Favorites cards' sky: warm white and yellow by day at the top ski area, deep indigo with stars by night. */
.tp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; max-width: 1440px; margin: 0 auto; padding: 76px 16px 48px; }
.tp-mapbox { position: sticky; top: 76px; height: calc(100vh - 108px); min-height: 420px; overflow: hidden; border-radius: var(--pk-r-card); background: #eef1f3; box-shadow: 0 10px 30px rgba(20, 30, 40, .08); }
.tp-mlmap { position: absolute; inset: 0; }
.tp-list { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tp-pin { display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 999px; background: #161b3a; color: #fff; font: 500 11px var(--pk-font); box-shadow: 0 0 0 2px #fff; cursor: pointer; }

/* the card */
.tp-card { --ink: var(--pk-ink); --mute: #56625b; --chip: rgba(17, 17, 17, .07); --hi-bg: var(--pk-ink); --hi-fg: #fff; --btn: rgba(17, 17, 17, .06);
  display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: var(--pk-r-card); color: var(--ink); scroll-margin-top: 84px;
  background: radial-gradient(120% 100% at 0% 0%, rgba(255, 206, 92, .55), rgba(255, 206, 92, 0) 62%), linear-gradient(180deg, #fffaf0, #f8ecd2);
  box-shadow: var(--pk-shadow); }
.tp-card[data-sky~="night"] { --ink: #fff; --mute: rgba(232, 235, 255, .76); --chip: rgba(255, 255, 255, .14); --hi-bg: #fff; --hi-fg: #141838; --btn: rgba(255, 255, 255, .16);
  background: radial-gradient(1.2px 1.2px at 14% 22%, #fff 60%, transparent), radial-gradient(1px 1px at 38% 70%, #fff 60%, transparent), radial-gradient(1.4px 1.4px at 61% 18%, #fff 60%, transparent),
    radial-gradient(1px 1px at 80% 58%, #fff 60%, transparent), radial-gradient(1.2px 1.2px at 92% 20%, #fff 60%, transparent), radial-gradient(1px 1px at 28% 40%, #fff 60%, transparent),
    linear-gradient(180deg, #1c2142, #0f1330); }
.tp-card.lit { outline: 2px solid var(--ink); outline-offset: -2px; }
.tp-card :focus-visible { outline-color: var(--ink); }
.tp-head { display: flex; align-items: center; gap: 4px; }
.tp-n { width: 16px; font-size: 11px; color: var(--mute); }
.tp-name { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.3; }
.tp-name a, .tp-area { color: inherit; text-decoration: none; }
.tp-name a:hover, .tp-area:hover { text-decoration: underline; text-underline-offset: 2px; }
.tp-ic { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; }
.tp-ren svg { opacity: .65; }
.tp-bell { margin-left: auto; }
.tp-bell.on { background: var(--btn); }
.tp-bell.on svg { fill: currentColor; }
.tp-sub { margin: 0 0 0 20px; font-size: 12px; color: var(--mute); }
.tp-none { margin: 0; font-size: 13px; color: var(--mute); }

/* one row of three figures (layout B): small labels, no lines */
.tp-stats { display: grid; grid-template-columns: 1.1fr 1.5fr .8fr; gap: 12px; margin-top: 2px; }
.tp-stats > span { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: 13.5px; line-height: 1.35; }
.tp-stats small { font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.tp-stats b { font-weight: 500; }
.tp-stats em { font-style: normal; font-size: 12px; color: var(--mute); }
.tp-sig { display: block; }
.tp-sig .pk-sq { margin: 0 4px 0 1px; }
.tp-card[data-sky~="night"] .pk-sq.snowy { background: #7f9bff; }
.tp-card[data-sky~="night"] .pk-sq.cold { background: #b39dfa; }
.tp-card .pk-tag { background: var(--chip); color: var(--ink); }
.tp-card .pk-tag.hi { background: var(--hi-bg); color: var(--hi-fg); }

.tp-links { display: flex; align-items: center; gap: 14px; margin: 2px 0 0; }
.tp-links a { font-size: 13px; font-weight: 500; color: var(--ink); text-decoration: none; }
.tp-del { margin-left: auto; font-size: 12px; color: var(--mute); }

/* renaming in place */
.tp-renf { display: flex; flex-direction: column; gap: 6px; }
.tp-renf[hidden] { display: none; }
.tp-renf label { font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.tp-renf input { height: 38px; padding: 0 10px; border: 0; border-radius: var(--pk-r-btn); background: var(--chip); box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); font: 500 15px var(--pk-font); }
.tp-renb { display: flex; gap: 16px; }
.tp-renb button { padding: 0; border: 0; background: none; color: var(--ink); font: 500 13px var(--pk-font); cursor: pointer; }
.tp-renb .tp-cancel { color: var(--mute); }

/* signed out: the Account page's card; signed in with nothing saved: one button over the map */
.tp-out { max-width: 720px; margin: 0 auto; padding: 84px 16px 24px; }
.tp-intro { margin: 6px 0 14px; }
.tp-empty { display: grid; place-items: center; min-height: calc(100vh - 120px); }
.tp-start { padding: 14px 22px; font-size: 15px; text-decoration: none; color: var(--pk-ink); font-weight: 500; }

@media (max-width: 860px) {
  .tp { grid-template-columns: minmax(0, 1fr); padding: 60px 10px 32px; }
  .tp-mapbox { position: relative; top: 0; height: 440px; min-height: 0; }
  .tp-name { font-size: 16px; }
  .tp-sub, .tp-none { font-size: 14px; }
  .tp-ic { width: 44px; height: 44px; }
  .tp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
  .tp-stats > span { font-size: 14px; }
  .tp-stats > span:first-child { grid-column: 1 / -1; }
  .tp-stats small { font-size: 12px; letter-spacing: .1em; }
  .tp-links a { font-size: 14px; }
  .tp-del { font-size: 13px; }
}

/* Phone: symmetric 18 px card padding, menu button clearance on top, same left edge (16) as settings and alerts (audit, 11 Nov 2026) */
@media (max-width:700px){
  main.pk.tp-out > .pk-card:first-child{padding:52px 18px 22px}
  main.pk.tp-out > .pk-card:first-child h1{padding-right:0}
  main.pk.tp{padding-left:16px;padding-right:16px}
  main.pk.tp > .tp-mapbox:first-child{padding-right:0}
}
/* Phone review 11 Nov 2026: tap areas of about 40 px. A see-through ::after widens what a finger can hit; the drawn button keeps its size. */
.tp-links a,.tp-renb button{position:relative}.tp-links a::after,.tp-renb button::after{content:'';position:absolute;inset:-12px -6px}
