/* Styles for Gaffordable's text pages (home, about, privacy, 404). The county maps carry their own styles inline. */
:root{color-scheme:light dark;
--bg:light-dark(#ffffff,#0f1418);--ink:light-dark(#15202b,#e8edf1);--ink2:light-dark(#56636f,#a1adb8);
--rule:light-dark(#e1e5e9,#2a333b);--panel:light-dark(#f5f6f7,#161d23);--chip:light-dark(#eceef0,#222a31);
--t0:light-dark(#1757ac,#6aabf1);--blue:light-dark(#257de0,#4a9bf0)}
*{box-sizing:border-box;min-width:0}
body{margin:0;background:var(--bg);color:var(--ink);font:17px/1.55 "Source Sans 3",system-ui,sans-serif}
h1,h2,h3{font-family:"Barlow Semi Condensed","Arial Narrow",system-ui,sans-serif;letter-spacing:-.01em}
h1{font-size:clamp(32px,5vw,54px);line-height:1.04;margin:0 0 14px;font-weight:700;text-wrap:balance}
h2{font-size:clamp(24px,3vw,30px);line-height:1.1;margin:0 0 8px;font-weight:700}
h3{font-size:20px;line-height:1.2;margin:0 0 6px;font-weight:600}
p{margin:0 0 12px}
a{color:inherit;text-underline-offset:2px}
a:focus-visible{outline:2px solid var(--blue);outline-offset:2px;border-radius:4px}
.wrap{max-width:1100px;margin:0 auto;padding:0 max(16px,3vw)}
.narrow{max-width:760px}
main{padding-bottom:48px}
.lede{font-size:clamp(18px,2vw,21px);color:var(--ink2);max-width:62ch}
.muted{color:var(--ink2)}

/* home */
.hero{padding:48px 0 28px}
.card{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);border:1px solid var(--rule);border-radius:14px;overflow:hidden;background:var(--panel)}
.card>a{display:block;min-height:100%;background:#e2ecf2}
.card img{display:block;width:100%;height:100%;min-height:100%;object-fit:cover}
.card .body{padding:26px 28px;display:flex;flex-direction:column;justify-content:center}
.tag{display:inline-block;font:700 13px/1 "Source Sans 3",sans-serif;letter-spacing:.04em;text-transform:uppercase;color:var(--t0);margin-bottom:10px}
.btn{display:inline-flex;align-items:center;gap:8px;align-self:flex-start;font:600 17px/1 "Source Sans 3",sans-serif;background:var(--ink);color:var(--bg);text-decoration:none;border-radius:9px;padding:0 18px;min-height:46px;margin-top:6px}
.btn:hover{opacity:.9}
.three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;margin-top:40px}
.three>div{border-top:2px solid var(--ink);padding-top:12px}
.three p{margin:0}
.soon{margin-top:40px;padding:20px 24px;border-radius:12px;background:var(--chip)}
.soon p:last-child{margin:0}

/* text pages */
.page{padding:40px 0 8px}
.page h2{margin-top:32px}
.page ul{padding-left:22px;margin:0 0 12px}
.page li{margin-bottom:6px}
.updated{font-size:15px;color:var(--ink2)}

@media(max-width:760px){
 .card{grid-template-columns:1fr}
 .card .body{padding:20px}
 .three{grid-template-columns:1fr;gap:18px;margin-top:28px}
 .hero{padding:32px 0 20px}
}

/* county pages */
.crumb{font-size:15px;color:var(--ink2);margin:0 0 10px}
.county .lede{max-width:70ch}
.kfigs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border-left:1px solid var(--rule);margin:22px 0 26px}
.kfigs div{padding:4px 16px;border-right:1px solid var(--rule)}
.kfigs b{display:block;font:700 clamp(22px,2.6vw,32px)/1.1 "Barlow Semi Condensed",sans-serif}
.kfigs span{display:block;font-size:15px;color:var(--ink2);line-height:1.3;margin-top:4px}
.cgrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:32px;align-items:start;margin-bottom:12px}
.hexfig{margin:0;background:var(--sea);border-radius:12px;padding:12px;border:1px solid var(--rule)}
.hexmap{display:block;width:100%;height:auto;max-height:520px}
.hexmap polygon{stroke:var(--bg);stroke-width:1.5}
.hexmap .other{fill:var(--na)}
.hexmap a:hover polygon,.hexmap a:focus-visible polygon{stroke:var(--ink);stroke-width:2.5}
.hexmap text{font-family:"Barlow Semi Condensed",sans-serif;text-anchor:middle;fill:var(--ink);pointer-events:none}
.hexmap .k{font-size:14px;font-weight:600}.hexmap .v{font-size:13px;font-weight:700}
.hexmap .lt{fill:light-dark(#ffffff,#0f1418)}
.hexmap .pna{fill:var(--na)}.hexmap .pnl{stroke:var(--upl)}
.p0{fill:var(--p0);background:var(--p0)}.p1{fill:var(--p1);background:var(--p1)}.p2{fill:var(--p2);background:var(--p2)}.p3{fill:var(--p3);background:var(--p3)}
.hexfig figcaption{font-size:14px;color:var(--ink2);margin-top:8px}
.hk{display:flex;flex-wrap:wrap;gap:4px 14px;margin-bottom:4px}
.hk i{display:inline-block;width:13px;height:13px;border-radius:3px;vertical-align:-2px;margin-right:6px}
.facts{padding-left:20px;margin:0 0 16px}.facts li{margin-bottom:8px}
.scroll{overflow-x:auto}
table.data{border-collapse:collapse;width:100%;font-size:15.5px;margin:4px 0 10px}
table.data th,table.data td{padding:9px 8px;border-bottom:1px solid var(--rule);text-align:right;white-space:nowrap;vertical-align:top}
table.data th{font-weight:600;color:var(--ink2);font-size:14px;vertical-align:bottom;white-space:normal}
table.data th:first-child,table.data td:first-child{text-align:left;white-space:normal}
table.data td{font-variant-numeric:tabular-nums}
table.data td small{display:block;color:var(--ink2);font-size:13px}
table.data td a{font-weight:600}
.mini{border-collapse:collapse;font-size:15px;margin:6px 0 14px}
.mini td,.mini th{padding:5px 12px 5px 0;border-bottom:1px solid var(--rule);text-align:right;white-space:nowrap}
.mini td:first-child,.mini th:first-child{text-align:left;white-space:normal}
.mini th{color:var(--ink2);font-weight:600;font-size:14px}
.note{font-size:15px;color:var(--ink2)}
.others{line-height:1.9}
.county h2{margin-top:30px}
:root{--sea:light-dark(#e2ecf2,#122029);--na:light-dark(#e3e1da,#2d343a);--upl:light-dark(#c8c2b2,#46505a);
--p0:light-dark(#d6e6f9,#1d3550);--p1:light-dark(#93bdee,#2c5f99);--p2:light-dark(#3f7fd0,#6aa6ea);--p3:light-dark(#173f7a,#b9d6f7)}
@media(max-width:820px){.cgrid{grid-template-columns:1fr}.kfigs{grid-template-columns:1fr;border-left:0}.kfigs div{border-right:0;border-top:1px solid var(--rule);padding:10px 0}}
@media(max-width:640px){
 table.data{font-size:15px}
 table.data.stack thead{display:none}
 table.data.stack tr{display:grid;padding-block:10px;border-bottom:1px solid var(--rule)}
 table.data.stack td{display:flex;justify-content:space-between;gap:12px;border:0;padding:2px 0;white-space:normal;text-align:right}
 table.data.stack td::before{content:attr(data-l);color:var(--ink2);font-size:14px;text-align:left;flex:none}
 table.data.stack td:first-child{display:block;font-size:17px;text-align:left}
 table.data.stack td:first-child::before{content:none}
 table.data.stack td.ph{display:none}
}
