/*
Theme Name: Reference
Description: Dark casino review theme with a hero banner and card grid.
Version: 1.2.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: sar-reference
*/

/* ============================================================
   1. Tokens
   ============================================================ */
:root{
  --bg-top:rgb(11,17,32);
  --bg:rgb(15,23,42);
  --surface:rgb(17,24,39);
  --surface-2:rgb(31,41,55);
  --text:rgb(248,250,252);
  --muted:rgb(203,213,225);
  --primary:rgb(34,197,94);
  --primary-2:rgb(22,163,74);
  --gold:rgb(255,199,64);

  --bg-rgb:15,23,42;
  --text-rgb:248,250,252;
  --primary-rgb:34,197,94;
  --gold-rgb:255,199,64;
  --on-primary:rgb(16,21,31);
  --primary-contrast:var(--on-primary);
  --btn-end:var(--primary-2);
  --accent:rgb(21,128,61);
  --ok:rgb(63,217,127);
  --card:var(--surface);
  --card-bg:var(--surface);

  --border:rgba(255,255,255,.10);
  --max:1180px;
  --radius:18px;
  --radius-s:12px;
  --shadow:0 20px 50px rgba(0,0,0,.30);
  --font:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}

/* ============================================================
   2. Base
   ============================================================ */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  font-family:var(--font);
  font-size:1rem;
  line-height:1.65;
  color:var(--text);
  background:
    radial-gradient(1100px 480px at 12% -4%, rgba(var(--primary-rgb),.09), transparent 62%),
    radial-gradient(900px 420px at 88% 2%, rgba(var(--gold-rgb),.07), transparent 60%),
    linear-gradient(180deg,var(--bg-top) 0%,var(--bg) 46%);
  background-attachment:fixed;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
a:hover{color:var(--text)}
h1,h2,h3{line-height:1.12;letter-spacing:-.028em;margin:0}
ul,ol{margin:0;padding:0}
:focus-visible{outline:2px solid var(--gold);outline-offset:3px;border-radius:6px}
::selection{background:rgba(var(--gold-rgb),.28)}

.skip-link{
  position:absolute;left:-999px;top:0;z-index:200;
  padding:12px 18px;border-radius:0 0 var(--radius-s) 0;
  background:var(--primary);color:var(--on-primary);font-weight:700;
}
.skip-link:focus{left:0}

.sr-only,.screen-reader-text{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}

.site-wrap{overflow:hidden;min-height:100vh;display:flex;flex-direction:column}
.site-wrap>main{flex:1 0 auto}
.site-wrap>.site-content{flex:1 0 auto}
.site-content:focus{outline:none}

/* ============================================================
   3. Utilities
   ============================================================ */
