/* =====================================================================
   Clean pass (20 Nov 2026). Loaded after every other site sheet.
   Takes out template habits: coloured bars on cards and under photos,
   labels above headings, hover lifts and 3D tilts, coloured glows,
   pill shapes, decorative gradients and glass, cursor "spotlight" fills.
   Clickable cards still answer the pointer: a darker edge, a soft shadow,
   and photos that zoom slightly. Chart animations are not touched.
   The data engine (agri.css) and the migration dashboard
   (migration-layout.css) carry a matching block at the end of their files.
   ===================================================================== */

/* ---------- tokens: one radius scale, quiet shadows ---------- */
:root{--r:12px;--rs:8px;--shadow:0 1px 2px rgba(11,15,57,.05);--shadow-h:0 1px 2px rgba(11,15,57,.06),0 10px 24px -14px rgba(11,15,57,.24);--edge-h:color-mix(in srgb,var(--heading) 30%,var(--line))}
:root[data-theme="dark"]{--shadow:0 1px 2px rgba(0,0,0,.35);--shadow-h:0 1px 2px rgba(0,0,0,.4),0 12px 28px -14px rgba(0,0,0,.75);--edge-h:color-mix(in srgb,#fff 28%,var(--line))}

/* ---------- 1-2. no coloured bars on cards, under photos, or under the nav and above the footer ---------- */
.acard,.mk-grp{border-top:1px solid var(--line)}
.ed-spot .mk-grp{border-top-color:rgba(255,255,255,.14)}
.ncard{border-left:1px solid var(--line)}
.fa,.dd{border-top:0}
.dt-card .dt-ph{border-bottom:0}
.ed-tile::after,.ed-cat-img::after,.nav::after,.motto::before,.foot::before,.w-stats>div::before{display:none}
.as-focus li::before{content:none}
.as-focus li{padding-left:16px}
.ar-mono::before{box-shadow:none}

/* ---------- 3. no small labels above headings (the page code no longer writes them; this covers saved texts) ---------- */
.eyebrow,.w-eyebrow,.ar-eyebrow,.ed-kicker{display:none}

/* ---------- 4. hover: no lifts, no tilts, no cursor spotlight ---------- */
a.card:hover,.lift:hover,.ptile:hover,.tbl-pill:hover,.fa:hover,.btn:hover,.fchip:hover,.pillar:hover,.ncard:hover,.acard:hover,
.as-focus li:hover,.as-focus li:focus-within,.leader:hover,.ar-poster:hover,.ar-tab:hover,.fx:hover,.fx:active,.dt-card:hover,.dt-card:focus-visible,
.rd-strip a:hover,.rd-strip a:focus-visible,.wab-cta:hover,.wab-card.in .wab-tile:hover,.wab-ad-btn:hover,.ed-btn:hover,.ed-path:hover,.ed-o:hover,
.credit-name:hover,.credit-name:focus-visible,.mk-btn:hover,.ed-goentry:hover,.ed-gofeat:hover,.brand:hover .brand-badge,.wp:hover span,
#app .card:hover,#app .vcard:hover,#app .work:hover,.ed-tile:hover .ed-tile-in b{transform:none!important}
.ed-tile,.ed-tile:hover,.ed-tile:active,.ed-cat,.ed-cat:hover,.ed-cat:active{transform:none!important}
.fx::before,.acard::before,.ed-tile .ed-tile-in::before{display:none}
.acard:hover b,.acard:focus-visible b{color:var(--heading)}
.acard:hover span,.acard:focus-visible span{color:var(--muted)}
.acard:hover small,.acard:focus-visible small{color:var(--sb)}
[data-theme="dark"] .acard:hover small,[data-theme="dark"] .acard:focus-visible small{color:var(--accent)}
.credit-name:hover,.credit-name:focus-visible{filter:none}
.foot li a:hover{padding-left:0}
/* what clickable cards do instead: a darker edge and a soft shadow */
a.card,.acard,.ncard,.dt-card,.ed-cat,.ed-path,.ed-o,.leader,.mk-btn,.rd-strip a,.as-focus li,.ar-tab,.pillar,.ed-goentry{transition:border-color .2s ease,box-shadow .2s ease,background-color .2s ease}
a.card:hover,.acard:hover,.ncard:hover,.dt-card:hover,.dt-card:focus-visible,.ed-cat:hover,.ed-path:hover,.ed-o:hover,.leader:hover,.rd-strip a:hover,.rd-strip a:focus-visible,.as-focus li:hover,.as-focus li:focus-within,.ar-tab:hover{border-color:var(--edge-h);box-shadow:var(--shadow-h)}
.as-focus li:hover,.as-focus li:focus-within{background:var(--surface)}
.mk-btn:hover{box-shadow:none}
/* photos inside clickable cards zoom a little */
.ed-tile-bg,.ed-cat-img i,.dt-card .dt-ph,.post .ph,.album .ph,.ar-pimg img,.gal figure img{transition:transform .6s cubic-bezier(.16,1,.3,1)}
.ed-tile:hover .ed-tile-bg,.ed-cat:hover .ed-cat-img i,.dt-card:hover .dt-ph,.post:hover .ph,.album:hover .ph{transform:scale(1.03)}
.ar-poster:hover .ar-pimg img,.gal figure:hover img{transform:scale(1.03)}
.dt-card .dt-ph{transform-origin:50% 60%}

/* ---------- 5. no coloured glows; elevation only where something floats (menus) ---------- */
.ed-tile,.ed-tile:hover,.gf-badge,.evdate,.pub .ph .chip,.cta,.w-stats,.ed-cat,.ed-path,.ar-tab{box-shadow:none}
.ed-tile-all{box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}
.ar-face.xl{box-shadow:0 0 0 3px #e0b85a}
.nav{box-shadow:0 1px 0 rgba(5,7,26,.25)}
.dd{box-shadow:0 14px 34px -14px rgba(5,7,26,.4)}
.ar-player,.ar-poster{box-shadow:0 0 0 1px var(--line)}

/* ---------- 6. one radius scale instead of pills and bubbles ---------- */
.btn,.chip,.fchip,.tbl-pill,.also,.ni>a,.ed-chips a,.ed-chips i,.ed-ctab,.mk-pill,.mk-all,.mk-chip,.tr-tog,.ar-count,.newpill,.toast,
.subForm input,.filters select,.filters input,.langsw,.lead-txt .kick span,.pulse .sec-h>a,.search,.ed-herosearch{border-radius:var(--rs)}
.langsw button{border-radius:6px}
.stag,.ptype,.mk-badge,.mk-src,.ar-epi,.gf-tag,.fsubs .fchip small,.xsubs .fchip small{border-radius:6px}
.pulse,.pillar,.feat-main,.ed-cat,.ed-path,.ncard,.ptile,.ed-goentry,.ed-gofeat,.ed-tile,.dt-card,.mk-grp,.cta,.card,.ed-o,.leader,.ar-poster,.ar-player{border-radius:var(--r)}
.foot{border-radius:0}
.ni>a{border-left:0}

/* ---------- 9. solid colours instead of decorative gradients ---------- */
.topbar{background:var(--navy)}
.search button{background:var(--navy)}
[data-theme="dark"] .search button{background:var(--green)}
.btn:hover{background:var(--green-h)}
.fchip.on{background:var(--heading);color:var(--surface)}
[data-theme="dark"] .fchip.on{background:var(--green);color:#fff}
.pulse,.cta{background:var(--navy)}
.foot{background:var(--navy)}
html.has-bgv .foot{background:rgba(11,15,57,.96)}
.ar-tab.on{background:var(--c2,#b8862c)}
.ar-epi{background:#f0d48a}
.ed-cat-all{background:var(--ed-red)}
.credit-name::after{background:currentColor}

/* ---------- 10. no frosted glass ---------- */
.ar-count{backdrop-filter:none;-webkit-backdrop-filter:none}

/* ---------- 11. the hero ends where its content ends (the four-number strip is gone) ---------- */
.welcome::before{inset:0}
html.has-bgv .welcome::before{inset:0}

/* ---------- home data block: the "all data" tile that replaced the navy totals box ---------- */
.dt-all{justify-content:center;background:var(--surface-2)}
.dt-all .dt-body{padding:18px}
.dt-all b{font-size:16px}
.dt-all .dt-n{max-width:28ch}

/* ---------- links that lost their arrows read as links ---------- */
.sec-h>a,.ed-start a.more,.w-btns .btn{text-underline-offset:3px}
.sec-h>a:hover{text-decoration:underline}

@media(prefers-reduced-motion:reduce){
  .ed-tile-bg,.ed-cat-img i,.dt-card .dt-ph,.post .ph,.album .ph,.ar-pimg img,.gal figure img{transition:none}
}

/* ---------- home leftovers found by the rendered audit ---------- */
.as-focus li::before,body.lang-bn .as-focus li::before{content:none;display:none}
.as-mis{border:1px solid var(--line);border-radius:var(--r)}
.as-mis b{color:var(--heading)}
.online{border-radius:6px}
.tbl-admin,.tbl-admin:hover{background:var(--green)}
.tbl-admin:hover{background:var(--green-h)}
.mgf{background:var(--surface);border-radius:var(--r);box-shadow:none}
/* one quiet icon colour instead of a different coloured square per card */
.inv .pi,.inv:nth-child(2) .pi,.inv:nth-child(3) .pi,.inv:nth-child(4) .pi,.inprog .pi{background:var(--green-soft);color:var(--accent);border-radius:10px}
.card.ab-mis,html.has-bgv .card.ab-mis,.ab-mis{background:var(--navy)}
/* data-tab and About leftovers that sit outside agri.css */
blockquote.belief{border-left:1px solid var(--line)}
.ed-disc-note{border-left:1px solid var(--line)}

/* nav: each tab shows its own colour on hover and when open (20 Nov 2026, at the user's request); no glow */
.ni>a{transition:background-color .15s ease,color .15s ease}
.ni>a:hover,.ni>a:focus-visible,.ni.on>a,.ni.on>a:hover{background:var(--tc);color:#0b0f39;box-shadow:none;border-bottom-color:transparent}
/* dark text on every tab colour: it reads better than white on rose, violet and magenta too */
.ni[data-r="election"].on>a,.ni[data-r="migration"].on>a,.ni[data-r="research"].on>a{color:#0b0f39}
