/* Slim Kingdom — slimkingdom.com
   Oswald for headings and numbers, Source Sans 3 for everything else. */

:root {
  --bg: #ffffff;
  --band: #f4f5f7;
  --line: #e2e5ea;
  --dark: #1b1f27;
  --dark-2: #262b35;
  --text: #22262e;
  --muted: #5e6672;
  --link: #0b5bd3;
  --green: #1f9e57;
  --green-dark: #187f46;
  --amber: #f0a512;
  --red: #d64545;
  --blue-soft: #e8f0fb;
  --head: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --r: 6px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
a:hover { color: #083f93; }
button { font: inherit; }
p { margin: 0 0 1em; }

h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--text);
}

h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; font-family: var(--body); font-weight: 700; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin: 0 auto; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

:focus-visible { outline: 3px solid #ffbf47; outline-offset: 2px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--dark);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 6px 20px rgba(0,0,0,.25);
}

.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 62px;
}

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none;
  font-family: var(--head); font-weight: 600; font-size: 1.5rem; letter-spacing: .01em;
}

.logo svg { width: 30px; height: 30px; }
.logo em { font-style: normal; color: var(--amber); }

.menu { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.menu a {
  display: block; padding: 8px 12px; color: #d7dbe2; text-decoration: none;
  font-weight: 600; font-size: .95rem; border-radius: 4px;
}
.menu a:hover { color: #fff; background: rgba(255,255,255,.08); }

.header-updated {
  font-size: .82rem; color: #aab2bf; white-space: nowrap;
}

.burger {
  display: none; background: none; border: 1px solid #3a414d; color: #fff;
  border-radius: 4px; padding: 7px 11px; cursor: pointer;
}

@media (max-width: 960px) {
  .header-updated { display: none; }
  .burger { display: inline-block; }
  .menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; background: var(--dark-2); padding: 8px var(--gutter) 14px;
    border-top: 1px solid #3a414d;
  }
  .menu.open { display: flex; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative; color: #fff;
  background: #1a1d24 url("/assets/img/hero.jpg") center 40% / cover no-repeat;
  min-height: 520px;
  display: flex; align-items: center;
}

@media (max-width: 720px) {
  .hero { background-image: url("/assets/img/hero-1280.jpg"); }
}

.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14,17,23,.88) 0%, rgba(14,17,23,.7) 45%, rgba(14,17,23,.3) 75%, rgba(14,17,23,.12) 100%),
    linear-gradient(180deg, rgba(14,17,23,.15), rgba(14,17,23,.5));
}

.hero .wrap {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 40px; align-items: center;
  padding: 56px 0;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  font-weight: 600;
  margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}