.container{width:min(calc(100% - 40px),var(--max));margin-inline:auto}
.container--narrow{width:min(calc(100% - 40px),880px)}
.section{padding:44px 0}
.card{
  background:
    linear-gradient(180deg,rgba(var(--text-rgb),.045),rgba(var(--text-rgb),.015)),
    var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.muted{color:var(--muted)}
.prose{padding:34px}
.prose>h1{font-size:clamp(1.9rem,3.6vw,2.7rem);margin-bottom:14px}
.prose h2{font-size:clamp(1.45rem,2.6vw,1.9rem);margin:34px 0 12px}
.prose h3{font-size:clamp(1.15rem,2vw,1.4rem);margin:26px 0 10px}
.prose p,.prose li{color:var(--muted);font-size:1.045rem;max-width:72ch}
.prose p{margin:12px 0}
.prose p:empty{display:none}
.prose a{color:var(--gold);text-decoration:underline;text-underline-offset:3px}
.prose a.btn{color:var(--on-primary);text-decoration:none}
.prose img{border-radius:var(--radius-s)}
.prose table{width:100%;border-collapse:collapse;margin:20px 0;font-size:.95rem}
.prose th{background:var(--surface-2);color:var(--text);font-weight:700;text-align:left}
.prose th,.prose td{border:1px solid rgba(var(--text-rgb),.13);padding:10px 13px;vertical-align:top}
.prose tr:nth-child(even) td{background:rgba(var(--text-rgb),.03)}
.sar-article-thumb{float:right;width:46%;max-width:420px;margin:4px 0 16px 20px}
.sar-article-thumb img{width:100%;max-height:320px;object-fit:cover;border-radius:var(--radius-s)}

.section__head{margin-bottom:26px}
.section-title{font-size:clamp(1.65rem,3vw,2.4rem);font-weight:850}
.section-lead{color:var(--muted);max-width:70ch;margin-top:10px}

/* ============================================================
   4. Buttons, pills, badge, notice, checklist
   ============================================================ */
.btn,.search-submit{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  min-height:50px;padding:0 26px;border-radius:14px;border:1px solid transparent;
  font-family:inherit;font-weight:800;font-size:1rem;line-height:1;cursor:pointer;
  color:var(--on-primary);
  background:linear-gradient(165deg,var(--primary),var(--btn-end));
  box-shadow:0 12px 26px rgba(var(--primary-rgb),.30);
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;
  -webkit-appearance:none;appearance:none;
}
.btn:hover,.search-submit:hover{transform:translateY(-2px);filter:brightness(1.06);
  box-shadow:0 16px 32px rgba(var(--primary-rgb),.38);color:var(--on-primary)}
.btn:active,.search-submit:active{transform:translateY(0)}
.btn--xl{min-height:62px;padding:0 36px;font-size:1.16rem;border-radius:16px}
.btn--ghost{
  color:var(--text);background:rgba(var(--text-rgb),.05);
  border-color:var(--border);box-shadow:none;
}
.btn--ghost:hover{background:rgba(var(--text-rgb),.09);box-shadow:none;filter:none}

.pill{
  display:inline-flex;align-items:center;min-height:30px;padding:0 12px;
  border-radius:999px;background:rgba(var(--text-rgb),.05);
  border:1px solid var(--border);color:var(--muted);
  font-size:.83rem;font-weight:650;
}
.badge{
  display:inline-flex;align-items:center;gap:9px;
  padding:8px 14px;border-radius:999px;
  background:rgba(var(--gold-rgb),.10);border:1px solid rgba(var(--gold-rgb),.30);
  color:var(--gold);font-size:.82rem;font-weight:750;letter-spacing:.04em;
}
.badge__dot{width:8px;height:8px;border-radius:99px;background:var(--gold);
  box-shadow:0 0 10px rgba(var(--gold-rgb),.8)}
.notice{
  padding:15px 18px;border-radius:var(--radius-s);
  background:rgba(var(--gold-rgb),.08);border:1px solid rgba(var(--gold-rgb),.22);
  color:var(--gold);font-weight:650;font-size:.95rem;max-width:60ch;
}
.checks{display:grid;gap:11px;list-style:none}
.checks li{display:flex;align-items:flex-start;gap:11px;color:var(--text)}
.check{
  flex:0 0 22px;width:22px;height:22px;margin-top:2px;border-radius:99px;
  display:grid;place-items:center;
  background:rgba(var(--primary-rgb),.16);color:var(--primary);
  font-weight:900;font-size:.8rem;
}

/* ============================================================
   5. Header
   ============================================================ */
.site-header{
  position:sticky;top:0;z-index:60;
  background:color-mix(in srgb,var(--bg-top) 84%,transparent);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(var(--text-rgb),.08);
}
.site-header__inner{display:flex;align-items:center;justify-content:space-between;
  gap:22px;min-height:70px;padding:10px 0}
.brand{display:flex;align-items:center;gap:12px;min-width:0}
.header-logo{max-width:190px;max-height:46px;width:auto;height:auto;object-fit:contain}
.brand__title{font-weight:850;font-size:1.2rem;letter-spacing:-.02em;line-height:1.15;
  overflow-wrap:break-word;text-wrap:balance}
.nav{display:flex;gap:22px;align-items:center;flex-wrap:wrap}
.nav a{color:var(--muted);font-weight:600;font-size:.94rem}
.nav a:hover{color:var(--gold)}
.site-header .btn{flex:none;white-space:nowrap;min-height:42px;padding:0 20px;border-radius:12px;font-size:.92rem}

/* ============================================================
   6. First screen (hero)
   ============================================================ */
.hero__grid{
  position:relative;z-index:1;width:min(calc(100% - 40px),var(--max));
  display:grid;grid-template-columns:minmax(0,650px) minmax(0,1fr);
  gap:44px;align-items:center;padding:88px 0;
}
.hero{
  position:relative;overflow:clip;
  min-height:620px;
  display:flex;align-items:center;
  background:
    linear-gradient(90deg,
      rgba(var(--bg-rgb),.95) 0%, rgba(var(--bg-rgb),.82) 34%,
      rgba(var(--bg-rgb),.48) 58%, rgba(var(--bg-rgb),.30) 100%),
    linear-gradient(180deg,
      rgba(var(--bg-rgb),.42) 0%, transparent 26%,
      transparent 52%, var(--bg) 97%),
    url("assets/images/hero/hero-main.jpg") center/cover no-repeat;
  background-color:var(--bg);
}
.hero__main>*{animation:hero-rise .64s cubic-bezier(.2,.7,.25,1) both}
.hero__main>*:nth-child(2){animation-delay:.07s}
.hero__main>*:nth-child(3){animation-delay:.13s}
.hero__main>*:nth-child(4){animation-delay:.19s}
.hero__main>*:nth-child(5){animation-delay:.25s}
.hero__main>*:nth-child(6){animation-delay:.31s}
.hero__main>*:nth-child(7){animation-delay:.37s}
.hero__visual{animation:hero-rise .7s .12s cubic-bezier(.2,.7,.25,1) both}
.hero__main>h1{animation:none}  /* the h1 is the largest text of the first screen: it never animates */
@keyframes hero-rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}

