/* Trips tab cards, 13 Nov 2026 (Jeff: "in between what we have now and option A ... just make it sleeker").
   Kept: the filter bar, (TRIPS) with its count, the side counter, the card shape and the Expert-led mark.
   Changed: the photo is graded like the Home film (full colour, no sepia, a lighter floor), the card says
   what it is once (Signature trip / Headquarters / Dinner, top left), the date line says each fact once,
   the bar is one number each side, and the third row (tmeta) and the second seat line are gone.
   Loaded last; scoped to the Trips list so no other card moves. */
#s-year .pcard.trip .ph img{filter:saturate(.85) contrast(1.05) brightness(.92)!important}
#s-year .pcard.trip .ph:after{background:linear-gradient(180deg,rgba(30,30,30,0) 42%,rgba(30,30,30,.48) 70%,rgba(30,30,30,.86) 100%)!important}
#s-year .pcard.trip .ph .tint{display:none!important}

/* what it is: one quiet label, top left (features/trips-card.js writes it from data-kind) */
#s-year .pcard.trip .ovl{position:absolute;left:16px;right:16px;bottom:14px;z-index:2;display:block!important}
#s-year .pcard.trip .ovl > div{position:static}
#s-year .pcard.trip .tc-kind{position:absolute;top:14px;left:14px;z-index:3;font-family:var(--mono);font-size:9px;letter-spacing:.02em;text-transform:uppercase;
  color:var(--cream,#FAF8F3);background:rgba(30,30,30,.6);padding:7px 10px;border-radius:999px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);pointer-events:none}
#s-year .pcard.trip .ovl .badge{display:none!important}
#s-year .pcard.trip.soonest .tc-kind::before{content:'Next up · '}

/* name + one line */
#s-year .pcard.trip .ovl h3{letter-spacing:-.02em}
#s-year .pcard.trip .ovl .when{color:rgba(250,248,243,.82)!important;margin-top:6px}

/* the bar: price + nights | spots, one line each side */
#s-year .pcard.trip .bar{display:flex;justify-content:space-between;align-items:baseline;padding:14px 16px 16px!important}
#s-year .pcard.trip .bar .price{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap}
#s-year .pcard.trip .bar .price span{margin:0!important;color:var(--bone60)}
#s-year .pcard.trip .bar .seats{text-align:right}
#s-year .pcard.trip .bar .seats span{display:none!important}
#s-year .pcard.trip .tmeta{display:none!important}

/* ---------- the filter bar: the same glass as the tab bar (Jeff, 13 Nov: "doesn't have the same glassy vibe as the
   bottom bar ... copy how apple and instagram do it ... it should be seamless") ----------
   The bar is the tab bar's glass (gradient, blur, specular rim, sheen); the thumb is its lens. The labels never move or
   change weight: a bright copy of them rides inside the lens (features/trips-card.js), so the lens lights each word as it
   passes, the way iOS draws a segmented control. Position and width run on one curve, so the lens no longer wobbles. */
html #s-year .yseg.j19-top{background:linear-gradient(180deg,rgba(30,30,30,.42),rgba(30,30,30,.5))!important;
  -webkit-backdrop-filter:blur(26px) saturate(200%) brightness(1.08)!important;backdrop-filter:blur(26px) saturate(200%) brightness(1.08)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.26),inset 0 -1px 0 rgba(0,0,0,.35),inset 0 0 22px rgba(250,248,243,.035),0 14px 34px rgba(0,0,0,.45),0 3px 10px rgba(0,0,0,.3)!important;
  border:0!important;isolation:isolate}
html #s-year .yseg.j19-top::before{content:'';position:absolute;inset:0;border-radius:inherit;padding:1px;pointer-events:none;z-index:3;
  background:linear-gradient(140deg,rgba(255,255,255,.42) 0%,rgba(255,255,255,.08) 28%,rgba(255,255,255,.03) 55%,rgba(255,255,255,.08) 78%,rgba(255,255,255,.3) 100%);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0)}