.hero .lede { font-size: 1.15rem; color: #e4e8ee; max-width: 36em; margin-bottom: 18px; }

.byline {
  display: flex; flex-wrap: wrap; gap: 6px 0; font-size: .92rem; color: #c3c9d3; margin: 0 0 22px;
}
.byline span + span::before { content: "|"; margin: 0 10px; color: #6b7482; }
@media (max-width: 600px) {
  .byline { flex-direction: column; gap: 2px; }
  .byline span + span::before { content: none; }
}
.byline b { color: #fff; font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.pick-card {
  background: rgba(255,255,255,.96); color: var(--text);
  border-radius: var(--r); overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.pick-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.pick-card .inner { padding: 16px 18px 18px; }
.pick-card .tag {
  display: inline-block; background: var(--amber); color: #2b1d00;
  font-size: .78rem; font-weight: 700; padding: 3px 8px; border-radius: 3px; margin-bottom: 8px;
}
.pick-card h3 { margin: 0 0 6px; font-size: 1.45rem; }
.pick-card p { font-size: .95rem; color: var(--muted); margin-bottom: 12px; }
.pick-card .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .pick-card { max-width: 440px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 4px; border: 1px solid transparent;
  font-weight: 700; font-size: .98rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .12s, border-color .12s;
}
.btn-play { background: var(--green); border-color: var(--green); color: #fff; }
.btn-play:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-light { background: #fff; border-color: var(--line); color: var(--text); }
.btn-light:hover { border-color: #b8bfc9; color: var(--text); }
.btn-sm { padding: 7px 12px; font-size: .9rem; }
.btn-lg { padding: 13px 24px; font-size: 1.05rem; }

/* ---------- Score + stars ---------- */

.score {
  font-family: var(--head); font-weight: 600; line-height: 1;
  display: inline-flex; align-items: baseline; gap: 2px;
}
.score small { font-size: .55em; color: var(--muted); font-weight: 500; }
.score-lg { font-size: 2.6rem; }
.score-md { font-size: 1.7rem; }

.stars {
  position: relative; display: inline-block; font-size: 1rem; line-height: 1;
  letter-spacing: 2px; color: #cfd4db; white-space: nowrap;
}
.stars::before { content: "★★★★★"; }
.stars i {
  position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap;
  width: var(--w, 0%); color: var(--amber);
}
.stars i::before { content: "★★★★★"; }

/* ---------- Layout with sidebar ---------- */

.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px;
  padding: 44px 0 64px;
}
.main { min-width: 0; }
.sidebar { min-width: 0; }
.sidebar-inner { position: sticky; top: 80px; display: grid; gap: 22px; }

@media (max-width: 1024px) {
  .layout { grid-template-columns: 1fr; gap: 32px; }
  .sidebar-inner { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .toc { display: none; }
}

.box {
  border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 18px 20px;
}
.box h3 { font-size: 1.15rem; margin-bottom: 10px; }

.toc ol { margin: 0; padding: 0; list-style: none; }
.toc li { border-top: 1px solid var(--line); }
.toc li:first-child { border-top: 0; }
.toc a { display: block; padding: 7px 0; color: var(--text); text-decoration: none; font-size: .95rem; }
.toc a:hover { color: var(--link); }
.toc ol ol { margin-left: 14px; }
.toc ol ol li { border-top: 0; }
.toc ol ol a { padding: 3px 0; font-size: .9rem; color: var(--muted); }

.top-pick img { border-radius: 4px; aspect-ratio: 16/9; object-fit: cover; margin-bottom: 12px; }
.top-pick .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.top-pick p { font-size: .93rem; color: var(--muted); margin-bottom: 12px; }
.top-pick .btn { width: 100%; }

.changelog { font-size: .92rem; }
.changelog li { margin: 0 0 8px; }
.changelog time { display: block; color: var(--muted); font-size: .84rem; }
.changelog ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Section basics ---------- */

.section { margin-bottom: 56px; }
.section > h2 { padding-bottom: 10px; border-bottom: 3px solid var(--dark); margin-bottom: 22px; }
.section .intro { color: var(--muted); font-size: 1.05rem; max-width: 46em; }

/* ---------- Quick picks ---------- */

.picks {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  list-style: none; margin: 0; padding: 0;
}
.picks li { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.picks img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.picks .body { padding: 14px 16px 16px; }
.picks .label { font-size: .8rem; font-weight: 700; color: var(--green); text-transform: none; margin-bottom: 4px; }
.picks h3 { font-size: 1.25rem; margin-bottom: 4px; }
.picks p { font-size: .92rem; color: var(--muted); margin-bottom: 10px; }
.picks a.more { font-size: .9rem; font-weight: 600; }

@media (max-width: 720px) { .picks { grid-template-columns: 1fr; } }

/* ---------- Ranking list ---------- */

.ranking { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ranking li {
  display: grid; grid-template-columns: 34px 168px minmax(0, 1fr) auto;
  gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line);
}
.ranking .n {
  font-family: var(--head); font-size: 1.6rem; font-weight: 600; color: var(--muted); text-align: center;
}
.ranking li:first-child .n { color: var(--amber); }
.ranking img { aspect-ratio: 16/9; object-fit: cover; border-radius: 4px; width: 100%; }
.ranking h3 { font-size: 1.3rem; margin: 0 0 2px; }
.ranking h3 a { color: var(--text); text-decoration: none; }
.ranking h3 a:hover { color: var(--link); }
.ranking .sub { font-size: .92rem; color: var(--muted); margin: 0 0 6px; }
.ranking .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.ranking .meta span {
  font-size: .78rem; background: var(--band); border: 1px solid var(--line); border-radius: 3px; padding: 1px 7px; color: #444;
}
.ranking .right { text-align: right; display: grid; gap: 6px; justify-items: end; }
.ranking .right .stars { font-size: .85rem; }

@media (max-width: 720px) {
  .ranking li { grid-template-columns: 28px minmax(0, 1fr); grid-template-areas: "n img" "n body" "n right"; }
  .ranking .n { grid-area: n; align-self: start; }
  .ranking img { grid-area: img; max-width: 260px; }
  .ranking .body { grid-area: body; }
  .ranking .right { grid-area: right; justify-items: start; text-align: left; }
}

/* ---------- Reviews ---------- */

.review { margin-bottom: 64px; }
.review > h2 { border-bottom: 0; padding-bottom: 0; margin-bottom: 6px; font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.review .kicker { color: var(--muted); font-size: 1.02rem; margin-bottom: 18px; }

.review figure { margin: 0 0 22px; }
.review figure img { width: 100%; border-radius: var(--r); aspect-ratio: 16/9; object-fit: cover; }
.review figcaption { font-size: .84rem; color: var(--muted); margin-top: 6px; }

.ratebox {
  float: right; width: 270px; margin: 4px 0 18px 28px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--band); padding: 16px 18px;
  font-size: .93rem;
}
.ratebox .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.ratebox .verdict-line { font-weight: 600; margin-bottom: 12px; }
.ratebox dl { margin: 0 0 14px; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.ratebox dt { color: var(--muted); }
.ratebox dd { margin: 0; }
.ratebox .btn { width: 100%; }
.ratebox .aff { font-size: .78rem; color: var(--muted); margin: 8px 0 0; }
.ratebox .choice {
  display: inline-block; background: var(--amber); color: #2b1d00; font-weight: 700; font-size: .75rem;
  padding: 2px 7px; border-radius: 3px; margin-bottom: 8px;
}

@media (max-width: 720px) {
  .ratebox { float: none; width: auto; margin: 0 0 20px; }
}

.review .body p { max-width: 70ch; }
.review h3 { margin-top: 26px; clear: none; }

.note {
  border-left: 4px solid var(--amber); background: #fff8e6; padding: 12px 16px; margin: 18px 0; font-size: .96rem;
}
.note.blue { border-color: var(--link); background: var(--blue-soft); }

.proscons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 20px 0 22px; clear: both; }
.proscons div { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.proscons h4 { margin: 0 0 8px; font-size: 1rem; }
.proscons ul { margin: 0; padding: 0 0 0 20px; font-size: .96rem; }
.proscons li { margin: 4px 0; }
.proscons .pros h4 { color: var(--green); }
.proscons .cons h4 { color: var(--red); }

@media (max-width: 640px) { .proscons { grid-template-columns: 1fr; } }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 10px; }
.cta-row small { color: var(--muted); font-size: .86rem; }

.share { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--muted); margin-top: 22px; }
.share a { color: var(--muted); }

/* ---------- Choose ---------- */

.choose { list-style: none; margin: 0; padding: 0; }
.choose li { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.choose li:last-child { border-bottom: 0; }
.choose b { font-weight: 700; }
.choose span { color: var(--muted); }

/* ---------- How we test ---------- */

.criteria { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 12px; margin: 20px 0 24px; }
.criteria div { background: var(--band); border-radius: var(--r); padding: 14px 16px; }
.criteria b { display: block; font-family: var(--head); font-size: 1.5rem; font-weight: 600; color: var(--dark); }
.criteria strong { display: block; margin-bottom: 4px; }
.criteria p { font-size: .92rem; color: var(--muted); margin: 0; }

/* ---------- FAQ ---------- */

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; font-size: 1.05rem; list-style: none; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.3rem; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: #3a4048; max-width: 68ch; }

/* ---------- Healthy play ---------- */

.healthy { background: var(--band); border-radius: var(--r); padding: 22px 24px; }
.healthy ul { padding-left: 20px; margin: 0 0 14px; }
.healthy li { margin: 6px 0; }
.healthy .links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .95rem; }

/* ---------- Contact ---------- */

.contact-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--dark); color: #b7bec9; padding: 40px 0 28px; font-size: .92rem; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-family: var(--head); font-weight: 500; font-size: 1.05rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 6px; }
.site-footer a, .site-footer button { color: #d7dbe2; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; }
.site-footer a:hover, .site-footer button:hover { color: #fff; text-decoration: underline; }
.site-footer .bottom { border-top: 1px solid #343a45; margin-top: 28px; padding-top: 18px; font-size: .84rem; color: #8f98a5; }

@media (max-width: 720px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ---------- Dialogs ---------- */

dialog.legal {
  width: min(720px, 100% - 32px); max-height: min(86vh, 900px); border: 0; border-radius: var(--r); padding: 0; color: var(--text);
}
dialog.legal::backdrop { background: rgba(10,12,18,.6); }
dialog.legal:focus, dialog.legal:focus-visible { outline: none; }
.legal-head { position: sticky; top: 0; background: #fff; display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.legal-head h2 { font-size: 1.5rem; margin: 0; }
.legal-body { padding: 6px 24px 28px; font-size: .97rem; }
.legal-body h3 { font-size: 1.1rem; margin: 20px 0 6px; }
.legal-body ul { padding-left: 20px; }
.close { border: 1px solid var(--line); background: var(--band); border-radius: 4px; padding: 6px 12px; cursor: pointer; }

/* ---------- Cookie bar ---------- */

.cookie {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
  margin: 0 auto; max-width: 720px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(0,0,0,.25); border-radius: var(--r); padding: 14px 16px;
  display: none; gap: 12px 18px; align-items: center; flex-wrap: wrap; font-size: .92rem;
}
.cookie.show { display: flex; }
.cookie p { flex: 1 1 300px; margin: 0; }
.cookie .acts { display: flex; gap: 8px; }
.linkish { background: none; border: 0; padding: 0; color: var(--link); text-decoration: underline; cursor: pointer; font: inherit; }
.linkish:hover { color: #083f93; }

.back-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 35; display: none;
  width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--dark-2); color: #fff; cursor: pointer; font-size: 1.1rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.back-top.show { display: block; }