.hero h1{
  font-size:clamp(2.35rem,5vw,3.85rem);font-weight:900;
  letter-spacing:-.04em;margin:20px 0 16px;text-wrap:balance;
  text-shadow:0 2px 18px rgba(0,0,0,.5);
}
.hero__geo{
  background:linear-gradient(180deg,rgba(var(--gold-rgb),.55),var(--gold));
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.hero__lead{font-size:1.14rem;color:var(--text);max-width:56ch;margin:0 0 18px;
  text-shadow:0 1px 10px rgba(0,0,0,.45)}
.hero .notice{margin:0 0 20px;backdrop-filter:blur(6px)}
.hero .checks{margin:0 0 26px}
.hero .checks li{text-shadow:0 1px 8px rgba(0,0,0,.5)}
.hero__cta{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:30px}

.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;list-style:none}
.metric{
  position:relative;overflow:hidden;padding:16px 16px 18px;border-radius:var(--radius-s);
  background:color-mix(in srgb,var(--surface-2) 82%,transparent);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  border:1px solid rgba(var(--text-rgb),.12);
}
.metric--rating::before{
  content:"";position:absolute;top:0;left:0;right:0;height:2px;
  background:linear-gradient(90deg,transparent,rgba(var(--gold-rgb),.75),transparent);
}
.metric__label{display:block;font-size:.74rem;font-weight:700;letter-spacing:.07em;
  color:var(--muted);margin-bottom:9px}
.metric__value{display:block;font-size:1.5rem;font-weight:850;letter-spacing:-.02em;overflow-wrap:anywhere}
.metric__value .sar-stars{font-size:1.05rem}
/* stars inside rating containers: one size and one line everywhere */
.rating .sar-stars,.compare__rating .sar-stars{font-size:.95rem;line-height:1}
.rating .sar-stars__num,.compare__rating .sar-stars__num{font-size:.8rem}

.hero__visual{display:flex;justify-content:flex-end}
.hero__side{
  position:relative;z-index:2;margin:0;padding:22px;max-width:390px;width:100%;
  background:color-mix(in srgb,var(--surface) 74%,transparent);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border-color:rgba(var(--text-rgb),.14);
}
.hero__side-title{font-size:1.06rem;font-weight:800;margin-bottom:14px}
.side-list{display:grid;gap:12px;list-style:none}
.side-item{
  padding:13px 15px;border-radius:var(--radius-s);
  background:rgba(var(--text-rgb),.05);border:1px solid rgba(var(--text-rgb),.08);
}
.side-item strong{display:block;font-size:.95rem;margin-bottom:3px}
.side-item span{color:var(--muted);font-size:.88rem;line-height:1.5}

/* ============================================================
   7. Game tiles
   ============================================================ */