html #s-year .yseg.j19-top::after{content:'';position:absolute;left:8%;right:8%;top:1px;height:46%;border-radius:999px 999px 40% 40%;pointer-events:none;z-index:0;
  background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,0))}
html #s-year .yseg.j19-top .yseg-thumb{z-index:2;overflow:hidden;
  background:linear-gradient(180deg,rgba(250,248,243,.17) 0%,rgba(250,248,243,.07) 55%,rgba(250,248,243,.11) 100%)!important;
  -webkit-backdrop-filter:blur(3px) saturate(180%) brightness(1.2)!important;backdrop-filter:blur(3px) saturate(180%) brightness(1.2)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.5),inset 0 -1px 1px rgba(255,255,255,.12),inset 1.5px 0 0 rgba(250,248,243,.13),inset -1.5px 0 0 rgba(74,159,206,.13),inset 0 0 0 .5px rgba(250,248,243,.24),0 6px 16px rgba(0,0,0,.3)!important;
  transition:transform .5s var(--j19-spring),width .5s var(--j19-spring),scale .32s cubic-bezier(.32,.72,0,1)!important;scale:1}
html #s-year .yseg.j19-top .yseg-thumb::before{content:'';position:absolute;left:12%;right:12%;top:2px;height:45%;border-radius:999px 999px 50% 50%;z-index:2;
  background:linear-gradient(180deg,rgba(255,255,255,.3),rgba(255,255,255,0));pointer-events:none}
html #s-year .yseg.j19-top .yseg-thumb.ts-moving{scale:1.06 1.1}
html #s-year .yseg.j19-top .ys,html #s-year .yseg.j19-top .ys.on{color:rgba(250,248,243,.55)!important;font-weight:500!important;background:transparent!important;z-index:1}
html #s-year .yseg.j19-top .ts-sel{position:absolute;top:0;left:0;height:100%;display:flex;pointer-events:none;z-index:1;
  transition:transform .5s var(--j19-spring)!important}
html #s-year .yseg.j19-top .ts-sel span{flex:1;display:flex;align-items:center;justify-content:center;white-space:nowrap;
  color:#FAF8F3;font-weight:600;text-shadow:0 1px 6px rgba(250,248,243,.22)}
@media (prefers-reduced-motion: reduce){html #s-year .yseg.j19-top .yseg-thumb,html #s-year .yseg.j19-top .ts-sel{transition:none!important}html #s-year .yseg.j19-top .yseg-thumb.ts-moving{scale:1}}
@media (prefers-reduced-transparency: reduce){html #s-year .yseg.j19-top,html #s-year .yseg.j19-top .yseg-thumb{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
  html #s-year .yseg.j19-top{background:color-mix(in srgb,#FAF8F3 3%,#1E1E1E)!important}}
/* the old choreography: never the fade-out-then-pop (a blank frame between them), never the add-on slide on leaving cards */
#s-year.j19-seg-r .trip,#s-year.j19-seg-l .trip,#s-year .trip.ygo{animation:none!important;opacity:1!important;transform:none!important;transition:none!important}

/* press and slide (14 Nov 2026, features/trips-card.js): the press lifts the lens past the bar's edge and clears it, the way
   the system tab bar's lens does; while the finger moves the lens follows it with no lag (width eases, so the stretch
   between words reads as glass, not a jump); letting go springs it onto the chosen word */
html #s-year .yseg.j19-top{overflow:visible!important;touch-action:pan-y;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
html #s-year .yseg.j19-top *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
html #s-year .yseg.j19-top .yseg-thumb{transform-origin:center}
html body #s-year .yseg.j19-top .yseg-thumb,html body #s-year .yseg.j19-top .yseg-thumb.ts-moving{scale:1!important;transition:transform .5s var(--j19-spring),width .5s var(--j19-spring),top .3s cubic-bezier(.32,.72,0,1),height .3s cubic-bezier(.32,.72,0,1),background .3s ease,box-shadow .3s ease!important}
html body #s-year .yseg.j19-top.ts-press .yseg-thumb{top:-5px!important;height:calc(100% + 10px)!important;
  background:linear-gradient(180deg,rgba(250,248,243,.13) 0%,rgba(250,248,243,.04) 50%,rgba(250,248,243,.1) 100%)!important;
  -webkit-backdrop-filter:blur(1px) saturate(230%) brightness(1.3)!important;backdrop-filter:blur(1px) saturate(230%) brightness(1.3)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75),inset 0 -1px 1px rgba(255,255,255,.25),inset 2px 0 1px rgba(250,248,243,.22),inset -2px 0 1px rgba(74,159,206,.25),inset 0 0 0 .5px rgba(250,248,243,.45),0 10px 26px rgba(0,0,0,.4)!important}
