/* Page-specific additions for the November 2026 refresh: /trends/ and 404. Loads after pages-2026.css.
   The trends markup keeps every id and class js/trends.js reads; this file only restyles them inside main.px. */

/* ==========================================================================
   /trends/
   ========================================================================== */

/* hero: "on this page" links, one swipeable row on phones */
.px .td-hero .ph-jump { margin: 22px calc(var(--px-gut) * -1) 0; }
.px .td-hero .ph-jump ul { flex-wrap: nowrap; gap: 8px; overflow-x: auto; padding: 4px var(--px-gut); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.px .td-hero .ph-jump ul::-webkit-scrollbar { display: none; }
.px .td-hero .ph-jump li { flex: none; }
.px .td-hero .ph-jump a { min-height: 44px; padding: 0 16px; border: 0; border-radius: 12px; white-space: nowrap; font-size: 0.9375rem;
  background: rgba(10, 22, 38, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.px .td-hero .ph-jump a::after { border-color: var(--px-gold); }
.px .td-hero .ph-jump a:hover { background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px #fff; }
.px-mo .td-hero .ph-jump { animation: px-rise .8s var(--px-ease) .22s both; }

/* breadcrumb at the top of the photo, title at the bottom */
.px .td-hero.is-bg { align-items: stretch; }
.px .td-hero.is-bg > .px-w { display: flex; flex-direction: column; justify-content: space-between; }
/* the breadcrumb sits on the bright part of the photo: darken the top edge and use white for the current page */
.px .td-hero .px-hero-bg::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 170px; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 13, 26, .9) 0%, rgba(6, 13, 26, .78) 45%, rgba(6, 13, 26, 0) 100%); }
.px .td-hero .crumbs a, .px .td-hero .crumbs [aria-current] { color: #fff; }
/* the separator trails each item, so a wrapped row (three levels in Spanish on a small phone) never starts with a slash */
.px .td-hero .crumbs li + li::before { content: none; }
.px .td-hero .crumbs li:not(:last-child)::after { content: "/"; margin: 0 10px; color: #c3cedb; }

/* jump-link targets fade in without the 24px slide, so "By hour" and "By month" land at the right spot */
.px-mo #by-hour[data-rv], .px-mo #by-month[data-rv] { transform: none; }

/* shown only with JavaScript off, above the first chart */
.px .td-nojs { margin: 0; font-size: 1.0625rem; line-height: 1.5; color: var(--px-fg); max-width: 38em; }

/* shared card + heading treatment */
.px .trd { --t-ink: var(--px-fg); --t-label: var(--px-fg2); --t-line: var(--px-line); gap: 14px; }
.px .trd .tcard { padding: 22px 18px 20px; border-radius: var(--px-r); background: var(--px-card); box-shadow: inset 0 0 0 1px var(--px-card-line); }
.px .trd .tc-h { margin: 0 0 18px; }
.px .trd .tc-h h2.px-h { font: 700 clamp(2.25rem, 1.5rem + 3.6vw, 3.75rem)/1 var(--display); letter-spacing: -0.005em; color: var(--px-fg); text-wrap: balance; }
.px .trd .tc-h h2.px-h3 { font: 700 clamp(1.75rem, 1.5rem + 1.2vw, 2.25rem)/1.02 var(--display); letter-spacing: 0; color: var(--px-fg); text-wrap: balance; }
.px .trd .tc-s { margin: 10px 0 0; font-size: 1rem; line-height: 1.5; color: var(--px-fg2); max-width: 38em; text-wrap: balance; }
/* short intro lines are balanced so none ends on one or two stray words; the long source note keeps normal paragraph wrapping */
.px .trd #about-data .tc-s { text-wrap: pretty; }
.px .trd .tc-s .hint { font-size: inherit; color: var(--px-fg2); }
.px .trd .tc-h h2.px-h + .tc-s { font-size: 1.125rem; margin-top: 14px; }
/* on the dark and sand bands the block sits straight on the band */
.px :is(.td-year, .td-nb, .td-all, .td-foot) .trd .tcard { padding: 0; border-radius: 0; background: none; box-shadow: none; }

/* ---- calls per year (dark) ---- */
.px .td-year .skeleton { background: rgba(255, 255, 255, .06); border-radius: 14px; }
.px .td-year #city-chart { min-height: 260px; }
.px .trd .tdark .tc-s, .px .trd .tdark .tc-s .hint { color: var(--px-fg2); }
.px .trd .tdark .tchart line { stroke: rgba(255, 255, 255, .13); }
.px .trd .tdark .tc-axis { fill: #c3cedb; }
.px .trd .tdark .tc-partial { fill: var(--px-gold); }
.px .trd .tdark .tchart circle[fill="#fff"] { fill: var(--px-deep); }
.px .trd .tchart path { stroke-width: 3; }

.px .trd .tglance { margin-top: 30px; padding-top: 0; border-top: 0; }
.px .trd .tglance-l { margin: 0 0 4px; font: 700 1.75rem/1.05 var(--display); color: #fff; }
.px .trd .tdark .rec-grid { grid-template-columns: minmax(0, 1fr); gap: 0; min-height: 344px !important; }
.px .trd .tdark .rec-grid .rec-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l n" "s n"; align-items: center; column-gap: 14px;
  min-height: 68px; padding: 11px 0; border: 0; border-top: 1px solid var(--px-line); border-radius: 0; background: none; }
.px .trd .tdark .rec-grid .rec-card:first-child { border-top: 0; }
.px .trd .tdark .rec-n { display: block; grid-area: n; font: 700 1.75rem/1 var(--display); letter-spacing: .01em; color: #fff; text-align: right; white-space: nowrap; }
.px .trd .tdark .rec-card:first-child .rec-n { color: var(--px-gold); font-size: 2.5rem; }
.px .trd .tdark .rec-l { grid-area: l; align-self: end; margin: 0; font-size: 0.9375rem; font-weight: 500; line-height: 1.3; color: var(--px-fg); }
.px .trd .tdark .rec-s { grid-area: s; align-self: start; margin: 2px 0 0; font-size: 0.8125rem; line-height: 1.3; color: var(--px-fg2); }
.px .trd .tdark .rec-grid.skeleton { background: rgba(255, 255, 255, .06); }

/* ---- call types, hours, months (paper) ---- */
.px .trd .citycats { min-height: 300px; }
.px .trd .citycat-top { flex-wrap: wrap; gap: 4px 7px; font-size: 0.9375rem; margin-bottom: 8px; }
.px .trd .citycat-n { flex: 0 0 100%; margin: 0; font: 700 1.625rem/1.05 var(--display); letter-spacing: .01em; color: var(--px-fg); }
.px .trd .citycat-n span { font: 500 0.8125rem/1.2 var(--body); letter-spacing: 0; color: var(--px-fg2); }
.px .trd .citycat .tspark polyline { stroke-width: 2.2; }
.px .trd .heat-swipe { font-size: 0.8125rem; color: var(--px-fg2); }
@media (max-width: 599px) {
  /* the heat map scrolls sideways on phones: say so, and reserve its height (chart + hint) before it draws */
  .px .trd .heat-swipe { display: block; position: sticky; left: 0; margin-top: 8px; text-align: left; }
  .px .trd #heatwrap { min-height: 268px !important; }
  /* the right-edge fade is a mask on the scroller, so it stays at the edge while the chart moves under it
     (the site.css fade is a positioned strip that travels with the chart); it lifts at the end of the swipe */
  .px .trd .heatwrap::after { content: none; }
  .px .trd .heatwrap { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); }
  .px .trd .heatwrap:is(.at-end, :focus-visible, :empty, .skeleton) { -webkit-mask-image: none; mask-image: none; }
  /* year labels: one step smaller so "2025" and "2026*" do not run together, and the last label may overhang the drawing */
  .px .trd :is(#city-chart, .nb-chart, #catshift-chart) svg text.tc-axis { font-size: 11px; }
  .px .trd #catshift-chart svg { overflow: visible; }
  /* month and call-type charts fill the card instead of floating in a narrower drawing */
  .px .trd .season-card svg { display: block; width: 100%; height: auto; }
  .px .trd #season-chart { min-height: 238px !important; }
  .px .trd #catshift-chart { min-height: 272px !important; }
}
@media (max-width: 374px) {
  .px .trd #season-chart { min-height: 220px !important; }
  .px .trd #catshift-chart { min-height: 250px !important; }
}
/* month bars: trends.js reserves a 30-unit axis gutter on the left that this chart does not use (33 units before the first
   bar, 11 after the last), so the drawing is pulled back by half the difference, 11 units, and the bars sit centred in
   the card. Desktop draws 1:1. Phones stretch the drawing to the card: it is 280 units wide in a card narrower than
   320px (11/280 of the card width), and the card width less 40 above that (about 12.3px). */
.px .trd #season-chart { container-type: inline-size; }
.px .trd #season-chart svg { translate: -11px 0; }
@media (max-width: 599px) { .px .trd #season-chart svg { translate: -12.3px 0; } }
@media (max-width: 395px) { .px .trd #season-chart svg { translate: -3.93cqw 0; } }
.px .trd .heatwrap:focus-visible { outline: 2px solid var(--px-ring); outline-offset: 4px; border-radius: 8px; }
.px .trd .catshift-legend { gap: 8px 16px; margin-top: 14px; }
.px .trd .catshift-legend .cl { font-size: 0.875rem; }
.px .td-city .skeleton { border-radius: 14px; }

/* ---- neighborhoods (navy) ---- */
.px .td-nb .trd .nb-dash { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.px .td-nb .nb-list { position: relative; display: flex; gap: 8px; min-height: 84px; overflow-x: auto; margin: 0 calc(var(--px-gut) * -1); padding: 4px var(--px-gut) 8px; border-radius: 0; background: none;
  scroll-snap-type: x proximity; scroll-padding-left: var(--px-gut); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.px .td-nb .nb-list::-webkit-scrollbar { display: none; }
/* the card is its full 290px from a 354px phone up, so every "calls · share" line fits on one line in English (at 76vw
   six of the eight wrapped at 360 and two did not); the next card still shows at the right edge */
.px .td-nb .nb-item { flex: 0 0 min(100vw - 64px, 290px); min-height: 72px; padding: 12px 14px; border-radius: 16px; scroll-snap-align: start; color: #eef2f7; -webkit-tap-highlight-color: transparent;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); transition: background-color .18s ease, transform .25s var(--px-ease); }
.px .td-nb .nb-item:hover { background: rgba(255, 255, 255, .11); }
.px .td-nb .nb-item:active { transform: scale(.98); }
.px .td-nb .nb-rank { width: 22px; font: 700 1.375rem/1 var(--display); color: var(--px-gold); text-align: left; }
.px .td-nb .nb-name { font-size: 1rem; color: #fff; }
.px .td-nb .nb-sub { font-size: 0.8125rem; color: #c3cedb; text-wrap: balance; }
.px .td-nb .nb-item-spark { flex: 0 0 64px; }
@media (max-width: 1023px) { .px .td-nb .nb-item-spark { flex-basis: 52px; } }
.px .td-nb .nb-item .tspark polyline { stroke: #9cc0ea; stroke-width: 2.2; }
.px .td-nb .nb-item[aria-pressed="true"] { background: #fff; box-shadow: 0 10px 26px rgba(3, 8, 18, .4); }
.px .td-nb .nb-item[aria-pressed="true"] .nb-name { color: var(--px-ink); }
.px .td-nb .nb-item[aria-pressed="true"] .nb-sub { color: var(--px-muted); }
.px .td-nb .nb-item[aria-pressed="true"] .nb-rank { color: var(--px-blue); }
.px .td-nb .nb-item[aria-pressed="true"] .tspark polyline { stroke: var(--px-blue); }
.px .td-nb .nb-detail { --px-fg: var(--px-ink); --px-fg2: var(--px-muted); --px-line: rgba(18, 38, 54, .16); --px-ring: var(--focus, #2c82b0);
  padding: 20px 18px; border-radius: var(--px-r); background: #fff; color: var(--px-ink); box-shadow: 0 24px 50px rgba(3, 8, 18, .35); min-height: 520px; }
.px .td-nb .nb-detail-head h3 { font: 700 1.875rem/1.02 var(--display); letter-spacing: 0; color: var(--px-ink); }
.px .td-nb .nb-detail .tc-axis { fill: var(--px-muted); }
.px .td-nb .nb-detail .tc-partial { fill: var(--px-red); }
.px .td-nb .nb-detail-sub { font-size: 0.9375rem; color: var(--px-muted); }
.px .td-nb .nb-detail-cols h4, .px .td-nb .nb-blocks h4 { font-size: 0.9375rem; font-weight: 600; color: var(--px-ink); text-transform: none; letter-spacing: 0; }
.px .td-nb .nb-detail-cols h4 span { color: var(--px-muted); font-weight: 500; }
.px .td-nb .tmix-top, .px .td-nb .nb-blocks li { font-size: 0.9375rem; color: var(--px-ink); }
.px .td-nb .tmix-n { font-size: 0.8125rem; color: var(--px-muted); }
.px .td-nb .tmix-track { height: 8px; border-radius: 4px; background: #ece7db; }
.px .td-nb .tmix-fill { border-radius: 4px; }
.px .td-nb .nb-blocks ol { gap: 0; }
.px .td-nb .nb-blocks li { padding: 9px 0; border-top: 1px solid rgba(18, 38, 54, .12); }
.px .td-nb .nb-blocks li:first-child { border-top: 0; padding-top: 0; }
.px .td-nb .nb-blocks li b { color: var(--px-ink); }
.px .td-nb .ttag { border-radius: 8px; padding: 5px 10px; }
.px .td-nb .trd .nb-method { margin: 18px 0 0; font-size: 0.875rem; line-height: 1.5; color: #c3cedb; max-width: 60em; }

/* ---- all neighborhoods (sand) ---- */
.px .td-all .nb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; min-height: 755px; }
.px .td-all .nb-card { min-height: 44px; padding: 14px 14px 12px; border-radius: 16px; background: var(--px-warm-white); box-shadow: inset 0 0 0 1px var(--px-card-line); -webkit-tap-highlight-color: transparent;
  transition: transform .25s var(--px-ease), box-shadow .18s ease, background-color .18s ease; }
.px .td-all .nb-card:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--px-muted); }
.px .td-all .nb-card:active { transform: scale(.98); }
.px .td-all .nb-card.on { background: #fff; box-shadow: inset 0 0 0 2px var(--px-blue); }
.px .td-all .nb-card-top { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 10px; }
.px .td-all .nb-card-name { font-size: 1rem; color: var(--px-ink); min-height: 2.5em; text-wrap: balance; }
.px .td-all .nb-card-top .ttag { font-size: 0.75rem; border-radius: 7px; white-space: nowrap; }
.px .td-all .nb-card-n { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 2rem; color: var(--px-ink); }
.px .td-all .nb-card-n span { margin-left: 0; font-size: 0.875rem; color: var(--px-muted); }
/* phones: the Spanish unit ("llamadas") has to fit beside a five-figure count; on the narrowest it goes under the number in every card */
@media (max-width: 419px) { .px .td-all .nb-card-n { font-size: 1.75rem; } .px .td-all .nb-grid { min-height: 740px; } }
@media (max-width: 389px) {
  .px .td-all .nb-card-n { font-size: 2rem; }
  .px .td-all .nb-card-n span { flex-basis: 100%; }
  .px .td-all .nb-grid { min-height: 818px; }
}
.px .td-all .nb-card .tspark polyline { stroke: var(--px-blue); stroke-width: 2.2; }

/* ---- downloads and sources (dark) ---- */
.px .td-foot .trd .tgrid2 { gap: 44px; }
.px .td-foot .trd .dl-btns, .px .td-foot .trd .tc-actions { display: grid; gap: 10px; margin-top: 22px; }
.px .td-foot .trd .dl-btns .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 8px 22px; border: 0; border-radius: 14px; cursor: pointer;
  background: #fff; color: var(--px-ink); font: 600 1.0625rem/1.2 var(--body); transition: transform .25s var(--px-ease), background-color .18s ease; }
.px .td-foot .trd .dl-btns .btn:hover { background: var(--px-sand); color: var(--px-ink); }
.px .td-foot .trd .dl-btns .btn:active { transform: scale(.97); }
.px .td-foot .trd .tbtn.px-btn { min-height: 52px; padding: 8px 24px; border-radius: 14px; font: 600 1.0625rem/1.2 var(--body); justify-content: center; }
.px .td-foot .trd .tbtn.px-btn-light, .px .td-foot .trd .tbtn.px-btn-light:hover { color: var(--px-ink); }
.px .td-foot .trd .tbtn.px-btn-light { background: #fff; }
.px .td-foot .trd .tbtn.px-btn-light:hover { background: var(--px-sand); }
.px .td-foot .trd .tbtn.px-btn-ghost { background: transparent; color: #fff; }
.px .td-foot .trd .tbtn.px-btn-ghost:hover { background: #fff; color: var(--px-deep); }

/* chart motion: the yearly line draws once when it appears (the reveal snippet adds .px-mo; never under reduced motion) */
@keyframes td-draw { to { stroke-dashoffset: 0; } }
@keyframes td-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .px-mo .tchart .tc-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: td-draw 1.1s var(--px-ease) .1s forwards; }
  .px-mo .tchart circle, .px-mo .tchart path:not(.tc-draw) { animation: td-fade .5s ease .7s both; }
  .px-mo .tmix-fill { transform-origin: left center; animation: td-grow .7s var(--px-ease) both; }
}
@keyframes td-grow { from { transform: scaleX(0); } to { transform: none; } }

@media (min-width: 600px) {
  .px .td-hero .ph-jump { margin-inline: 0; }
  .px .td-hero .ph-jump ul { flex-wrap: wrap; overflow: visible; padding: 0; }
  .px .trd .tcard { padding: 26px 26px 24px; }
  .px .td-all .nb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; min-height: 780px; }
  .px .trd .citycats { min-height: 200px; }
  .px .td-all .nb-card { padding: 18px 18px 14px; }
  .px .td-foot .trd .dl-btns, .px .td-foot .trd .tc-actions { display: flex; flex-wrap: wrap; }
  .px .td-nb .nb-detail { padding: 26px; }
}
@media (min-width: 700px) {
  /* five tiles: three over two, each row filling the width (no orphan tile, no empty cells) */
  .px .trd .tdark .rec-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 28px; min-height: 250px !important; }
  .px .trd .tdark .rec-grid .rec-card { grid-column: span 2; }
  .px .trd .tdark .rec-grid .rec-card:nth-child(n + 4) { grid-column: span 3; }
  .px .trd .tdark .rec-grid .rec-card { display: block; min-height: 0; padding: 18px 0 22px; border-top: 1px solid var(--px-line); }
  .px .trd .tdark .rec-grid .rec-card:first-child { border-top: 1px solid var(--px-line); }
  .px .trd .tdark .rec-n { font-size: 2.25rem; text-align: left; }
  .px .trd .tdark .rec-card:first-child .rec-n { font-size: 2.25rem; }
  .px .trd .tdark .rec-l { margin-top: 10px; font-size: 1rem; }
  .px .trd .tdark .rec-s { font-size: 0.875rem; }
}
@media (min-width: 720px) and (max-width: 899px) {
  /* eight cards as two rows of four; the unit goes under the number so English and Spanish match */
  .px .td-all .nb-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; min-height: 410px; }
  .px .td-all .nb-card { padding: 16px 14px 12px; }
  .px .td-all .nb-card-n span { flex-basis: 100%; }
}
@media (min-width: 761px) {
  /* six call types: three by two, then one row of six once each tile has room */
  .px .trd .citycats { gap: 10px 28px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .px .trd .citycat, .px .trd .citycat:first-child { padding: 14px 0 6px; border-left: 0; border-top: 1px solid var(--px-line); }
}
@media (min-width: 900px) {
  /* tall enough that the Spanish title (two lines) does not grow the hero after the first paint */
  .px .td-hero.is-bg { min-height: clamp(600px, 62svh, 680px); }
  .px .td-hero h1 { max-width: none; font-size: clamp(3.75rem, 1rem + 4.6vw, 5rem); }
  .px .trd { gap: 18px; }
  .px .trd .tcard { padding: 32px; }
  .px .trd .tc-h { margin-bottom: 24px; }
  .px .td-year #city-chart { min-height: 260px; }
  .px .trd .tglance { margin-top: 44px; }
  .px .trd .tglance-l { font-size: 2.25rem; margin-bottom: 14px; }
  .px .td-nb .nb-detail { padding: 32px; min-height: 640px; }
  .px .trd .citycats { min-height: 200px; }
  .px .td-nb .nb-detail-head h3 { font-size: 2.25rem; }
  .px .td-all .nb-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); min-height: 388px; }
  .px .td-foot .trd .tgrid2 { gap: 48px; }
}
@media (min-width: 861px) {
  /* the two cards' button rows share a baseline at the bottom of the band */
  .px .td-foot .trd .tgrid2 > .tcard { display: flex; flex-direction: column; }
  .px .td-foot .trd .tgrid2 > .tcard > :is(.dl-btns, .tc-actions) { margin-top: auto; padding-top: 22px; }
}
@media (min-width: 861px) and (max-width: 1179px) {
  /* two narrow columns: the buttons fill the row, so a pair that has to stack is two equal bars, not two odd widths */
  .px .td-foot .trd .tgrid2 > .tcard > :is(.dl-btns, .tc-actions) > * { flex: 1 1 auto; }
}
@media (min-width: 1024px) {
  /* every neighborhood name fits on one line from here, so the second line is no longer reserved */
  .px .td-all .nb-card-name { min-height: 0; }
  .px .td-all .nb-grid { min-height: 340px; }
  /* neighborhoods: list beside the detail card (below this the list stays a swipeable strip above it).
     The list is as tall as the detail card at its usual height: 8 rows x 79 + 7 gaps x 4 + 12 padding = 672. When a
     longer detail card opens the panel stretches with it and the eight rows share the extra height evenly, so the
     panel is always full to its bottom edge instead of leaving a blank strip under row 8. */
  .px .td-nb .trd .nb-dash { grid-template-columns: 380px minmax(0, 1fr); gap: 24px; align-items: stretch; }
  .px .td-nb .nb-list { display: grid; grid-auto-rows: minmax(79px, 1fr); align-content: stretch; gap: 4px; overflow: visible; margin: 0; padding: 6px; border-radius: 20px; min-height: 672px;
    background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
  .px .td-nb .nb-item { min-height: 62px; padding: 10px 12px; border-radius: 14px; background: none; box-shadow: none; }
  .px .td-nb .nb-item:hover { background: rgba(255, 255, 255, .08); }
  .px .td-nb .nb-item[aria-pressed="true"] { background: #fff; }
  .px .td-nb .nb-item-spark { flex-basis: 64px; }
  .px .td-nb .nb-detail { min-height: 672px; }
}
@media (min-width: 960px) {
  /* five tiles in one row */
  .px .trd .tdark .rec-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 24px; min-height: 150px !important; }
  .px .trd .tdark .rec-grid .rec-card, .px .trd .tdark .rec-grid .rec-card:nth-child(n + 4) { grid-column: auto; }
  .px .trd .tdark .rec-n, .px .trd .tdark .rec-card:first-child .rec-n { font-size: 1.875rem; }
}
@media (min-width: 1180px) {
  .px .trd .tdark .rec-grid { gap: 0 28px; min-height: 130px !important; }
  .px .trd .tdark .rec-n, .px .trd .tdark .rec-card:first-child .rec-n { font-size: 2.25rem; }
  .px .trd .citycats { grid-template-columns: repeat(6, minmax(0, 1fr)); min-height: 96px; }
  .px .td-foot .trd .tgrid2 { gap: 72px; }
}

/* ==========================================================================
   404
   ========================================================================== */
.px .nf-hero.is-bg { min-height: clamp(520px, 74svh, 780px); }
.px .nf-hero .px-hero-copy { padding-top: 96px; }
/* phones: the copy runs over the flag's white stripes, so the photo gets a second, darker layer behind it */
.px .nf-hero .px-hero-bg::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 13, 26, 0) 0%, rgba(6, 13, 26, .55) 30%, rgba(6, 13, 26, .7) 100%); }
.px .nf-code { display: inline-flex; align-items: center; gap: 9px; min-height: 34px; margin: 0 0 16px; padding: 4px 14px; border-radius: 17px; font-size: 0.9375rem; font-weight: 600; line-height: 1.2; color: #fff;
  background: rgba(10, 22, 38, .6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-variant-numeric: tabular-nums; }
.px .nf-code::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--px-gold); }
.px .nf-hero .px-actions { display: grid; gap: 10px; }
.px .nf-hero .px-btn-ghost { color: #fff; background: rgba(10, 22, 38, .35); }
.px .nf-hero .px-btn-ghost:hover { color: var(--px-deep); background: #fff; }
.px .nf-fine { margin: 26px 0 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: 1rem; line-height: 1.5; color: #e3e9f1; max-width: 30em; }
.px .nf-fine a { position: relative; color: #fff; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; white-space: nowrap; }
.px .nf-fine .nf-nb { white-space: nowrap; }
.px .nf-fine a::after { content: ""; position: absolute; inset: -14px -6px; }
.px .nf-fine a:hover { text-decoration-thickness: 2px; }
.px-mo .nf-code { animation: px-rise .8s var(--px-ease) both; }
.px-mo .nf-fine { animation: px-rise .8s var(--px-ease) .3s both; }
@media (min-width: 600px) {
  .px .nf-hero .px-hero-bg::after { content: none; }
  .px .nf-hero .px-actions { display: flex; flex-wrap: wrap; }
}
@media (min-width: 900px) {
  .px .nf-hero.is-bg { min-height: clamp(560px, calc(100svh - 110px), 860px); }
  .px .nf-hero .px-lede { max-width: none; }
}
