/*
Theme Name: Inclusive Scores
Theme URI: https://scores.inclusivelyremote.com
Author: Inclusively Remote
Description: A fast, ad-ready live football scores theme. Live scores, fixtures, results, match centre (events, stats, lineups, H2H) and league tables, powered by API-Football with server-side caching. No jQuery, no web fonts, no layout shift from ads.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.9
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: inclusive-scores
Tags: sports, news, blog, two-columns, three-columns, right-sidebar, custom-colors, custom-menu, threaded-comments, translation-ready
*/

/* ---------- Tokens ---------- */
:root{
  --bg:#f3f5f9; --surface:#fff; --surface-2:#f7f8fb; --line:#e5e8ef;
  --text:#121826; --muted:#5d6678; --faint:#8a92a3;
  --brand:#2457f5; --brand-ink:#fff; --brand-soft:#e8eeff;
  --live:#e5212d; --live-soft:#fdecee; --win:#0e9f6e; --draw:#8a92a3; --loss:#e5212d;
  --yellow:#f4c20d; --header:#0f1c3f; --header-ink:#fff;
  --radius:12px; --gap:16px; --row-h:56px;
  --font:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  color-scheme:light;
}
:root[data-theme="dark"]{
  --bg:#0b0f17; --surface:#151b26; --surface-2:#1b2230; --line:#262f3f;
  --text:#e8ecf3; --muted:#9aa4b6; --faint:#6e788a;
  --brand:#6b8cff; --brand-ink:#0b0f17; --brand-soft:#1d2645;
  --live:#ff4d58; --live-soft:#3a1a1f; --header:#0f1522; color-scheme:dark;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --bg:#0b0f17; --surface:#151b26; --surface-2:#1b2230; --line:#262f3f;
    --text:#e8ecf3; --muted:#9aa4b6; --faint:#6e788a;
    --brand:#6b8cff; --brand-ink:#0b0f17; --brand-soft:#1d2645;
    --live:#ff4d58; --live-soft:#3a1a1f; --header:#0f1522; color-scheme:dark;
  }
}

