/* Homepage (scripts/build.py page_home). Every class is prefixed nh- so nothing here collides with site.css,
   and the homepage's colors, radius and fonts are scoped to .nh. */
.nh{--bg:#FFF9EF; --surface:#FFFFFF; --ink:#2A2A24; --ink-2:#3F3B33; --line:#EDE0C8; --tint:#FDEFD3; --tint-line:#F2DFB8;
  --green:#1F5A3A; --green-2:#17472D; --on-green:#FFF9EF; --orange:#F28C28; --frame:#FBF3E4;
  --radius:16px; --radius-s:12px;
  --shadow:0 12px 32px rgba(31,90,58,.10),0 2px 6px rgba(31,90,58,.06);
  --serif:"Source Serif 4",Georgia,"Times New Roman",serif;
  --sans:"Instrument Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  background:var(--bg);color:var(--ink);font:16px/1.5 var(--sans);-webkit-font-smoothing:antialiased}
.nh a{color:inherit}
.nh-wrap{max-width:1200px;margin:0 auto;padding:0 20px}
/* site.css styles every button as a green pill; start homepage buttons from scratch (zero specificity, so the rules below win) */
:where(.nh) button{min-height:0;padding:0;border:0;border-radius:0;background:none;color:inherit;font:inherit}
.nh-tab:hover{background:var(--surface);color:var(--ink);border-color:var(--green)}
.nh-tab[aria-selected="true"]:hover{background:var(--green);color:var(--on-green)}
.nh-dot:hover{background:none}
.nh-pause:hover{background:var(--tint);color:var(--ink);border-color:var(--line)}
.nh-search input{padding:0;border-radius:0;min-height:0}
.nh-search input:focus-visible{outline:none}
.nh-row .nh-sc.nh-low{background:var(--bg);color:var(--ink);border:2px solid #B9A27A}
.nh-tph svg{display:block;width:100%;height:100%}

/* ---------- hero ---------- */
.nh-hero{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:12px 0 40px}
.nh-trust{justify-self:start;display:inline-flex;align-items:center;gap:8px;font:500 14px var(--sans);color:var(--green);background:var(--tint);border:1px solid var(--tint-line);border-radius:999px;padding:5px 12px}
.nh-trust i{width:8px;height:8px;border-radius:50%;background:var(--orange)}
.nh h1{font:700 clamp(26px,7.2vw,30px)/1.08 var(--serif);letter-spacing:-.02em;margin:0}
.nh-sub{color:var(--ink-2);margin:0;font-size:clamp(13px,3.75vw,15px)}
.nh-search{display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:6px 6px 6px 16px;box-shadow:var(--shadow);margin-top:4px}
.nh-search svg{flex:none;color:var(--ink-2)}
.nh-search input{flex:1;min-width:0;height:48px;border:0;outline:0;background:transparent;font:16px var(--sans);color:var(--ink)}
.nh-search input::placeholder{color:#6B665A}
.nh-search button{flex:none;border:0;border-radius:var(--radius-s);background:var(--green);color:var(--on-green);font:600 16px var(--sans);padding:0 18px;min-height:48px;cursor:pointer}
.nh-search button:hover{background:var(--green-2)}
.nh-search:focus-within{outline:3px solid var(--green);outline-offset:2px}
.nh-chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 -20px;padding:2px 20px 6px}
.nh-chips::-webkit-scrollbar{display:none}
.nh-chip{flex:none;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px 0 12px;border-radius:999px;background:var(--surface);border:1.5px solid #E4D3B1;color:var(--ink);font:600 15px var(--sans);text-decoration:none;box-shadow:0 2px 0 #E4D3B1;transition:transform .15s,box-shadow .15s,border-color .15s}
.nh-chip:hover{border-color:var(--green);box-shadow:0 2px 0 var(--green);transform:translateY(-1px)}
.nh-chip svg{color:var(--green)}

/* rotating featured card */
.nh-feat{margin-top:8px}
.nh-feat-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 8px;margin:0 0 8px;min-height:24px}
.nh-feat-l{display:flex;align-items:center;gap:8px;font:600 14px var(--sans);margin:0}
.nh-feat-l svg{color:var(--orange);flex:none}
.nh-feat-all{font:600 14px var(--sans);color:var(--green);white-space:nowrap}
.nh-slides{display:grid}
.nh-slide{grid-area:1 / 1;transition:opacity .5s ease,transform .5s ease}
.nh-slide[aria-hidden="true"]{opacity:0;transform:translateY(6px);pointer-events:none;visibility:hidden;transition:opacity .5s ease,transform .5s ease,visibility 0s .5s}
.nh-card{display:block;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);text-decoration:none;color:var(--ink);overflow:hidden;transition:box-shadow .2s,transform .2s}
.nh-card:hover{transform:translateY(-2px);box-shadow:0 18px 40px rgba(31,90,58,.16)}
.nh-ph{position:relative;height:240px;background:var(--frame)}
.nh-ph .nh-bgf{position:absolute;inset:-24px;width:calc(100% + 48px);height:calc(100% + 48px);object-fit:cover;filter:blur(18px) saturate(1.1);opacity:.9}
.nh-ph picture img.nh-fg{position:relative;display:block;height:100%;width:auto;margin:0 auto;aspect-ratio:1/1;object-fit:contain;-webkit-mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent);mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent)}
.nh-ph{overflow:hidden}
.nh-tried{position:absolute;left:10px;top:10px;display:inline-flex;align-items:center;gap:6px;background:var(--surface);color:var(--green);border:1px solid var(--line);border-radius:999px;padding:5px 12px 5px 8px;font:600 13px var(--sans)}
.nh-tried svg{color:var(--orange)}
.nh-cb{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 16px;align-items:center;padding:14px 16px 16px}
.nh-cb .nh-br{font:500 14px var(--sans);color:var(--ink-2);margin:0}
.nh-cb .nh-nm{font:700 21px/1.15 var(--serif);margin:0;min-height:2.3em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.nh-ob{grid-row:1 / 3;grid-column:2;display:grid;justify-items:center;align-content:center;border-radius:var(--radius-s);padding:6px 10px;min-width:76px;background:var(--green);color:var(--on-green)}
.nh-ob.nh-mid{background:var(--orange);color:var(--ink)}
.nh-ob.nh-low{background:var(--bg);color:var(--ink);border:2px solid #B9A27A}
.nh-ob.nh-prov{outline:2px dashed var(--green);outline-offset:2px}
.nh-ob span{font:500 13px/1 var(--sans)}
.nh-ob b{font:700 28px/1.05 var(--serif);font-variant-numeric:tabular-nums}
.nh-stats{grid-column:1 / -1;margin:6px 0 0;font:500 14.5px var(--sans);font-variant-numeric:tabular-nums}
.nh-stats strong{font-weight:600}
.nh-more{grid-column:1 / -1;margin-top:6px;font:600 15px var(--sans);color:var(--green);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1.5px}
.nh-ctrl{display:flex;align-items:center;justify-content:center;gap:4px;margin-top:8px}
.nh-dot{width:32px;height:32px;display:grid;place-items:center;border:0;background:none;cursor:pointer;padding:0}
.nh-dot i{display:block;width:8px;height:8px;border-radius:999px;background:#D9C7A3;transition:width .3s,background .3s}
.nh-dot[aria-current="true"] i{width:24px;background:var(--green)}
.nh-pause{width:32px;height:32px;display:grid;place-items:center;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink);cursor:pointer;margin-left:8px}

@media (min-width:960px){
  .nh-wrap{padding:0 40px}
  .nh-hero{grid-template-columns:minmax(0,1fr) 400px;grid-template-areas:"tx ft";column-gap:56px;align-items:center;padding:40px 0 88px;min-height:640px}
  .nh-hl{grid-area:tx;display:grid;gap:24px}
  .nh-feat{grid-area:ft;margin:0}
  .nh-trust{font-size:15px;padding:6px 14px}
  .nh h1{font-size:60px}
  .nh-sub{font-size:18px}
  .nh-search{max-width:560px}
  .nh-search input{font-size:17px;height:52px}
  .nh-search button{padding:0 22px}
  .nh-chips{margin:0;padding:2px 2px 6px;flex-wrap:wrap}
  .nh-ph{height:280px}
  .nh-cb{padding:20px 24px 24px}
  .nh-cb .nh-nm{font-size:25px}
  .nh-ob{min-width:84px;padding:8px 12px}.nh-ob b{font-size:32px}
  .nh-stats{font-size:15px}
}
@media (max-width:959px){.nh-hl{display:contents}}

/* ---------- sections ---------- */
section.nh-sec{padding:48px 0}
.nh-shead{display:flex;align-items:baseline;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.nh-shead h2{font:700 26px/1.15 var(--serif);margin:0}
.nh-shead p{margin:4px 0 0;color:var(--ink-2);flex-basis:100%}
.nh-shead a{font:600 15px var(--sans);color:var(--green)}
@media (min-width:960px){.nh-shead h2{font-size:34px}}

.nh-tiles{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.nh-tiles li:last-child:nth-child(odd){grid-column:1 / -1}
.nh-tile{display:flex;flex-direction:column;height:100%;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);text-decoration:none;color:var(--ink);transition:transform .2s,box-shadow .2s}
.nh-tile:hover{transform:translateY(-2px);box-shadow:0 18px 40px rgba(31,90,58,.16)}
.nh-tile .nh-tph{height:128px;background:var(--frame)}
.nh-tile .nh-tph svg{display:block;width:100%;height:100%}
.nh-tile .nh-tt{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:12px 16px;font:600 16px var(--sans)}
.nh-tile .nh-tt span{font-weight:500;color:var(--ink-2);font-size:14px;white-space:nowrap}
@media (min-width:960px){.nh-tiles{grid-template-columns:repeat(5,minmax(0,1fr));gap:20px}.nh-tiles li:last-child:nth-child(odd){grid-column:auto}.nh-tile .nh-tph{height:160px}}

.nh-how{display:grid;gap:12px}
.nh-how > div{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px}
.nh-how h3{display:flex;align-items:center;gap:8px;font:700 20px/1.2 var(--serif);margin:0 0 4px}
.nh-how h3 i{width:10px;height:10px;border-radius:50%;background:var(--orange)}
.nh-how p{margin:0;color:var(--ink-2)}
.nh-how .nh-hov{background:var(--green);border-color:var(--green);color:var(--on-green)}
.nh-how .nh-hov p{color:#DCEBD8}
.nh-how .nh-hov h3 i{background:var(--on-green)}
@media (min-width:960px){.nh-how{grid-template-columns:1.3fr 1fr 1fr 1fr;gap:20px}}

.nh-tabs{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 -20px 16px;padding:2px 20px}
.nh-tab{flex:none;min-height:44px;padding:0 16px;border-radius:999px;border:1.5px solid #E4D3B1;background:var(--surface);color:var(--ink);font:600 15px var(--sans);cursor:pointer}
.nh-tab[aria-selected="true"]{background:var(--green);border-color:var(--green);color:var(--on-green)}
@media (min-width:960px){.nh-tabs{margin:0 0 16px;padding:2px}}
.nh-rows{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.nh-row{display:grid;grid-template-columns:28px 64px minmax(0,1fr) auto;gap:12px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:8px 12px 8px 8px;text-decoration:none;color:var(--ink);transition:box-shadow .2s,border-color .2s}
.nh-row:hover{border-color:var(--green);box-shadow:var(--shadow)}
.nh-row .nh-rk{font:700 18px var(--serif);text-align:center;color:var(--green)}
.nh-row .nh-th{width:64px;height:64px;border-radius:var(--radius-s);background:var(--frame);overflow:hidden}
.nh-row .nh-th img{width:100%;height:100%;object-fit:contain;display:block}
.nh-row .nh-rnm{display:block;font:600 16px/1.25 var(--sans);margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.nh-row .nh-mt{display:block;font-size:14px;color:var(--ink-2);margin:2px 0 0}
.nh-row .nh-sc{display:grid;justify-items:center;min-width:64px;padding:6px 8px;border-radius:var(--radius-s);background:var(--green);color:var(--on-green)}
.nh-row .nh-sc.nh-mid{background:var(--orange);color:var(--ink)}
.nh-row .nh-sc span{font:500 12px/1 var(--sans)}
.nh-row .nh-sc b{font:700 22px/1.1 var(--serif);font-variant-numeric:tabular-nums}
.nh-row .nh-sc.nh-prov{outline:2px dashed var(--green);outline-offset:2px}
.nh-row .nh-sc.nh-prov.nh-mid{outline-color:#A65A10}
.nh-row .nh-pv{display:inline-block;margin-left:6px;font:600 12px var(--sans);color:var(--ink-2);background:var(--tint);border:1px solid var(--tint-line);border-radius:999px;padding:1px 8px;vertical-align:1px}
.nh-see-all{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;margin:16px auto 0;max-width:360px;border:2px solid var(--green);border-radius:999px;color:var(--green);font:600 16px var(--sans);text-decoration:none;transition:background .15s,color .15s}
.nh-see-all:hover{background:var(--green);color:var(--on-green)}
.nh-sep{list-style:none;font:600 14px var(--sans);color:var(--ink-2);padding:12px 4px 2px;display:flex;align-items:center;gap:8px}
.nh-sep::after{content:"";flex:1;border-top:1px dashed #D9C7A3}
.nh-bars{display:none}
@media (min-width:960px){
  .nh-bars{display:grid;gap:4px;margin:0}
  .nh-bar{display:grid;grid-template-columns:56px minmax(0,1fr) 36px;gap:8px;align-items:center;font-size:13px}
  .nh-bar dt{color:var(--ink-2);font-weight:500}
  .nh-bar .nh-trk{height:6px;border-radius:999px;background:#F3EAD6;overflow:hidden}
  .nh-bar .nh-fill{display:block;height:100%;border-radius:999px;background:var(--green)}
  .nh-bar .nh-fill.nh-mid{background:var(--orange)}.nh-bar .nh-fill.nh-low{background:#B9A27A}
  .nh-bar dd{margin:0;text-align:right;font-weight:600;font-variant-numeric:tabular-nums}
  .nh-bar dd.nh-miss{font-weight:400;color:var(--ink-2)}
}
@media (min-width:960px){.nh-row{grid-template-columns:40px 72px minmax(0,1fr) 260px auto;gap:20px;padding:10px 16px 10px 10px}.nh-row .nh-th{width:72px;height:72px}.nh-row .nh-rnm{font:700 19px/1.2 var(--serif)}}

@media (prefers-reduced-motion:reduce){.nh *,.nh *::before,.nh *::after{transition:none!important;animation:none!important}}
