/* ---------- base: structure shared by every site; themes set the tokens and character ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:1rem}
body{margin:0;background:var(--bg);color:var(--fg);font-family:var(--font-body);font-size:1.0625rem;line-height:1.65;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:var(--link);text-underline-offset:.18em;text-decoration-thickness:1px}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px;border-radius:2px}
.skip-link{position:absolute;left:-9999px;top:0;background:var(--fg);color:var(--bg);padding:.7rem 1rem;z-index:1000;font-weight:700}
.skip-link:focus{left:.5rem;top:.5rem}
.wrap{width:min(1160px,100% - 2rem);margin-inline:auto}
.wrap.narrow{width:min(780px,100% - 2rem)}
h1,h2,h3,h4{font-family:var(--font-head);line-height:1.15;color:var(--head-color);margin:0 0 .6em;font-weight:var(--head-weight,700);letter-spacing:var(--head-tracking,0)}
h1{font-size:clamp(2.05rem,4.6vw,3.3rem)}
h2{font-size:clamp(1.5rem,3vw,2.15rem)}
h3{font-size:1.22rem}
p{margin:0 0 1.1em}

/* header */
.site-header{background:var(--head-bg);color:var(--head-fg);position:relative;z-index:30}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.75rem 0}
.brand{display:flex;align-items:center;gap:.7rem;color:inherit;text-decoration:none}
.brand-emblem{flex:none}
.brand-name{font-family:var(--font-head);font-weight:700;font-size:1.3rem;line-height:1.1;letter-spacing:var(--brand-tracking,0)}
.site-nav ul{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:.2rem}
.site-nav a,.menu summary{display:block;padding:.55rem .8rem;color:inherit;text-decoration:none;font-weight:600;font-size:.97rem;border-radius:var(--radius-s);cursor:pointer;line-height:1.3}
.site-nav a:hover,.menu summary:hover,.menu[open] summary{background:var(--nav-hover)}
.site-nav a[aria-current=page],.menu summary.is-current{box-shadow:inset 0 -3px 0 var(--nav-accent)}
.menu{position:relative}
.menu summary{list-style:none;user-select:none}
.menu summary::-webkit-details-marker{display:none}
.menu summary::after{content:"";display:inline-block;width:.42em;height:.42em;margin-left:.5rem;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px)}
.menu-list{position:absolute;top:calc(100% + 6px);left:0;min-width:290px;display:block!important;background:var(--surface);color:var(--fg);border:1px solid var(--line);box-shadow:0 14px 34px rgba(0,0,0,.18);padding:.4rem;border-radius:var(--radius-s)}
.menu-list li{display:block}
.menu-list a{color:var(--fg);font-weight:500}
.menu-list a:hover{background:var(--surface-2)}
.nav-toggle{display:none;align-items:center;gap:.55rem;background:transparent;color:inherit;border:1.5px solid currentColor;border-radius:var(--radius-s);padding:.5rem .85rem;font:inherit;font-weight:700;cursor:pointer}
.nav-toggle-bars{width:18px;height:2px;background:currentColor;position:relative;display:inline-block}
.nav-toggle-bars::before,.nav-toggle-bars::after{content:"";position:absolute;left:0;width:100%;height:2px;background:currentColor}
.nav-toggle-bars::before{top:-6px}.nav-toggle-bars::after{top:6px}
@media (max-width:920px){
  .nav-toggle{display:inline-flex}
  .site-nav{display:none;position:absolute;left:0;right:0;top:100%;background:var(--head-bg);padding:.5rem 1rem 1.2rem;box-shadow:0 14px 24px rgba(0,0,0,.25);max-height:80vh;overflow:auto}
  .site-nav.is-open{display:block}
  .site-nav ul{flex-direction:column;align-items:stretch;gap:0}
  .site-nav a,.menu summary{padding:.8rem .5rem;border-bottom:1px solid rgba(255,255,255,.14)}
  .menu-list{position:static;min-width:0;box-shadow:none;border:0;background:rgba(255,255,255,.07);color:inherit;padding:0 0 0 .6rem}
  .menu-list a{color:inherit}
}

