:root {
  --paper: #f7f8f4;
  --white: #ffffff;
  --ink: #102f24;
  --muted: #52635b;
  --forest: #173b2d;
  --green: #26754b;
  --mint: #e6eee5;
  --border: #d3ded2;
  --mint-soft: #f0f5ef;
  --border-strong: #b9c9ba;
  --green-hover: #155b38;
  --content: 1380px;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(20, 53, 40, 0.08);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  overflow-wrap: anywhere;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

::selection {
  background: var(--mint);
  color: var(--forest);
}

#main,
#estate,
#questions,
#constellation {
  scroll-margin-top: 110px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--forest);
  color: var(--white);
  font-weight: 700;
  transform: translateY(-170%);
  transition: transform 140ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.hero,
.orientation,
.estate,
.two-estates,
.questions,
.constellation,
.closing-band,
footer {
  width: min(var(--content), calc(100% - 96px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid rgba(211, 222, 210, 0.88);
  background: rgba(247, 248, 244, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 30px;
  height: 30px;
  border: 2px solid var(--green);
  border-radius: 7px 7px 4px 4px;
}

.brand-mark::before {
  position: absolute;
  top: -7px;
  left: 4px;
  width: 17px;
  height: 17px;
  border-top: 2px solid var(--green);
  border-left: 2px solid var(--green);
  transform: rotate(45deg);
  content: "";
}

.brand-mark::after {
  position: absolute;
  right: 5px;
  bottom: -2px;
  width: 7px;
  height: 15px;
  border-radius: 2px 2px 0 0;
  background: var(--green);
  content: "";
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.site-header nav a {
  padding: 9px 12px;
  border-radius: 7px;
  color: #17382c;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.site-header nav a:hover {
  background: var(--mint);
  color: var(--green-hover);
}

.site-header nav .nav-cta {
  margin-left: 5px;
  padding-inline: 16px;
  background: var(--forest);
  color: var(--white);
}

.site-header nav .nav-cta:hover {
  background: var(--green-hover);
  color: var(--white);
}

.closing-band :focus-visible {
  outline-color: var(--white);
}

.hero {
  min-height: 700px;
  padding: 110px 0 100px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  align-items: center;
  gap: clamp(60px, 8vw, 140px);
}

.error-page {
  display: flex;
  flex-direction: column;
}

.error-room {
  width: min(920px, calc(100% - 96px));
  min-height: calc(100vh - 236px);
  margin: 0 auto;
  padding: clamp(90px, 13vw, 170px) 0;
}

.error-room h1 {
  max-width: 820px;
  margin: 0;
  font-family: "Crimson Pro", Georgia, serif;
  font-size: clamp(60px, 9vw, 112px);
  font-weight: 520;
  letter-spacing: -0.048em;
  line-height: 0.92;
}

.error-room > p:not(.eyebrow) {
  max-width: 650px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.eyebrow,
.section-kicker,
.pair-label,
.constellation-card > span,
.address-topline,
.card-number {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--green);
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-family: "Crimson Pro", Georgia, serif;
  font-size: clamp(64px, 7.8vw, 116px);
  font-weight: 520;
  letter-spacing: -0.048em;
  line-height: 0.9;
}

.hero-deck {
  max-width: 670px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.55;
}

.hero-actions,
.closing-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 24px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  padding: 12px 20px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 750;
  text-decoration: none;
}

.button-primary {
  background: var(--forest);
  color: var(--white);
}

.button-primary:hover {
  background: var(--green-hover);
}

.text-link,
.light-link {
  color: var(--green-hover);
  font-weight: 700;
}

.address-card {
  padding: 24px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.address-topline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 10px;
}

.house-glyph {
  position: relative;
  width: 210px;
  height: 170px;
  margin: 50px auto 38px;
  border: 2px solid var(--forest);
  border-radius: 4px;
  background: var(--mint);
}

.roof {
  position: absolute;
  top: -65px;
  left: 29px;
  width: 145px;
  height: 145px;
  border-top: 2px solid var(--forest);
  border-left: 2px solid var(--forest);
  background: var(--mint);
  transform: rotate(45deg);
}

.door,
.window {
  position: absolute;
  z-index: 1;
  border: 2px solid var(--forest);
  background: var(--paper);
}

.door {
  right: 30px;
  bottom: -2px;
  width: 52px;
  height: 88px;
  background: var(--forest);
}

.window {
  bottom: 65px;
  width: 39px;
  height: 39px;
}

.window::before,
.window::after {
  position: absolute;
  background: var(--forest);
  content: "";
}

.window::before {
  top: 17px;
  left: 0;
  width: 100%;
  height: 2px;
}

.window::after {
  top: 0;
  left: 17px;
  width: 2px;
  height: 100%;
}

.window-one {
  left: 29px;
}

.window-two {
  left: 86px;
}

.address-card dl {
  margin: 0;
}

.address-card dl div {
  padding: 13px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border);
}

.address-card dt {
  color: var(--muted);
}

.address-card dd {
  margin: 0;
  font-weight: 750;
  text-align: right;
}

.orientation {
  padding: 54px clamp(24px, 5vw, 72px);
  border-radius: var(--radius);
  background: var(--mint);
}

.orientation-statement {
  max-width: 1050px;
  margin: 0;
  font-family: "Crimson Pro", Georgia, serif;
  font-size: clamp(30px, 3.6vw, 52px);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.orientation-statement a {
  color: var(--green-hover);
}

.estate,
.two-estates,
.questions,
.constellation {
  padding: 120px 0;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 52px;
}

.compact-heading {
  max-width: 970px;
}

.section-heading h2,
.closing-band h2 {
  margin: 0;
  font-family: "Crimson Pro", Georgia, serif;
  font-size: clamp(48px, 5.5vw, 78px);
  font-weight: 520;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.section-heading > p:last-child {
  max-width: 650px;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.estate-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.estate-card {
  min-height: 280px;
  padding: 27px;
  display: flex;
  flex-direction: column;
  grid-column: span 2;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.estate-card-featured {
  grid-column: span 4;
  background: var(--forest);
  color: var(--white);
}

.card-number {
  color: var(--green);
}

.estate-card-featured .card-number {
  color: #a9d5b4;
}

.estate-card h3,
.estate-pair h3,
.constellation-card h3 {
  margin: 26px 0 10px;
  font-family: "Crimson Pro", Georgia, serif;
  font-size: 38px;
  font-weight: 580;
  letter-spacing: -0.025em;
  line-height: 1;
}

.estate-card p {
  max-width: 400px;
  margin: 0;
  color: var(--muted);
}

.estate-card-featured p {
  color: #d9e5dc;
}

.estate-card strong {
  margin-top: auto;
  padding-top: 34px;
  font-size: 14px;
}

.two-estates {
  border-top: 1px solid var(--border);
}

.estate-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr);
  align-items: stretch;
}

.estate-pair article {
  min-height: 330px;
  padding: 42px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--white);
}

.estate-pair article:last-child {
  background: var(--mint-soft);
}

.pair-label,
.constellation-card > span {
  color: var(--green);
}

.estate-pair h3 {
  margin-top: 80px;
  font-size: 48px;
}

.estate-pair p {
  max-width: 500px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.pair-join {
  display: grid;
  place-items: center;
}

.pair-join span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
  font-size: 23px;
}

.boundary-note {
  margin: 30px 0 0;
  padding: 22px 26px;
  border-left: 4px solid var(--green);
  background: var(--mint);
  color: #294c3c;
  font-weight: 650;
}

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

.question-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
}

.question-list li {
  min-height: 250px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 1px solid var(--border-strong);
  border-right: 1px solid var(--border);
}

.question-list li:last-child {
  border-right: 0;
}

.question-list li > span {
  color: var(--green);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
}

.question-list h3 {
  margin: 0;
  font-family: "Crimson Pro", Georgia, serif;
  font-size: 35px;
  line-height: 1;
}

.question-list p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

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

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

.constellation-card {
  min-height: 340px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  text-decoration: none;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease;
}

.constellation-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.constellation-card.primary-card {
  background: var(--mint);
}

.constellation-card h3 {
  margin-top: 70px;
  font-size: 44px;
}

.constellation-card p {
  margin: 0;
  color: var(--muted);
}

.constellation-card strong {
  margin-top: auto;
  padding-top: 30px;
  color: var(--green-hover);
}

.closing-band {
  margin-bottom: 80px;
  padding: clamp(40px, 6vw, 82px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
  gap: 70px;
  border-radius: var(--radius);
  background: var(--forest);
  color: var(--white);
}

.closing-band .section-kicker {
  color: #a9d5b4;
}

.closing-band h2 {
  max-width: 680px;
}

.closing-copy p {
  margin: 0;
  color: #d9e5dc;
  font-size: 18px;
}

.button-light {
  background: var(--white);
  color: var(--forest);
}

.button-light:hover {
  background: var(--mint);
}

.light-link {
  color: var(--white);
}

footer {
  padding: 38px 0 52px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.footer-brand {
  font-size: 13px;
}

.footer-brand .brand-mark {
  width: 25px;
  height: 25px;
}

footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
}

footer nav a {
  color: #294c3c;
  font-weight: 650;
}

footer p {
  margin: 0;
  text-align: right;
}

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .address-card {
    width: min(100%, 520px);
  }

  .estate-card,
  .estate-card-featured {
    grid-column: span 3;
  }

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

  .question-list li:last-child {
    grid-column: span 2;
  }

  .constellation-grid,
  .closing-band {
    grid-template-columns: 1fr;
  }

  footer {
    grid-template-columns: 1fr;
  }

  footer nav {
    justify-content: flex-start;
  }

  footer p {
    text-align: left;
  }
}

@media (max-width: 760px) {
  #main,
  #estate,
  #questions,
  #constellation {
    scroll-margin-top: 172px;
  }

  .site-header,
  .hero,
  .orientation,
  .estate,
  .two-estates,
  .questions,
  .constellation,
  .closing-band,
  footer {
    width: calc(100% - 40px);
  }

  .error-room {
    width: calc(100% - 40px);
    min-height: 560px;
    padding: 80px 0;
  }

  .site-header {
    padding: 14px 0 16px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .site-header nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .site-header nav a {
    padding: 7px 8px;
    font-size: 13px;
  }

  .site-header nav .nav-cta {
    margin-left: 0;
  }

  .hero {
    min-height: 0;
    padding: 74px 0 80px;
    gap: 80px;
  }

  .hero h1 {
    font-size: clamp(56px, 17vw, 84px);
  }

  .orientation {
    padding: 38px 24px;
  }

  .estate,
  .two-estates,
  .questions,
  .constellation {
    padding: 88px 0;
  }

  .estate-card,
  .estate-card-featured {
    grid-column: 1 / -1;
  }

  .estate-pair {
    grid-template-columns: 1fr;
  }

  .estate-pair article {
    min-height: 290px;
    padding: 30px;
  }

  .estate-pair h3 {
    margin-top: 55px;
  }

  .pair-join {
    min-height: 74px;
  }

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

  .question-list li,
  .question-list li:last-child {
    min-height: 190px;
    grid-column: auto;
    border-right: 0;
  }

  .closing-band {
    margin-bottom: 50px;
    padding: 38px 25px;
    gap: 38px;
  }
}

@media (max-width: 390px) {
  .site-header,
  .hero,
  .orientation,
  .estate,
  .two-estates,
  .questions,
  .constellation,
  .closing-band,
  footer {
    width: calc(100% - 28px);
  }

  .error-room {
    width: calc(100% - 28px);
  }

  .brand {
    font-size: 13px;
  }

  .hero h1 {
    font-size: 54px;
  }

  .house-glyph {
    width: 178px;
    height: 150px;
  }

  .roof {
    top: -54px;
    left: 25px;
    width: 122px;
    height: 122px;
  }

  .window-two {
    display: none;
  }

  .address-card dl div {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .address-card dd {
    text-align: left;
  }

  .section-heading h2,
  .closing-band h2 {
    font-size: 45px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}


/* ------------------------------------------------------------------ map home
   Additions for map.hummbl.house. Tokens stay identical to the House profile. */

.map-section,
.lot-section,
.regions-section,
.method-section {
  width: min(var(--content), calc(100% - 96px));
  margin-inline: auto;
  padding: 72px 0;
}

#map,
#lot,
#regions,
#method {
  scroll-margin-top: 110px;
}

.map-hero {
  min-height: 560px;
}

.situation-card .situation-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
}

.situation-card .situation-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.situation-card dt {
  color: var(--muted);
  font-size: 14px;
}

.situation-card dd {
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--forest);
}

.situation-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.layer-picker {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

.layer-picker legend {
  margin-bottom: 12px;
}

.layer-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.layer-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--white);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.layer-option:has(input:checked) {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--white);
}

