/* Site introduction first, followed by the question-led story feature. */
body.life-dashboard .dashboard-topbar { background: white; color: var(--dark-blue); box-shadow: none; backdrop-filter: none; border-bottom: 1px solid #dce5ef; padding-top: 12px; padding-bottom: 12px; }
.life-dashboard .dashboard-topbar .brand-logo { width: clamp(205px, 23vw, 320px); max-height: 54px; }
.hero-site-intro { background: #002A60; color: #fff; padding: 0 clamp(22px, 4.2vw, 64px); }
.hero-intro-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 80px); max-width: 1408px; margin: 0 auto; padding: 40px 0 44px; }
.hero-site-title { margin: 0 0 16px; color: #ffad72; font: 650 14px/1.4 "Inter", sans-serif; letter-spacing: .04em; }
.hero-site-intro h1 { margin: 0; max-width: 16ch; color: #fff; font: 750 clamp(40px, 4.4vw, 66px)/1.06 "Overpass", sans-serif; letter-spacing: normal; }
.hero-site-description { margin: 0; max-width: 62ch; color: #f3f7fc; font: 400 17px/1.65 "Inter", sans-serif; }
.hero-site-guidance { margin: 16px 0 22px; max-width: 62ch; color: #cbdced; font: 400 15px/1.6 "Inter", sans-serif; }
.hero-intro-explore { display: inline-flex; align-items: center; gap: 28px; min-height: 46px; padding: 11px 18px; border-radius: 6px; background: #E04E04; color: #fff; text-decoration: none; font: 600 15px/1.5 "Inter", sans-serif; }
.hero-intro-explore:hover { background: #b93f00; }
.hero-intro-explore:focus-visible { outline: 3px solid #ffb57f; outline-offset: 4px; }
.hero-collection { display: grid; gap: 20px; max-width: 1408px; min-height: 132px; margin: 0 auto; padding: 22px 0 28px; border-top: 1px solid #486988; }
.hero-collection-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; }
.hero-collection-heading > p { margin: 0 0 7px; color: #fff; font: 600 15px/1.4 "Inter", sans-serif; }
.hero-collection-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr); gap: 0; margin: 0; }
.hero-collection-stats[hidden], .hero-collection-status[hidden] { display: none; }
.hero-collection-stats > div { display: grid; align-content: start; gap: 5px; min-width: 0; padding: 0 20px; border-left: 1px solid #486988; }
.hero-collection-stats > div:first-child { padding-left: 0; border-left: 0; }
.hero-collection-stats dt { grid-row: 2; color: #dce9f6; font: 400 13px/1.5 "Inter", sans-serif; }
.hero-collection-stats dd { grid-row: 1; margin: 0; color: #fff; font: 650 36px/1.1 "Overpass", sans-serif; font-variant-numeric: tabular-nums; }
.hero-collection-pension dd { color: #ffad72; }
.hero-collection-note { display: block; margin-top: 5px; color: #cbdced; font-size: 12px; }
.hero-collection-status { margin: 0; color: #dce9f6; font: 400 14px/1.5 "Inter", sans-serif; }
.story-hero { color: var(--dark-blue); background: #fcf8f2; scroll-margin-top: calc(var(--browse-masthead-height, 80px) + 16px); }
.hero-question-band { background: #fcf8f2; }
.hero-band-inner { max-width: 1536px; padding: 28px clamp(22px, 4.2vw, 64px) 24px; margin: 0 auto; }
.hero-feature-intro { margin: 0 0 8px; color: #a33c08; font: 600 13px/1.5 "Inter", sans-serif; }
.hero-question-band h2, .story-hero-loading h2 { margin: 0; max-width: 1050px; color: var(--dark-blue); font: 700 clamp(28px, 2.7vw, 40px)/1.15 "Overpass", sans-serif; letter-spacing: normal; }
.hero-questions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.life-dashboard .hero-questions button { min-width: 176px; min-height: 44px; padding: 9px 20px; border: 1px solid #91acc5; border-radius: 7px; background: #fff; color: var(--dark-blue); font: 500 15px/1.4 "Inter", sans-serif; cursor: pointer; }
.life-dashboard .hero-questions button:hover { background: #e3f1fb; }
.life-dashboard .hero-questions button[aria-pressed="true"] { background: #002A60; border-color: #002A60; color: #fff; }
.hero-story-band { background: #fcf8f2; color: var(--dark-blue); }
.hero-story-inner { max-width: 1536px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, .93fr) minmax(0, .87fr) minmax(0, 1.65fr); gap: 26px; padding-right: clamp(22px, 3.4vw, 52px); align-items: stretch; }
.hero-portrait { min-width: 0; margin: 0; overflow: hidden; align-self: stretch; }
.hero-portrait > a { display: block; position: relative; height: 100%; min-height: 390px; }
.hero-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 390px; object-fit: cover; object-position: 50% 40%; }
.hero-portrait .hero-cutout { -webkit-mask-image: var(--hero-mask); mask-image: var(--hero-mask); -webkit-mask-size: cover; mask-size: cover; -webkit-mask-position: 50% 40%; mask-position: 50% 40%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
/* Jaap's matched 675×1200 source has empty space above the subject. Crop the
   top quarter of the source frame, then cover the portrait slot with the rest.
   The image and mask use identical sizing/positioning to preserve registration. */
.hero-portrait:has([data-hero-cutout="jaap-v1"]) > a { container-type: inline-size; }
.hero-portrait .hero-cutout[data-hero-cutout="jaap-v1"] {
  height: max(133.333334%, 177.777778cqw); min-height: 0; top: 0; bottom: auto;
  object-position: 50% 0%; -webkit-mask-position: 50% 0%; mask-position: 50% 0%;
  transform: translateY(-25%);
}
.hero-story-copy { padding: 48px 0 24px; min-width: 0; }
.hero-story-byline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 12px; margin-bottom: 18px; }
.hero-story-byline h3 { font: 650 18px/1.4 "Inter", sans-serif; margin: 0; color: var(--dark-blue); }
.hero-story-byline > span { font-size: 16px; color: #314f72; }
.hero-excerpt-text { font: 750 34px/1.26 "Overpass", sans-serif; letter-spacing: normal; margin: 0; max-width: 330px; color: var(--dark-blue); }
.hero-excerpt-long .hero-excerpt-text { font: 500 20px/1.5 "Inter", sans-serif; letter-spacing: normal; }
.hero-source-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 12px; font-size: 12px; font-weight: 500; color: #325f87; text-underline-offset: 4px; }
.hero-source-link img { width: 16px; height: 16px; }
.hero-visualization { min-width: 0; padding: 26px 0 20px; align-self: center; }
.hero-moments { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 54px; padding: 0; margin: 0; }
.hero-moment { min-width: 0; position: relative; }
.hero-moment > a { display: flex; flex-direction: column; height: 100%; padding: 20px 22px; border-radius: 10px; background: #e3f1fb; text-decoration: none; }
.hero-moment-date { color: #c14702; font: 500 18px/1.4 "Inter", sans-serif; }
.hero-moment h3 { color: var(--dark-blue); font: 750 23px/1.18 "Overpass", sans-serif; letter-spacing: normal; min-height: 45px; padding-bottom: 14px; margin: 6px 0 16px; border-bottom: 1px solid #8bb8dc; overflow-wrap: anywhere; }
.hero-moment-income { display: block; margin-top: auto; padding: 13px 8px 10px; width: 100%; min-height: 0; background: #cce5f7; border-radius: 8px; color: #002a60; text-align: center; font: 800 clamp(26px, 2.85vw, 44px)/1.12 "Overpass", sans-serif; letter-spacing: normal; overflow-wrap: anywhere; }
.hero-moment-income .browse-income-period { display: block; font: 400 16px/1.4 "Inter", sans-serif; letter-spacing: 0; margin-top: 4px; }
.hero-stage-connector { display: block; position: absolute; width: 32px; height: 32px; left: -43px; top: 50%; transform: translateY(-50%); }
.hero-stage-connector img { width: 32px; height: 32px; }
.hero-moment > a:hover { background: #d7eafa; }
.hero-moment > a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.hero-feature-actions { display: flex; gap: 22px; align-items: center; margin-top: 20px; }
.story-hero .hero-explore { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 50px; flex: 1; padding: 12px 20px; border: 1px solid #002A60; border-radius: 7px; background: #002A60; color: white; font: 600 16px/1.4 "Inter", sans-serif; text-decoration: none; cursor: pointer; }
.hero-explore img { width: 22px; height: 22px; filter: invert(1); flex-shrink: 0; }
.story-hero .hero-explore:hover { background: #00548f; }
.hero-full-story { font: 500 14px/1.5 "Inter", sans-serif; text-decoration-thickness: 1px; text-underline-offset: 6px; color: #005fb6; max-width: 42%; }
.hero-feature-note { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 8px; }
.hero-feature-note > p { margin: 0; font: 400 11px/1.5 "Inter", sans-serif; color: #456382; }
.hero-feature-note > p > span { display: block; }
.life-dashboard .hero-next { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 5px 0; border: 0; border-radius: 0; background: transparent; color: #34597c; font: 500 11px/1.4 "Inter", sans-serif; cursor: pointer; }
.hero-next img { width: 16px; height: 16px; }
.hero-next:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-pagination { white-space: nowrap; font-size: 10px; }
.story-hero a:focus-visible, .story-hero button:focus-visible { outline: 3px solid #ff9a59; outline-offset: 4px; }
.hero-story-band a:focus-visible, .hero-story-band button:focus-visible { outline-color: #005fb6; }
.hero-without-photo { grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); padding-left: clamp(22px, 4.2vw, 64px); }
.hero-feature-empty, .story-hero-loading { max-width: 1000px; padding: 40px clamp(22px, 4.2vw, 64px); }
.hero-feature-empty > p { font-size: 20px; line-height: 1.5; }
.hero-context-note { background: #e3f1fb; border-radius: 10px; padding: 26px; }
.hero-context-note h3 { color: var(--dark-blue); font: 700 26px/1.2 "Overpass", sans-serif; margin: 0 0 14px; }
.hero-context-note p { font-size: 16px; line-height: 1.5; }
.hero-context-note a { display: inline-flex; gap: 12px; align-items: center; font-size: 14px; }
.hero-context-note img { width: 20px; height: 20px; }
.life-dashboard { --dashboard-bg: #fff; }
body:is([data-browse-view="paths"], [data-browse-view="questions"]) { background: #fff; }
.browse-view-switch, body:is([data-browse-view="paths"], [data-browse-view="questions"]) .browse-view-switch { justify-content: space-between; padding-top: 26px; padding-bottom: 18px; background: #fff; border-bottom: 0; }
.browse-view-switch .browse-switch-heading { font: 750 40px/1.1 "Overpass", sans-serif; color: var(--dark-blue); }
.browse-switch-heading small { display: block; margin-top: 4px; font: 400 18px/1.5 "Inter", sans-serif; color: #526b85; }
.browse-view-switch > div { border: 1px solid #8cabcf; border-radius: 24px; gap: 0; padding: 0; }
.browse-view-switch a { min-width: 126px; border-radius: 24px; min-height: 46px; font-size: 14px; font-weight: 500; }
.browse-view-switch a[aria-current] { background: #005fb6; color: white; }
body[data-browse-view="legacy"] .browse-view-switch { padding-left: clamp(22px, 4.2vw, 64px); padding-right: clamp(22px, 4.2vw, 64px); }
/* The shared Browse heading replaces the redundant second introduction. */
#browseIntro { display: none; }
body[data-browse-view="questions"] .browse-tools { grid-column: 1 / -1; }
.browse-tools { border-top: 0; }

@media (max-width: 1180px) and (min-width: 761px) {
  .hero-story-inner { grid-template-columns: minmax(0, .9fr) minmax(0, .9fr) minmax(0, 1.5fr); gap: 20px; padding-right: 26px; }
  .hero-story-copy { padding-top: 30px; }
  .hero-excerpt-text { font-size: 26px; }
  .hero-excerpt-long .hero-excerpt-text { font-size: 17px; }
  .hero-moments { gap: 28px; }
  .hero-moment > a { padding: 16px 12px; }
  .hero-stage-connector { width: 20px; left: -24px; }
  .hero-stage-connector img { width: 20px; }
  .hero-moment-date { font-size: 14px; }
  .hero-moment h3 { font-size: 20px; }
  .hero-moment-income { font-size: 27px; padding: 12px 4px; }
  .hero-moment-income .browse-income-period { font-size: 13px; }
  .hero-feature-actions { flex-wrap: wrap; gap: 14px; }
  .hero-full-story { max-width: none; }
  .hero-feature-note { flex-wrap: wrap; gap: 0; }
  .hero-questions { gap: 12px; }
  .life-dashboard .hero-questions button { min-width: 0; padding: 10px 20px; font-size: 15px; }
}
@media (max-width: 760px) {
  .life-dashboard .dashboard-topbar .brand-logo { width: 205px; max-height: 43px; }
  .hero-band-inner { padding-top: 26px; padding-bottom: 24px; }
  .hero-intro-inner { grid-template-columns: 1fr; gap: 20px; padding: 28px 0 32px; }
  .hero-site-title { font-size: 12px; margin-bottom: 10px; }
  .hero-site-intro h1 { font-size: clamp(35px, 7.5vw, 48px); max-width: 19ch; }
  .hero-site-description { font-size: 15px; line-height: 1.6; }
  .hero-site-guidance { font-size: 14px; margin: 12px 0 18px; }
  .hero-collection { grid-template-columns: 1fr; gap: 18px; padding: 20px 0 24px; }
  .hero-collection-heading { display: block; }
  .hero-collection-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .hero-collection-stats > div { padding: 0 12px; }
  .hero-collection-stats > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .hero-collection-stats dd { font-size: 30px; }
  .hero-collection-stats dt { font-size: 12px; }
  .hero-feature-intro { font-size: 12px; }
  .hero-question-band h2 { font-size: 28px; }
  .hero-questions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .life-dashboard .hero-questions button { min-width: 0; min-height: 44px; padding: 9px 6px; font-size: 12px; }
  .hero-story-inner { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 0 18px; padding: 0 22px 22px 0; }
  .hero-portrait > a, .hero-portrait img { min-height: 260px; }
  /* Keep the full width of the cutout when the adjacent passage is much taller. */
  .hero-portrait:has([data-hero-cutout="jaap-v1"]) { align-self: start; }
  .hero-portrait:has([data-hero-cutout="jaap-v1"]) > a { min-height: 0; height: auto; aspect-ratio: 3 / 4; }
  .hero-portrait .hero-cutout[data-hero-cutout="jaap-v1"] { height: 177.777778cqw; }
  .hero-story-copy { padding: 24px 0 18px; }
  .hero-story-byline { display: block; margin-bottom: 12px; }
  .hero-story-byline h3 { font-size: 16px; }
  .hero-story-byline > span { font-size: 12px; }
  .hero-excerpt-text { font-size: 22px; line-height: 1.25; }
  .hero-excerpt-long .hero-excerpt-text { font-size: 15px; line-height: 1.5; }
  .hero-source-link { font-size: 11px; margin-top: 8px; }
  .hero-visualization { grid-column: 1 / -1; padding: 20px 0 0 22px; }
  .hero-moments { gap: 28px; }
  .hero-moment > a { padding: 14px 12px; border-radius: 8px; }
  .hero-moment-date { font-size: 12px; }
  .hero-moment h3 { font-size: 16px; min-height: 56px; padding-bottom: 12px; margin: 6px 0 12px; }
  .hero-moment-income { font-size: 22px; line-height: 1.12; min-height: 0; padding: 12px 4px; border-radius: 5px; }
  .hero-moment-income .browse-income-period { font-size: 12px; line-height: 1.3; }
  .hero-stage-connector { width: 20px; left: -24px; }
  .hero-stage-connector img { width: 20px; }
  .hero-feature-actions { flex-wrap: wrap; gap: 16px; margin-top: 18px; }
  .story-hero .hero-explore { font-size: 14px; min-height: 46px; padding: 10px 14px; }
  .hero-full-story { max-width: none; font-size: 13px; }
  .hero-feature-note { margin-top: 14px; gap: 6px; }
  .hero-feature-note > p { font-size: 10px; }
  .hero-without-photo { display: block; padding-left: 22px; }
  .hero-without-photo .hero-visualization { padding-left: 0; }
  .browse-view-switch, body:is([data-browse-view="paths"], [data-browse-view="questions"]) .browse-view-switch { flex-wrap: wrap; gap: 14px; padding-top: 22px; padding-bottom: 14px; }
  .browse-view-switch .browse-switch-heading { display: block; font-size: 31px; }
  .browse-switch-heading small { font-size: 15px; }
  .browse-view-switch > div { width: 100%; }
  .browse-view-switch a { min-width: 0; flex: 1; padding: 10px 8px; font-size: 13px; }
}
@media (max-width: 360px) {
  .hero-story-inner { grid-template-columns: minmax(0, .75fr) minmax(0, 1fr); gap: 0 12px; }
  .hero-excerpt-text { font-size: 20px; }
  .hero-moments { grid-template-columns: 1fr; }
  .hero-moment > a { padding-left: 8px; padding-right: 8px; }
  .hero-moment h3 { font-size: 18px; min-height: 0; }
  .hero-moment-income { font-size: 22px; }
  .hero-stage-connector { top: -24px; left: calc(50% - 10px); width: 20px; height: 20px; transform: rotate(90deg); }
}