/* breadcrumbs / page head */
.breadcrumbs ol{display:flex;flex-wrap:wrap;gap:.35rem;list-style:none;margin:0 0 1.1rem;padding:0;font-size:.9rem;color:var(--muted)}
.breadcrumbs li+li::before{content:"/";margin-right:.35rem;color:var(--muted)}
.breadcrumbs a{color:var(--muted)}
.page-head{padding:2rem 0 1.2rem}
.page-head h1{max-width:24ch}
.kicker{font-family:var(--font-ui,var(--font-body));font-size:.8rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--kicker);margin:0 0 .8rem}
.lede{font-size:1.2rem;color:var(--muted);max-width:60ch;margin-bottom:.9rem}
.byline{font-size:.9rem;color:var(--muted);margin:0}
.page-figure{margin:.5rem 0 0}
.page-figure img{width:100%;aspect-ratio:21/9;object-fit:cover;border-radius:var(--radius)}
@media (max-width:700px){.page-figure img{aspect-ratio:3/2}}

/* article layout */
.article-layout{display:block;padding:2rem 0 3.5rem}
.toc{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-s);padding:1rem 1.2rem;margin:0 0 2rem;font-size:.95rem}
.toc-title{font-size:.8rem;letter-spacing:.12em;text-transform:uppercase;font-family:var(--font-ui,var(--font-body));margin:0 0 .6rem;color:var(--muted)}
.toc ol{margin:0;padding-left:1.15rem}
.toc li{margin:.25rem 0}
.toc a{color:var(--fg)}
@media (min-width:1020px){
  .article-layout.has-toc{display:grid;grid-template-columns:250px minmax(0,1fr);gap:3rem;align-items:start}
  .article-layout.has-toc .toc{position:sticky;top:1.2rem;margin:0}
}
.prose{max-width:72ch}
.article-layout .prose{max-width:none}
.article-layout .prose>*{max-width:72ch}
.article-layout .prose>.table-wrap,.article-layout .prose>.tool,.article-layout .prose>.inline-figure,.article-layout .prose>.faq{max-width:100%}
.prose h2{margin-top:2.3em}
.prose h3{margin-top:1.7em}
.prose ul,.prose ol{padding-left:1.3rem;margin:0 0 1.2em}
.prose li{margin-bottom:.4em}
.prose li>ul,.prose li>ol{margin-top:.4em}
.prose strong{color:var(--head-color)}
.prose hr{border:0;border-top:1px solid var(--line);margin:2rem 0}

/* figures */
.inline-figure{margin:1.8rem 0}
.inline-figure img{width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:var(--radius)}
.inline-figure figcaption{font-size:.88rem;color:var(--muted);margin-top:.5rem}

/* tables */
.table-wrap{overflow-x:auto;margin:1.5rem 0;border:1px solid var(--line);border-radius:var(--radius-s);background:var(--surface)}
.prose table{border-collapse:collapse;width:100%;min-width:560px;font-size:.95rem}
.prose th,.prose td{padding:.7rem .85rem;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.prose thead th{background:var(--th-bg);color:var(--th-fg);font-family:var(--font-ui,var(--font-body));font-size:.82rem;letter-spacing:.06em;text-transform:uppercase}
.prose tbody tr:last-child td{border-bottom:0}
.prose tbody th{font-weight:700}

/* callouts */
.callout{margin:1.7rem 0;padding:1rem 1.2rem 1rem 1.3rem;background:var(--callout-bg);border-left:6px solid var(--c-note);border-radius:0 var(--radius-s) var(--radius-s) 0}
.callout p{margin:0 0 .6em}.callout p:last-child{margin-bottom:0}
.callout-label{font-family:var(--font-ui,var(--font-body));font-size:.78rem!important;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--head-color)}
.callout-tip{border-left-color:var(--c-tip)}
.callout-warn{border-left-color:var(--c-warn)}
.callout-quick{border-left-color:var(--c-quick);background:var(--quick-bg)}
.callout-note{border-left-color:var(--c-note)}

/* faq */
.faq{margin:2.5rem 0 0}
.faq details{border:1px solid var(--line);background:var(--surface);border-radius:var(--radius-s);margin:0 0 .7rem}
.faq summary{cursor:pointer;padding:.95rem 1.1rem;font-weight:700;list-style:none;display:flex;justify-content:space-between;gap:1rem;align-items:center;color:var(--head-color)}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-size:1.4rem;line-height:1;color:var(--accent);flex:none}
.faq details[open] summary::after{content:"\2212"}
.faq-a{padding:0 1.1rem .5rem}

