/* ==========================================================================
   Page-level layouts
   ========================================================================== */

/* --------------------------------------------------------------------------
   Home · Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 84px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(380px, 0.94fr);
  gap: 72px;
  align-items: center;
}

.hero-kicker-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.hero-kicker-row .hero-sep {
  width: 4px;
  height: 4px;
  background: var(--red);
}

.hero h1 {
  max-width: 680px;
  font-size: clamp(2.6rem, 4.8vw, 4.15rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.hero h1 .mark {
  display: inline-block;
  padding: 0 0.08em;
  background: var(--teal-soft);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-lede {
  max-width: 560px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.85;
}

.hero-lede strong {
  color: var(--ink);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.hero-fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-fact__value {
  color: var(--navy);
  font-family: var(--font-num);
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.hero-fact__value small {
  margin-left: 3px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 400;
  color: var(--gray);
}

.hero-fact__label {
  color: var(--gray);
  font-size: 10.5px;
  letter-spacing: 0.02em;
}

/* Building section drawing */

.drawing {
  border: 1px solid var(--navy);
  background: var(--bg);
  box-shadow: var(--shadow-sheet);
}

.drawing__head,
.drawing__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 16px;
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.drawing__head {
  border-bottom: 1px solid var(--line);
}

.drawing__foot {
  border-top: 1px solid var(--line);
}