.layer-option input {
  accent-color: var(--green);
}

.map-frame {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.map-canvas {
  position: relative;
  min-height: 320px;
}

.map-loading {
  margin: 0;
  padding: 40px 0;
  text-align: center;
  color: var(--muted);
}

.us-map {
  display: block;
  width: 100%;
  height: auto;
}

.us-map .lot {
  stroke: var(--white);
  stroke-width: 0.8;
  cursor: pointer;
  transition: opacity 120ms ease;
}

.us-map .lot:hover,
.us-map .lot:focus-visible {
  opacity: 0.82;
  outline: none;
}

.us-map .lot.selected {
  stroke: var(--ink);
  stroke-width: 2;
}

.us-map .mesh {
  fill: none;
  stroke: var(--white);
  stroke-width: 0.9;
  pointer-events: none;
}

.us-map .nation {
  fill: none;
  stroke: var(--forest);
  stroke-width: 1.4;
  stroke-linejoin: round;
  pointer-events: none;
}

.us-map .label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9.5px;
  font-weight: 700;
  fill: var(--ink);
  text-anchor: middle;
  pointer-events: none;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 16px 0 0;
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(16, 47, 36, 0.25);
  border-radius: 3px;
}

.map-caption,
.lot-note {
  max-width: 820px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.lot-panel {
  margin-top: 8px;
}

.lot-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.lot-header h3 {
  margin: 0;
  font-family: "Crimson Pro", Georgia, serif;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 520;
  letter-spacing: -0.03em;
  line-height: 1;
}

.lot-anchor {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.lot-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--forest);
  color: var(--white);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-muted {
  background: var(--mint);
  color: var(--forest);
}

.lot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 26px;
}

