/* Shared editorial language for the collection; individual stories are separate. */
body.life-dashboard[data-browse-view] { --browse-paper: #fcf8f2; --browse-blue: #e3f1fb; --browse-income: #cce5f7; --dashboard-bg: var(--browse-paper); background: var(--browse-paper); }
body.life-dashboard[data-browse-view] #browse { display: flex; flex-direction: column; gap: 0; max-width: 1536px; margin: 0 auto; padding: 0 clamp(22px, 4.2vw, 64px) 48px; scroll-margin-top: 0; }
body.life-dashboard[data-browse-view] .browse-view-switch { position: static; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 32px 0 24px; background: var(--browse-paper); border-bottom: 0; }
.browse-view-switch > .browse-switch-title { display: block; border: 0; border-radius: 0; padding: 0; }
.browse-switch-title .browse-switch-heading { margin: 0 0 6px; font-size: 40px; }
.browse-switch-title p { margin: 0; color: #456382; font: 400 16px/1.5 "Inter", sans-serif; }
.browse-view-switch > div:not(.browse-switch-title) { flex-shrink: 0; background: white; border-color: #9bb7d1; padding: 4px; border-radius: 30px; }
body.life-dashboard .browse-view-switch a { min-width: 122px; font-weight: 650; }
body.life-dashboard .browse-view-switch a[aria-current] { background: #002A60; }
body.life-dashboard[data-browse-view] .browse-tools { display: flex; flex-wrap: wrap; gap: 12px; padding: 16px; min-height: 0; border: 0; background: var(--browse-blue); border-radius: 10px; }
.browse-tools .browse-search { flex: 1 1 280px; max-width: 540px; }
.life-dashboard .browse-tools input, .life-dashboard .browse-tools select, .life-dashboard .browse-tools button { min-height: 46px; border-color: #9bb7d1; border-radius: 6px; color: #002A60; }
.browse-tools .browse-sort { margin-left: auto; }
body.life-dashboard[data-browse-view] .browse-tools [hidden] { display: none; }
body.life-dashboard[data-browse-view] .filter-rail { display: block; position: static; order: 0; align-self: stretch; width: auto; height: auto; overflow: visible; margin: 0; padding: 22px 18px; background: var(--browse-blue); border: 0; border-top: 1px solid #bdd5e8; border-radius: 0 0 10px 10px; box-shadow: none; }
body.life-dashboard[data-browse-view] .filter-rail[hidden] { display: none; }
body.life-dashboard[data-browse-view] .filter-head { display: flex; margin: 0 0 16px; }
body.life-dashboard[data-browse-view] .filter-head h2 { display: block; font-size: 20px; }
body.life-dashboard[data-browse-view] .filter-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
body.life-dashboard[data-browse-view] .filter-fields label { margin: 0; padding: 0; }
body.life-dashboard[data-browse-view] .filter-fields select { width: 100%; min-height: 44px; background: white; }
.browse-results-bar { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; padding: 20px 0; }
body[data-browse-view] #browseResultCount { display: block; margin: 0; white-space: nowrap; color: #002A60; font: 650 14px/1.5 "Inter", sans-serif; }
#browseActiveFilters { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.life-dashboard #browseActiveFilters button { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; max-width: 100%; padding: 7px 12px; border: 1px solid #bed2e1; border-radius: 18px; background: white; color: #002A60; font: 500 12px/1.5 "Inter", sans-serif; cursor: pointer; }
#browseActiveFilters button > span:first-child { overflow-wrap: anywhere; }
.browse-overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.browse-overview-card { display: flex; flex-direction: column; min-width: 0; padding: 16px 18px 12px; border-top: 3px solid #002A60; background: white; }
.browse-overview-profile { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: center; text-decoration: none; }
.browse-overview-photo { display: block; width: 72px; height: 82px; object-fit: cover; object-position: 50% 40%; border-radius: 5px; background: var(--browse-blue); }
.browse-overview-photo.browse-no-photo { display: flex; gap: 6px; text-align: center; font-size: 10px; line-height: 1.3; padding: 6px; }
.browse-overview-photo.browse-no-photo img { width: 24px; height: 24px; }
.browse-overview-profile h3 { margin: 0 0 4px; font: 750 27px/1.1 "Overpass", sans-serif; letter-spacing: normal; overflow-wrap: anywhere; }
.browse-overview-profile:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.browse-overview-location, .browse-overview-age { margin: 0; color: #456382; font: 400 13px/1.5 "Inter", sans-serif; }
.browse-overview-age { margin-top: 3px; font-size: 12px; }
.browse-overview-copy { flex: 1; padding: 12px 0; }
.browse-overview-copy h4 { margin: 0 0 6px; color: #002A60; font: 650 16px/1.4 "Inter", sans-serif; }
.browse-overview-copy .browse-story-deck { color: #456382; font-size: 14px; line-height: 1.6; }
.browse-current-income { border: 0; border-radius: 6px; padding: 14px 16px; background: var(--browse-income); }
.browse-current-income > span { color: #31516e; font-size: 11px; font-weight: 500; }
.browse-current-income strong { font-size: 29px; }
.browse-current-income .browse-income-period { display: block; margin: 4px 0 0; color: #31516e; font-size: 13px; }
.browse-overview-card .browse-current-income { gap: 3px; margin: auto 0 0; padding: 10px 12px; }
.browse-overview-card .browse-income-period { display: block; margin: 4px 0 0; }
.browse-current-income strong { min-height: 0; line-height: 1.25; }
.browse-current-income > .income-currency-name { font-size: 13px; font-weight: 400; line-height: 1.4; }
.browse-overview-card footer { display: flex; justify-content: flex-start; padding-top: 12px; }
.browse-overview-card .browse-story-link { font-size: 13px; }
.browse-presentation .browse-story-link { color: #002A60; }
.browse-pagination { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid #c8d5df; padding-top: 24px; margin-top: 32px; }
.browse-pagination p { margin: 0; color: #456382; font-size: 13px; }
.browse-pagination > div { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.browse-pagination a, .browse-page-disabled { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 8px 12px; border-radius: 22px; color: #002A60; text-decoration: none; font-size: 14px; }
.browse-pagination a:hover { background: var(--browse-blue); }
.browse-pagination a[aria-current] { color: white; background: #002A60; }
.browse-pagination .browse-page-disabled { color: #667789; }
.browse-page-gap { padding: 0 4px; }
.browse-path-story { grid-template-columns: 220px minmax(0, 1fr); gap: 32px; margin: 0 0 24px; padding: 26px; background: white; border: 0; border-top: 3px solid #002A60; }
.browse-path-photo { height: 145px; border-radius: 6px; }
.browse-path-person h2 { font-size: 28px; }
.browse-path-heading h3 { font-size: 25px; }
.browse-path-content > .browse-story-deck { font-size: 15px; line-height: 1.6; }
.browse-path { gap: 12px; margin-top: 22px; }
.browse-path-stage { padding: 12px 10px; background: var(--browse-blue); border-radius: 6px; }
.browse-path-stage::after { display: none; }
.browse-stage-icon { width: 46px; height: 46px; background: transparent; border: 0; border-radius: 0; }
.browse-stage-icon img { width: 28px; height: 28px; }
.is-current .browse-stage-icon { background: transparent; border: 0; }
.browse-stage-position { color: #b0460b; font-weight: 650; }
.is-current .browse-stage-position { color: #b0460b; }
.browse-stage-label { font-size: 13px; }
.browse-stage-income { width: 100%; margin-top: auto; padding: 10px 5px; border-radius: 5px; background: var(--browse-income); }
.browse-path-stage > .browse-stage-income { margin-top: auto; }
.browse-path-stage > .browse-stage-label { padding-bottom: 12px; }
.browse-stage-income strong { font-size: 20px; line-height: 1.4; }
.browse-path-more { justify-content: center; }
.browse-path-details { background: var(--browse-blue); }
.browse-path-details .browse-stage-income { flex-shrink: 1; width: auto; padding: 8px 12px; }
.browse-questions-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 32px; margin-top: 0; align-items: start; }
.browse-question-rail { background: #002A60; color: white; border-radius: 8px; padding: 24px 16px; }
.browse-question-rail h2 { margin: 0 8px 20px; color: white; font-size: 22px; }
.browse-question-rail nav { gap: 10px; }
.life-dashboard .browse-question-rail button { color: white; border: 1px solid #718fae; border-radius: 12px; padding: 12px; min-height: 84px; gap: 12px; font-size: 15px; }
.browse-question-rail button img { width: 27px; height: 27px; filter: brightness(0) invert(1); }
.browse-question-rail button small { color: #d7e7f6; }
.life-dashboard .browse-question-rail button[aria-current] { background: #E04E04; color: white; border-color: #eea572; }
.life-dashboard .browse-question-rail button:hover { background: #174b7e; }
.life-dashboard .browse-question-rail .browse-all-stories { margin-top: 22px; padding-top: 14px; min-height: 48px; color: white; border: 0; border-top: 1px solid #718fae; border-radius: 0; font-size: 14px; }
.browse-question-main { padding: 0; }
.browse-question-title h2 { font-size: clamp(30px, 3vw, 42px); }
.browse-question-main > header .browse-question-eyebrow { margin-top: 0; margin-bottom: 10px; font-size: 11px; }
.browse-question-main > header > p { font-size: 16px; }
.browse-question-grid { gap: 24px; align-items: start; }
.browse-question-card { background: white; border-top: 3px solid #002A60; padding: 20px; }
.browse-question-photo { aspect-ratio: 1.8; border-radius: 5px; }
.browse-question-card h3 { font-size: 29px; }
.browse-question-card .browse-card-country { font-size: 13px; }
.browse-question-excerpt { padding-left: 0; padding-top: 18px; border-left: 0; border-top: 1px solid #cbdce8; }
.browse-question-excerpt .browse-excerpt-source { color: #ac4408; font-size: 11px; }
.browse-question-excerpt h4 { font-size: 17px; }
.browse-question-excerpt .browse-story-deck { font-size: 14px; line-height: 1.7; }
.browse-question-excerpt .browse-section-income { margin: 12px 0; }
.browse-next-question { border-color: #c8d5df; }
.hero-feature-note { justify-content: flex-end; }
.life-dashboard a:focus-visible, .life-dashboard button:focus-visible, .life-dashboard select:focus-visible { outline: 3px solid #E04E04; outline-offset: 3px; }

@media (max-width: 1180px) {
  .browse-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .browse-path-story { grid-template-columns: 170px minmax(0, 1fr); gap: 24px; padding: 22px; }
  .browse-questions-layout { grid-template-columns: 225px minmax(0, 1fr); gap: 24px; }
  .browse-question-card { padding: 16px; }
  .browse-question-grid { gap: 18px; }
  .browse-current-income strong { font-size: 26px; }
}
@media (max-width: 900px) {
  .browse-questions-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 22px; }
  .browse-question-grid { grid-template-columns: 1fr; }
  .browse-path-story { grid-template-columns: 1fr; }
  .browse-path-person { display: grid; grid-template-columns: 90px 1fr; gap: 0 16px; align-items: end; }
  .browse-path-person > a { grid-row: 1 / 3; }
  .browse-path-photo { height: 90px; }
  .browse-path-person h2 { margin: 0 0 4px; }
  .browse-path-person p { align-self: start; }
}
@media (max-width: 760px) {
  body.life-dashboard[data-browse-view] .browse-view-switch { gap: 18px; padding: 24px 0 20px; }
  .browse-switch-title .browse-switch-heading { font-size: 34px; }
  .browse-switch-title p { font-size: 14px; }
  body.life-dashboard .browse-view-switch a { min-width: 0; font-size: 13px; }
  body.life-dashboard[data-browse-view] .browse-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 12px; gap: 10px; }
  .browse-tools .browse-search { max-width: none; }
  .browse-tools .browse-sort { grid-column: 1 / -1; margin: 0; }
  .life-dashboard .browse-tools input, .life-dashboard .browse-tools select, .life-dashboard .browse-tools button { font-size: 13px; }
  .life-dashboard .browse-tools input, .life-dashboard .browse-tools select { font-size: 16px; }
  .life-dashboard .browse-tools button { padding-inline: 8px; }
  body.life-dashboard[data-browse-view] .filter-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .browse-overview-card { padding: 14px 16px 10px; }
  .browse-overview-profile { grid-template-columns: 66px minmax(0, 1fr); gap: 12px; }
  .browse-overview-photo { width: 66px; height: 84px; }
  .browse-overview-profile h3 { font-size: 24px; }
  .browse-overview-card footer { gap: 0 12px; }
  .browse-path-story { padding: 20px; }
  .browse-path { gap: 10px; }
  .browse-path-stage { padding: 12px; grid-template-columns: 38px minmax(0, 1fr); }
  .browse-stage-icon { width: 38px; height: 38px; }
  .browse-stage-label { font-size: 14px; }
  .browse-path-stage > .browse-stage-income { margin: 10px 0 0; padding: 8px 12px; }
  .browse-path-stage::after { display: none; }
  .life-dashboard .browse-path-more button { grid-template-columns: 38px minmax(0, 1fr); gap: 16px; }
  .browse-questions-layout { grid-template-columns: 1fr; gap: 24px; }
  .browse-question-rail { padding: 18px 16px; }
  .browse-question-rail h2 { margin: 0 0 12px; font-size: 19px; }
  .life-dashboard .browse-question-rail .browse-question-mobile-toggle { background: #174b7e; color: white; border: 1px solid #718fae; font-size: 14px; }
  .life-dashboard .browse-question-rail button { font-size: 13px; }
  .browse-question-main { padding: 0; }
  .browse-question-title h2 { font-size: 32px; }
  .browse-question-card { padding: 20px; }
  .browse-question-photo { aspect-ratio: 1.8; }
  .browse-pagination { justify-content: center; gap: 12px; }
  .browse-pagination > div { gap: 2px; justify-content: center; }
  .browse-pagination a, .browse-page-disabled { min-width: 36px; padding-inline: 10px; font-size: 13px; }
}
@media (max-width: 600px) {
  .browse-overview-grid { grid-template-columns: 1fr; }
  .browse-overview-profile { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
  .browse-overview-photo { width: 72px; height: 82px; }
  .browse-overview-profile h3 { font-size: 28px; }
  body.life-dashboard[data-browse-view] .filter-fields { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .browse-overview-profile h3, .browse-view-switch a { transition: color .15s ease, background-color .15s ease; }
}
@media (max-width: 360px) {
  .life-dashboard .browse-tools #browseCountry { font-size: 14px; padding-inline: 8px; }
}

/* Flex cards let a text-only story use the space a photograph would occupy. */
.browse-overview-profile h3 { font-size:24px; line-height:1.2; }
.browse-overview-copy h4 { min-height:2.8em; }
.browse-overview-copy .browse-story-deck { margin-bottom:0; }
.browse-overview-card .browse-current-income { align-self:end; width:100%; box-sizing:border-box; }

/* Photographs lead the card; stories without media have a complete text layout. */
.browse-overview-profile { display: block; }
.browse-overview-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; margin-bottom: 16px; }
.browse-overview-profile h3 { font-size: 28px; }
.browse-overview-card.is-text-only .browse-overview-copy .browse-story-deck { font-size: 16px; line-height: 1.7; }
.browse-overview-card.is-text-only .browse-overview-copy { padding-top: 18px; }
.browse-question-photo { aspect-ratio: 4 / 3; object-fit: contain; background: var(--browse-blue); }
.browse-question-card.is-text-only h3 { margin-top: 0; }
.browse-path-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: var(--browse-blue); }
.browse-path-story.is-text-only { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.browse-path-story.is-text-only .browse-path-person { display: block; }
.browse-path-story.is-text-only .browse-path-person h2 { margin: 0 0 4px; }
@media (max-width: 900px) {
  .browse-path-person { display: block; }
  .browse-path-person > a { max-width: 360px; margin-bottom: 14px; }
}
@media (max-width: 600px) {
  .browse-path-person > a { max-width: none; }
}
