/* Community, Join JPD and Accessibility: page-specific additions to pages-2026.css (November 2026 refresh).
   Everything is scoped to main.px. Mostly re-skins the site.css infographic parts (.ig-*) for the rounded
   bands: 22px panels, blue and gold fills (red stays for things that need attention), bigger numerals. */

/* ---------- shared bits ---------- */
.px .pp-body { margin: 18px 0 0; font-size: 1.0625rem; line-height: 1.55; color: var(--px-fg2); max-width: 36em; }
.px .px-band .px-sub + .pp-body { margin-top: 14px; }
.px .px-card p.px-fact { margin: 0 0 2px; font-size: 0.9375rem; font-weight: 600; line-height: 1.3; color: var(--px-accent); }

/* headings inside a reveal block are still 24px low when the browser works out a jump, so give them more room under the sticky header */
.px [data-rv] [id], .px [data-rv][id] { scroll-margin-top: calc(var(--px-top) + 40px); }

/* jump links in the hero (community) */
.px .pp-jump { margin-top: 22px; }
.px .pp-jump ul { gap: 8px; }
.px .pp-jump a { min-height: 44px; padding: 0 14px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  font-size: 0.9375rem; -webkit-tap-highlight-color: transparent; transition: background-color .18s ease, transform .18s var(--px-ease); }
.px .pp-jump a:hover { background: rgba(255, 255, 255, .16); }
.px .pp-jump a:active { transform: scale(.97); }
.px-mo .px-hero .pp-jump { animation: px-rise .8s var(--px-ease) .22s both; }

/* checklists (requirements, what we've done, benefits) */
.px .ig-checks li { padding: 15px 0 15px 44px; border-top: 1px solid var(--px-line); color: var(--px-fg); font-size: 1.0625rem; line-height: 1.45; }
.px .ig-checks li:first-child { border-top: 0; }
.px .ig-checks li::before { top: 14px; width: 28px; height: 28px; border-radius: 9px; background: var(--px-gold); }
.px .ig-checks li::after { left: 10px; top: 19px; border-color: var(--px-deep); }
.px .ig-checks.one { max-width: 34rem; }

