/* projects panel. Loaded only by /projects.php, after main.css; reuses its tokens
   (--oxblood, --charcoal, --mist, --rule, --font, --gutter, --header-h). Every class is prefixed px-. */

:root {
  --px-ease: cubic-bezier(.2, .7, .2, 1);
  --px-radius: 4px;
  --px-soft: #f8fafc;      /* light section ground (CLAUDE.md background) */
  --px-bar-h: 76px;
}

/* ---------- Hero: full-bleed photo, big statement type, live numbers ---------- */
.px-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(88vh, 760px); display: flex; align-items: flex-end;
  background: var(--black); color: #fff;
}
.px-hero__bg {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06); animation: px-settle 2.4s var(--px-ease) forwards;
}
.px-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 35%, rgba(0,0,0,.82) 100%),
    linear-gradient(90deg, rgba(66,5,0,.55) 0%, rgba(0,0,0,0) 60%);
}
.px-hero__inner { padding-block: clamp(96px, 14vh, 160px) clamp(40px, 6vw, 72px); }
.px-crumb ol { display: flex; gap: 10px; list-style: none; padding: 0; font-size: var(--step--1); color: rgba(255,255,255,.75); }
.px-crumb li + li::before { content: "/"; margin-right: 10px; opacity: .6; }
.px-crumb a { text-decoration: none; }
.px-crumb a:hover { color: #fff; text-decoration: underline; }
.px-eyebrow {
  margin: 28px 0 14px; font-size: var(--step--1); font-weight: 600;
  letter-spacing: .32em; text-transform: uppercase; color: rgba(255,255,255,.8);
}
.px-hero__title {
  font-size: clamp(2.6rem, 1.2rem + 6.2vw, 6rem); font-weight: 800; line-height: .98;
  letter-spacing: -.02em; max-width: 14ch;
}
.px-hero__lede { margin-top: 24px; max-width: 52ch; font-size: clamp(1rem, .9rem + .4vw, 1.2rem); color: rgba(255,255,255,.86); }
.px-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: clamp(36px, 5vw, 64px) 0 0;
  border-top: 1px solid rgba(255,255,255,.25); max-width: 860px;
}
.px-stats > div { padding: 18px 20px 0 0; }
.px-stats > div + div { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.25); }
.px-stats dt { font-size: var(--step--2); letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.px-stats dd { white-space: nowrap; margin: 6px 0 0; font-size: clamp(1.5rem, 1rem + 2vw, 2.4rem); font-weight: 800; line-height: 1; }
.px-hero__cue {
  position: absolute; right: var(--gutter); bottom: clamp(40px, 6vw, 72px);
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.5); color: #fff; transition: background .3s, color .3s;
}
.px-hero__cue svg { width: 22px; height: 22px; animation: px-bob 2.2s ease-in-out infinite; }
.px-hero__cue:hover { background: #fff; color: var(--oxblood); }

@keyframes px-settle { to { transform: scale(1); } }
@keyframes px-bob { 50% { transform: translateY(4px); } }

/* ---------- Sticky filter bar ---------- */
.px { padding-bottom: var(--section-y); background: #fff; }
.px-bar {
  position: sticky; top: var(--header-h); z-index: 40;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.px-bar__inner { display: flex; align-items: center; gap: 16px; min-height: var(--px-bar-h); padding-block: 12px; flex-wrap: wrap; }
.px-search {
  flex: 1 1 200px; min-width: 0; display: flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 0 14px; border: 1px solid var(--rule); border-radius: var(--px-radius); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.px-search:focus-within { border-color: var(--charcoal); box-shadow: 0 0 0 3px rgba(96,7,0,.12); }
.px-search svg { width: 18px; height: 18px; flex: none; color: var(--steel); }
.px-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 1rem; color: var(--charcoal); }
.px-search input::placeholder { color: var(--steel); }

.px-filters { display: flex; align-items: center; gap: 10px; }
.px-select { position: relative; display: flex; flex-direction: column; }
.px-select > span { position: absolute; top: 6px; left: 13px; font-size: .625rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); pointer-events: none; }
.px-select select, .px-sort select {
  appearance: none; -webkit-appearance: none; min-height: 46px; width: 168px;
  padding: 18px 36px 4px 12px; border: 1px solid var(--rule); border-radius: var(--px-radius);
  font: inherit; font-size: .875rem; font-weight: 600; color: var(--charcoal); cursor: pointer;
  text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23363336' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 10px center / 16px;
  transition: border-color .2s;
}
.px-select select:hover, .px-sort select:hover { border-color: var(--charcoal); }

.px-seg { display: inline-flex; border: 1px solid var(--rule); border-radius: var(--px-radius); padding: 3px; background: var(--mist); }
.px-seg button {
  min-height: 38px; padding: 0 14px; border: 0; border-radius: 3px; background: transparent;
  font: inherit; font-size: .8125rem; font-weight: 600; color: var(--steel); cursor: pointer; transition: background .2s, color .2s;
}
.px-seg button:hover { color: var(--charcoal); }
.px-seg button[aria-pressed="true"] { background: #fff; color: var(--oxblood); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

.px-bar__toggle { display: none; }
.px-bar__badge {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 6px;
  border-radius: 10px; background: var(--oxblood); color: #fff; font-size: .7rem;
}

/* ---------- Results line + chips + sort ---------- */
.px-results { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 28px 0 24px; }
.px-results > p { margin: 0; font-size: .9375rem; color: var(--steel); }
.px-results > p strong { color: var(--charcoal); font-size: 1.25rem; }
.px-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; flex: 1; }
.px-chips button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px 0 12px;
  border: 1px solid var(--oxblood); border-radius: 999px; background: rgba(96,7,0,.06);
  font: inherit; font-size: .8125rem; font-weight: 600; color: var(--oxblood); cursor: pointer;
}
.px-chips button svg { width: 14px; height: 14px; }
.px-chips button:hover { background: var(--oxblood); color: #fff; }
.px-chips .px-chips__reset { border-color: transparent; background: none; color: var(--steel); text-decoration: underline; }
.px-chips .px-chips__reset:hover { background: none; color: var(--charcoal); }
.px-sort { display: flex; align-items: center; gap: 10px; margin-left: auto; font-size: .8125rem; font-weight: 600; color: var(--steel); }
.px-sort select { width: auto; min-height: 40px; padding: 0 36px 0 12px; }

/* ---------- Grid ---------- */
.px-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px);
  grid-auto-rows: clamp(380px, 36vw, 520px); grid-auto-flow: dense;
}
.px-card.is-wide { grid-column: span 2; }