html body #s-year .yseg.j19-top.ts-drag .yseg-thumb{transition:width .14s cubic-bezier(.32,.72,0,1),top .3s cubic-bezier(.32,.72,0,1),height .3s cubic-bezier(.32,.72,0,1),background .3s ease,box-shadow .3s ease!important}
html #s-year .yseg.j19-top.ts-drag .ts-sel{transition:none!important}
html #s-year .yseg.j19-top.ts-press .ys{color:rgba(250,248,243,.4)!important}

/* the look (Jeff, 14 Nov 2026: "The top tab ... just doesn't look that good"). It read as a dark slab with a grey lump:
   a 50 px bar, a dark gradient fill, a 34 px drop shadow and a sheen across its top. Now it is drawn the way iOS 26 draws
   a segmented control over content: a slim clear bar (light fill, hairline rim, no drop shadow) and a clear lens with a
   bright rim, so the photos behind read through both, and the bottom bar and this one look like the same glass. */
html body #s-year .yseg.j19-top{padding:3px!important;min-height:0!important;
  background:rgba(250,248,243,.07)!important;
  -webkit-backdrop-filter:blur(24px) saturate(190%)!important;backdrop-filter:blur(24px) saturate(190%)!important;
  box-shadow:inset 0 .5px 0 rgba(255,255,255,.22),inset 0 0 0 .5px rgba(250,248,243,.12),0 8px 24px rgba(0,0,0,.22)!important}
html body #s-year .yseg.j19-top::after{display:none!important}
html body #s-year .yseg.j19-top::before{background:linear-gradient(160deg,rgba(255,255,255,.28) 0%,rgba(255,255,255,.04) 35%,rgba(255,255,255,.02) 65%,rgba(255,255,255,.16) 100%)!important}
html body #s-year .yseg.j19-top .ys{min-height:38px!important;font-size:14px;letter-spacing:-.01em}
html body #s-year .yseg.j19-top .yseg-thumb{top:3px!important;left:3px!important;height:calc(100% - 6px)!important;
  background:linear-gradient(180deg,rgba(250,248,243,.24),rgba(250,248,243,.13))!important;
  -webkit-backdrop-filter:blur(2px) saturate(200%) brightness(1.15)!important;backdrop-filter:blur(2px) saturate(200%) brightness(1.15)!important;
  box-shadow:inset 0 .5px 0 rgba(255,255,255,.6),inset 0 0 0 .5px rgba(255,255,255,.22),inset 0 -.5px 0 rgba(255,255,255,.1),0 3px 10px rgba(0,0,0,.18)!important}
html body #s-year .yseg.j19-top .yseg-thumb::before{display:none}
html body #s-year .yseg.j19-top .ys,html body #s-year .yseg.j19-top .ys.on{color:rgba(250,248,243,.62)!important}
html body #s-year .yseg.j19-top .ts-sel span{text-shadow:none!important}
/* EVEN SPACING (26 Nov 2026, Jeff on the segment after "Dinners" became "Events": "looks weirdly spaced"). Four equal
   columns left Headquarters cramped and the short labels floating; each button now takes its label's width plus the same
   room on each side, and the selected text inside the thumb (.ts-sel) is laid out on the buttons' own widths (trips-card.js). */
html body #s-year .yseg.j19-top .ys{flex:1 1 auto!important;padding:0 10px!important;white-space:nowrap}
html body #s-year .yseg.j19-top .ts-sel span{flex:none!important}