/* ---------- community ---------- */
/* year chart */
.px .pp-year { padding: 18px 16px 8px; border-radius: var(--px-r); background: #fff; box-shadow: inset 0 0 0 1px var(--px-card-line); }
.px .pp-year .mh { color: var(--px-muted); }
.px .pp-year .rows > li { border-top-color: rgba(18, 38, 54, .1); padding: 10px 0; }
.px .pp-year .k { color: var(--px-ink); font-size: 1rem; }
.px .pp-year .tr { height: 30px; border-radius: 8px; overflow: hidden;
  /* same geometry as the 12-column grid the blocks sit on: column = (100% - 11 gaps) / 12, then a 3px gap */
  background: repeating-linear-gradient(90deg, #f3eee4 0 calc((100% - 33px) / 12), transparent 0 calc((100% - 33px) / 12 + 3px)); }
.px .pp-year .blk { border-radius: 8px; font-size: 0.8125rem; }
.px .pp-year .blk.r { background: #b98d3e; }
.px .pp-year .blk.s { background: linear-gradient(90deg, var(--px-blue), var(--px-steel)); }

/* program cards */
.px .pp-progs .prog { display: flex; flex-direction: column; gap: 0; padding: 22px; border-bottom: 0; }
.px .pp-progs .prog > div { max-width: none; }
/* pages-2026 zeroes the top margin of a card's first child, which also cancels the photo's bleed */
.px .pp-progs .px-card > .px-card-ph { aspect-ratio: 16 / 10; margin-top: -22px; }
.px .pp-progs p a { position: relative; }
.px .pp-progs p a::after { content: ""; position: absolute; inset: -13px -4px; }
.px .pp-progs .prog p:not(.px-fact) { margin-top: 10px; }
.px .pp-progs .px-h3 { margin-bottom: 6px; }
/* card 2 (5K runner): crop tighter from the top right so the corner mark is not cut by the card edge */
.px .pp-progs .prog:nth-child(2) .px-card-ph img { transform: scale(1.16); transform-origin: 100% 0; }
.px .pp-progs .prog.pp-care { gap: 18px; }
.px .pp-care .ig-ring { display: flex; align-items: center; gap: 16px; width: auto; text-align: left; }
/* ring and number share one grid cell, so the number is centred by layout at any size */
.px .pp-care .ig-ring .ringbox { flex: none; width: 116px; display: grid; place-items: center; }
.px .pp-care .ig-ring .ringbox > * { grid-area: 1 / 1; }
.px .pp-care .ig-ring .bg { stroke: rgba(255, 255, 255, .14); }
.px .pp-care .ig-ring .fg { stroke: var(--px-gold); }
/* the card paragraph rule (margin-top 10px, line-height 1.5) is more specific than the old reset, which pushed the number low.
   The box is trimmed to the digits (cap height to baseline) so the ink, not the line box, is what gets centred. */
.px .pp-progs .pp-care .ig-ring p.ig-big { position: static; transform: none; margin: 0; color: #fff; font-size: 2.5rem; line-height: 1; text-align: center; white-space: nowrap;
  text-box: trim-both cap alphabetic;
  /* the box holds the digits only, so "93" is what gets centred; the small % hangs off its top right corner.
     The right padding (about a third of the % width) pulls the pair a touch left so the whole mark looks centred. */
  position: relative; inset: auto; padding-right: .16em; }
.px .pp-progs .pp-care .ig-ring p.ig-big small { position: absolute; left: calc(100% - .4em + 2px); top: 0; margin: 0; font-size: .4em; font-weight: 700; line-height: 1; text-box: trim-both cap alphabetic; }
@supports not (text-box: trim-both cap alphabetic) {
  /* Barlow Condensed digits sit .05em below the middle of a line-height 1 box */
  .px .pp-progs .pp-care .ig-ring p.ig-big { padding-bottom: .1em; }
  .px .pp-progs .pp-care .ig-ring p.ig-big small { top: .12em; }
}
.px .pp-care .ig-ring figcaption { margin: 0; color: var(--px-fg); font-size: 1rem; font-weight: 600; line-height: 1.3; max-width: 11em; }

/* Back Your Blue 5K */
.px .pp-5k .px-media img { aspect-ratio: 1500 / 705; object-fit: cover; }
.px .pp-5k .px-h { margin-bottom: 0; }
.px .pp-5k .px-fact { margin-top: 12px; font-size: 1rem; }
.px .pp-5k .px-sub { color: var(--px-fg); }

/* get involved: the whole card is the link */
.px .pp-ways .px-card { display: flex; flex-direction: column; transition: transform .25s var(--px-ease), box-shadow .18s ease; }
.px .pp-ways .px-card:has(a:hover) { box-shadow: inset 0 0 0 1px var(--px-muted); }
.px .pp-ways .px-card:has(a:active) { transform: scale(.98); }
.px .pp-ways .go { display: inline-flex; align-items: center; min-height: 48px; margin: auto 0 -10px; padding-top: 8px; color: var(--px-blue); font-weight: 600; font-size: 1.0625rem;
  text-decoration: none; -webkit-tap-highlight-color: transparent; }
.px .pp-ways .go::after { content: ""; position: absolute; inset: 0; border-radius: var(--px-r); }
.px .pp-ways .go:hover { text-decoration: underline; text-underline-offset: 5px; }
.px .pp-ways .go:focus-visible { outline: 0; }
.px .pp-ways .go:focus-visible::after { outline: 2px solid var(--px-ring); outline-offset: 3px; }

/* ---------- join JPD ---------- */
.px .pp-hero-careers .px-hero-copy { max-width: 44rem; }
/* keeps the breadcrumb readable over the bright sky */
.px .pp-hero-careers .px-hero-bg::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 180px; background: linear-gradient(180deg, rgba(6, 13, 26, .86), rgba(6, 13, 26, .58) 45%, transparent); }
.px .pp-hero-careers .crumbs a { color: #fff; }
.px .pp-hero-careers .crumbs span { color: #e3e9f1; }
/* phones and tablets: the title crosses the white cruiser. A light wash keeps the car recognisable behind the title;
   the intro gets its own darker backing that starts where the intro starts, whatever the title length or language. */
.px .pp-hero-careers .px-hero-bg::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(6, 13, 26, .5) 0, rgba(6, 13, 26, .3) 45%, rgba(6, 13, 26, .1) 70%, transparent 85%); }
.px .pp-hero-careers .px-lede { position: relative; }
.px .pp-hero-careers .px-lede::before { content: ""; position: absolute; z-index: -1; inset: -24px -100vw -320px; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(6, 13, 26, .55) 40px, rgba(6, 13, 26, .7) 100%); }
.px .pp-hero-careers h1 { text-shadow: 0 2px 18px rgba(6, 13, 26, .75), 0 0 3px rgba(6, 13, 26, .5); }
.px .pp-hero-careers .px-lede { text-shadow: 0 1px 10px rgba(6, 13, 26, .7); }
.px .pp-hero-careers .px-btn-ghost { background: rgba(6, 13, 26, .35); border-color: rgba(255, 255, 255, .8); }
.px .pp-hero-careers .px-btn-ghost:hover { background: #fff; border-color: #fff; }

/* comparison bars */
.px .ig-track { height: 16px; border-radius: 8px; background: var(--px-tint); }
.px .ig-fill { border-radius: 8px; background: var(--px-blue); }
.px .ig-fill.alt { background: #7e97b3; }
.px .ig-fill.mute { background: #6f7f92; }
.px .px-navy .ig-fill { background: var(--px-gold); }
.px .px-navy .ig-fill.mute { background: #6f7f92; }
.px .ig-row .k { color: var(--px-fg); }
.px .ig-row .val { color: var(--px-fg); font-size: 1.5rem; }
/* one fixed value column for both rows (so the bars stay comparable), wide enough for the Spanish value on one line */
.px #why .ig-row .val { white-space: nowrap; }
@media (min-width: 561px) {
  .px #why .ig-row { grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr) 8.75rem; }
  .px #why .ig-row .val { font-size: 1.25rem; }
}
.px #why .ig-bars { margin: 0; padding: 22px; border-left: 0; background: #fff; }
.px #why .ig-bars figcaption { font-size: 1.0625rem; color: var(--px-ink); }
.px .pp-why { margin-bottom: 28px; }
.px .pp-why .px-head { margin-bottom: 0; }
.px .pp-units p.trainnum { margin: 8px 0 0; font-size: 3.25rem; line-height: 1; color: var(--px-blue); }
.px .pp-units .trainnum small { font-size: 0.42em; color: var(--px-ink); margin-left: 4px; }

/* pay and benefits panels */
.px .pp-pay { gap: 14px; }
.px .pp-pay .ig-panel { padding: 22px; border: 0; border-radius: var(--px-r); background: var(--px-card); box-shadow: inset 0 0 0 1px var(--px-card-line); }
.px .pp-pay .ig-panel h3 { margin: 0 0 12px; font-size: 1.0625rem; font-weight: 600; color: var(--px-fg2); }
.px .pp-pay .ig-panel .ig-big { font-size: clamp(3.75rem, 2.4rem + 6vw, 5.5rem); line-height: .92; }
.px .pp-pay .ig-panel .note { margin-top: 12px; font-size: 1rem; line-height: 1.45; color: var(--px-fg2); }
.px .pp-pay .ig-days { gap: 5px; margin: 4px 0 0; }
.px .pp-pay .ig-days li { align-items: center; height: 56px; padding-bottom: 0; border-radius: 10px; font-size: 0.75rem; background: rgba(255, 255, 255, .08); color: #b4c1d1; }
.px .pp-pay .ig-days li.on { background: #2a64a8; color: #fff; }
.px .pp-pay .ig-dots { gap: 9px; margin: 18px 0 4px; }
.px .pp-pay .ig-checks li { color: var(--px-fg2); }
.px .pp-pay .ig-checks b { color: #fff; }
@media (min-width: 721px) { .px .pp-pay .ig-checks li:nth-child(2) { border-top: 0; } }

/* hiring steps */
.px .pp-steps > li::before { background: var(--px-blue); width: 52px; height: 52px; }
.px .pp-steps > li:last-child::before { background: var(--px-ink); }
.px .pp-steps > li:not(:last-child)::after { background: rgba(18, 38, 54, .28); left: 24px; }
.px .pp-steps h3 { font-family: var(--display); font-weight: 700; font-size: 1.625rem; line-height: 1.05; margin: 0 0 6px; color: var(--px-ink); }
.px .pp-steps p { font-size: 1rem; line-height: 1.5; color: #3e4b57; }

/* talk to a recruiter */
.px .pp-apply .px-note { margin-top: 22px; background: #fff; }
.px .pp-apply .px-note a { white-space: nowrap; }
.px .pp-apply .px-note a[href^="mailto"] { white-space: normal; overflow-wrap: anywhere; }
/* the shared field rule resets the background, which dropped the arrow from the dropdown */
.px .pp-apply .px-form select { padding-right: 44px; background-repeat: no-repeat; background-position: right 16px center; background-size: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23122636' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.px .pp-apply .px-form { max-width: none; }
.px .pp-apply label.f { font-size: 1rem; }
.px .pp-apply label.f span em { color: var(--px-red); }
.px .pp-officer { margin: 0; }
.px .pp-officer img { border-radius: 0; aspect-ratio: 16 / 9; object-fit: cover; }
.px .pp-officer figcaption { margin: 0; padding: 12px 18px; font-size: 0.9375rem; color: #e3e9f1; background: var(--px-navy-2); }

/* ---------- accessibility ---------- */
.px .pp-commit { gap: 16px; }
.px .pp-commit .px-h { margin: 0; }
.px .pp-lead { margin: 0; font-size: 1.1875rem; line-height: 1.55; color: var(--px-ink); max-width: 38em; }
.px .pp-reach { list-style: none; padding: 0; margin: 0; display: grid; }
.px .pp-reach li { display: block; margin: 0; font-size: 1rem; font-weight: 500; line-height: 1.45; color: var(--px-fg2); }
.px .pp-reach li::marker { content: none; }
.px .px-band .pp-reach li :is(a:not([class]), .pp-val) { display: flex; align-items: center; width: fit-content; max-width: 100%; margin: 4px 0; min-height: 44px; font: 700 1.375rem/1.1 var(--display); color: var(--px-ink); text-decoration: none; overflow-wrap: anywhere; }
.px .px-band .pp-reach li a:not([class]):hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.px .pp-std { margin: 18px 0 0; padding-top: 16px; font: 700 clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem)/1.05 var(--display); font-variant-numeric: tabular-nums; color: var(--px-blue); position: relative; }
.px .pp-std::before { content: ""; position: absolute; left: 0; top: 0; width: 56px; height: 4px; border-radius: 2px; background: #b98d3e; }
.px .pp-reach + .pp-body { margin-top: 24px; color: var(--px-ink); }

/* narrow cells: keep the labels readable by switching to the condensed display face instead of shrinking them */
@media (max-width: 479px) {
  .px .pp-pay .ig-days { gap: 3px; }
  .px .pp-pay .ig-days li { font-family: var(--display); font-size: 0.75rem; font-weight: 600; letter-spacing: .02em; border-radius: 8px; }
  /* the Spanish labels are longer: keep a visible margin inside each tile */
  html[lang="es"] .px .pp-pay .ig-days { gap: 2px; }
  html[lang="es"] .px .pp-pay .ig-days li { font-size: 0.6875rem; letter-spacing: 0; }
}
@media (max-width: 720px) {
  .px .pp-year .mh { font-family: var(--display); font-size: 0.75rem; letter-spacing: .02em; }
  .px .pp-year .rows > li { gap: 6px; }
}
/* two-up card grids: a third card takes the full row instead of sitting beside an empty slot */
@media (min-width: 600px) and (max-width: 899px) {
  .px :is(.pp-units, .pp-ways, .pp-reach) > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  /* label over value: keep the value on the label's last line when the label wraps (Spanish) */
  .px .pp-pay .ig-row { align-items: end; }
}
@media (min-width: 600px) {
  /* room for the whole address: keep it in one piece (the wbr is only for phones) */
  .px .pp-apply .px-note a[href^="mailto"] { white-space: nowrap; overflow-wrap: normal; }
  .px .pp-apply .px-note a[href^="mailto"] wbr { display: none; }
  .px .pp-care .ig-ring .ringbox { width: 132px; }
  .px .pp-progs .pp-care .ig-ring p.ig-big { font-size: 2.875rem; }
  .px .pp-care .ig-ring figcaption { max-width: none; white-space: nowrap; font-size: 1.0625rem; }
  /* Project CARE runs the full row: copy on the left, ring on the right */
  .px .pp-progs .prog.pp-care { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; gap: 24px 40px; }
  .px .pp-progs .pp-care > div { max-width: 44em; }
  .px .pp-progs .pp-care .ig-ring { flex: none; }
}
/* two-up program grid: the third photo card takes a full row so the text cards pair up */
@media (min-width: 600px) and (max-width: 899px) {
  .px .pp-progs .prog:nth-child(3) { grid-column: 1 / -1; }
  .px .pp-progs .prog:nth-child(3) > .px-card-ph { aspect-ratio: 21 / 9; }
  .px .pp-progs .pp-care .ig-ring { flex-direction: column; align-items: center; gap: 10px; text-align: center; }
}
@media (max-width: 899px) {
  /* one column: bring the first block up under its heading like the other bands (about 27px) */
  .px .pp-done { row-gap: 12px; }
  .px .pp-done > .px-note { margin-top: 24px; }
  .px #requirements .px-cols, .px .pp-why { row-gap: 24px; }
  .px .ig-checks.one { max-width: none; }
  .px .pp-steps { max-width: none; }
  .px .pp-steps > li { padding: 12px 0 26px 72px; }
}

@media (min-width: 600px) {
  .px .pp-year { padding: 24px 26px 12px; }
}
@media (min-width: 900px) {
  .px .pp-progs .prog { padding: 28px; }
  .px .pp-progs .px-card > .px-card-ph { margin-top: -28px; }
  /* three photo cards, then two text cards, then Project CARE across the row (same order as the markup) */
  .px .px-cards.three.pp-progs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .px .pp-progs .prog { grid-column: span 2; }
  .px .pp-progs .prog:nth-child(4), .px .pp-progs .prog:nth-child(5) { grid-column: span 3; }
  /* a hairline sets the figure apart, so the space between copy and ring reads as two parts of one card */
  .px .pp-progs .pp-care .ig-ring { align-self: stretch; padding-left: 40px; border-left: 1px solid var(--px-line); }
  /* hero jump links: two tidy rows of two instead of three and a stray one */
  .px .pp-jump ul { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); }
  .px .pp-jump a { display: flex; justify-content: space-between; }
  /* schedule tiles grow into the height the panel gets from Paid holidays beside it; what is left is shared above and below */
  .px .pp-pay .pp-sched { display: flex; flex-direction: column; }
  .px .pp-pay .pp-sched .ig-days { flex: 1 1 auto; max-height: 96px; margin-block: auto; }
  /* the heading has 12px under it, so the note gets 12px over it: the free space is then equal above and below the tiles */
  .px .pp-pay .pp-sched .note { margin-top: 12px; }
  .px .pp-pay .pp-sched .ig-days li { height: auto; min-height: 56px; font-size: 0.875rem; }
  /* Working at JPD: the card with the figure runs the full height on the left, the two short cards stack beside it */
  .px .px-cards.three.pp-units { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
  .px .pp-units > :first-child { grid-row: span 2; display: flex; flex-direction: column; justify-content: center; }
  .px .pp-units > :first-child p.trainnum { font-size: 4.5rem; margin: 12px 0 6px; }
  .px .pp-5k .px-cols { align-items: center; }
  .px .pp-why { align-items: end; margin-bottom: 40px; }
  .px #why .ig-bars { padding: 28px; }
  .px .pp-pay { gap: 18px; }
  .px .pp-pay .ig-panel { padding: 28px; }
  .px .pp-steps h3 { font-size: 1.5rem; }
  .px .pp-apply { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-areas: "copy form" "fig form"; }
  .px .pp-apply-copy { grid-area: copy; }
  .px .pp-apply .px-form { grid-area: form; }
  .px .pp-officer { grid-area: fig; align-self: start; }
  .px .pp-commit { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 40px 72px; }
  .px .pp-lead { font-size: 1.3125rem; }
  .px .pp-hero-plain:has(+ .px-round) { padding-bottom: calc(56px + var(--px-r)); }
  /* What we've done: heading, then the list in two columns (rows line up across), then the note across the full width */
  .px .pp-done { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
  .px .pp-done .ig-checks.one { max-width: none; display: grid; grid-auto-flow: column; grid-template-rows: repeat(4, auto); grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 72px; }
  .px .pp-done .ig-checks li:nth-child(5) { border-top: 0; }
  .px .pp-done > .px-note { margin-top: 12px; }
}
@media (min-width: 1200px) {
  /* wide screens (below this the title crosses the car whatever is done, so the phone treatment stays):
      the copy sits on the left, so the photo is darkened from the left instead of from the bottom.
     The dark part is tied to the title itself (a full-height band that ends a little past the title's right edge),
     so a longer title, a narrower window or Spanish all keep the title on a dark field and the cruiser's front in the clear. */
  .px .pp-hero-careers .px-hero-bg::before { background: linear-gradient(90deg, rgba(6, 13, 26, .62) 0, rgba(6, 13, 26, .45) 40%, rgba(6, 13, 26, .15) 65%, transparent 80%); }
  .px .pp-hero-careers h1 { position: relative; width: fit-content; }
  .px .pp-hero-careers h1::before { content: ""; position: absolute; z-index: -1; inset: -100vh -150px -100vh -100vw; pointer-events: none; background: linear-gradient(90deg, rgba(6, 13, 26, .86) calc(100% - 320px), transparent); }
  .px .pp-hero-careers .px-lede::before { content: none; }
}

/* Nov 16 2026: minimum requirements on desktop: heading across the top, the eight checks in two columns
   underneath, so the left column is no longer empty beside a tall list */
@media (min-width: 1024px) {
  #requirements .px-cols { display: block; }
  #requirements .px-sub { max-width: 40rem; }
  #requirements .ig { margin-top: 28px; }
  #requirements .ig-checks.one { max-width: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
  #requirements .ig-checks.one li:nth-child(2) { border-top: 0; }
}