.slots-grid{
  display:grid;grid-template-columns:repeat(6,1fr);gap:16px;list-style:none;
}
.slot-tile{
  position:relative;display:block;border-radius:14px;overflow:hidden;
  background:var(--surface-2);border:1px solid rgba(var(--text-rgb),.08);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.slot-tile:hover{
  transform:translateY(-4px);
  border-color:rgba(var(--gold-rgb),.55);
  box-shadow:0 16px 32px rgba(0,0,0,.34),0 0 0 2px rgba(var(--gold-rgb),.12);
}
.slot-tile img{width:100%;aspect-ratio:1/1;object-fit:cover}
.slot-tile__label{
  position:absolute;left:0;right:0;bottom:0;padding:26px 10px 9px;
  font-size:.72rem;font-weight:700;line-height:1.25;
  background:linear-gradient(180deg,rgba(var(--bg-rgb),0) 0%,rgba(var(--bg-rgb),.8) 52%,rgba(var(--bg-rgb),.9) 100%);
  text-shadow:0 1px 2px rgba(0,0,0,.4);
  overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
}

/* ============================================================
   8. Ranked list of casinos (alternatives)
   ============================================================ */
.alt-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;list-style:none}  /* minmax(0,..): a track may shrink below the card content */
.alt-card{
  position:relative;display:flex;flex-direction:column;gap:14px;padding:24px;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.alt-card:hover{
  transform:translateY(-4px);
  border-color:rgba(var(--gold-rgb),.45);
  box-shadow:0 22px 44px rgba(0,0,0,.34),0 0 0 1px rgba(var(--gold-rgb),.10);
}
.alt-card__rank{  /* ghost number: the list is ranked, the number is data */
  position:absolute;top:6px;right:16px;font-size:3.6rem;font-weight:900;
  line-height:1;letter-spacing:-.05em;color:rgba(var(--text-rgb),.055);
  pointer-events:none;user-select:none;
}
.alt-card__head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px 14px;min-height:44px}
.alt-card__logo{display:flex;align-items:center;font-weight:850;font-size:1.12rem;letter-spacing:-.01em;overflow-wrap:anywhere}
.alt-card__logo img{height:36px;width:auto;max-width:170px;object-fit:contain}
.alt-card__logo--img{flex:1 1 90px;min-width:0}  /* a picture logo may shrink next to the rating on narrow cards; a text name wraps the row instead */
.alt-card__logo--img img{min-width:0}
.rating{
  display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;
  padding:7px 12px;border-radius:999px;
  background:rgba(var(--gold-rgb),.09);border:1px solid rgba(var(--gold-rgb),.24);
  font-weight:800;font-size:.95rem;
}
.alt-card__bonus{font-size:1.34rem;font-weight:850;letter-spacing:-.02em;line-height:1.2;overflow-wrap:anywhere}
.alt-card__meta{display:flex;flex-wrap:wrap;gap:8px;list-style:none}
.alt-card__cta{margin-top:auto;width:100%}

/* ============================================================
   9. Comparison table
   ============================================================ */
.table-wrap{
  position:relative;  /* contains the sr-only caption of the thead: it must not stretch the page */
  overflow-x:auto;border-radius:var(--radius);
  border:1px solid var(--border);background:var(--surface);
  box-shadow:var(--shadow);
  scrollbar-color:var(--surface-2) transparent;
}
.compare{width:100%;min-width:780px;border-collapse:collapse;font-size:.97rem}
.compare th{
  padding:15px 18px;text-align:left;font-size:.82rem;font-weight:700;
  letter-spacing:.05em;color:var(--muted);
  background:rgba(var(--text-rgb),.045);
  border-bottom:1px solid var(--border);
}
.compare td{padding:15px 18px;border-bottom:1px solid rgba(var(--text-rgb),.06);
  vertical-align:middle}