/* sections / cards */
.section{padding:3.2rem 0}
.section-lede{color:var(--muted);max-width:62ch;margin-bottom:1.8rem;font-size:1.1rem}
.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:1.5rem}
.card{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.card-media{display:block;overflow:hidden}
.card-media img{width:100%;aspect-ratio:3/2;object-fit:cover;transition:transform .5s ease}
.card:hover .card-media img{transform:scale(1.03)}
.card-body{padding:1.1rem 1.2rem 1.3rem;display:flex;flex-direction:column;flex:1}
.card-meta{font-family:var(--font-ui,var(--font-body));font-size:.75rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--kicker);margin:0 0 .45rem}
.card h3{margin:0 0 .5rem;font-size:1.2rem}
.card h3 a{color:var(--head-color);text-decoration:none}
.card h3 a:hover{text-decoration:underline}
.card p:last-child{margin:0;color:var(--muted);font-size:.97rem}
.related{background:var(--band)}
.more{margin-top:2rem}

/* hero (home) */
.hero{padding:3rem 0 2.5rem}
.hero-inner{display:grid;gap:2.2rem;align-items:center}
@media (min-width:900px){.hero-inner{grid-template-columns:1.05fr .95fr}}
.hero-copy h1{max-width:16ch}
.hero-media img{width:100%;aspect-ratio:4/3;object-fit:cover}
.cta{display:flex;flex-wrap:wrap;gap:.8rem;margin:1.6rem 0 0}
.btn{display:inline-block;padding:.8rem 1.35rem;font-weight:700;text-decoration:none;border:2px solid var(--accent);border-radius:var(--radius-btn);font-family:var(--font-ui,var(--font-body));font-size:.98rem;cursor:pointer;line-height:1.2}
.btn-primary{background:var(--accent);color:var(--accent-ink)}
.btn-primary:hover{filter:brightness(1.08)}
.btn-ghost{background:transparent;color:var(--link)}
.btn-ghost:hover{background:var(--surface-2)}
button.btn{font-size:1rem}
.divider{display:block}
.steps{counter-reset:s;list-style:none;padding:0!important;display:grid;gap:1rem;margin:1.4rem 0!important}
.steps>li{counter-increment:s;position:relative;padding:1.1rem 1.2rem 1.1rem 4.2rem;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-s);margin:0}
.steps>li::before{content:counter(s);position:absolute;left:1.1rem;top:1rem;width:2.25rem;height:2.25rem;border-radius:50%;background:var(--accent);color:var(--accent-ink);display:grid;place-items:center;font-family:var(--font-head);font-weight:700}
.trust,.season{background:var(--band)}
.photo-credits{font-size:.85rem;color:var(--muted);margin:0;padding:1.4rem 0 2.2rem}

/* footer */
.site-footer{background:var(--foot-bg);color:var(--foot-fg);padding:3rem 0 1.6rem;font-size:.97rem}
.site-footer a{color:var(--foot-link)}
.footer-grid{display:grid;gap:2rem;grid-template-columns:1fr}
@media (min-width:700px){.footer-grid{grid-template-columns:repeat(2,1fr)}}
@media (min-width:1020px){.footer-grid{grid-template-columns:1.4fr 1.2fr 1fr 1fr}}
.footer-name{font-family:var(--font-head);font-size:1.4rem;font-weight:700;margin:0 0 .5rem;color:var(--foot-head)}
.footer-h{font-family:var(--font-ui,var(--font-body));font-size:.8rem;letter-spacing:.14em;text-transform:uppercase;color:var(--foot-head);margin:0 0 .8rem}
.site-footer ul{list-style:none;padding:0;margin:0}
.site-footer li{margin:.4rem 0}
.footer-bottom{border-top:1px solid rgba(255,255,255,.18);margin-top:2.2rem;padding-top:1.2rem;display:flex;flex-wrap:wrap;justify-content:space-between;gap:.6rem 2rem;font-size:.88rem}
.footer-bottom p{margin:0}