.lot-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.lot-card-wide {
  grid-column: 1 / -1;
}

.lot-card h4 {
  margin: 0 0 14px;
  font-family: "Crimson Pro", Georgia, serif;
  font-size: 26px;
  font-weight: 560;
  letter-spacing: -0.02em;
}

.lot-card h5 {
  margin: 20px 0 8px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}

.stat-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.stat-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}

.stat-list dt {
  color: var(--muted);
}

.stat-list dd {
  margin: 0;
  text-align: right;
  font-weight: 650;
}

.chart {
  margin-top: 18px;
}

.normals-chart {
  display: block;
  width: 100%;
  height: auto;
}

.normals-chart .bar {
  fill: #9dbfa8;
}

.normals-chart .band {
  fill: rgba(163, 112, 61, 0.16);
}

.normals-chart .line {
  fill: none;
  stroke: #9c5540;
  stroke-width: 2.2;
  stroke-linejoin: round;
}

.normals-chart .grid {
  stroke: var(--border);
  stroke-width: 1;
}

.normals-chart .grid-freeze {
  stroke: #4f6478;
  stroke-dasharray: 4 4;
}

.normals-chart .axis {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  fill: var(--muted);
}

.chart-table {
  margin-top: 12px;
  font-size: 14px;
}

.chart-table summary,
.trace summary {
  cursor: pointer;
  color: var(--green-hover);
  font-weight: 700;
}

