/* illustrated.css: the warm, hand-drawn layer from mockup E. Loaded after editorial.css. */
:root{
  --paper:#F6F1E7;--paper-2:#EFE8DA;--paper-3:#E7DECB;--card:#FFFDF8;
  --ink:#23272B;--ink-2:#41464B;--ink-3:#6A6F75;
  --rule:#E3D9C6;--rule-2:#CDBFA6;--line:#23272B;
  --link:#2F6F7E;--accent:#C65D3B;--sun:#E8A33D;
  --t-hi:#C65D3B;--t-lo:#3D6E99;--t-n:#CFC6B4;
  --wrap:1280px;--rad:14px;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --paper:#1A1C1E;--paper-2:#232628;--paper-3:#2C2F32;--card:#202325;--panel:#202325;--ink:#EDE7DA;--ink-2:#CFC8BA;--ink-3:#A39C8E;
  --rule:#34383B;--rule-2:#4A4E52;--line:#EDE7DA;--link:#8FC3C9;--accent:#E07A57;--t-hi:#E07A57;--t-lo:#7FA6CC;--t-n:#5E5A52}}
:root[data-theme="dark"]{
  --paper:#1A1C1E;--paper-2:#232628;--paper-3:#2C2F32;--card:#202325;--panel:#202325;--ink:#EDE7DA;--ink-2:#CFC8BA;--ink-3:#A39C8E;
  --rule:#34383B;--rule-2:#4A4E52;--line:#EDE7DA;--link:#8FC3C9;--accent:#E07A57;--t-hi:#E07A57;--t-lo:#7FA6CC;--t-n:#5E5A52}

html,body{background:var(--paper)}
a{color:var(--link)}

/* header: drawn logo, 2px ink rule */
.masthead .wrap{border-bottom:2px solid var(--line)!important}
.masthead .brand{display:flex!important;align-items:center;gap:10px;font:600 21px var(--serif)!important}
.masthead .brand svg.logo{display:block!important;width:36px;height:36px}
.foot .brand svg.logo{display:inline-block!important;width:28px;height:28px;vertical-align:-8px;margin-right:6px}

/* headline + optional drawing beside it */
h1{font-weight:500}
.hero-art{display:block;width:100%;max-width:380px;height:auto;margin:0 auto}
.hero{display:grid;grid-template-columns:1.1fr .9fr;gap:40px;align-items:center}
.hero h1{margin-top:48px}
@media (max-width:760px){.hero{grid-template-columns:1fr;gap:16px}}

/* inputs and buttons: round */
input[type=search],input[type=text],.filterrow input,.fsel select{border:1.5px solid var(--line)!important;border-radius:999px!important;background:var(--card)!important;padding:11px 16px!important}
form.search button,button.go{border-radius:999px!important;padding:11px 20px!important;background:var(--line)!important;color:var(--paper)!important}
.layer-toggle{border:1.5px solid var(--line)!important;border-radius:999px!important}
.layer-toggle .chipbtn{padding:9px 16px!important}

/* the figure and the facts sit on drawn cards */
.fig,.facts,.ilist{background:var(--card);border:1.5px solid var(--line)!important;border-radius:var(--rad);padding:24px!important}
.fig-cap{border-top:1px dashed var(--rule-2)!important}
.fig-bar{border:1.5px solid var(--line);border-radius:999px;overflow:hidden;height:24px}
.aqb{border:1.5px solid var(--line);border-radius:999px;overflow:hidden;background:var(--paper-2)}
.facts>div:last-child,.ilist li:last-child{border-bottom:0!important}
.ilist{border-top:1.5px solid var(--line)!important}

.fig-rl svg,.fig-t svg{width:24px;height:24px;vertical-align:-7px;margin-right:6px}
/* home: three cards with icons in place of the plain list */
.icards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:40px 0 0;padding:0;list-style:none}
.icards li{background:var(--card);border:1.5px solid var(--line);border-radius:var(--rad);padding:20px}
.icards svg{width:44px;height:44px;display:block;margin-bottom:12px}
.icards b{display:block;font:500 32px/1 var(--serif)}
.icards h3{font-size:16px;font-weight:500;margin:8px 0 4px}
.icards p{font-size:14px;color:var(--ink-2);margin:0}
@media (max-width:760px){.icards{grid-template-columns:1fr}}

/* sections below: a small drawn wave above each heading in place of a hairline */
.rest>section,.rest>details,.block,.split>section,.main-col>section{border-top:0!important}
.rest>section>h2::before,.block>h2::before,.block .sec-head h2::before,.main-col>section h2:first-child::before{
  content:"";display:block;width:48px;height:10px;margin-bottom:12px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 10'%3E%3Cpath d='M2 6c4-4 8-4 12 0s8 4 12 0 8-4 12 0 6 3 8 1' fill='none' stroke='%232F6F7E' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat}

/* tables: hairlines stay, header gets the ink line */
table th,table td{border-bottom:1px solid var(--rule)}
table th.r,table td.r{text-align:right!important}
thead th{border-bottom:1.5px solid var(--line)!important}

/* ads: rounded sand panel */
.ad-slot{background:var(--paper-2)!important;border-radius:var(--rad);max-width:none!important;width:auto!important}
.hero h1{font-size:44px;max-width:14ch}
@media (max-width:480px){.hero h1{font-size:32px}}
form.search input{border-radius:999px!important}
.icards b{font-size:26px;line-height:1.15}

/* footer: 2px ink rule */
.foot{border-top:2px solid var(--line)!important;background:var(--paper)!important}
/* critique fixes, 21 Nov */
:root{--ink-3:#59605C;--line-soft:#D6CFC2;--panel:#FCF9F2}
body{font-size:16px}
.small,.note,.src,.fig-cap,.byline,.foot{font-size:14px!important;color:var(--ink-2)!important}
.fig,.facts,.ilist,.icards li{border-color:var(--line-soft)!important;background:var(--panel)}
form.search button,button.go{background:#1F4E5F!important;color:#fff!important}
.fig-key{font-size:14px;margin:8px 0 0;color:var(--ink-2)}
.fig-key .k-hi,.fig-key .k-wet{color:var(--t-hi);font-weight:600}
.fig-key .k-lo,.fig-key .k-dry{color:var(--t-lo);font-weight:600}
.fig-key .k-wet{color:var(--link)}.fig-key .k-dry{color:#8A6A3A}
/* wave only on the first section of .rest */
.rest>section~section>h2::before,.main-col>section~section h2:first-child::before,.block~.block>h2::before,.block~.block .sec-head h2::before{display:none!important}
/* ads: standard reserved size, label above */
.ad-slot{min-height:90px!important;max-width:728px!important;margin:40px auto!important;position:relative}
.ad-slot::before{content:"Advertisement";position:absolute;top:-20px;left:0;right:0;text-align:center;font:600 11px var(--sans,system-ui);letter-spacing:.08em;text-transform:uppercase;color:#6B655B}
@media (max-width:760px){.ad-slot{min-height:250px!important;max-width:300px!important}}
/* hazard map: darker land */
.evmap svg path.land,.evmap svg .land path{fill:#DFDBD0!important;stroke:#C9C2B3!important;stroke-width:.5}
/* accordions sit together */
.rest>details{margin:0!important;padding:14px 0!important;border-top:1px solid var(--rule)!important}
.rest>details+details{border-top:1px solid var(--rule)!important}
/* mobile hero tighter */
@media (max-width:760px){.hero h1{margin-top:24px}.hero-art{max-width:280px;width:85%;margin:0 auto}.hero-art text{font-size:17px}.icards{margin-top:20px}}

.evmap image{filter:brightness(.88) contrast(1.15)}

/* round 2 */
.hero h1{max-width:20ch!important}
@media (max-width:760px){.hero h1{font-size:28px!important;margin-top:16px!important}.hero{gap:8px}}
.icards li{display:flex;flex-direction:column}
.icards li p:last-child{margin-top:auto;padding-top:8px}
.facts dd{font-weight:600;font-size:18px}
.rest>section{margin-top:40px!important}
.ad-slot{margin:28px auto!important}
main+footer,.foot{margin-top:32px!important}
.maplegend{margin-top:8px}

.c-head{display:grid;grid-template-columns:1fr 150px;gap:32px;align-items:center}
.c-outline{width:150px;height:150px;display:block}
@media (max-width:760px){.c-head{grid-template-columns:1fr 84px;gap:12px}.c-outline{width:84px;height:84px}}
.icards li p:last-child{margin-top:4px!important;padding-top:0!important}
@media (max-width:760px){.ad-slot{margin:16px auto!important}.rest>section{margin-top:28px!important}}
.ad-slot{border-top:0}
.rest>details:last-of-type{margin-bottom:24px!important}
.takeaway{font:400 18px/1.5 var(--serif);margin:20px 0 4px;max-width:62ch}
.ad-slot{border:1px solid var(--rule-2)!important}
.more-link,.rest-link,a[href="#more"]{display:inline-block;margin-bottom:24px}
@media (max-width:760px){.ad-slot{margin:12px auto!important}}
@media (max-width:760px){.ad-slot{margin:32px auto 16px!important}.small,.note,.src,.fig-cap{font-size:14px!important}}
.fig-cap{font-size:14px!important}
.byline{margin:8px 0 0;color:var(--ink-3)}
@media (min-width:761px){.ad-slot{min-height:120px!important}}

/* predictions: record-warm map bins, key, dot charts and the big count */
.pmap path.pm1,.pred-key .sw.pm1{fill:#EFE8DA;background:#EFE8DA}
.pmap path.pm2,.pred-key .sw.pm2{fill:#CFE0DF;background:#CFE0DF}
.pmap path.pm3,.pred-key .sw.pm3{fill:#8FBDBE;background:#8FBDBE}
.pmap path.pm4,.pred-key .sw.pm4{fill:#E8A33D;background:#E8A33D}
.pmap path.pm5,.pred-key .sw.pm5{fill:#C65D3B;background:#C65D3B}
.pmap path.pmx{fill:#F4F0E6}
.pred-key{display:flex;flex-wrap:wrap;gap:6px 18px;list-style:none;padding:0;margin:8px 0 12px}
.pred-key li{display:flex;align-items:center;gap:6px;font-size:14px}
.pred-key .sw{display:inline-block;width:14px;height:14px;border-radius:3px;border:1px solid var(--rule-2)}
.pred-big{font:500 26px/1.25 var(--serif);margin:8px 0 4px;max-width:30ch}
.pred-line{margin:16px 0 0;max-width:62ch}
.food-card{background:var(--card);border:1.5px solid var(--line-soft);border-radius:var(--rad);padding:20px 24px;margin:20px 0}
.food-card h2{margin-top:0}
.food-card svg.dots{width:100%;max-width:420px;height:auto;display:block;margin-top:8px;color:var(--ink-3)}
.food-card svg.dots circle{fill:var(--link)}
.food-card svg.dots text{font-size:11px;fill:var(--ink-2)}