/* tools */
.tool{background:var(--surface);border:1px solid var(--line-strong);border-radius:var(--radius);padding:1.4rem;margin:1.6rem 0}
.tool h2,.tool h3{margin-top:0}
.tool-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:1rem 1.2rem}
.field{display:grid;gap:.35rem;margin:0 0 1rem;align-content:start}
.field label,.field legend{font-weight:700;font-size:.95rem;color:var(--head-color)}
.field small{color:var(--muted);font-size:.85rem}
.tool input[type=number],.tool select,.tool input[type=text]{font:inherit;padding:.6rem .7rem;min-height:46px;border:1.5px solid var(--line-strong);border-radius:var(--radius-s);background:#fff;color:#1b1b1b;width:100%}
.tool fieldset{border:0;padding:0;margin:0 0 1rem}
.tool .check{display:flex;gap:.6rem;align-items:flex-start;font-weight:500;margin:.3rem 0}
.tool .check input{margin-top:.35rem;width:1.1rem;height:1.1rem;flex:none}
.result{margin-top:1.2rem;padding-top:1.1rem;border-top:2px dashed var(--line-strong)}
.result h3{margin-top:0}
.result ul{padding-left:1.2rem;margin:.5rem 0 0}
.result-big{font-family:var(--font-head);font-size:clamp(1.6rem,3.2vw,2.3rem);margin:.2rem 0 .6rem;color:var(--head-color)}
.stat-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.8rem;margin:.8rem 0}
.stat{background:var(--surface-2);border-radius:var(--radius-s);padding:.7rem .9rem}
.stat b{display:block;font-family:var(--font-head);font-size:1.5rem;line-height:1.1;color:var(--head-color)}
.stat span{font-size:.85rem;color:var(--muted)}
.badge{display:inline-block;padding:.12rem .55rem;border-radius:99px;font-size:.78rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;border:1.5px solid currentColor}
.badge-ok{color:#1d6b34}.badge-warn{color:#8a5a00}.badge-bad{color:#a8231b}
.status-list{list-style:none;padding:0!important;margin:.6rem 0 0}
.status-list li{display:flex;gap:.7rem;align-items:flex-start;padding:.55rem 0;border-bottom:1px solid var(--line)}
.status-list li:last-child{border-bottom:0}
.status-list .badge{flex:none;margin-top:.12rem}
.svg-box{background:var(--surface-2);border-radius:var(--radius-s);padding:.6rem;margin:1rem 0}
.svg-box svg{width:100%;height:auto;display:block}
.tool-note{font-size:.88rem;color:var(--muted);margin:1rem 0 0}

@media print{.site-header,.site-footer,.nav-toggle,.skip-link,.toc{display:none!important}body{background:#fff;color:#000}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* ---------- THEME: Prairie Horizon Co. — big sky, wheat & grass, pills and soft shapes ---------- */
:root{
  --bg:#FBF7EE;--surface:#FFFFFF;--surface-2:#F4EDDC;--band:#F4EDDC;
  --fg:#2B2A26;--muted:#5A574E;--line:#E5DCC4;--line-strong:#BDB08F;
  --accent:#A8431F;--accent-ink:#FFFFFF;--accent2:#4A6618;--link:#963A1B;--focus:#2E5A87;
  --head-color:#26323F;--kicker:#46621A;
  --head-bg:#FBF7EE;--head-fg:#26323F;--nav-hover:rgba(74,102,24,.12);--nav-accent:#A8431F;
  --foot-bg:#23364A;--foot-fg:#E6E2D6;--foot-link:#F3C969;--foot-head:#FFFFFF;
  --th-bg:#26323F;--th-fg:#FBF7EE;--callout-bg:#FFF9E8;--quick-bg:#EAF2E0;
  --c-tip:#4A6618;--c-warn:#A8431F;--c-quick:#2E5A87;--c-note:#C9962B;
  --font-head:'DM Serif Display',Georgia,'Times New Roman',serif;
  --font-body:'DM Sans',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --radius:20px;--radius-s:12px;--radius-btn:999px;--head-weight:400;
}
h1,h2,h3{letter-spacing:-.005em}
.site-header{border-bottom:3px solid #E3B04B}
.brand-name{font-size:1.45rem;font-weight:400}
.site-nav a,.menu summary{border-radius:999px}
.site-nav a[aria-current=page],.menu summary.is-current{box-shadow:none;background:rgba(74,102,24,.16)}
.menu-list{border-radius:18px;padding:.5rem}
.menu-list a{border-radius:12px}
.kicker{display:inline-block;background:#F6E3B0;color:#3E2F05;padding:.3rem .8rem;border-radius:999px;letter-spacing:.1em}
.hero{position:relative;padding:4rem 0 6rem;background:linear-gradient(180deg,#78AEE0 0%,#B9D6EF 48%,#F6E6BC 100%)}
.hero::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:64px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 64' preserveAspectRatio='none'%3E%3Cpath d='M0 64V40c8-6 12-18 14-30 4 14 8 24 16 32 6-12 8-24 14-36 3 16 8 28 18 38 6-10 10-22 16-28 2 12 6 22 14 28 6-8 8-18 14-30 4 14 8 26 16 34 6-12 10-22 14-32 4 16 8 26 14 34V64z' fill='%23FBF7EE'/%3E%3C/svg%3E") center bottom/480px 64px repeat-x}
.hero-copy h1{color:#17283A;font-size:clamp(2.3rem,5.4vw,4rem);max-width:15ch}
.hero-copy .lede{color:#1F2D3B;font-size:1.25rem}
.hero .kicker{background:#FFF3CC}
.hero-media{transform:rotate(1.2deg)}
.hero-media img{border-radius:32px;border:8px solid #FFF8E6;box-shadow:0 22px 40px rgba(23,40,58,.28);aspect-ratio:5/4}
.btn{padding:.85rem 1.5rem;box-shadow:0 3px 0 rgba(0,0,0,.18)}
.btn-ghost{background:rgba(255,255,255,.65);border-color:#26323F;color:#26323F}
.btn-ghost:hover{background:#fff}
.divider{height:34px;margin-top:-1px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30' preserveAspectRatio='none'%3E%3Cpath d='M0 30 6 8l6 22 8-16 8 16 8-26 8 26 8-14 8 14 8-20' fill='%234A6618' opacity='.9'/%3E%3C/svg%3E") left bottom/60px 30px repeat-x}
.page-head{background:linear-gradient(180deg,#E8F1F8 0%,#FBF7EE 100%);padding-bottom:1.6rem}
.page-figure img{border-radius:28px;border:6px solid #fff;box-shadow:0 16px 34px rgba(38,50,63,.18)}
.card{border-radius:22px;border:0;box-shadow:0 6px 22px rgba(38,50,63,.1);transition:transform .25s ease,box-shadow .25s ease}
.card:hover{transform:translateY(-4px);box-shadow:0 14px 30px rgba(38,50,63,.16)}
.card-media{margin:10px 10px 0;border-radius:16px}
.card-media img{border-radius:16px}
.card-meta{display:inline-block;align-self:flex-start;background:#EAF2E0;color:#2F4510;padding:.2rem .65rem;border-radius:999px;letter-spacing:.08em}
.section h2{text-align:left}
.steps>li{border-radius:20px;border:0;box-shadow:0 4px 16px rgba(38,50,63,.08)}
.steps>li::before{background:#E3B04B;color:#2B2A26}
.callout{border-radius:18px;border-left-width:8px}
.faq details{border-radius:16px}
.toc{border-radius:18px;background:#EAF2E0;border:0}
.toc a{color:#2B2A26}
.table-wrap{border-radius:16px}
.trust{background:#EAF2E0}
.season{background:#F6EBCB}
.related{background:#F4EDDC}
.site-footer{position:relative;margin-top:34px}
.site-footer::before{content:"";position:absolute;left:0;right:0;top:-33px;height:34px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30' preserveAspectRatio='none'%3E%3Cpath d='M0 30 6 10l6 20 8-14 8 14 8-24 8 24 8-12 8 12 8-18 V30z' fill='%2323364A'/%3E%3C/svg%3E") left bottom/60px 30px repeat-x}
.tool{border-radius:22px;border:0;box-shadow:0 10px 30px rgba(38,50,63,.12)}