/* ---------- Card: photo fills, text sits on a gradient, details rise on hover ---------- */
.px-card > a {
  position: relative; display: block; height: 100%; overflow: hidden; isolation: isolate;
  border-radius: var(--px-radius); background: var(--charcoal); color: #fff; text-decoration: none;
}
.px-card__media { position: absolute; inset: 0; z-index: -1; }
.px-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--px-ease), filter .6s; }
.px-card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,.25) 55%, rgba(0,0,0,.88) 100%);
  transition: opacity .5s;
}
.px-card__tag, .px-card__count {
  position: absolute; top: 16px; z-index: 1;
  font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.px-card__tag { left: 16px; padding: 6px 10px; background: rgba(255,255,255,.94); color: var(--oxblood); border-radius: 2px; }
.px-card__count { right: 16px; padding: 6px 0; color: rgba(255,255,255,.85); }

.px-card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(20px, 2.2vw, 30px); }
.px-card__meta { display: flex; align-items: center; gap: 14px; margin: 0 0 10px; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.px-card__state { display: inline-flex; align-items: center; gap: 6px; }
.px-card__state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #9ca3af; }
.is-ongoing .px-card__state::before { background: #f59e0b; box-shadow: 0 0 0 0 rgba(245,158,11,.6); animation: px-pulse 2s infinite; }
.px-card__name { font-size: clamp(1.25rem, 1rem + .9vw, 1.7rem); font-weight: 800; line-height: 1.12; max-width: 22ch; }
.is-wide .px-card__name { font-size: clamp(1.5rem, 1rem + 1.4vw, 2.3rem); }

/* Details: collapsed to zero height, rise on hover/focus */
.px-card__more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .5s var(--px-ease), opacity .4s, margin .5s var(--px-ease); }
.px-card__more > * { min-height: 0; overflow: hidden; }
.px-card__more p { margin: 0; font-size: .9rem; line-height: 1.5; color: rgba(255,255,255,.88); max-width: 46ch; }
.px-card__more dl { display: flex; gap: 28px; margin: 14px 0 0; }
.px-card__more dt { font-size: .625rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.px-card__more dd { margin: 2px 0 0; font-size: .875rem; font-weight: 600; }
.px-card__cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.px-card__cta svg { width: 18px; height: 18px; transition: transform .4s var(--px-ease); }

.px-card__progress { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: 4px; background: rgba(255,255,255,.22); }
.px-card__progress i { display: block; height: 100%; background: var(--oxblood); }

@media (hover: hover) {
  .px-card > a:hover .px-card__media img, .px-card > a:focus-visible .px-card__media img { transform: scale(1.06); }
  .px-card > a:hover .px-card__more, .px-card > a:focus-visible .px-card__more { grid-template-rows: 1fr; opacity: 1; margin-top: 12px; }
  .px-card > a:hover .px-card__cta svg { transform: translateX(6px); }
}
/* Touch screens have no hover, so the details are always open */
@media (hover: none) {
  .px-card__more { grid-template-rows: 1fr; opacity: 1; margin-top: 12px; }
}
.px-card > a:focus-visible { outline: 3px solid var(--oxblood); outline-offset: 3px; }

@keyframes px-pulse { 70% { box-shadow: 0 0 0 7px rgba(245,158,11,0); } 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); } }