.compare tbody tr:last-child td{border-bottom:0}
.compare tbody tr{transition:background .16s ease}
.compare tbody tr:hover{background:rgba(var(--text-rgb),.028)}
.compare th:first-child,.compare td:first-child{
  position:sticky;left:0;z-index:1;background:var(--surface);
  box-shadow:1px 0 0 rgba(var(--text-rgb),.07);
}
.compare th:first-child{background:var(--surface-2)}
.table-brand{display:flex;align-items:center;gap:13px;min-width:170px}
.table-brand__logo{
  flex:0 0 46px;width:46px;height:46px;border-radius:12px;padding:7px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(var(--text-rgb),.05);border:1px solid rgba(var(--text-rgb),.07);
}
.table-brand__logo img{max-width:100%;max-height:100%;object-fit:contain}
.table-brand span{font-weight:750;line-height:1.25;overflow-wrap:anywhere;min-width:0}
.compare__rating{white-space:nowrap}
.compare .btn{min-height:40px;padding:0 18px;font-size:.88rem}

/* ============================================================
   10. Overview + notes (sticky)
   ============================================================ */
.content-grid{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:28px;align-items:start}
.sticky-box{position:sticky;top:96px;padding:26px}
.sticky-box h3{font-size:1.12rem;margin-bottom:16px}
.sticky-box .checks{margin-bottom:22px}
.sticky-box .btn{width:100%}
.seo-content{padding:30px 34px}

/* ============================================================
   11. FAQ (details, no JS)
   ============================================================ */
.faq-list{display:grid;gap:14px}
.faq-item{padding:0;overflow:hidden}
.faq-item summary{
  position:relative;padding:20px 58px 20px 26px;cursor:pointer;
  font-weight:750;font-size:1.05rem;list-style:none;
  transition:color .15s ease;
}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary:hover{color:var(--gold)}
.faq-item summary::after{
  content:"+";position:absolute;top:50%;right:20px;translate:0 -50%;
  width:30px;height:30px;border-radius:99px;display:grid;place-items:center;
  background:rgba(var(--text-rgb),.05);border:1px solid var(--border);
  color:var(--gold);font-size:1.25rem;font-weight:600;line-height:1;
}
.faq-item[open] summary::after{content:"\2013"}
.faq-item__body{padding:0 26px 22px;color:var(--muted);max-width:76ch}

/* ============================================================
   12. Author (Reviewed by)
   ============================================================ */
.author{
  display:grid;grid-template-columns:86px 1fr;gap:22px;align-items:center;
  padding:28px;
}
.author__avatar{
  width:86px;height:86px;border-radius:50%;overflow:hidden;flex:0 0 auto;
  display:grid;place-items:center;
  background:linear-gradient(160deg,var(--primary),var(--btn-end));
  color:var(--on-primary);font-weight:900;font-size:1.9rem;
  border:2px solid rgba(var(--gold-rgb),.4);
}
.author__avatar img{width:100%;height:100%;object-fit:cover}
.author__name{font-size:1.14rem;font-weight:800;margin-bottom:6px}
.author__name a{box-shadow:inset 0 -2px 0 rgba(var(--gold-rgb),.5)}
.author__name a:hover{color:var(--gold)}
.author__bio{color:var(--muted);font-size:.97rem;max-width:72ch}

/* ============================================================
   13. Latest guides
   ============================================================ */
.guide-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.guide-card{display:flex;flex-direction:column;gap:10px;padding:22px}
.guide-card h3{font-size:1.02rem;font-weight:750;line-height:1.3}
.guide-card h3 a:hover{color:var(--gold)}
.guide-card time{color:var(--muted);font-size:.82rem}
.guide-card__more{margin-top:auto;font-weight:700;color:var(--gold);font-size:.92rem}
.guides-all{margin-top:20px;font-weight:700}
.guides-all a{color:var(--gold)}

/* ============================================================
   14. Archive lists (category.php, home.php, index.php, search.php)
   ============================================================ */
.archive-head{padding:30px 32px;margin-bottom:24px}
.archive-head h1{font-size:clamp(1.7rem,3.2vw,2.5rem)}
.archive-head p{margin:10px 0 0}
.archive-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.archive-card{display:flex;flex-direction:column;gap:10px;padding:22px}
.archive-card h2{font-size:1.06rem;font-weight:750;line-height:1.32}
.archive-card h2 a:hover{color:var(--gold)}
.archive-card time{color:var(--muted);font-size:.82rem}
.archive-card p{color:var(--muted);font-size:.93rem;margin:0}
.archive-card__more{margin-top:auto;font-weight:700;color:var(--gold);font-size:.92rem}
.archive-nav{display:flex;gap:16px;margin-top:26px;font-weight:700}
.archive-nav a{color:var(--gold)}
.archive-card__media{
  display:block;aspect-ratio:16/9;overflow:hidden;
  border-radius:var(--radius-s);background:var(--surface-2);
}
.archive-card__media img{width:100%;height:100%;object-fit:cover}

