/* Three stages share the brand header. Filters remain available on demand. */
.site-head .step-nav {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  min-height: 44px;
}
.site-head .step-nav[hidden] { display: none; }
.step-nav .flow-stage-label {
  display: inline;
  width: auto;
  height: auto;
  border: 0;
  color: inherit;
  background: transparent;
}
.flow-stage-list { display: flex; align-items: center; gap: 20px; margin: 0; padding: 0; list-style: none; }
.flow-stage-list > li { display: flex; align-items: center; gap: 20px; }
.flow-stage-list > li + li::before { content: "›"; color: #9f9688; font-size: 18px; }
.step-nav .flow-stage {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 7px 0;
  border: 0;
  color: #c9c1af;
  background: transparent;
  font-family: var(--brand-sans);
  white-space: nowrap;
}
.step-nav .flow-stage .flow-stage-number {
  width: auto;
  height: auto;
  border: 0;
  color: inherit;
  background: transparent;
  font: 500 12px/1.5 var(--brand-mono, monospace);
}
.step-nav .flow-stage .flow-stage-label { color: inherit; background: transparent; font-size: 16px; line-height: 1.5; }
.step-nav .flow-stage.active { color: var(--paper); }
.step-nav .flow-stage.active .flow-stage-label { font-weight: 750; text-decoration: underline; text-decoration-color: #df796c; text-decoration-thickness: 2px; text-underline-offset: 7px; }
.step-nav .flow-stage:disabled { color: #a69e90; opacity: 1; cursor: default; }
.step-nav .flow-stage:not(:disabled):hover { color: #fff; }
.step-nav .flow-stage:focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; }
body:not(:has(.income-start)) #main { padding-top: 15px; }
body:has(.family-choice) #main { padding-top: 18px; min-height: 0; }
.family-choice { display: block; }
.family-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.family-toolbar h1 { margin: 0; font-size: clamp(25px, 2.2vw, 32px); line-height: 1.25; letter-spacing: -.045em; }
.family-toolbar h1 > span { display: inline-block; }
.family-choice-hint { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--red-dark, #922e26); font-size: 14px; line-height: 1.5; white-space: nowrap; }
.flow-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: var(--flow-icon) center / contain no-repeat;
  mask: var(--flow-icon) center / contain no-repeat;
}
.flow-icon-guide { --flow-icon: url('./assets/icons/lucide/corner-right-down.svg'); width: 20px; height: 20px; }
.flow-icon-filter { --flow-icon: url('./assets/icons/lucide/sliders-horizontal.svg'); color: var(--red-dark, #922e26); }
.flow-icon-chevron { --flow-icon: url('./assets/icons/lucide/chevron-down.svg'); width: 13px; height: 13px; color: var(--muted); transition: transform .18s ease, color .18s ease; }
.career-section-top { align-items: center; margin-bottom: 10px; }
.career-section-top > .btn { flex: 0 0 auto; }
.flow-filter-details { margin: 0 0 14px; }
.flow-filter-details > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  min-height: 32px;
  padding: 5px 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}
.flow-filter-details > summary::-webkit-details-marker { display: none; }
.flow-filter-details[open] > summary .flow-icon-chevron { transform: rotate(180deg); color: var(--red-dark, #922e26); }
.filter-summary-action { color: var(--muted); }
.flow-filter-details .explore-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 5px 0 0;
  padding: 15px;
  border: 1px solid var(--line);
  background: rgba(248, 243, 230, .6);
}
.flow-filter-details .explore-filters .city-filter { margin: 0; }
.flow-filter-details .explore-filters .city-filter select { min-width: 210px; }
.flow-filter-details .explore-filters .filterbar { margin: 0; }
.flow-filter-details .filter-all { font-size: 12px; }
.filter-context { flex-basis: 100%; margin: 0; color: var(--muted); font-size: 13px; }
.flow-filter-compact { position: relative; margin: 0; z-index: 5; }
.flow-filter-compact > summary {
  min-height: 36px;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--card);
  font-size: 13px;
  transition: border-color .18s ease, background-color .18s ease;
}
.flow-filter-compact > summary:hover,
.flow-filter-compact[open] > summary { border-color: var(--red); background-color: rgba(164, 61, 46, .045); }
.flow-filter-details > summary:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.flow-filter-compact .explore-filters {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(540px, calc(100vw - 28px));
  margin: 0;
  background: var(--card, #f8f3e6);
  box-shadow: 0 12px 30px rgba(54, 39, 22, .12);
}
@media (max-width: 1000px) {
  .family-toolbar { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; }
  .family-toolbar h1 { grid-column: 1 / -1; }
  .family-choice-hint { grid-column: 1; }
  .family-toolbar .flow-filter-compact { grid-column: 2; }
}
@media (max-width: 760px) {
  .flow-stage-list { gap: 13px; }
  .flow-stage-list > li { gap: 13px; }
}
@media (max-width: 600px) {
  .flow-stage-list { gap: 12px; }
  .flow-stage-list > li { gap: 12px; }
  .step-nav .flow-stage { gap: 6px; }
  .step-nav .flow-stage .flow-stage-label { font-size: 15px; }
  .step-nav .flow-stage .flow-stage-number { font-size: 11px; }
  body:not(:has(.income-start)) #main { padding-top: 11px; }
  body:has(.family-choice) #main { padding-top: 16px; }
  .family-toolbar { margin-bottom: 12px; }
  .family-toolbar h1 { font-size: 25px; line-height: 1.3; letter-spacing: -.045em; }
  .family-toolbar h1 > span { display: block; }
  .family-choice-hint { font-size: 12px; }
  .flow-filter-details { margin-bottom: 12px; }
  .flow-filter-compact { margin-bottom: 0; }
  .flow-filter-details > summary { font-size: 12px; }
  .flow-filter-details .explore-filters { padding: 12px; }
  .flow-filter-details .explore-filters .city-filter { width: 100%; }
  .flow-filter-details .explore-filters .city-filter select { min-width: 0; }
  .career-section-top > .btn { margin-top: 12px; padding: 9px 12px; font-size: 12px; }
}
@media (max-width: 480px) {
  .flow-stage-list > li:not(:has(.flow-stage.active)) { display: none; }
  .flow-stage-list > li + li::before { display: none; }
  .step-nav .flow-stage .flow-stage-number { display: none; }
  .step-nav .flow-stage .flow-stage-label { font-size: 16px; }
  .flow-stage-list, .flow-stage-list > li { gap: 10px; }
}
@media print { .step-nav { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  .flow-icon-chevron, .flow-filter-compact > summary { transition: none; }
}
