/* MM homepage. Scoped independently from the published header. */
#g-home{--ink:#203c2c;--muted:#6b766c;--line:#dce2d9;--paper:#f4f5ef;--gold:#b88616;color:var(--ink);font-size:16px;line-height:1.4;padding:0 3px 10px}
#g-home *{box-sizing:border-box}
#g-home a{color:inherit;text-decoration:none}
#g-home a:focus-visible,#g-home button:focus-visible{outline:2px solid #b88616;outline-offset:4px}
#g-home .home-intro{padding:15px 0 20px}
#g-home .home-title-row{display:flex;align-items:center;justify-content:space-between;gap:20px}
#g-home .home-title-row>div{display:flex;align-items:baseline;gap:18px}
#g-home .home-kicker{font-size:14px;color:var(--muted);order:2}
#g-home h1{font-size:42px;line-height:1.1;letter-spacing:-.5px;color:var(--ink);margin:0;font-weight:700}
#g-home .home-change{display:inline-flex;align-items:center;gap:12px;font-size:14px;padding:8px 12px;border:1px solid #cdd6c9;border-radius:5px;color:#435b46;background:#fff}
#g-home .home-change:hover{border-color:#7e9575;background:#f3f6ef}
#g-home .home-workspace{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:20px;align-items:stretch}
#g-home .home-map{display:flex;flex-direction:column;min-width:0;border:1px solid #bac8b4;border-radius:8px;overflow:hidden;background:#e7eddf}
#g-home .home-map-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;background:#274b35;color:white;min-height:52px}
#g-home h2{margin:0;font-size:23px;line-height:1.25;font-weight:500;color:var(--ink)}
#g-home #home-map-title{color:#fff;font-size:19px}
#g-home .home-map-heading>span{font-size:12px;color:#c7d5bf}
#g-home #map_cont{position:relative;min-height:440px;flex:1;overflow:hidden;cursor:grab}
#g-home #map_cont:active{cursor:grabbing}
#g-home #map_cont.fullscreen{position:fixed;inset:0;width:auto;height:auto;border:0;border-radius:0;z-index:1005}
#g-home .fullscreen_btn{position:absolute;right:10px;top:10px;z-index:1000;width:40px;height:40px;display:grid;place-items:center;background:#fff;color:#284d35;border:0;border-radius:6px;box-shadow:0 2px 6px #0003;font-size:27px;cursor:pointer}
#g-home .my-hint{margin:12px;background:#23432f;color:#fff;padding:4px 8px;border-radius:4px;white-space:nowrap}
#g-home .home-facts{min-width:0;background:var(--paper);border-radius:8px;padding:17px 18px 12px;align-self:stretch}
#g-home .home-facts h2{font-size:22px;padding:0 0 12px;border-bottom:1px solid #cfb263;margin:0 0 4px}
#g-home .home-facts table{border-collapse:collapse;width:100%;font-size:14px;line-height:1.4}
#g-home .home-facts th,#g-home .home-facts td{border-bottom:1px solid #dfe4d8;text-align:left;vertical-align:top;padding:9px 0;overflow-wrap:anywhere;font-weight:400;color:#354d36}
#g-home .home-facts th{width:45%;padding-right:13px;color:#707a69}
#g-home .home-facts tr:last-child>*{border-bottom:0}
#g-home .home-facts td{font-weight:500}
#g-home .home-services{margin-top:29px}
#g-home .home-section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:14px}
#g-home .home-section-heading>span{color:#7b8476;font-size:13px}
#g-home .home-sections{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 24px;border-top:1px solid var(--line)}
#g-home .home-card{display:grid;grid-template-columns:38px minmax(0,1fr) 16px;column-gap:12px;padding:20px 0;border-bottom:1px solid var(--line);position:relative;align-content:start}
#g-home .home-icon{display:flex;align-items:center;justify-content:center;width:38px;height:38px;background:#254932;color:#ecc43a;border-radius:8px;grid-row:1/3}
#g-home .home-icon svg{width:22px;height:22px}
#g-home .home-card-title{font-size:19px;line-height:1.25;font-weight:500;margin:0 0 7px;color:#24432e}
#g-home .home-card-description{grid-column:2;grid-row:2;font-size:14px;line-height:1.4;color:#76806f}
#g-home .home-card-arrow{grid-column:3;grid-row:1;color:#97a18e;font-size:16px}
#g-home .home-card:hover .home-card-title{color:#97700a}
#g-home .home-card:hover .home-icon{background:#3a6040}
#g-home .home-card:hover .home-card-arrow{color:#97700a}
#g-home .home-districts{margin-top:30px;padding:22px;background:#f4f5ef;border-radius:8px}
#g-home .home-districts h2{font-size:22px}
#g-home .home-section-heading>a{font-size:14px;color:#4c6848;border-bottom:1px solid #c0ccba;padding-bottom:2px}
#g-home .home-section-heading>a:hover{color:#97700a}
#g-home .home-district-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 28px}
#g-home .home-district-list a{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #dce3d5;color:#3b563b;font-size:15px}
#g-home .home-district-list span{color:#97a28c}
#g-home .home-district-list a:hover{color:#97700a}
@media(max-width:760px){
 #g-home{padding:0 0 8px}
 #g-home .home-intro{padding:12px 0 17px}
 #g-home .home-title-row{gap:12px}
 #g-home .home-title-row>div{flex-direction:column;gap:3px}
 #g-home h1{font-size:34px}
 #g-home .home-kicker{font-size:12px}
 #g-home .home-change{font-size:12px;padding:7px 9px;gap:5px;white-space:nowrap}
 #g-home .home-workspace{grid-template-columns:1fr;gap:14px}
 #g-home .home-map-heading{padding:11px 13px;min-height:46px}
 #g-home #home-map-title{font-size:18px}
 #g-home .home-map-heading>span{font-size:11px}
 #g-home #map_cont:not(.fullscreen){height:330px;min-height:0;flex:none}
 #g-home .home-facts{padding:16px}
 #g-home .home-facts table{font-size:15px}
 #g-home .home-facts th{width:45%}
 #g-home .home-sections{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px}
 #g-home .home-card{grid-template-columns:30px minmax(0,1fr);column-gap:8px;padding:16px 0}
 #g-home .home-icon{width:30px;height:30px;border-radius:6px;grid-row:1}
 #g-home .home-icon svg{width:19px;height:19px}
 #g-home .home-card-title{font-size:17px;align-self:center;margin:0}
 #g-home .home-card-description{grid-column:1/-1;margin-top:10px}
 #g-home .home-card-arrow{display:none}
 #g-home .home-section-heading>span{display:none}
 #g-home .home-districts{padding:16px;margin-top:24px}
 #g-home .home-district-list{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px}
 #g-home .home-section-heading{flex-wrap:wrap;gap:8px}
}
@media(max-width:380px){#g-home .home-map-heading>span{display:none}#g-home .home-district-list{grid-template-columns:1fr}#g-home .home-card-title{font-size:16px}#g-home .home-sections{column-gap:14px}}

/* The map and city facts share the same quiet panel treatment. */
#g-home .home-map{background:var(--paper);border:0;padding:17px 18px 12px}
#g-home .home-map-heading{background:none;color:var(--ink);padding:0 0 12px;min-height:0;border-bottom:1px solid #cfb263;margin-bottom:12px}
#g-home #home-map-title{color:var(--ink);font-size:22px}
#g-home .home-map-heading>span{color:var(--muted)}
#g-home #map_cont:not(.fullscreen){border:1px solid #cdd6c6;border-radius:5px}
@media(max-width:760px){
 #g-home .home-map{padding:16px}
 #g-home .home-map-heading{padding:0 0 12px}
}

/* Map spans its panel; only the heading retains inner spacing. */
#g-home .home-map{padding:0}
#g-home .home-map-heading{padding:17px 18px 12px;margin:0;border-bottom:0}
#g-home #map_cont:not(.fullscreen){border:0;border-radius:0}
@media(max-width:760px){#g-home .home-map-heading{padding:16px}}

#g-home #map_cont:not(.fullscreen){border:1px solid #cfb263;border-radius:0 0 8px 8px;overflow:hidden}

/* Homepage: standalone framed map, without a visible title bar. */
#g-home .home-map-heading{display:none}
#g-home #map_cont:not(.fullscreen){border-radius:8px}

#g-home h1{font-size:32px}
@media(max-width:760px){#g-home h1{font-size:28px}}

#g-home .home-icon{color:#ffc600}

@media(max-width:760px){#in_content:has(> #g-home){padding-left:10px;padding-right:10px}}

/* Map renderer dimensions must not determine the grid row height after fullscreen. */
#g-home #map{position:absolute;inset:0}

#g-home .home-sections:has(> .home-card:nth-child(4):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}

/* Weather preview, rendered only in mm. */
#g-home .home-weather{display:flex;align-items:center;gap:0;margin:0 0 20px;padding:17px 18px 12px;background:#edf5e9;color:var(--ink);border:1px solid #dce8d5;border-radius:8px}
#g-home .home-weather-item{display:flex;align-self:stretch;align-items:center;gap:10px;padding:0 20px;border-right:1px solid #b8d3ac}
#g-home .home-weather-item:first-child{padding-left:0}
#g-home .home-weather-label{display:block;font-size:13px;color:#52674b;margin-bottom:3px}
#g-home .home-weather strong{display:block;color:#254932;font-size:27px;font-weight:600;line-height:1.1;white-space:nowrap}
#g-home .home-weather .home-weather-range{font-size:20px}
#g-home .home-weather-range span{color:#718569;font-weight:400}
#g-home .home-weather-detail{font-size:14px;line-height:1.5}
#g-home .home-weather-detail span,#g-home .home-weather-description{display:block;font-size:12px;color:#52674b}
#g-home .home-weather-link{margin-left:auto;padding-left:18px;font-size:14px;color:#34572b;text-decoration:none;max-width:120px}
#g-home .home-weather-link:hover{text-decoration:underline}
@media(max-width:1000px){#g-home .home-weather-detail{display:none}#g-home .home-weather-item{padding:0 14px}}
@media(max-width:600px){
 #g-home .home-weather{flex-wrap:wrap;padding:16px;row-gap:12px;margin-bottom:14px}
 #g-home .home-weather-item{flex:1;min-width:0;padding:0 8px;gap:5px}
 #g-home .home-weather-item:nth-last-child(2){border-right:0;padding-right:0}
 #g-home .home-weather-item img{width:28px;height:28px}
 #g-home .home-weather strong{font-size:24px}
 #g-home .home-weather .home-weather-range{font-size:16px}
 #g-home .home-weather-description{display:none}
 #g-home .home-weather-link{flex-basis:100%;max-width:none;margin:0;padding:9px 0 0;border-top:1px solid #b8d3ac;font-size:13px}
}

@media(max-width:360px){#g-home .home-weather-item{flex-direction:column;align-items:flex-start;gap:4px}#g-home .home-weather-item img{width:24px;height:24px}}

/* Warm panels preview; weather keeps its green palette. */
#g-home.home-preview .home-facts,#g-home.home-preview .home-districts{background:#faf5e5;border:1px solid #eee7d2}
#g-home.home-preview .home-facts tr:not(:last-child)>*,#g-home.home-preview .home-district-list a{border-bottom-color:#e7ddbf}
