/* ==========================================================================
   Nye Casino Norge – layout + review content styles
   Alt innhold inne i <div class="review-body"> styles automatisk:
   h2, h3, h4, p, ul, ol, table, blockquote, img, a, strong, hr – uten klasser/id.
   ========================================================================== */

:root {
  --ink: #1f2427;
  --ink-soft: #4a5257;
  --paper: #f7f4ee;
  --card: #ffffff;
  --line: #e4ddd0;
  --emerald: #0f2e28;
  --emerald-2: #16413a;
  --gold: #b8924a;
  --gold-soft: #efe4cc;
  --radius: 10px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--emerald-2); }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--emerald);
  border-bottom: 2px solid var(--gold);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 16px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none;
  font: 600 21px/1 var(--serif); letter-spacing: .3px;
}
.logo-mark {
  width: 30px; height: 30px; flex: 0 0 30px;
  border: 1.5px solid var(--gold); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 15px;
}
.logo span.accent { color: var(--gold); }
.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav a {
  color: #f3ead6; text-decoration: none;
  font-size: 14px; letter-spacing: 1.2px; text-transform: uppercase;
}
.site-nav a:hover { color: var(--gold); }
.age-badge {
  font-size: 12px; font-weight: 700; color: var(--emerald);
  background: var(--gold); border-radius: 4px; padding: 3px 7px; line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--emerald) 0%, var(--emerald-2) 100%);
  color: #fff;
  padding: 54px 0 92px;
}
.hero .eyebrow {
  margin: 0 0 14px; color: var(--gold);
  font-size: 13px; letter-spacing: 2.4px; text-transform: uppercase;
}
.hero h1 {
  margin: 0; max-width: 860px;
  font: 600 clamp(30px, 4.6vw, 48px)/1.15 var(--serif);
}
.meta {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin-top: 22px; color: #cfd8d4; font-size: 14px;
}
.meta strong { color: #fff; font-weight: 600; }
.meta .dot { color: var(--gold); }

/* ---------- Layout ---------- */
.layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 34px;
  margin-top: -56px;
  padding-bottom: 70px;
}

/* ---------- TOC ---------- */
.toc {
  align-self: start;
  position: sticky; top: calc(var(--header-h) + 20px);
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 20px 20px 16px;
  max-height: calc(100vh - var(--header-h) - 40px);
  overflow-y: auto;
}
.toc-title {
  margin: 0 0 12px;
  font: 600 18px/1.3 var(--serif); color: var(--emerald);
}
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; border-top: 1px solid #f0ebe1; }
.toc li:first-child { border-top: 0; }
.toc a {
  display: flex; gap: 10px;
  padding: 8px 0;
  color: var(--ink-soft); text-decoration: none;
  font-size: 14px; line-height: 1.4;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--gold); font-weight: 600; font-size: 12px; padding-top: 1px;
}
.toc a:hover { color: var(--emerald); }
.toc details summary { display: none; }

/* ---------- Article card ---------- */
.review {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 52px 50px;
  box-shadow: 0 10px 30px rgba(15, 46, 40, .06);
  min-width: 0;
}

/* ==========================================================================
   Review content – automatic styles (no classes needed)
   ========================================================================== */
.review-body { color: var(--ink); }
.review-body > :first-child { margin-top: 0; }

.review-body h1,
.review-body h2,
.review-body h3,
.review-body h4 {
  font-family: var(--serif);
  color: var(--emerald);
  line-height: 1.25;
  font-weight: 600;
  scroll-margin-top: calc(var(--header-h) + 18px);
}
.review-body h1 { font-size: 34px; margin: 0 0 22px; }
.review-body h2 {
  font-size: 29px;
  margin: 54px 0 18px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  position: relative;
}
.review-body h2::before {
  content: ""; position: absolute; top: -1px; left: 0;
  width: 64px; height: 3px; background: var(--gold);
}
.review-body h3 { font-size: 22px; margin: 36px 0 12px; }
.review-body h4 { font-size: 18px; margin: 28px 0 10px; }