/* ---------- Base ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:72px}
body{margin:0;background:var(--bg);color:var(--text);font:15px/1.45 var(--font);overflow-x:hidden}
a{color:inherit;text-decoration:none}
a:hover{color:var(--brand)}
img{max-width:100%;height:auto;display:block}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;padding:0}
h1,h2,h3{line-height:1.2;margin:0}
.screen-reader-text,.sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip-link:focus{position:fixed;top:8px;left:8px;width:auto;height:auto;clip:auto;z-index:100;background:var(--surface);padding:8px 12px;border-radius:8px}
:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.wrap{max-width:1280px;margin:0 auto;padding:0 16px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
.muted{color:var(--muted)}
.tabnum{font-variant-numeric:tabular-nums}

/* ---------- Header ---------- */
.site-header{background:var(--header);color:var(--header-ink);position:sticky;top:0;z-index:50}
.hdr{display:flex;align-items:center;gap:12px;height:56px}
.logo{display:flex;align-items:center;gap:8px;font-weight:800;font-size:18px;letter-spacing:-.02em;white-space:nowrap;color:#fff}
.logo:hover{color:#fff}
.logo-mark{width:28px;height:28px;border-radius:8px;background:var(--brand);display:grid;place-items:center;font-size:15px;color:#fff}
.logo img{max-height:32px;width:auto}
.hdr-nav{display:flex;gap:4px;margin-left:12px}
.hdr-nav a{padding:6px 10px;border-radius:8px;color:#c9d2ea;font-weight:600;font-size:14px}
.hdr-nav a:hover,.hdr-nav .current-menu-item>a,.hdr-nav a[aria-current]{background:rgba(255,255,255,.1);color:#fff}
.hdr-nav ul{display:flex;gap:4px;list-style:none;margin:0;padding:0}
.hdr-tools{margin-left:auto;display:flex;gap:6px;align-items:center}
.icon-btn{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;color:#dfe6f7}
.icon-btn:hover{background:rgba(255,255,255,.1);color:#fff}
.icon-btn svg{width:20px;height:20px}
.menu-btn{display:none}

/* ---------- Ads (space reserved = no layout shift) ---------- */
.ad{display:flex;align-items:center;justify-content:center;overflow:hidden;margin:0 auto var(--gap);position:relative;max-width:100%}
.ad::before{content:attr(data-label);position:absolute;top:2px;left:50%;transform:translateX(-50%);font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--faint);pointer-events:none}
.ad>*{position:relative}
.ad--placeholder{background:repeating-linear-gradient(45deg,var(--surface-2),var(--surface-2) 8px,var(--surface) 8px,var(--surface) 16px);border:1px dashed var(--line);border-radius:8px;color:var(--faint);font-size:12px}
.ad--leader{width:100%;min-height:var(--ad-m,100px)}
.ad--rect{width:300px;min-height:250px}
.ad--sky{width:300px;min-height:600px}
.ad--infeed{width:100%;min-height:var(--ad-m,100px);margin:var(--gap) 0}
.ad--anchor{position:fixed;left:0;right:0;bottom:0;z-index:60;margin:0;min-height:50px;background:var(--surface);border-top:1px solid var(--line);box-shadow:0 -4px 16px rgba(0,0,0,.08)}
.ad-close{position:absolute;top:-26px;right:8px;width:26px;height:26px;border-radius:8px 8px 0 0;background:var(--surface);border:1px solid var(--line);border-bottom:0;font-size:16px;line-height:1}
@media (max-width:899px){.has-anchor .site-footer{padding-bottom:80px}}
.ad-top-wrap{padding-top:var(--gap)}
@media (min-width:768px){.ad--leader,.ad--infeed{min-height:var(--ad-d,90px)}}

/* ---------- Layout ---------- */
.layout{display:grid;gap:var(--gap);grid-template-columns:minmax(0,1fr);padding-top:var(--gap);padding-bottom:32px}
@media (min-width:900px){.layout{grid-template-columns:240px minmax(0,1fr)}}
@media (min-width:1200px){.layout{grid-template-columns:240px minmax(0,1fr) 300px}}
.col-left,.col-right{display:none}
@media (min-width:900px){.col-left{display:block}}
@media (min-width:1200px){.col-right{display:block}}
.sticky{position:sticky;top:72px}
.layout--article{grid-template-columns:minmax(0,1fr)}
@media (min-width:1000px){.layout--article{grid-template-columns:minmax(0,1fr) 300px}.layout--article .col-right{display:block}}

/* ---------- Side nav ---------- */
.side h2{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);padding:14px 14px 6px}
.side ul{list-style:none;margin:0;padding:0 6px 8px}
.side li a{display:flex;align-items:center;gap:10px;padding:7px 8px;border-radius:8px;font-size:14px}
.side li a:hover{background:var(--surface-2)}
.side .count{margin-left:auto;font-size:12px;color:var(--faint)}
.side .count.is-live{color:var(--live);font-weight:700}
.side-block+.side-block{border-top:1px solid var(--line)}
.side-empty{padding:4px 14px 12px;font-size:13px;color:var(--faint)}

/* ---------- Crests / flags ---------- */
.crest{width:20px;height:20px;flex:none;object-fit:contain}
.crest--lg{width:56px;height:56px}
.crest--md{width:28px;height:28px}
.badge{width:20px;height:20px;flex:none;border-radius:50%;display:grid;place-items:center;font-size:9px;font-weight:800;color:#fff;background:var(--c,#64748b);letter-spacing:-.02em}
.badge.crest--lg{width:56px;height:56px;font-size:20px}
.badge.crest--md{width:28px;height:28px;font-size:11px}
.flag{width:20px;height:14px;flex:none;object-fit:cover;border-radius:2px}

/* ---------- Toolbar: dates + filters ---------- */
.toolbar{position:sticky;top:56px;z-index:20;background:var(--bg);padding-bottom:10px;margin-bottom:2px}
.dates{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:2px 0 10px}
.dates::-webkit-scrollbar{display:none}
.date-pill{flex:1 0 auto;min-width:64px;display:flex;flex-direction:column;align-items:center;padding:6px 10px;border-radius:10px;background:var(--surface);border:1px solid var(--line);font-size:12px;color:var(--muted)}
.date-pill b{font-size:14px;color:var(--text)}
.date-pill[aria-current="date"]{background:var(--brand);border-color:var(--brand);color:var(--brand-ink)}
.date-pill[aria-current="date"] b{color:var(--brand-ink)}
.date-cal{flex:0 0 auto;position:relative;display:grid;place-items:center;width:46px}
.date-cal input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}
.date-cal svg{width:18px;height:18px}
.filters{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.chip{padding:7px 12px;border-radius:999px;background:var(--surface);border:1px solid var(--line);font-size:13px;font-weight:600;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.chip[aria-pressed="true"]{background:var(--text);color:var(--bg);border-color:var(--text)}
.chip .n{font-weight:500;opacity:.7}
.chip--live[aria-pressed="true"]{background:var(--live);border-color:var(--live);color:#fff}
.dot{width:7px;height:7px;border-radius:50%;background:var(--live);display:inline-block;animation:pulse 1.6s infinite}
@keyframes pulse{50%{opacity:.35}}
.search{margin-left:auto;flex:1 1 160px;max-width:260px;position:relative}
.search input{width:100%;height:34px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--text);padding:0 12px 0 32px;font:inherit;font-size:13px}
.search svg{position:absolute;left:10px;top:9px;width:16px;height:16px;color:var(--faint)}
@media (max-width:599px){.search{order:5;max-width:none;flex-basis:100%;margin-left:0}}

/* ---------- League groups & match rows ---------- */
.notice{padding:10px 14px;border-radius:10px;background:var(--brand-soft);color:var(--text);font-size:13px;margin-bottom:var(--gap)}
.notice strong{color:var(--brand)}
.lg{margin-bottom:12px;overflow:hidden;content-visibility:auto;contain-intrinsic-size:auto 300px}
.lg-head{display:flex;align-items:center;gap:10px;padding:10px 12px;background:var(--surface-2);border-bottom:1px solid var(--line)}
.lg-head a{display:flex;align-items:center;gap:10px;min-width:0}
.lg-name{font-weight:700;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lg-country{font-size:12px;color:var(--muted)}
.lg-head .fav{margin-left:auto}
.fav{width:30px;height:30px;display:grid;place-items:center;border-radius:8px;color:var(--faint)}
.fav svg{width:18px;height:18px}
.fav:hover{background:var(--surface)}
.fav[aria-pressed="true"]{color:#f5a50b}
.fav[aria-pressed="true"] svg{fill:currentColor}
.m{display:grid;grid-template-columns:52px minmax(0,1fr) 34px 30px;align-items:center;gap:8px;min-height:var(--row-h);padding:6px 6px 6px 12px;border-top:1px solid var(--line);position:relative}
.lg-head+.m{border-top:0}
.m:hover{background:var(--surface-2)}
.m-link{position:absolute;inset:0;z-index:1}
.m .fav{position:relative;z-index:2}
.m-time{font-size:12px;color:var(--muted);text-align:center;line-height:1.2}
.m-time .min{color:var(--live);font-weight:700}
.m-time .st{display:block;font-size:11px}
.m.is-live{box-shadow:inset 3px 0 0 var(--live)}
.m-teams{display:grid;gap:4px;min-width:0}
.t{display:flex;align-items:center;gap:8px;min-width:0;font-size:14px}
.t span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.t.win{font-weight:700}
.m.is-done .t:not(.win){color:var(--muted)}
.rc{display:inline-block;width:8px;height:11px;background:var(--live);border-radius:1px;flex:none}
.m-score{display:grid;gap:4px;text-align:right;font-weight:700;font-size:14px;font-variant-numeric:tabular-nums}
.m.is-live .m-score{color:var(--live)}
.m-score .pen{font-size:10px;color:var(--muted);font-weight:500}
.flash{animation:flash 2.4s ease}
@keyframes flash{0%,40%{background:var(--live-soft)}}
.empty{padding:40px 16px;text-align:center;color:var(--muted)}
.empty svg{width:40px;height:40px;margin:0 auto 8px;opacity:.5}
[hidden]{display:none!important}

/* ---------- Right column widgets ---------- */
.widget{margin-bottom:var(--gap);padding:14px}
.widget h2,.widget-title{font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:0 0 10px}
.featured .fm-teams{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;text-align:center;font-size:13px;font-weight:600}
.featured .fm-teams .crest,.featured .fm-teams .badge{margin:0 auto 6px}
.featured .fm-score{font-size:24px;font-weight:800;font-variant-numeric:tabular-nums}
.featured .fm-meta{text-align:center;font-size:12px;color:var(--muted);margin-top:8px}

/* ---------- Mobile drawer ---------- */
.drawer{position:fixed;inset:0;z-index:70;display:none}
.drawer.open{display:block}
.drawer-bg{position:absolute;inset:0;background:rgba(0,0,0,.45)}
.drawer-panel{position:absolute;top:0;bottom:0;left:0;width:min(86vw,320px);background:var(--surface);overflow-y:auto;padding-bottom:24px}
.drawer-head{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;border-bottom:1px solid var(--line)}
.drawer-head .icon-btn{color:var(--text)}
.drawer .mnav{list-style:none;margin:0;padding:8px 6px;border-bottom:1px solid var(--line)}
.drawer .mnav a{display:block;padding:9px 10px;border-radius:8px;font-weight:600}
@media (max-width:899px){.menu-btn{display:grid}.hdr-nav{display:none}}

/* ---------- Match centre ---------- */
.crumbs{font-size:13px;color:var(--muted);display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-bottom:10px}
.crumbs a:hover{color:var(--brand)}
.mh{padding:18px 14px 14px;text-align:center;margin-bottom:var(--gap)}
.mh-league{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);margin-bottom:14px}
.mh-grid{display:grid;grid-template-columns:1fr auto 1fr;align-items:start;gap:8px}
.mh-team{display:flex;flex-direction:column;align-items:center;gap:8px;font-weight:700;font-size:15px;min-width:0}
.mh-team span{overflow-wrap:anywhere}
.mh-score{font-size:clamp(30px,8vw,44px);font-weight:800;letter-spacing:-.02em;font-variant-numeric:tabular-nums;padding:6px 4px 0;white-space:nowrap}
.mh-status{font-size:13px;font-weight:700;color:var(--muted);margin-top:4px}
.mh.is-live .mh-score,.mh.is-live .mh-status{color:var(--live)}
.mh-sub{font-size:12px;color:var(--muted);margin-top:2px}
.mh-scorers{display:grid;grid-template-columns:1fr 1fr;gap:4px 24px;font-size:12px;color:var(--muted);margin-top:12px}
.mh-scorers div:first-child{text-align:right}
.mh-meta{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.tabs{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;margin-bottom:12px;position:sticky;top:56px;z-index:15;background:var(--bg);padding:4px 0 8px}
.tabs::-webkit-scrollbar{display:none}
.tab{padding:8px 14px;border-radius:999px;font-weight:600;font-size:14px;white-space:nowrap;background:var(--surface);border:1px solid var(--line)}
.tab[aria-selected="true"]{background:var(--text);color:var(--bg);border-color:var(--text)}
.panel{padding:6px 0;margin-bottom:var(--gap)}
.panel h3{font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);padding:10px 14px 6px}

/* timeline */
.tl{list-style:none;margin:0;padding:0}
.tl li{display:grid;grid-template-columns:1fr 46px 1fr;align-items:center;gap:8px;padding:8px 14px;font-size:14px;border-top:1px solid var(--line)}
.tl li:first-child{border-top:0}
.tl .min{text-align:center;font-weight:700;font-size:12px;color:var(--muted);background:var(--surface-2);border-radius:999px;padding:3px 0}
.tl .ev{display:flex;align-items:center;gap:8px;min-width:0}
.tl .home{justify-content:flex-end;text-align:right}
.tl .ev small{display:block;color:var(--muted);font-size:12px}
.tl .ico{flex:none;width:18px;height:18px;display:grid;place-items:center;font-size:13px}
.card-y{width:11px;height:15px;border-radius:2px;background:var(--yellow);display:inline-block}
.card-r{width:11px;height:15px;border-radius:2px;background:var(--live);display:inline-block}
.tl .sep{grid-column:1/-1;text-align:center;font-size:12px;font-weight:700;color:var(--muted);background:var(--surface-2);padding:6px}

/* stats */
.stat{padding:10px 14px;border-top:1px solid var(--line)}
.stat:first-of-type{border-top:0}
.stat-row{display:flex;justify-content:space-between;font-size:14px;font-weight:700;font-variant-numeric:tabular-nums}
.stat-row span:nth-child(2){font-weight:500;color:var(--muted);font-size:13px}
.bars{display:flex;gap:6px;margin-top:6px}
.bar{flex:1;height:6px;background:var(--surface-2);border-radius:99px;overflow:hidden;display:flex}
.bar.l{justify-content:flex-end}
.bar i{display:block;height:100%;background:var(--faint);border-radius:99px}
.bar i.hi{background:var(--brand)}

/* lineups */
.lineups{display:grid;grid-template-columns:1fr;gap:var(--gap)}
@media (min-width:640px){.lineups{grid-template-columns:1fr 1fr}}
.lu-head{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid var(--line);font-weight:700}
.lu-head .form{margin-left:auto;font-weight:600;color:var(--muted);font-size:13px}
.lu ol{list-style:none;margin:0;padding:4px 0}
.lu li{display:flex;gap:10px;align-items:center;padding:6px 14px;font-size:14px}
.lu .num{width:26px;height:26px;border-radius:50%;background:var(--surface-2);display:grid;place-items:center;font-size:12px;font-weight:700;flex:none}
.lu .pos{margin-left:auto;font-size:11px;color:var(--faint);font-weight:700}
.lu .coach{padding:8px 14px 12px;font-size:13px;color:var(--muted);border-top:1px solid var(--line)}
.pitch{position:relative;aspect-ratio:68/105;max-height:640px;margin:0 auto 12px;background:linear-gradient(#2f8f4e,#2a8147);border-radius:10px;overflow:hidden}
.pitch::before{content:"";position:absolute;inset:4%;border:2px solid rgba(255,255,255,.35);border-radius:4px}
.pitch::after{content:"";position:absolute;left:4%;right:4%;top:50%;border-top:2px solid rgba(255,255,255,.35)}
.pitch .ring{position:absolute;left:50%;top:50%;width:22%;aspect-ratio:1;border:2px solid rgba(255,255,255,.35);border-radius:50%;transform:translate(-50%,-50%)}
.pl{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:2px;width:22%;z-index:1}
.pl b{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-size:12px;color:#fff;background:var(--k,#1f2937);border:2px solid rgba(255,255,255,.9)}
.pl span{font-size:11px;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.6);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.pitch-wrap{padding:12px}

/* standings */
.tbl-wrap{overflow-x:auto}
.tbl{width:100%;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums}
.tbl th{font-size:12px;color:var(--muted);font-weight:600;text-align:center;padding:8px 6px;border-bottom:1px solid var(--line);white-space:nowrap}
.tbl td{padding:8px 6px;text-align:center;border-top:1px solid var(--line);white-space:nowrap}
.tbl th:nth-child(2),.tbl td:nth-child(2){text-align:left;width:100%}
.tbl .team{display:flex;align-items:center;gap:8px;min-width:0}
.tbl .team span{overflow:hidden;text-overflow:ellipsis;max-width:170px}
.tbl .pts{font-weight:800}
.tbl tr.hl td{background:var(--brand-soft)}
.rank{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:6px;font-size:12px;font-weight:700}
.rank.q1{background:#2457f5;color:#fff}.rank.q2{background:#f08c00;color:#fff}.rank.q3{background:#0e9f6e;color:#fff}.rank.rel{background:var(--live);color:#fff}
.form-dots{display:inline-flex;gap:3px}
.form-dots i{width:16px;height:16px;border-radius:4px;font-size:10px;font-style:normal;font-weight:700;color:#fff;display:grid;place-items:center}
.form-dots .W{background:var(--win)}.form-dots .D{background:var(--draw)}.form-dots .L{background:var(--loss)}
@media (max-width:599px){.tbl .hide-sm{display:none}.tbl .team span{max-width:120px}}
.tbl-legend{display:flex;gap:12px;flex-wrap:wrap;padding:10px 14px;font-size:12px;color:var(--muted)}
.tbl-legend span{display:inline-flex;align-items:center;gap:6px}

/* h2h */
.h2h-sum{display:grid;grid-template-columns:repeat(3,1fr);text-align:center;padding:14px;gap:8px}
.h2h-sum b{display:block;font-size:24px;font-variant-numeric:tabular-nums}
.h2h-sum small{color:var(--muted);font-size:12px}

/* league page */
.lh{display:flex;align-items:center;gap:14px;padding:16px;margin-bottom:var(--gap)}
.lh h1{font-size:22px}
.lh .muted{font-size:13px}

/* ---------- Blog / pages ---------- */
.posts{display:grid;gap:var(--gap);grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
.post-card{overflow:hidden;display:flex;flex-direction:column}
.post-card .thumb{aspect-ratio:16/9;background:var(--surface-2);overflow:hidden}
.post-card .thumb img{width:100%;height:100%;object-fit:cover}
.post-card .body{padding:14px}
.post-card h2{font-size:17px;margin:6px 0}
.post-card p{margin:0;color:var(--muted);font-size:14px}
.meta{font-size:12px;color:var(--muted)}
.entry{padding:clamp(16px,4vw,32px)}
.entry h1{font-size:clamp(24px,4vw,34px);margin-bottom:8px}
.entry-content{font-size:17px;line-height:1.7;overflow-wrap:break-word}
.entry-content img,.entry-content iframe{max-width:100%}
.entry-content a{color:var(--brand);text-decoration:underline}
.entry-content pre{overflow-x:auto}
.entry-content table{display:block;overflow-x:auto}
.page-title{font-size:24px;margin:0 0 var(--gap)}
.pagination{display:flex;gap:6px;justify-content:center;margin:24px 0}
.pagination .page-numbers{padding:8px 12px;border-radius:8px;background:var(--surface);border:1px solid var(--line)}
.pagination .current{background:var(--brand);color:var(--brand-ink);border-color:var(--brand)}
.alignwide,.alignfull{max-width:100%}
.wp-caption,.gallery-caption{font-size:13px;color:var(--muted)}
.comments-area{margin-top:var(--gap)}
.comment-list{list-style:none;padding:0}
.comment-form input:not([type=submit]):not([type=checkbox]),.comment-form textarea,.search-form input[type=search]{width:100%;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);font:inherit}
.btn,.comment-form input[type=submit],.search-form button{display:inline-block;padding:10px 16px;border-radius:10px;background:var(--brand);color:var(--brand-ink);font-weight:700;border:0}

/* ---------- Footer ---------- */
.site-footer{border-top:1px solid var(--line);background:var(--surface);padding:24px 0;font-size:13px;color:var(--muted)}
.ftr{display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center;justify-content:space-between}
.ftr ul{list-style:none;display:flex;flex-wrap:wrap;gap:6px 16px;margin:0;padding:0}
.footer-widgets{display:grid;gap:var(--gap);grid-template-columns:repeat(auto-fit,minmax(200px,1fr));margin-bottom:16px}

@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
@media print{.site-header,.ad,.toolbar,.col-left,.col-right,.site-footer{display:none!important}}

/* ---------- Widgets & small fixes ---------- */
.chip svg{width:15px;height:15px}
.chip[data-filter="fav"][aria-pressed="true"] svg{fill:currentColor}
a.featured{display:block}
.ad::before{white-space:nowrap}
.widget ul{list-style:none;margin:0;padding:0}
.widget li{padding:5px 0;border-top:1px solid var(--line);font-size:14px}
.widget li:first-child{border-top:0}
.widget .wp-block-search__label,.widget label{display:block;font-size:13px;color:var(--muted);margin-bottom:6px}
.widget .wp-block-search__inside-wrapper{display:flex;gap:6px}
.widget input[type=search]{flex:1;min-width:0;height:38px;padding:0 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);font:inherit}
.widget .wp-block-search__button,.widget button[type=submit]{height:38px;padding:0 14px;border-radius:8px;background:var(--brand);color:var(--brand-ink);font-weight:700;border:0}
.widget .wp-block-heading{font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:0 0 10px}
.wp-block-latest-comments{padding:0;margin:0}
.admin-bar .site-header{top:32px}
@media (max-width:782px){.admin-bar .site-header{top:46px}}
@media (max-width:600px){.admin-bar .site-header{top:0}}

@media (max-width:599px){.tab{padding:7px 12px;font-size:13px}}