.stack-above {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.stack-above strong {
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.stack {
  padding: 0 16px;
}

.stack-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.14s var(--ease);
}

.stack-row:last-child {
  border-bottom: 0;
}

.stack-row:hover {
  background: var(--soft);
}

.stack-level {
  color: var(--navy);
  font-family: var(--font-num);
  font-size: 23px;
  font-weight: 600;
  line-height: 1;
  transition: color 0.14s var(--ease);
}

.stack-row:hover .stack-level {
  color: var(--red);
}

.stack-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stack-name {
  display: block;
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.stack-en {
  display: block;
  margin-top: 2px;
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.09em;
}

.stack-meta {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.6;
  text-align: right;
  white-space: nowrap;
}

.stack-meta strong {
  display: block;
  color: var(--navy);
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.ground {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
}

.ground__hatch {
  flex: 1;
  height: 9px;
  border-top: 2px solid var(--navy);
  background: repeating-linear-gradient(
    45deg,
    var(--navy) 0,
    var(--navy) 1px,
    transparent 1px,
    transparent 5px
  );
}

.ground__label {
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Home · Floor program
   -------------------------------------------------------------------------- */

.program-table {
  border-top: 1px solid var(--navy);
}

.program-head,
.program-row {
  display: grid;
  grid-template-columns: 52px minmax(150px, 1.05fr) minmax(180px, 1.35fr) auto 20px;
  gap: 24px;
  align-items: center;
}

.program-head {
  padding: 9px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.program-row {
  padding: 18px 8px;
  border-bottom: 1px solid var(--line);
  transition: background 0.14s var(--ease);
}

.program-row:hover {
  background: var(--soft);
}

.program-level {
  color: var(--navy);
  font-family: var(--font-num);
  font-size: 21px;
  font-weight: 600;
  line-height: 1;
}

.program-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.program-name strong {
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.program-name em {
  margin-top: 2px;
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-style: normal;
  letter-spacing: 0.08em;
}

.program-desc {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.program-metrics {
  display: grid;
  grid-template-columns: 104px 142px 82px;
  gap: 20px;
  text-align: right;
}

.program-metric .program-num {
  display: block;
  color: var(--navy);
  font-family: var(--font-num);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
}

.program-metric .program-sub {
  display: block;
  margin-top: 2px;
  color: var(--gray);
  font-size: 9.5px;
  line-height: 1.4;
  white-space: nowrap;
}

.program-arrow {
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 15px;
  text-align: right;
  transition: color 0.14s var(--ease), transform 0.14s var(--ease);
}

.program-row:hover .program-arrow {
  color: var(--navy);
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Home · Featured units
   -------------------------------------------------------------------------- */

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.unit-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s var(--ease);
}

.unit-card:hover {
  border-color: var(--navy);
}

.unit-card__plan {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.unit-card__plan svg {
  width: 100%;
  height: auto;
}

.unit-card__plan .mini-plan-label {
  fill: var(--gray);
  font-family: var(--font-mono);
  font-size: 23px;
  letter-spacing: 0.08em;
}

.unit-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 13px;
  padding: 20px 22px 22px;
}

.unit-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.unit-card__id {
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.unit-card h3 {
  font-size: 18px;
  line-height: 1.35;
}

.unit-card__spec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 16px;
}

.unit-card__spec dt {
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.unit-card__spec dd {
  margin-top: 1px;
  color: var(--navy);
  font-family: var(--font-num);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
}

.unit-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.unit-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 600;
}

.unit-card__foot .arrow {
  color: var(--gray);
  font-family: var(--font-mono);
  transition: transform 0.15s var(--ease), color 0.15s var(--ease);
}

.unit-card:hover .unit-card__foot .arrow {
  color: var(--navy);
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Home · Platforms
   -------------------------------------------------------------------------- */

.platform-table {
  border-top: 1px solid var(--navy);
  border-bottom: 1px solid var(--line);
}

.platform-head,
.platform-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.platform-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.platform-head {
  border-bottom: 1px solid var(--line);
}

.platform-head span {
  padding: 9px 18px;
  border-left: 1px solid var(--line);
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.platform-head span:first-child {
  border-left: 0;
}

.platform-col {
  padding: 24px 18px 26px;
  border-left: 1px solid var(--line);
  transition: background 0.14s var(--ease);
}

.platform-col:first-child {
  border-left: 0;
}

.platform-col:hover {
  background: var(--soft);
}

.platform-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}

.platform-no {
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

.platform-col h3 {
  font-size: 16px;
}

.platform-en {
  display: block;
  margin-top: 4px;
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.09em;
}

.platform-role {
  min-height: 68px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.platform-metric {
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.platform-metric .num {
  display: block;
  color: var(--navy);
  font-size: 27px;
  line-height: 1.05;
}

.platform-metric span {
  display: block;
  margin-top: 3px;
  color: var(--gray);
  font-size: 10px;
}

.platform-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.platform-foot {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 14px;
  color: var(--gray);
  font-size: 10.5px;
}

/* --------------------------------------------------------------------------
   Home · Process
   -------------------------------------------------------------------------- */

.process-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
  border-top: 1px solid var(--navy);
}

.process-step {
  position: relative;
  padding-top: 24px;
}

.process-step::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--navy);
}

.process-no {
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
}

.process-step h3 {
  margin: 10px 0 8px;
  font-size: 15px;
}

.process-step p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Booths
   -------------------------------------------------------------------------- */

.filter-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.floor-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}

.floor-tab {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  gap: 3px;
  min-width: 156px;
  padding: 13px 18px 11px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  text-align: left;
  transition: background 0.14s var(--ease), border-color 0.14s var(--ease),
    color 0.14s var(--ease);
}

.floor-tab:hover {
  background: var(--soft);
  color: var(--navy);
}

.floor-tab.is-active {
  border-bottom-color: var(--navy);
  background: var(--soft);
  color: var(--navy);
}

.floor-tab__line {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.floor-tab__num {
  font-family: var(--font-num);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}

.floor-tab__name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.floor-tab__meta {
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 24px;
  padding: 14px 0 16px;
}

.filter-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.filter-group > legend,
.filter-group > .filter-label {
  display: block;
  margin-bottom: 6px;
  padding: 0;
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color 0.12s var(--ease), background 0.12s var(--ease),
    color 0.12s var(--ease);
}

.chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.chip__swatch {
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--gray);
}

.chip--available .chip__swatch {
  background: var(--teal);
  box-shadow: inset 0 0 0 1px var(--navy);
}

.chip--negotiating .chip__swatch {
  background: var(--sand);
  box-shadow: inset 0 0 0 1px var(--gray);
}

.chip--signed .chip__swatch {
  background: var(--silver);
}

.chip:has(input:checked) {
  border-color: var(--navy);
  background: var(--soft);
  color: var(--navy);
}

.chip:has(input:focus-visible) {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--teal-soft);
}

.filter-select {
  min-height: 32px;
  padding: 5px 30px 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--bg);
  font-size: 11.5px;
  line-height: 1.3;
}

.filter-select:hover {
  border-color: var(--silver);
}

.filter-reset {
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.filter-reset:hover {
  color: var(--navy);
}

.result-count {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  white-space: nowrap;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(300px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.map-layout > * {
  min-width: 0;
}

.plan-panel {
  min-width: 0;
  border: 1px solid var(--navy);
  background: var(--bg);
}

.plan-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.plan-title-line {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.plan-title-line .mono {
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
}

.plan-panel h2 {
  font-size: 18px;
}

.plan-panel__stats {
  margin-top: 3px;
  color: var(--gray);
  font-size: 10.5px;
  line-height: 1.5;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  padding-top: 2px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  white-space: nowrap;
}

.legend-swatch {
  width: 9px;
  height: 9px;
  border: 1px solid var(--navy);
}

.legend-swatch--available {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.legend-swatch--negotiating {
  border-color: var(--sand);
  background: var(--sand);
}

.legend-swatch--signed {
  border-color: var(--silver);
  background: repeating-linear-gradient(
    45deg,
    var(--silver) 0,
    var(--silver) 1px,
    var(--bg-alt) 1px,
    var(--bg-alt) 4px
  );
}

.legend-swatch--selected {
  border-color: var(--red);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--red);
}

.plan-scroll {
  overflow-x: auto;
  padding: 10px 16px 6px;
  -webkit-overflow-scrolling: touch;
}

.plan-svg {
  width: 100%;
  min-width: 720px;
  height: auto;
}

.plan-svg .plate {
  fill: #fff;
  stroke: var(--navy);
  stroke-width: 1.5;
}

.plan-svg .corridor {
  fill: var(--soft);
}

.plan-svg .corridor-line {
  stroke: var(--line);
  stroke-width: 1;
}

.plan-svg .core {
  fill: var(--bg-alt);
  stroke: var(--navy);
  stroke-width: 1;
}

.plan-svg .core-detail {
  fill: var(--bg);
  stroke: var(--silver);
  stroke-width: 0.8;
}

.plan-svg .unit {
  cursor: pointer;
  stroke: var(--navy);
  stroke-width: 1.2;
  transition: opacity 0.14s var(--ease), stroke-width 0.14s var(--ease),
    stroke 0.14s var(--ease);
}

.plan-svg .unit--available {
  fill: var(--teal-soft);
}

.plan-svg .unit--negotiating {
  fill: var(--sand);
}

.plan-svg .unit--signed {
  fill: url("#hatch-signed");
}

.plan-svg .unit.is-dimmed {
  opacity: 0.16;
  pointer-events: none;
}

.plan-svg .unit.is-hover,
.plan-svg .unit:hover {
  stroke-width: 2.4;
}

.plan-svg .unit.is-selected {
  stroke: var(--red);
  stroke-width: 3;
}

.plan-svg .unit:focus-visible {
  outline: none;
  stroke: var(--red);
  stroke-width: 3;
}

.plan-svg .unit-label {
  fill: var(--navy);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.plan-svg .unit-area {
  fill: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  pointer-events: none;
}

.plan-svg .annotation,
.plan-svg .corridor-label,
.plan-svg .entry-label {
  fill: var(--gray);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

.plan-svg .annotation {
  font-size: 9px;
}

.plan-svg .corridor-label {
  font-size: 8.5px;
}

.plan-svg .entry-label {
  font-size: 8.5px;
  text-anchor: middle;
}

.plan-svg .dim-line,
.plan-svg .dim-tick {
  stroke: var(--gray);
  stroke-width: 1;
}

.plan-svg .entry-arrow {
  stroke: var(--red);
  stroke-width: 1.5;
  fill: none;
}

.plan-svg .north-mark {
  fill: none;
  stroke: var(--navy);
  stroke-width: 1;
}

.plan-svg .north-text {
  fill: var(--navy);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  text-anchor: middle;
}

.plan-panel__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 8px 16px;
  border-top: 1px solid var(--line);
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.03em;
}

.plan-panel__foot .swipe-hint {
  display: none;
}

.unit-detail {
  position: sticky;
  top: calc(var(--header-h) + 196px);
  min-width: 0;
  min-height: 460px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--bg);
}

.detail-empty h3 {
  margin-bottom: 10px;
  font-size: 17px;
}

.detail-empty p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.75;
}

.detail-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin-top: 20px;
}

.detail-stat {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.detail-stat dt {
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.detail-stat dd {
  margin-top: 2px;
  color: var(--navy);
  font-family: var(--font-num);
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.detail-id {
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.detail-title {
  margin-top: 14px;
  font-size: 23px;
}

.detail-sub {
  margin-top: 3px;
  color: var(--gray);
  font-size: 11.5px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.spec-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin-top: 18px;
}

.spec-list > div {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.spec-list dt {
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.spec-list dd {
  margin-top: 2px;
  color: var(--navy);
  font-size: 12.5px;
  line-height: 1.5;
}

.detail-rent {
  margin-top: 16px;
  padding: 12px 14px;
  border-left: 3px solid var(--teal);
  background: var(--soft);
}

.detail-rent .num {
  display: block;
  color: var(--navy);
  font-size: 25px;
  line-height: 1.1;
}

.detail-rent span {
  display: block;
  margin-top: 3px;
  color: var(--gray);
  font-size: 10px;
  line-height: 1.5;
}

.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.detail-note {
  margin-top: 12px;
  color: var(--gray);
  font-size: 10px;
  line-height: 1.6;
}

.unit-schedule {
  margin-top: 48px;
}

.schedule-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 20px;
  margin-bottom: 14px;
}

.schedule-head h2 {
  font-size: 20px;
}

.schedule-head .mono {
  color: var(--gray);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

.schedule-empty {
  padding: 32px 20px;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Calculator
   -------------------------------------------------------------------------- */

.calc-layout {
  display: grid;
  grid-template-columns: minmax(330px, 0.82fr) minmax(0, 1.18fr);
  gap: 32px;
  align-items: start;
  padding: 40px 0 80px;
}

.calc-layout > * {
  min-width: 0;
}

.calc-form {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  border: 1px solid var(--navy);
  background: var(--bg);
}

.calc-form__head,
.calc-result__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.calc-form__body {
  display: grid;
  gap: 20px;
  padding: 22px 20px 24px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.range-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 12px;
  align-items: center;
}

.range-input {
  width: 100%;
  margin: 0;
  accent-color: var(--navy);
}

.quick-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.quick-area {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.4;
}

.quick-area:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.derived-box {
  padding: 4px 0 0;
  border-top: 1px solid var(--line);
}

.derived-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.derived-row strong {
  color: var(--navy);
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.calc-result {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.result-band {
  border: 1px solid var(--navy);
  background: var(--bg);
}

.result-primary {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.result-primary__item {
  padding: 22px 24px;
  border-left: 1px solid var(--line);
}

.result-primary__item:first-child {
  border-left: 0;
}

.result-label {
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}

.result-value {
  margin-top: 6px;
  color: var(--navy);
  font-family: var(--font-num);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.result-value small {
  margin-left: 4px;
  color: var(--gray);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 400;
}

.result-value--profit.is-negative {
  color: var(--red);
}

.result-sub {
  margin-top: 4px;
  color: var(--gray);
  font-size: 10px;
  line-height: 1.5;
}

.result-secondary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.result-secondary > div {
  padding: 13px 24px;
  border-left: 1px solid var(--line);
}

.result-secondary > div:first-child {
  border-left: 0;
}

.result-secondary .result-label {
  font-size: 8.5px;
}

.result-secondary .num {
  display: block;
  margin-top: 3px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
}

.result-secondary .unit {
  color: var(--gray);
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 400;
}

.health-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 11px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
}

.health-line strong {
  color: var(--navy);
  font-weight: 600;
}

.health-dot {
  width: 6px;
  height: 6px;
  background: var(--teal);
}

.health-dot--watch {
  background: var(--sand);
  box-shadow: inset 0 0 0 1px var(--gray);
}

.health-dot--risk {
  background: var(--red);
}

.breakdown {
  padding: 20px 24px 22px;
  border: 1px solid var(--line);
  background: var(--bg);
}

.breakdown__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.breakdown__head h3 {
  font-size: 14px;
}

.breakdown__head span {
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.03em;
}

.cost-bar {
  display: flex;
  height: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-alt);
}

.cost-bar span {
  height: 100%;
  min-width: 0;
}

.cost-bar .seg-cogs {
  background: var(--navy);
}

.cost-bar .seg-labor {
  background: var(--gray);
}

.cost-bar .seg-rent {
  background: var(--navy-700);
}

.cost-bar .seg-other {
  background: var(--sand);
}

.cost-bar .seg-profit {
  background: var(--teal);
}

.cost-bar .seg-loss {
  background: var(--red);
}

.cost-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
}

.cost-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.cost-legend__swatch {
  width: 8px;
  height: 8px;
  flex: none;
}

.cost-legend__value {
  color: var(--navy);
  font-family: var(--font-num);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.breakdown__note {
  margin-top: 12px;
  color: var(--gray);
  font-size: 10.5px;
  line-height: 1.6;
}

.calc-sheet {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 20px 24px 24px;
}

.calc-sheet h3 {
  margin-bottom: 12px;
  font-size: 14px;
}

.calc-table {
  width: 100%;
  font-size: 12.5px;
}

.calc-table td {
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.5;
}

.calc-table td:last-child {
  color: var(--navy);
  font-family: var(--font-num);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.calc-table tr.is-sub td {
  color: var(--gray);
  font-size: 11.5px;
}

.calc-table tr.is-sub td:last-child {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 11px;
}

.calc-table tr.is-total td {
  border-bottom: 2px solid var(--navy);
  color: var(--navy);
  font-weight: 600;
}

.calc-table tr.is-total td:last-child {
  font-size: 14px;
}

.assumption-panel {
  border: 1px solid var(--line);
  background: var(--soft);
  padding: 18px 20px;
}

.assumption-panel h3 {
  font-size: 13px;
}

.assumption-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  margin-top: 10px;
}

.assumption-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.assumption-row strong {
  color: var(--navy);
  font-family: var(--font-num);
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.calc-disclaimer {
  color: var(--gray);
  font-size: 10.5px;
  line-height: 1.7;
}

.calc-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}

/* --------------------------------------------------------------------------
   Visit
   -------------------------------------------------------------------------- */

.visit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 48px;
  align-items: start;
  padding: 40px 0 80px;
}

.visit-layout > * {
  min-width: 0;
}

.visit-form {
  border: 1px solid var(--navy);
  background: var(--bg);
}

.visit-form__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 13px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.visit-form__body {
  padding: 24px 22px 26px;
}

.demo-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 22px;
  padding: 11px 14px;
  border-left: 3px solid var(--sand);
  background: var(--soft);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
}

.demo-banner strong {
  color: var(--navy);
  font-weight: 600;
}

.visit-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 10px 12px;
  border: 1px solid var(--teal);
  background: var(--teal-soft);
  color: var(--navy);
  font-size: 11.5px;
  line-height: 1.5;
}

.visit-context .mono {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.visit-submit {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.visit-submit .btn {
  width: 100%;
}

.visit-aside {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.aside-card {
  padding-top: 16px;
  border-top: 1px solid var(--navy);
}

.aside-card h3 {
  margin-bottom: 14px;
  font-size: 15px;
}

.aside-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.aside-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.aside-step:last-child {
  border-bottom: 0;
}

.aside-step__no {
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.7;
}

.aside-step strong {
  display: block;
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
}

.aside-step p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.aside-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aside-list li {
  position: relative;
  padding-left: 14px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
}

.aside-list li::before {
  content: "";
  position: absolute;
  top: 0.75em;
  left: 0;
  width: 5px;
  height: 1px;
  background: var(--gray);
}

.aside-meta {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.8;
}

.aside-meta strong {
  color: var(--navy);
  font-weight: 600;
}

.aside-meta .mono {
  font-size: 10.5px;
}

.receipt {
  border: 1px solid var(--navy);
  background: var(--bg);
}

.receipt__body {
  padding: 32px 28px 28px;
}

.receipt__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border: 1px solid var(--navy);
  background: var(--teal-soft);
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
}

.receipt h2 {
  font-size: 26px;
}

.receipt__lede {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.receipt__id-label {
  margin-top: 24px;
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.receipt__id {
  margin: 4px 0 18px;
  color: var(--navy);
  font-family: var(--font-num);
  font-size: 30px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.receipt-table {
  width: 100%;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
}

.receipt-table th,
.receipt-table td {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}

.receipt-table th {
  width: 96px;
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.receipt-table td {
  color: var(--navy);
}

.receipt__notice {
  margin-top: 18px;
  padding: 11px 14px;
  border-left: 3px solid var(--sand);
  background: var(--soft);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.receipt__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

/* --------------------------------------------------------------------------
   Policy / legal
   -------------------------------------------------------------------------- */

.policy-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  padding: 48px 0 80px;
}

.policy-nav {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.policy-nav h2 {
  margin-bottom: 12px;
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.policy-nav a {
  display: block;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  transition: color 0.12s var(--ease);
}

.policy-nav a:hover {
  color: var(--navy);
}

.policy-body {
  max-width: 860px;
  min-width: 0;
}

.policy-section {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.policy-section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.policy-section h2 {
  margin-bottom: 16px;
  font-size: 24px;
}

.policy-section h3 {
  margin: 24px 0 8px;
  font-size: 16px;
}

.policy-section p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.policy-section ul {
  margin: 12px 0 16px;
}

.policy-section li {
  position: relative;
  margin: 7px 0;
  padding-left: 17px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.policy-section li::before {
  content: "";
  position: absolute;
  top: 0.82em;
  left: 0;
  width: 6px;
  height: 1px;
  background: var(--gray);
}

.policy-table {
  width: 100%;
  margin: 16px 0 20px;
  font-size: 13px;
}

.policy-table th {
  padding: 9px 12px;
  border-bottom: 1px solid var(--navy);
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.policy-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.7;
  vertical-align: top;
}

.policy-table td:first-child {
  color: var(--navy);
  font-weight: 500;
}

.policy-note {
  margin: 18px 0;
  padding: 12px 15px;
  border-left: 3px solid var(--sand);
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

.legal-page {
  max-width: 860px;
  padding: 48px 0 80px;
}

.legal-page .policy-section h2 {
  font-size: 20px;
}

/* --------------------------------------------------------------------------
   Responsive · pages
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .hero-grid {
    gap: 48px;
  }

  .program-head,
  .program-row {
    gap: 18px;
  }

  .program-metrics {
    grid-template-columns: 92px 126px 74px;
    gap: 14px;
  }

  .map-layout {
    grid-template-columns: minmax(0, 1.7fr) minmax(290px, 0.9fr);
  }
}

@media (max-width: 1024px) {
  .hero {
    padding: 56px 0 64px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero h1 {
    max-width: 760px;
  }

  .drawing {
    max-width: 680px;
  }

  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-head {
    display: none;
  }

  .platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-col {
    border-top: 1px solid var(--line);
  }

  .platform-col:nth-child(odd) {
    border-left: 0;
  }

  .platform-role {
    min-height: 0;
  }

  .map-layout {
    grid-template-columns: 1fr;
  }

  .unit-detail {
    position: static;
    min-height: 0;
  }

  .calc-layout {
    grid-template-columns: 1fr;
  }

  .calc-form {
    position: static;
  }

  .visit-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .program-head {
    display: none;
  }

  .program-row {
    grid-template-columns: 40px minmax(0, 1fr) 18px;
    grid-template-areas:
      "level name arrow"
      "level metrics metrics";
    gap: 8px 14px;
    padding: 16px 4px;
  }

  .program-level {
    grid-area: level;
    align-self: start;
    padding-top: 2px;
  }

  .program-name {
    grid-area: name;
  }

  .program-desc {
    display: none;
  }

  .program-metrics {
    grid-area: metrics;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    text-align: left;
  }

  .program-metric .program-num {
    display: inline;
    font-size: 12.5px;
    margin-right: 4px;
  }

  .program-metric .program-sub {
    display: inline;
    font-size: 9px;
    margin-top: 0;
  }

  .program-arrow {
    grid-area: arrow;
    align-self: start;
    padding-top: 4px;
  }

  .process-track {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 24px;
    border-top: 0;
    border-left: 1px solid var(--navy);
  }

  .process-step {
    padding: 0 0 28px;
  }

  .process-step:last-child {
    padding-bottom: 0;
  }

  .process-step::before {
    top: 7px;
    left: -28px;
  }

  .filter-bar {
    position: static;
  }

  .floor-tab {
    flex: 0 0 auto;
    min-width: 142px;
  }

  .filter-row {
    gap: 14px 20px;
  }

  .result-count {
    margin-left: 0;
    width: 100%;
    padding-top: 4px;
  }

  .plan-panel__foot .swipe-hint {
    display: inline;
  }

  .policy-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 0 64px;
  }

  .policy-nav {
    position: static;
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .policy-nav h2 {
    flex: none;
    margin: 0;
    padding: 8px 16px 8px 0;
    white-space: nowrap;
  }

  .policy-nav a {
    flex: none;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-left: 0;
    white-space: nowrap;
  }

  .policy-nav a:first-of-type {
    border-left: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .hero {
    padding: 44px 0 52px;
  }

  .hero-kicker-row {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  .hero-lede {
    margin-top: 20px;
    font-size: 14.5px;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .hero-actions .btn {
    flex: 1 1 180px;
  }

  .hero-facts {
    gap: 24px;
    margin-top: 32px;
  }

  .hero-fact__value {
    font-size: 19px;
  }

  .stack {
    padding: 0 12px;
  }

  .stack-row {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px 2px;
  }

  .stack-level {
    font-size: 20px;
  }

  .stack-name {
    font-size: 12.5px;
  }

  .stack-above {
    padding: 10px 14px;
    font-size: 9.5px;
  }

  .stack-meta {
    font-size: 8.5px;
  }

  .stack-meta strong {
    font-size: 12.5px;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .platform-grid {
    grid-template-columns: 1fr;
  }

  .platform-col {
    border-left: 0;
  }

  .filter-row {
    gap: 12px;
  }

  .filter-group {
    width: 100%;
  }

  .filter-group--select {
    width: calc(50% - 6px);
  }

  .filter-select {
    width: 100%;
  }

  .map-layout {
    gap: 18px;
  }

  .plan-scroll {
    padding: 8px 10px 4px;
  }

  .plan-svg {
    min-width: 680px;
  }

  .unit-detail {
    padding: 20px 18px;
  }

  .spec-list {
    grid-template-columns: 1fr 1fr;
  }

  .calc-layout {
    padding: 28px 0 56px;
  }

  .calc-form__body {
    padding: 20px 18px 22px;
  }

  .result-primary {
    grid-template-columns: 1fr;
  }

  .result-primary__item {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding: 18px 20px;
  }

  .result-primary__item:first-child {
    border-top: 0;
  }

  .result-secondary {
    grid-template-columns: 1fr;
  }

  .result-secondary > div {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding: 12px 20px;
  }

  .result-secondary > div:first-child {
    border-top: 0;
  }

  .health-line,
  .breakdown,
  .calc-sheet {
    padding-right: 18px;
    padding-left: 18px;
  }

  .assumption-grid {
    grid-template-columns: 1fr;
  }

  .assumption-panel {
    padding: 16px;
  }

  .visit-layout {
    padding: 28px 0 56px;
  }

  .visit-form__body {
    padding: 20px 18px 22px;
  }

  .receipt__body {
    padding: 24px 18px 22px;
  }

  .receipt__id {
    font-size: 24px;
  }

  .policy-section h2 {
    font-size: 21px;
  }

  .policy-table {
    font-size: 12px;
  }

  .policy-table th,
  .policy-table td {
    padding: 9px 8px;
  }

  .legal-page {
    padding: 32px 0 56px;
  }
}

@media (max-width: 420px) {
  .hero-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .filter-group--select {
    width: 100%;
  }

  .range-row {
    grid-template-columns: 1fr 96px;
  }

  .segmented span {
    padding: 9px 4px;
    font-size: 12px;
  }
}