/* ---------- Scroll reveal (only once JS confirms motion is welcome) ---------- */
.can-reveal .px-card { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--px-ease), transform .8s var(--px-ease); }
.can-reveal .px-card.is-in { opacity: 1; transform: none; }
.can-reveal .px-card:nth-child(3n+2) { transition-delay: .08s; }
.can-reveal .px-card:nth-child(3n) { transition-delay: .16s; }

/* ---------- Empty + load more ---------- */
.px-empty { padding: 64px 0; text-align: center; }
.px-empty p { font-size: 1.125rem; color: var(--steel); }
.px-more { display: flex; justify-content: center; margin-top: clamp(32px, 4vw, 56px); }

/* ---------- Shared by every page: section heads, arrow links, a 3-card project row ----------
   (named pd- because the case-study page introduced them) */
.pd-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(20px, 3vw, 32px); }
.pd-section-head p { margin: 0; font-size: .875rem; font-weight: 600; color: var(--steel); }
.pd-h2 { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem); font-weight: 800; letter-spacing: -.01em; color: var(--black); }
.pd-link { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--oxblood); text-decoration: none; }
.pd-link svg { width: 18px; height: 18px; transition: transform .4s var(--px-ease); }
.pd-link:hover svg { transform: translateX(6px); }

.pd-related { padding-block: var(--section-y); background: #fff; border-top: 1px solid var(--rule); }
.pd-related__grid { grid-auto-rows: clamp(340px, 30vw, 440px); }

/* ---------- Lightbox (shared; Alpine pdGallery in site.js) ---------- */
.pd-lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 64px 72px; background: #0a0a0a; --focus: #fff; }
.pd-lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; }
.pd-lightbox button {
  position: absolute; display: grid; place-items: center; width: 52px; height: 52px; padding: 0;
  border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(0,0,0,.4); color: #fff; cursor: pointer;
  transition: background .2s, color .2s;
}
.pd-lightbox button:hover { background: #fff; color: var(--black); }
.pd-lightbox button svg { width: 22px; height: 22px; }
.pd-lightbox__close { top: 16px; right: 16px; }
.pd-lightbox__nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.pd-lightbox__nav--next { right: 16px; top: 50%; transform: translateY(-50%); }
.pd-lightbox__count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); margin: 0; font-size: .8125rem; font-weight: 600; letter-spacing: .14em; color: rgba(255,255,255,.8); }
.pd-lightbox__caption { position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%); width: min(90%, 640px); margin: 0; text-align: center; font-size: .9375rem; font-weight: 600; color: #fff; }
.pd-lightbox:has(.pd-lightbox__caption:not(:empty)) { padding-bottom: 104px; }

