/* =========================================================================
   slotrankfa.com — design system
   Direction: consumer ranking publication. Cream paper, serif display type,
   double rules, burgundy + gold, rank medallions and verdict boxes.
   ========================================================================= */

:root {
  --paper: #fbf9f4;
  --paper-2: #ffffff;
  --paper-3: #f2ece0;
  --rule: #ddd4c2;
  --rule-2: #c3b79e;
  --ink: #1a1a18;
  --ink-2: #45423c;
  --dim: #7a7364;
  --wine: #8e2b3e;
  --wine-2: #a8394d;
  --gold: #b08a3e;
  --green: #4a7c52;
  --r-s: 3px;
  --r-m: 6px;
  --wrap: 1120px;
  --measure: 68ch;
  --fs-xs: 0.8rem;
  --fs-s: 0.92rem;
  --fs-b: 1.06rem;
  --fs-h3: 1.25rem;
  --fs-h2: 1.7rem;
  --fs-h1: clamp(1.9rem, 1.2rem + 2.8vw, 3rem);
  --serif: "Noto Naskh Arabic", "Geeza Pro", "Scheherazade New", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Tahoma, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--fs-b);
  line-height: 1.95;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; }
a { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--wine-2); }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.4; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1.05em; }
ul, ol { padding-inline-start: 1.35rem; margin: 0 0 1.1em; }
li { margin-bottom: 0.45em; }
code { font-family: ui-monospace, Menlo, monospace; font-size: 0.84em; background: var(--paper-3); padding: 0.08em 0.35em; border-radius: 2px; }
table { border-collapse: collapse; width: 100%; }
.dim { color: var(--dim); }
.unk { color: var(--dim); font-family: var(--sans); font-size: var(--fs-xs); font-style: italic; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 1.1rem; }
.skip { position: absolute; inset-inline-start: -9999px; background: var(--wine); color: #fff; padding: 0.6rem 1rem; z-index: 100; }
.skip:focus { inset-inline-start: 0; }

/* --------------------------------------------------------------- masthead */
.masthead { background: var(--paper-2); border-bottom: 3px double var(--gold); text-align: center; padding-top: 0.9rem; }
.masthead-edition { font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.16em; color: var(--dim); text-transform: uppercase; margin: 0 0 0.5rem; }
.masthead-brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.masthead-brand:hover { color: var(--ink); }
.masthead-name { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.3rem); font-weight: 700; letter-spacing: -0.01em; }
.masthead-tag { font-family: var(--sans); font-size: var(--fs-xs); color: var(--dim); margin: 0.25rem 0 0.9rem; }

.mainnav { border-top: 1px solid var(--rule); background: var(--paper-2); position: sticky; top: 0; z-index: 50; }
.mainnav .wrap { display: flex; justify-content: center; }
.nav-toggle { display: block; margin: 0.5rem auto; font: inherit; font-family: var(--sans); font-size: var(--fs-s); background: none; border: 1px solid var(--rule-2); border-radius: var(--r-s); padding: 0.35rem 1rem; cursor: pointer; color: var(--ink); }
.mainnav ul { display: none; list-style: none; margin: 0; padding: 0 0 0.6rem; flex-direction: column; width: 100%; text-align: center; }
.mainnav ul.is-open { display: flex; }
.mainnav a { display: block; font-family: var(--sans); font-size: var(--fs-s); padding: 0.5rem; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--paper-3); }
.mainnav a[aria-current="page"] { color: var(--wine); font-weight: 700; }
@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .mainnav ul { display: flex !important; flex-direction: row; justify-content: center; gap: 1.6rem; padding: 0.55rem 0; width: auto; }
  .mainnav a { border: 0; padding: 0.1rem 0; font-size: 0.88rem; letter-spacing: 0.01em; }
  .mainnav a:hover { color: var(--wine); }
}

/* ------------------------------------------------------------- breadcrumb */
.crumbs { border-bottom: 1px solid var(--rule); background: var(--paper); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0.4rem 0; margin: 0; font-family: var(--sans); font-size: var(--fs-xs); color: var(--dim); }
.crumbs li + li::before { content: "›"; margin-inline-end: 0.35rem; color: var(--rule-2); }
.crumbs a { color: var(--dim); text-decoration: none; }
.crumbs a:hover { color: var(--wine); text-decoration: underline; }