/* ============================================================
   14a. Search form, 404 page, offer card at the end of an article
   ============================================================ */
.archive-head__search{margin-top:18px}
.search-form{display:flex;flex-wrap:wrap;gap:12px;align-items:stretch;max-width:560px}
.search-form label{flex:1 1 220px;min-width:0}
.search-field{
  width:100%;min-height:50px;padding:0 18px;
  border-radius:14px;border:1px solid var(--border);
  background:rgba(var(--text-rgb),.05);color:var(--text);
  font:inherit;-webkit-appearance:none;appearance:none;
}
.search-field::placeholder{color:var(--muted);opacity:1}
.notfound{padding:48px 34px;text-align:center;display:grid;justify-items:center;gap:14px}
.notfound .notfound__code{
  font-size:clamp(3.4rem,11vw,6rem);font-weight:900;letter-spacing:-.05em;line-height:1;
  color:rgba(var(--text-rgb),.14);
}
.notfound h1{font-size:clamp(1.7rem,3.2vw,2.5rem)}
.notfound p{color:var(--muted);max-width:56ch;margin:0}
.notfound .notfound__actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}
.notfound__search{width:100%}
.notfound .search-form{justify-content:center;max-width:480px;margin:0 auto}
.article-offer{
  clear:both;margin:28px 0 0;padding:22px 24px;border-radius:var(--radius-s);
  background:rgba(var(--gold-rgb),.08);border:1px solid rgba(var(--gold-rgb),.22);
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px 24px;
}
.article-offer__body{flex:1 1 260px;min-width:0}
.article-offer .article-offer__title{font-size:1.2rem;margin:0}
.prose .article-offer__bonus{margin:6px 0 0}

/* ============================================================
   15. Footer
   ============================================================ */
.site-footer{
  margin-top:56px;padding:34px 0 42px;
  border-top:1px solid rgba(var(--text-rgb),.08);
  color:var(--muted);font-size:.93rem;
}
.footer-grid{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}
.footer-links{display:flex;gap:20px;flex-wrap:wrap;font-weight:600}
.footer-links a:hover{color:var(--gold)}

/* ============================================================
   16. Responsive
   ============================================================ */
@media (max-width:1120px){
  .hero__grid{grid-template-columns:1fr;gap:36px;padding:64px 0}
  .hero__visual{justify-content:flex-start}
  .hero__side{max-width:640px}
  .alt-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .slots-grid{grid-template-columns:repeat(4,1fr)}
  .guide-grid{grid-template-columns:repeat(2,1fr)}
  .content-grid{grid-template-columns:1fr}
  .sticky-box{position:static}
  .archive-grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:860px){
  .nav{display:none}  /* the header navigation is hidden on narrow screens */
  .section{padding:34px 0}
  .hero{min-height:0}
  .hero__grid{padding:52px 0}
  .metrics{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:680px){
  .alt-grid{grid-template-columns:minmax(0,1fr)}
  .slots-grid{grid-template-columns:repeat(3,1fr);gap:12px}
  .metrics{grid-template-columns:1fr}
  .hero__cta .btn{flex:1 1 auto}
  .prose{padding:24px}
  .seo-content{padding:22px 24px}
  .author{grid-template-columns:1fr;text-align:center;justify-items:center}
  .archive-grid{grid-template-columns:1fr}
  .footer-grid{flex-direction:column;align-items:flex-start}
  .notfound{padding:34px 22px}
  .article-offer{padding:18px 20px}
}
@media (max-width:480px){
  .slots-grid{grid-template-columns:repeat(2,1fr);gap:10px}
  .guide-grid{grid-template-columns:1fr}
  .hero h1{font-size:2.1rem}
  .hero__grid{padding:44px 0}
  .btn--xl{width:100%}
  .hero__side{padding:18px}
}
@media (max-width:640px){
  .sar-article-thumb{float:none;width:100%;max-width:100%;margin:12px 0}
}

/* ============================================================
   17. Reduced motion
   ============================================================ */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.01ms !important;animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
}