.review-body p { margin: 0 0 18px; }
.review-body strong, .review-body b { color: #111; font-weight: 650; }
.review-body a { color: var(--emerald-2); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }

/* Lists */
.review-body ul,
.review-body ol { margin: 0 0 22px; padding: 0; list-style: none; }
.review-body li { position: relative; margin: 0 0 10px; padding-left: 30px; }
.review-body ul > li::before {
  content: ""; position: absolute; left: 6px; top: .68em;
  width: 8px; height: 8px; transform: rotate(45deg);
  background: var(--gold);
}
.review-body ol { counter-reset: ol; }
.review-body ol > li { counter-increment: ol; padding-left: 40px; }
.review-body ol > li::before {
  content: counter(ol);
  position: absolute; left: 0; top: .15em;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--emerald); color: var(--gold);
  font: 600 13px/26px var(--sans); text-align: center;
}
.review-body li > ul, .review-body li > ol { margin: 10px 0 0; }

/* Tables (scroll horizontally on small screens, no wrapper needed) */
.review-body table {
  width: 100%;
  margin: 8px 0 28px;
  border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  font-size: 15px; line-height: 1.5;
}
.review-body thead th {
  background: var(--emerald); color: #fff;
  font-weight: 600; text-align: left;
  padding: 13px 16px;
  border-bottom: 2px solid var(--gold);
  white-space: nowrap;
}
.review-body td,
.review-body tbody th { padding: 12px 16px; border-top: 1px solid #efe9de; vertical-align: top; text-align: left; }
.review-body tbody tr:first-child td { border-top: 0; }
.review-body tbody tr:nth-child(even) { background: #faf8f3; }
.review-body td:first-child { font-weight: 600; color: var(--emerald); }

/* Quotes, images, misc */
.review-body blockquote {
  margin: 0 0 24px; padding: 18px 22px;
  background: var(--gold-soft); border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}
.review-body blockquote p:last-child { margin-bottom: 0; }
.review-body img { max-width: 100%; height: auto; display: block; margin: 0 auto 22px; border-radius: var(--radius); }
.review-body figure { margin: 0 0 24px; }
.review-body figcaption { font-size: 14px; color: var(--ink-soft); text-align: center; margin-top: -12px; }
.review-body hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.review-body code { background: #f1ede4; padding: 2px 6px; border-radius: 4px; font-size: .9em; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--emerald); color: #c7d1cd;
  border-top: 2px solid var(--gold);
  padding: 44px 0 30px; font-size: 14px; line-height: 1.6;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; }
.site-footer .logo { margin-bottom: 14px; }
.site-footer p { margin: 0 0 10px; max-width: 520px; }
.site-footer a { color: #f3ead6; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-title { color: var(--gold); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; margin: 0 0 12px; }
.footer-bottom {
  margin-top: 30px; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  font-size: 13px; color: #9fb0aa;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .toc { position: static; max-height: none; padding: 0; }
  .toc details summary {
    display: flex; justify-content: space-between; align-items: center;
    list-style: none; cursor: pointer; padding: 16px 20px;
    font: 600 18px/1.3 var(--serif); color: var(--emerald);
  }
  .toc details summary::-webkit-details-marker { display: none; }
  .toc details summary::after { content: "+"; color: var(--gold); font: 400 24px/1 var(--sans); }
  .toc details[open] summary::after { content: "–"; }
  .toc .toc-title { display: none; }
  .toc ol { padding: 0 20px 14px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { padding: 0 14px; }
  .hero { padding: 36px 0 76px; }
  .review { padding: 26px 18px 30px; }
  .review-body h2 { font-size: 24px; margin-top: 42px; padding-top: 24px; }
  .review-body h3 { font-size: 20px; }
  .review-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 14px; }
  .review-body thead th, .review-body td { padding: 10px 12px; }
  .review-body td { min-width: 130px; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-nav { gap: 10px; }
  .site-nav a { font-size: 12px; letter-spacing: .6px; }
  .logo { font-size: 17px; white-space: nowrap; }
  .logo-mark { width: 26px; height: 26px; flex-basis: 26px; font-size: 13px; }
  .age-badge { display: none; }
}