/* ------------------------------------------------------------------ layout */
.sec { max-width: var(--wrap); margin-inline: auto; padding: 2.4rem 1.1rem; }
.sec + .sec { padding-top: 0.5rem; }
.sec-lead { color: var(--ink-2); max-width: var(--measure); font-size: 1.04rem; }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 1.8em; padding-top: 0.7em; border-top: 1px solid var(--rule); }
.prose h3 { margin-top: 1.4em; color: var(--wine); font-size: var(--fs-b); }
.prose p:first-of-type::first-letter { }

/* eyebrow / kicker above headings */
.kicker { font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--wine); margin: 0 0 0.5rem; display: block; }
.rule { border: 0; border-top: 3px double var(--gold); margin: 2rem 0; }

/* ------------------------------------------------------------------- lead */
.lede { border-bottom: 3px double var(--gold); padding-bottom: 1.6rem; }
.lede-in { max-width: var(--wrap); margin-inline: auto; padding: 2rem 1.1rem 0; }
.lede h1 { max-width: 20ch; }
.lede .standfirst { font-size: 1.14rem; color: var(--ink-2); max-width: var(--measure); }
.byline { font-family: var(--sans); font-size: var(--fs-xs); color: var(--dim); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 0.5rem 0; margin: 1.2rem 0 0; display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* ----------------------------------------------------------------- podium */
.podium { display: grid; gap: 1rem; }
@media (min-width: 860px) { .podium { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.pod { background: var(--paper-2); border: 1px solid var(--rule); padding: 1.2rem; text-align: center; position: relative; }
.pod:first-child { border-color: var(--gold); border-width: 2px; }
.pod-rank { font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.pod-medal { width: 54px; height: 54px; margin: 0.5rem auto 0.7rem; border-radius: 50%; border: 2px solid var(--gold); display: grid; place-items: center; font-size: 1.5rem; font-weight: 700; color: var(--wine); background: var(--paper); }
.pod:first-child .pod-medal { background: var(--gold); color: #fff; border-color: var(--gold); }
.pod img { margin: 0 auto 0.7rem; display: block; }
.pod h3 { margin: 0 0 0.3rem; font-size: var(--fs-h3); }
.pod h3 a { text-decoration: none; color: var(--ink); }
.pod-score { font-family: var(--sans); font-size: 1.5rem; font-weight: 700; color: var(--wine); line-height: 1; }
.pod-score small { display: block; font-size: 0.6rem; color: var(--dim); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 400; margin-top: 0.2rem; }
.pod-verdict { font-size: var(--fs-s); color: var(--ink-2); margin: 0.7rem 0; }
.pod .btn { width: 100%; }

/* ------------------------------------------------------------------ tables */
.tablewrap { overflow-x: auto; border: 1px solid var(--rule); background: var(--paper-2); }
.rtable { font-family: var(--sans); font-size: var(--fs-s); min-width: 820px; }
.rtable caption { text-align: start; font-size: var(--fs-xs); color: var(--dim); padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--rule); background: var(--paper-3); }
.rtable th, .rtable td { padding: 0.6rem 0.75rem; text-align: start; border-bottom: 1px solid var(--rule); }
.rtable thead th { background: var(--paper-3); font-size: var(--fs-xs); font-weight: 700; color: var(--ink-2); border-bottom: 2px solid var(--rule-2); }
.rtable tbody tr:nth-child(odd) { background: rgba(242, 236, 224, 0.4); }
.rtable td.rank { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; color: var(--wine); text-align: center; width: 3rem; }
.rtable td.n, .rtable th.n { text-align: center; font-variant-numeric: tabular-nums; }
.rtable .brandcell { display: flex; align-items: center; gap: 0.55rem; }
.rtable .brandcell a { text-decoration: none; font-weight: 700; color: var(--ink); }
.rtable .brandcell a:hover { color: var(--wine); text-decoration: underline; }
.rtable tfoot td { font-size: var(--fs-xs); color: var(--dim); background: var(--paper-3); }
.brand-logo { background: #fff; border: 1px solid var(--rule); padding: 3px 5px; max-height: 38px; width: auto; object-fit: contain; }

/* score bar inside a cell */
.sbar { display: inline-flex; align-items: center; gap: 0.4rem; }
.sbar-t { width: 46px; height: 5px; background: var(--paper-3); border: 1px solid var(--rule); }
.sbar-t i { display: block; height: 100%; background: var(--wine); }
.sbar-v { font-variant-numeric: tabular-nums; font-size: var(--fs-xs); }

/* --------------------------------------------------------- review article */
.review-head { display: grid; gap: 1rem; border-bottom: 3px double var(--gold); padding-bottom: 1.4rem; margin-bottom: 1.6rem; }
@media (min-width: 780px) { .review-head { grid-template-columns: 1fr 240px; align-items: start; } }
.verdict { background: var(--paper-2); border: 2px solid var(--wine); padding: 1.1rem; }
.verdict h2 { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--wine); margin: 0 0 0.6rem; }
.verdict-score { font-family: var(--sans); font-size: 2.6rem; font-weight: 700; color: var(--wine); line-height: 1; }
.verdict-score small { font-size: 0.9rem; color: var(--dim); font-weight: 400; }
.verdict-rank { font-family: var(--sans); font-size: var(--fs-xs); color: var(--dim); margin: 0.3rem 0 0.8rem; }
.verdict dl { margin: 0; font-family: var(--sans); font-size: var(--fs-xs); }
.verdict dl > div { display: flex; justify-content: space-between; gap: 0.6rem; padding: 0.25rem 0; border-bottom: 1px dotted var(--rule); }
.verdict dt { color: var(--dim); margin: 0; }
.verdict dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }

.proscons { display: grid; gap: 1rem; }
@media (min-width: 720px) { .proscons { grid-template-columns: repeat(2, 1fr); } }
.pc { background: var(--paper-2); border: 1px solid var(--rule); padding: 1rem 1.1rem; }
.pc h3 { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 0.6rem; }
.pc.pro { border-inline-start: 4px solid var(--green); }
.pc.pro h3 { color: var(--green); }
.pc.con { border-inline-start: 4px solid var(--wine); }
.pc.con h3 { color: var(--wine); }
.pc ul { margin: 0; font-size: var(--fs-s); }

/* ------------------------------------------------------------------ cards */
.cards { display: grid; gap: 1.1rem; }
@media (min-width: 720px) { .cards.c2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards.c3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--paper-2); border: 1px solid var(--rule); padding: 1.1rem 1.2rem; }
.card h3 { margin-top: 0; }
.card h3 a { text-decoration: none; color: var(--ink); }
.card h3 a:hover { color: var(--wine); text-decoration: underline; }
.card p { font-size: var(--fs-s); color: var(--ink-2); }
.card-meta { font-family: var(--sans); font-size: var(--fs-xs); color: var(--dim); border-top: 1px solid var(--rule); padding-top: 0.5rem; margin-top: 0.7rem; }

/* review list entry */
.entry { display: grid; gap: 0.9rem; padding: 1.2rem 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 780px) { .entry { grid-template-columns: 52px 130px 1fr 150px; align-items: center; } }
.entry-rank { font-size: 1.7rem; font-weight: 700; color: var(--wine); text-align: center; }
.entry h3 { margin: 0 0 0.2rem; }
.entry h3 a { text-decoration: none; color: var(--ink); }
.entry p { margin: 0; font-size: var(--fs-s); color: var(--ink-2); }
.entry-meta { font-family: var(--sans); font-size: var(--fs-xs); color: var(--dim); margin-top: 0.35rem; }
.entry-score { text-align: center; font-family: var(--sans); }
.entry-score b { display: block; font-size: 1.6rem; color: var(--wine); line-height: 1; }
.entry-score span { font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }

/* ----------------------------------------------------------------- buttons */
.btn, .btn-2, .btn-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  font-family: var(--sans); font-weight: 700; font-size: var(--fs-s); border-radius: var(--r-s);
  padding: 0.6rem 1.3rem; cursor: pointer; border: 1px solid transparent; text-decoration: none; min-height: 44px;
}
.btn, .btn-cta { background: var(--wine); color: #fff; }
.btn:hover, .btn-cta:hover { background: var(--wine-2); color: #fff; text-decoration: none; }
.btn-2 { background: var(--paper-2); color: var(--ink); border-color: var(--rule-2); }
.btn-2:hover { border-color: var(--wine); color: var(--wine); text-decoration: none; }

/* ------------------------------------------------------------------- notes */
.note { background: var(--paper-2); border: 1px solid var(--rule); border-inline-start: 4px solid var(--gold); padding: 1rem 1.15rem; margin: 1.4rem 0; font-size: var(--fs-s); }
.note h3 { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin: 0 0 0.5rem; }
.note.warn { border-inline-start-color: var(--wine); }
.note.warn h3 { color: var(--wine); }
.note p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------- faq */
.qs { border-top: 1px solid var(--rule); }
.q { border-bottom: 1px solid var(--rule); }
.q summary { cursor: pointer; padding: 0.85rem 0; list-style: none; display: flex; gap: 0.6rem; align-items: baseline; }
.q summary::-webkit-details-marker { display: none; }
.q summary::after { content: "＋"; margin-inline-start: auto; color: var(--gold); font-family: var(--sans); }
.q[open] summary::after { content: "－"; }
.q summary h3 { margin: 0; font-size: var(--fs-b); font-weight: 700; }
.q .a { padding: 0 0 1rem; font-size: var(--fs-s); color: var(--ink-2); max-width: var(--measure); }
.q .a p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ related */
.related { border-top: 3px double var(--gold); padding-top: 1.2rem; }
.related ul { list-style: none; padding: 0; display: grid; gap: 0.7rem; }
@media (min-width: 720px) { .related ul { grid-template-columns: repeat(2, 1fr); } }
.related a { display: block; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--rule); padding-bottom: 0.5rem; }
.related a:hover strong { color: var(--wine); text-decoration: underline; }
.related strong { display: block; font-size: var(--fs-s); }
.related span { font-family: var(--sans); font-size: var(--fs-xs); color: var(--dim); }

/* --------------------------------------------------------------- comments */
.comments { max-width: 780px; }
.cmt { border-bottom: 1px solid var(--rule); padding: 0.9rem 0; }
.cmt-head { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; font-family: var(--sans); font-size: var(--fs-s); }
.cmt-head strong { font-weight: 700; }
.cmt-head time { margin-inline-start: auto; font-size: var(--fs-xs); color: var(--dim); }
.cmt-topic { font-size: var(--fs-xs); background: var(--paper-3); padding: 0.05rem 0.5rem; color: var(--dim); }
.cmt-brand { font-size: var(--fs-xs); color: var(--dim); }
.cmt-body { margin: 0.35rem 0 0; font-size: var(--fs-s); color: var(--ink-2); }
.cmt.is-pending { border: 1px dashed var(--gold); background: var(--paper-2); padding: 0.9rem 1rem; }
.cmt-pending { font-family: var(--sans); font-size: var(--fs-xs); color: var(--gold); margin: 0.3rem 0 0; }
.stars { color: var(--gold); letter-spacing: 2px; }
.cmt-form { background: var(--paper-2); border: 1px solid var(--rule); padding: 1.2rem; margin-top: 1.5rem; }
.cmt-form h3 { margin-top: 0; }
.f-row { display: grid; gap: 0.3rem; margin-bottom: 0.85rem; }
.f-row label { font-family: var(--sans); font-size: var(--fs-s); font-weight: 700; }
.f-row input, .f-row select, .f-row textarea { font: inherit; font-family: var(--sans); font-size: var(--fs-s); background: var(--paper); border: 1px solid var(--rule-2); border-radius: var(--r-s); padding: 0.55rem 0.7rem; width: 100%; color: var(--ink); }
.f-row textarea { resize: vertical; }
.f-msg { font-family: var(--sans); font-size: var(--fs-s); color: var(--green); min-height: 1.2em; margin: 0.6rem 0 0; }

/* ------------------------------------------------------------------ footer */
.site-foot { background: var(--paper-2); border-top: 3px double var(--gold); margin-top: 3rem; padding: 2rem 0 1.4rem; }
.foot-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 780px) { .foot-grid { grid-template-columns: repeat(4, 1fr); } }
.foot-col h2 { font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wine); margin-bottom: 0.5rem; }
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin-bottom: 0.28rem; }
.foot-col a { font-family: var(--sans); font-size: var(--fs-xs); color: var(--ink-2); text-decoration: none; }
.foot-col a:hover { color: var(--wine); text-decoration: underline; }
.foot-note { border-top: 1px solid var(--rule); margin-top: 1.6rem; padding-top: 1rem; font-family: var(--sans); font-size: var(--fs-xs); color: var(--dim); }
.foot-note p { margin-bottom: 0.5em; }

/* -------------------------------------------------------------------- 404 */
.e404 { text-align: center; padding: 4rem 1.1rem; }
.e404 .code { font-size: 4.4rem; color: var(--wine); line-height: 1; margin: 0; }