/* ---------- News card + list (shared: /news, /news/{slug}, home; markup from nw_card() in nw.php) ---------- */
.nw-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(16px, 2vw, 32px); }
.nw-card a { display: block; color: inherit; text-decoration: none; }
.nw-card__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--px-radius); background: var(--mist); }
.nw-card--lead .nw-card__media { aspect-ratio: 16 / 11; }
.nw-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--px-ease); }
.nw-card__meta { display: flex; gap: 14px; margin: 16px 0 8px; font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.nw-card__meta span { color: var(--oxblood); }
.nw-card__title { font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); font-weight: 800; line-height: 1.3; color: var(--black); }
.nw-card--lead .nw-card__title { font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem); line-height: 1.2; }
.nw-card__excerpt { margin: 10px 0 0; max-width: 56ch; color: var(--charcoal); }
.nw-card a:focus-visible { outline: 3px solid var(--oxblood); outline-offset: 4px; border-radius: 2px; }
@media (hover: hover) {
  .nw-card a:hover .nw-card__media img { transform: scale(1.05); }
  .nw-card a:hover .nw-card__title { text-decoration: underline; text-underline-offset: 3px; }
}

.nw-card__meta .nw-card__read { color: var(--steel); font-weight: 600; }

/* ---------- Phone menu (includes/menu.php, Alpine pxMenu) — shown at ≤1080px, where main.css shows .nav-toggle ---------- */
.px-burger { align-items: center; gap: 10px; min-height: 44px; padding: 0 4px 0 12px; font: inherit; color: var(--black); }
.px-burger__bars { position: relative; display: block; width: 24px; height: 16px; }
.px-burger__bars i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .45s var(--px-ease), opacity .25s, width .35s var(--px-ease); }
.px-burger__bars i:nth-child(1) { top: 0; }
.px-burger__bars i:nth-child(2) { top: 7px; width: 70%; }
.px-burger__bars i:nth-child(3) { top: 14px; }
.px-burger:hover .px-burger__bars i:nth-child(2) { width: 100%; }
.px-burger.is-open .px-burger__bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.px-burger.is-open .px-burger__bars i:nth-child(2) { opacity: 0; transform: translateX(8px); }
.px-burger.is-open .px-burger__bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.px-burger__label { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.px-menu-open { overflow: hidden; }
.px-menu-open .site-header { background: #fff; }

.px-menu {
  position: fixed; inset: var(--header-h) 0 0; z-index: 60; overflow-y: auto; overscroll-behavior: contain;
  background:
    radial-gradient(120% 70% at 100% 0%, color-mix(in srgb, var(--oxblood) 55%, transparent) 0%, transparent 60%),
    var(--black);
  color: #fff;
}
.px-menu--enter, .px-menu--leave { transition: clip-path .55s var(--px-ease), opacity .4s; }
.px-menu--leave { transition-duration: .35s, .3s; }
.px-menu--from { clip-path: inset(0 0 100% 0); opacity: .4; }
.px-menu__inner { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 100%; padding-block: 12px 32px; }
.px-menu__links { list-style: none; padding: 0; margin: 0; }
.px-menu__links li, .px-menu__foot { animation: px-menu-in .6s var(--px-ease) both; animation-delay: calc(var(--i) * 45ms + 120ms); }
.px-menu__links a {
  display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule-dark);
  color: #fff; text-decoration: none;
}
.px-menu__n { flex: none; width: 2.2em; font-size: .75rem; font-weight: 700; letter-spacing: .12em; color: rgba(255,255,255,.45); }
.px-menu__label { flex: 1; font-size: clamp(1.9rem, 1.2rem + 3.4vw, 3rem); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.px-menu__arrow { flex: none; width: 26px; height: 26px; opacity: 0; transform: translateX(-10px); transition: opacity .3s, transform .4s var(--px-ease); }
.px-menu__links a:hover .px-menu__arrow, .px-menu__links a:focus-visible .px-menu__arrow { opacity: 1; transform: none; }
.px-menu__links a[aria-current="page"] .px-menu__n { color: #fff; }
.px-menu__links a[aria-current="page"] .px-menu__label { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--oxblood) 45%, #fff); text-decoration-thickness: 4px; text-underline-offset: 8px; }
.px-menu__links a[aria-current="page"] .px-menu__arrow { opacity: 1; transform: none; }
.px-menu a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.px-menu__foot { display: grid; gap: 18px; }
.px-menu__cta { justify-content: center; min-height: 52px; }
.px-menu__quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 0; }
.px-menu__quick a {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 8px;
  border: 1px solid rgba(255,255,255,.3); border-radius: var(--px-radius); color: #fff; font-size: .8125rem; font-weight: 700; text-decoration: none;
  transition: background .2s, border-color .2s;
}
.px-menu__quick a:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.px-menu__quick svg { width: 16px; height: 16px; }
.px-menu__label-sm { margin: 6px 0 -6px; font-size: .6875rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.px-menu__docs { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.px-menu__docs a { display: flex; align-items: center; gap: 12px; min-height: 48px; color: #fff; text-decoration: none; font-weight: 600; }
.px-menu__docs svg { flex: none; width: 18px; height: 18px; color: rgba(255,255,255,.7); }
.px-menu__docs small { display: block; font-size: .75rem; font-weight: 500; color: rgba(255,255,255,.6); }
.px-menu__docs a:hover span { text-decoration: underline; }
.px-menu__lang { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; color: #fff; font-weight: 700; text-decoration: none; }
@keyframes px-menu-in { from { opacity: 0; transform: translateY(18px); } }

@media (min-width: 600px) {
  .px-menu__docs { grid-template-columns: 1fr 1fr; gap: 4px 24px; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .px-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(340px, 52vw, 480px); }
  .px-filters { flex-wrap: wrap; }
  .px-select select { width: 180px; }
  .pd-related__grid > li:nth-child(3) { display: none; }
  .nw-list { grid-template-columns: 1fr 1fr; }
  .nw-card--lead { grid-column: 1 / -1; }
}

/* ---------- Phone: filters in a drawer, cards become photo + text stacks ---------- */
@media (max-width: 760px) {
  .px-hero { min-height: 78vh; }
  .px-eyebrow { letter-spacing: .18em; }
  .px-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .px-stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .px-stats > div:nth-child(n+3) { margin-top: 16px; }
  .px-hero__cue { display: none; }

  .px-bar__inner { gap: 10px; flex-wrap: wrap; }
  .px-search { flex: 1 1 0; }
  .px-bar__toggle {
    display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 14px;
    border: 1px solid var(--rule); border-radius: var(--px-radius); background: #fff;
    font: inherit; font-size: .875rem; font-weight: 600; color: var(--charcoal); cursor: pointer;
  }
  .px-bar__toggle svg { width: 18px; height: 18px; }
  .px-filters { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 4px 0 6px; }
  .px-filters.is-open { display: flex; }
  .px-select select { width: 100%; }
  .px-seg { display: flex; }
  .px-seg button { flex: 1; }

  .px-results { padding: 20px 0 16px; }
  .px-sort { margin-left: 0; width: 100%; }
  .px-sort select { flex: 1; }

  .px-grid { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 28px; }
  .px-card.is-wide { grid-column: auto; }
  .px-card > a { background: none; color: var(--charcoal); overflow: visible; }
  .px-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--px-radius); z-index: 0; }
  .px-card__media::after { background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,0) 30%); }
  .px-card__body { position: static; padding: 16px 0 0; }
  .px-card__meta { color: var(--steel); }
  .px-card__name, .is-wide .px-card__name { font-size: 1.35rem; }
  .px-card__more { grid-template-rows: 1fr; opacity: 1; margin-top: 10px; }
  .px-card__more p { color: var(--charcoal); }
  .pd-related__grid > li:nth-child(3) { display: list-item; }
  .nw-list { grid-template-columns: 1fr; }
  .pd-lightbox { padding: 64px 0; }
  .pd-lightbox:has(.pd-lightbox__caption:not(:empty)) { padding-bottom: 104px; }
  .pd-lightbox__nav { display: none !important; }
  .px-card__more dt { color: var(--steel); }
  .px-card__cta { color: var(--oxblood); }
}

@media (prefers-reduced-motion: reduce) {
  .px-hero__bg { animation: none; transform: none; }
  .px-hero__cue svg, .is-ongoing .px-card__state::before { animation: none; }
  .px-card__media img, .px-card__more, .px-card__cta svg, .pd-link svg, .nw-card__media img { transition: none; }
  .px-burger__bars i, .px-menu__arrow, .px-menu--enter, .px-menu--leave { transition: none; }
  .px-menu__links li, .px-menu__foot { animation: none; }
}
