/* Front page only (r23): hero with search + map, fact cards, sample report, coverage. Loaded after /style.css and /vendor/leaflet/leaflet.css.
   Self-contained colors, so it does not depend on the variables in style.css. */
body.home .top .in, body.home footer .in { max-width: 1240px; }
.hm { color: #1f2a44; }
.hm * { box-sizing: border-box; }
.hm .hm-w { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.hm section { border: 0; border-radius: 0; box-shadow: none; padding: 0; background: transparent; display: block; }
.hm h1, .hm h2, .hm h3 { font-family: "Zilla Slab", Rockwell, Georgia, serif; }
.hm a { color: #1f2a44; }
.hm a:hover { color: #2f7d4f; }

/* Hero */
.hm-hero { background-color: #fff; background-image: linear-gradient(#eef1f6 1px, transparent 1px), linear-gradient(90deg, #eef1f6 1px, transparent 1px); background-size: 28px 28px; }
.hm-hero .hm-w { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 40px; align-items: start; padding-top: 44px; padding-bottom: 56px; }
.hm-hero h1 { font-weight: 700; font-size: clamp(2.3rem, 4.6vw, 3.9rem); line-height: 1.02; margin: 0 0 16px; letter-spacing: -.01em; }
.hm-sub { font-size: 1.15rem; color: #3d4760; margin: 0 0 24px; background: rgba(255,255,255,.85); }
.hm-search { background: #fff; border: 2px solid #1f2a44; border-radius: 14px; box-shadow: 5px 5px 0 #1f2a44; overflow: hidden; padding: 0 0 20px; display: block; }
.hm-tabs { display: flex; border-bottom: 2px solid #1f2a44; }
.hm-tab { flex: 1; min-height: 52px; border: 0; border-right: 1.5px solid #c9cfdb; background: #f5f7fa; font: 700 1rem "Public Sans", system-ui, sans-serif; color: #3d4760; cursor: pointer; padding: 0 6px; }
.hm-tab:last-child { border-right: 0; }
.hm-tab[aria-pressed="true"] { background: #fff; color: #1f2a44; box-shadow: inset 0 -4px 0 #2f7d4f; }
.hm-sbody { padding: 18px 20px 0; display: grid; gap: 0; }
.hm-sbody label { display: block; font: 700 1.3rem/1.15 "Zilla Slab", Georgia, serif; color: #1f2a44; text-transform: none; letter-spacing: 0; margin-bottom: 2px; }
.hm-hint { font-size: .9rem; color: #4a5469; margin: 0 0 12px; }
.hm-f { display: flex; gap: 8px; }
.hm-f input { flex: 1; min-width: 0; }
.hm-go { min-height: 52px; padding: 0 22px; border: 0; border-radius: 10px; background: #2f7d4f; color: #fff; font: 700 1rem "Public Sans", system-ui, sans-serif; cursor: pointer; white-space: nowrap; }
.hm-go:hover { background: #226b42; }
.hm-sbody .results { margin-top: 10px; }
.hm-cover { font-size: .95rem; color: #3d4760; margin: 12px 0 0; max-width: none; }
.hm-cover b { color: #1f2a44; }
.hm-leaselink { margin: 8px 0 0; font-size: .95rem; max-width: none; }
.hm-pin { margin: 22px 0 0; font: 600 1.55rem/1.2 "Caveat", cursive; color: #2f7d4f; }
.hm-pin::after { content: " \2192"; }
.hm-board { margin: 14px 0 10px; }

/* Map sheet */
.hm-sheet { background: #fff; border: 2px solid #1f2a44; border-radius: 14px; padding: 18px 18px 16px; min-width: 0; }
.hm-mhead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px 12px; flex-wrap: wrap; margin-bottom: 10px; }
.hm-mhead h2 { font-size: 1.6rem; line-height: 1.1; margin: 0; }
.hm-metros { display: flex; gap: 6px; flex-wrap: wrap; }
.hm-chip { min-height: 44px; padding: 0 14px; border: 1.5px solid #1f2a44; border-radius: 999px; background: #fff; font: 600 .9rem "Public Sans", system-ui, sans-serif; color: #1f2a44; cursor: pointer; }
.hm-chip[aria-pressed="true"] { background: #1f2a44; color: #fff; }
.hm-layers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
.hm-lyr { min-height: 44px; border: 1.5px solid #c9cfdb; border-radius: 10px; background: #f5f7fa; font: 700 .9rem/1.2 "Public Sans", system-ui, sans-serif; color: #3d4760; cursor: pointer; padding: 4px 6px; }
.hm-lyr[aria-pressed="true"] { border-color: #1f2a44; background: #fff; color: #1f2a44; box-shadow: 3px 3px 0 #1f2a44; }
.hm-chip:hover, .hm-lyr:hover, .hm-tab:hover { border-color: #2f7d4f; }
.hm-mapbox { position: relative; }
#hmap { width: 100%; height: 540px; min-height: 280px; background-color: #fbfaf6; background-image: linear-gradient(#eef1f6 1px, transparent 1px), linear-gradient(90deg, #eef1f6 1px, transparent 1px); background-size: 14px 14px; border: 1px solid #d6dbe5; border-radius: 8px; z-index: 0; font-family: "Public Sans", system-ui, sans-serif; }
#hmap .leaflet-container { font-family: inherit; }
#hmap.leaflet-container { background-color: #fbfaf6; }
#hmap:focus-visible { outline: 3px solid #2f7d4f; outline-offset: 2px; }
.hm-back { position: absolute; z-index: 800; right: 10px; top: 10px; min-height: 44px; padding: 0 14px; border: 2px solid #1f2a44; border-radius: 10px; background: #fff; color: #1f2a44; font: 700 .9rem "Public Sans", system-ui, sans-serif; cursor: pointer; box-shadow: 3px 3px 0 #1f2a44; }
.hm-back[hidden] { display: none; }
.hm-nomap { position: absolute; inset: 0; z-index: 700; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; background: rgba(255,255,255,.92); font-size: 1rem; border-radius: 8px; }
.hm-nomap[hidden] { display: none; }
.hm-nomap p { max-width: 34ch; }
.hm .leaflet-control-zoom a { width: 44px; height: 44px; line-height: 44px; font-size: 22px; }
.hm .leaflet-bar a:hover { color: #1f2a44; }
.hm .leaflet-popup-content { margin: 12px 14px; font: 400 .95rem/1.4 "Public Sans", system-ui, sans-serif; color: #1f2a44; min-width: 160px; }
.hm .leaflet-popup-content b { display: block; font: 700 1.05rem/1.2 "Zilla Slab", Georgia, serif; }
.hm .leaflet-popup-content .pp-open { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; margin-top: 4px; }
.hm .leaflet-popup-close-button { width: 44px; height: 44px; font-size: 22px; line-height: 44px; }

.hm-legend { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; margin-top: 10px; font-size: .82rem; color: #3d4760; }
.hm-legend b { font-weight: 700; color: #1f2a44; }
.hm-sw { display: inline-flex; align-items: center; gap: 5px; }
.hm-sw i { display: inline-block; width: 16px; height: 16px; border-radius: 3px; border: 1px solid rgba(31,42,68,.3); }
.hm-sw i.dot { border-radius: 50%; }
.hm-note { font-size: .85rem; color: #4a5469; margin: 6px 0 0; max-width: none; }
.hm-note:empty { display: none; }
.hm-readout { margin-top: 12px; border-top: 1.5px dashed #9aa3b5; padding-top: 12px; min-height: 92px; }
.hm-readout h3 { font-size: 1.25rem; margin: 0 0 6px; }
.hm-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.hm-stat b { display: block; font: 700 1.5rem/1.1 "Zilla Slab", Georgia, serif; }
.hm-stat span { font-size: .8rem; color: #4a5469; line-height: 1.3; display: block; }
.hm-open { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; font-weight: 700; }
.hm-status { font-size: .9rem; color: #3d4760; margin: 6px 0 0; max-width: none; }
.hm-status:empty { display: none; }

/* Sections below the hero */
.hm .hm-sec { padding: 60px 0; border-top: 1px solid #e3e6ec; }
.hm h2.hm-h { font-size: clamp(1.9rem, 3.2vw, 2.5rem); margin: 0 0 6px; line-height: 1.05; }
.hm-lede { margin: 0 0 26px; color: #3d4760; max-width: 640px; }
.hm-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.hm-fact { border: 1.5px solid #1f2a44; border-radius: 12px; padding: 20px; background: #fff; }
.hm-fact .k { font: 600 1.4rem/1 "Caveat", cursive; color: #2f7d4f; display: block; }
.hm-fact b { display: block; font: 700 2.05rem/1.05 "Zilla Slab", Georgia, serif; margin: 6px 0; overflow-wrap: anywhere; }
.hm-fact p { margin: 0; font-size: .95rem; color: #3d4760; line-height: 1.45; }
.hm-fact.or { border-top: 6px solid #d9702a; } .hm-fact.bl { border-top: 6px solid #3a72b5; } .hm-fact.gr { border-top: 6px solid #2f7d4f; } .hm-fact.nv { border-top: 6px solid #1f2a44; }
.hm-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hm-board { position: relative; background: #c9a978; border-radius: 16px; padding: 46px 18px 18px; transform: rotate(-1.4deg); box-shadow: 0 18px 30px rgba(31,42,68,.18); max-width: 560px; }
.hm-clip { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); width: 120px; height: 40px; background: #8a9099; border-radius: 8px 8px 4px 4px; border: 3px solid #5f656e; }
.hm-paper { background: #fffef9; border-radius: 6px; padding: 22px 22px 16px; position: relative; overflow: hidden; }
.hm-paper .tg { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: #4a5469; font-weight: 700; }
.hm-paper h3 { font-size: 1.5rem; margin: 2px 0 12px; line-height: 1.15; padding-right: 0; }
.hm-row { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px solid #e8e3d6; font-size: .95rem; }
.hm-row span { color: #4a5469; }
.hm-stamps { display: flex; gap: 10px 14px; flex-wrap: wrap; margin: 0 0 8px; }
.hm-stamp { display: inline-block; font: 700 1rem/1.1 "Zilla Slab", Georgia, serif; letter-spacing: .06em; text-transform: uppercase; border: 3px solid; border-radius: 6px; padding: 4px 10px; background: rgba(255,254,249,.7); }
.hm-stamp.s1 { color: #b8521a; border-color: #b8521a; transform: rotate(-3deg); }
.hm-stamp.s2 { color: #2c5d9a; border-color: #2c5d9a; transform: rotate(2deg); }
.hm-what ul { list-style: none; margin: 0; padding: 0; }
.hm-what li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid #e3e6ec; }
.hm-what li svg { width: 26px; height: 26px; margin-top: 2px; }
.hm-cov { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.hm-tbl { overflow-x: auto; border: 1.5px solid #1f2a44; border-radius: 12px; }
.hm-tbl table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.hm-tbl th, .hm-tbl td { padding: 9px 16px; text-align: right; border-bottom: 1px solid #e3e6ec; white-space: nowrap; font-family: "Public Sans", system-ui, sans-serif; letter-spacing: 0; text-transform: none; font-size: 1rem; color: #1f2a44; background: transparent; font-weight: 400; vertical-align: middle; }
.hm-tbl th:first-child, .hm-tbl td:first-child { text-align: left; }
.hm-tbl th[scope="row"] { font-weight: 600; }
.hm-tbl thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: #4a5469; background: #f5f7fa; font-weight: 600; border-bottom: 2px solid #1f2a44; }
.hm-tbl tr.grp th { text-align: left; background: #eef6f1; color: #226b42; font-size: .9rem; font-weight: 700; text-transform: none; letter-spacing: 0; }
.hm-cards { display: flex; flex-direction: column; gap: 16px; }
.hm-card { border: 1.5px solid #1f2a44; border-radius: 12px; padding: 20px 22px; text-decoration: none; display: block; color: #1f2a44; background: #fff; }
.hm-card:hover { box-shadow: 4px 4px 0 #2f7d4f; border-color: #2f7d4f; color: #1f2a44; }
.hm-card h3 { font-size: 1.55rem; margin: 0 0 6px; }
.hm-card p { margin: 0; color: #3d4760; }
.hm-card.tf { background: #fff3c4; border-color: #c99a12; }
.hm-card.bz { background: #eef3fb; }

/* Commercial landing page */
.cm-wrap { max-width: 960px; margin: 0 auto; padding: 28px 16px 64px; display: grid; gap: 28px; }
.cm-note { font-size: .9rem; color: #4a5469; }
.cm-list { margin: 0; padding-left: 1.2rem; display: grid; gap: 6px; max-width: 68ch; }
.cm-links { display: flex; gap: 12px 24px; flex-wrap: wrap; }
.cm-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

@media (max-width: 960px) {
  .hm .hm-w { padding: 0 16px; }
  .hm-hero .hm-w { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 24px; padding-bottom: 36px; }
  .hm-two, .hm-cov { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hm-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-layers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-board { transform: none; }
  .hm-pin::after { content: " \2193"; }
  .hm .hm-sec { padding: 44px 0; }
  #hmap { height: 440px; }
}
@media (max-width: 560px) {
  .hm-facts { grid-template-columns: minmax(0, 1fr); }
  .hm-f { flex-direction: column; }
  .hm-sbody { padding: 16px 14px 0; }
  .hm-sheet { padding: 14px 12px; }
  .hm-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  #hmap { height: 380px; }
  .hm-fact b { font-size: 2rem; }
  .hm-tab { font-size: .95rem; }
  .hm-tbl th, .hm-tbl td { padding: 9px 8px; font-size: .92rem; }
  .hm-tbl thead th { white-space: normal; font-size: .7rem; letter-spacing: .02em; }
}