.climate-table-wrap {
  overflow-x: auto;
  margin-top: 10px;
}

.climate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.climate-table th,
.climate-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.climate-table thead th {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.climate-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.decisions-table th[scope="row"] {
  white-space: nowrap;
  text-transform: capitalize;
}

.decisions-table .basis {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--muted);
}

.trace {
  margin-top: 16px;
}

.trace-list {
  margin: 12px 0 0;
  padding-left: 22px;
  font-size: 14px;
}

.trace-list li {
  margin-bottom: 8px;
}

.house-list,
.alert-list,
.forecast-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.house-list li {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}

.house-list span {
  color: var(--muted);
}

.alert-list li,
.forecast-list li {
  padding: 8px 10px;
  margin-bottom: 6px;
  border-left: 3px solid var(--border-strong);
  background: var(--mint-soft);
  font-size: 14px;
}

.alert.sev-extreme {
  border-left-color: #6d3524;
}

.alert.sev-severe {
  border-left-color: #9c5540;
}

.alert.sev-moderate {
  border-left-color: #a3703d;
}

.alert-none {
  color: var(--muted);
}

.lot-live-status {
  margin: 0 0 12px;
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
}

.hazard-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip {
  padding: 6px 10px;
  border: 1px solid #c99a6e;
  border-radius: 999px;
  background: #f3e7dc;
  color: #6d3524;
  font-size: 13px;
  font-weight: 650;
}

.climate-regions-grid,
.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.region-card .region-koppen {
  margin: 0 0 10px;
  color: var(--green);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
}

.region-hazards {
  margin: 12px 0;
  padding-left: 18px;
  font-size: 14px;
}

.region-houses {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.region-sources {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.region-sources a {
  margin-right: 4px;
}

.lens-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.lens-card h3 {
  margin: 0 0 10px;
  font-family: "Crimson Pro", Georgia, serif;
  font-size: 24px;
  font-weight: 560;
}

.lens-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.sources {
  margin-top: 40px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--mint-soft);
}

.sources h3 {
  margin: 0 0 12px;
  font-family: "Crimson Pro", Georgia, serif;
  font-size: 26px;
  font-weight: 560;
}

.source-list {
  margin: 0;
  padding-left: 20px;
  font-size: 15px;
}

.source-list li {
  margin-bottom: 6px;
}

@media (max-width: 900px) {
  .lot-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .map-section,
  .lot-section,
  .regions-section,
  .method-section {
    width: min(var(--content), calc(100% - 40px));
    padding: 48px 0;
  }
}

@media (max-width: 390px) {
  .map-frame {
    padding: 10px;
  }

  .layer-option {
    font-size: 13px;
  }
}
