/* =====================================================================
   CasinoNex.sbs — Bright Modern Swedish Flag Theme
   Palette: Deep blue ink (#003A6B), Swedish blue (#006AA7), Yellow (#FECC00)
   Fonts: Inter (body), DM Serif Display (headings)
   Mobile-first, toplist-forward layout.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Core brand */
  --blue-flag: #006AA7;          /* Swedish flag blue — primary CTAs, links */
  --blue-ink: #003A6B;            /* Headings, deep ink */
  --blue-abyss: #002751;          /* Footer, dark surfaces */
  --blue-soft: #4A8BC2;           /* Hover tints */
  --blue-mist: #D7E6F3;           /* Soft chip backgrounds */
  --blue-wash: #EEF4FA;           /* Section wash */

  --yellow: #FECC00;              /* Swedish flag yellow — accent only */
  --yellow-deep: #E6B800;         /* Hover on yellow */
  --yellow-soft: #FFF6CC;         /* Yellow tinted panels */
  --yellow-ring: #FFE066;         /* Border highlight */

  /* Neutrals */
  --paper: #FFFFFF;
  --paper-2: #F8FAFD;
  --paper-3: #F2F6FB;
  --line: #DCE6F0;
  --line-2: #C7D6E6;
  --ink-1: #0F2744;
  --ink-2: #4A5F79;
  --ink-3: #6B7F94;
  --ink-mute: #93A5B9;

  --success: #0E8A4F;
  --warn: #D97706;
  --danger: #C62828;

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'DM Serif Display', Georgia, serif;

  /* Shape */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  /* Shadows (blue-tinted so they feel on-brand) */
  --shadow-xs: 0 1px 2px rgba(0, 58, 107, .06);
  --shadow-sm: 0 2px 6px rgba(0, 58, 107, .08);
  --shadow-md: 0 8px 24px rgba(0, 58, 107, .10);
  --shadow-lg: 0 18px 40px rgba(0, 58, 107, .14);
  --shadow-hot: 0 10px 30px rgba(254, 204, 0, .25);

  /* Motion */
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Resets ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-1);
  background:
    radial-gradient(1200px 500px at 10% -100px, rgba(0, 106, 167, .08), transparent 70%),
    radial-gradient(900px 420px at 110% 240px, rgba(254, 204, 0, .07), transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, var(--paper-2) 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-flag); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }

/* Selection */
::selection { background: var(--yellow); color: var(--blue-ink); }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding: 44px 0; }
.content { padding: 32px 0 56px; }

@media (min-width: 900px) {
  .container { padding-inline: 32px; }
  .section { padding: 72px 0; }
  .content { padding: 56px 0 96px; }
}

/* ---------- Site header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.site-header .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.site-header .logo img {
  height: 34px;
  width: auto;
  display: block;
}

.nav {
  display: none;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.nav a {
  position: relative;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-1);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -.005em;
  text-decoration: none;
  transition: color .16s var(--ease), background-color .16s var(--ease);
}
.nav a:hover {
  color: var(--blue-flag);
  background: var(--blue-wash);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--yellow);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width .22s var(--ease);
}
.nav a:hover::after { width: 20px; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--blue-ink);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: transform .15s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
.menu-toggle:hover {
  background: var(--blue-wash);
  border-color: var(--blue-flag);
}
.menu-toggle:active { transform: scale(.96); }

@media (min-width: 920px) {
  .nav { display: flex; }
  .menu-toggle { display: none; }
}

/* Mobile nav expanded */
.nav.open {
  display: flex;
  position: absolute;
  top: 100%;
  left: 12px;
  right: 12px;
  flex-direction: column;
  align-items: stretch;
  padding: 10px;
  gap: 2px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--yellow);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.nav.open a {
  padding: 12px 14px;
  border-radius: 8px;
  text-align: left;
  width: 100%;
}

/* ---------- Hero (compact, mobile-first) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 20px 0 18px;
  background:
    linear-gradient(135deg, rgba(0, 106, 167, .05) 0%, rgba(254, 204, 0, .04) 100%),
    linear-gradient(180deg, #FFFFFF 0%, var(--paper-2) 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-flag) 0%, var(--blue-flag) 60%, var(--yellow) 60%, var(--yellow) 100%);
  z-index: 2;
}
.page-hero .container { position: relative; z-index: 2; }

/* Hide the old blob dots entirely */
.page-hero .blob { display: none; }

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.breadcrumbs a {
  color: var(--blue-flag);
  text-decoration: none;
}
.breadcrumbs a:hover { color: var(--blue-ink); text-decoration: underline; }
.breadcrumbs .sep { color: var(--ink-mute); }

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--blue-ink);
  margin: 2px 0 8px;
  max-width: 920px;
}
.page-hero .lead {
  color: var(--ink-2);
  font-size: clamp(.95rem, 2.2vw, 1.1rem);
  line-height: 1.55;
  max-width: 680px;
  margin: 0;
  font-weight: 500;
}

.flag-inline {
  display: inline-block;
  height: .9em;
  width: auto;
  vertical-align: baseline;
  margin: 0 .15em;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 58, 107, .25);
}

@media (min-width: 720px) {
  .page-hero { padding: 44px 0 36px; }
  .breadcrumbs { margin-bottom: 14px; }
}

/* ---------- List heading (section titles above lists) ---------- */
.list-heading {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--blue-ink);
  font-size: clamp(1.3rem, 3.5vw, 1.7rem);
  margin: 24px 0 16px;
  padding-left: 14px;
  position: relative;
  line-height: 1.2;
}
.list-heading::before {
  content: '';
  position: absolute;
  left: 0;
  top: .18em;
  bottom: .18em;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--blue-flag) 0%, var(--yellow) 100%);
}

/* ---------- Featured cards (TOPLIST — the hero of the page) ---------- */
.featured-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 8px 0 32px;
}
@media (min-width: 720px) {
  .featured-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 12px 0 48px;
  }
}
@media (min-width: 980px) {
  .featured-cards { grid-template-columns: repeat(3, 1fr); }
}

.feat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .22s var(--ease);
  overflow: hidden;
}
.feat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-flag), var(--blue-soft));
  opacity: 0;
  transition: opacity .22s var(--ease);
}
.feat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-flag);
}
.feat-card:hover::after { opacity: 1; }

.feat-card.is-hot {
  border-color: var(--yellow-ring);
  background: linear-gradient(180deg, #FFFEF5 0%, var(--paper) 60%);
  box-shadow: var(--shadow-hot);
}
.feat-card.is-hot::before {
  content: 'HETT';
  position: absolute;
  top: 14px;
  right: -32px;
  width: 110px;
  padding: 4px 0;
  text-align: center;
  background: var(--yellow);
  color: var(--blue-ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  transform: rotate(35deg);
  box-shadow: 0 3px 10px rgba(254, 204, 0, .4);
  z-index: 3;
}
.feat-card.is-hot:hover {
  border-color: var(--yellow);
  box-shadow: 0 18px 44px rgba(254, 204, 0, .32);
}

.feat-flame {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font-size: 18px;
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(254, 204, 0, .5);
  animation: flame-pulse 2.2s ease-in-out infinite;
}
@keyframes flame-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.feat-thumb {
  display: block;
  margin: 0 auto 14px;
  padding: 10px 0;
  width: 100%;
  background: var(--paper-3);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.feat-thumb img {
  max-height: 90px;
  width: auto;
  margin: 0 auto;
  display: block;
  object-fit: contain;
}

.feat-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--blue-ink);
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: -.01em;
  margin: 0 0 12px;
}

.feat-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}
.feat-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.45;
}
.feat-list .ico {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-wash);
  color: var(--blue-flag);
  border-radius: 50%;
  font-size: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .005em;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: transform .14s var(--ease), background-color .18s var(--ease), box-shadow .22s var(--ease), color .18s var(--ease);
  line-height: 1.1;
  text-align: center;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--yellow);
  color: var(--blue-ink);
  border-color: var(--yellow);
  box-shadow: 0 4px 14px rgba(254, 204, 0, .35);
  text-transform: none;
}
.btn-primary:hover {
  background: var(--yellow-deep);
  border-color: var(--yellow-deep);
  color: var(--blue-abyss);
  box-shadow: 0 8px 22px rgba(254, 204, 0, .45);
}

.btn-block { width: 100%; }

/* ---------- Trust stats ---------- */
.trust-stats-wrap { padding: 10px 20px 20px; }
.trust-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin: 10px auto 24px;
  max-width: 1000px;
}
.ts-tile {
  background: var(--paper);
  padding: 20px 14px;
  text-align: center;
  transition: background .18s var(--ease);
}
.ts-tile:hover { background: var(--paper-2); }
.ts-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  letter-spacing: -.01em;
  color: var(--blue-flag);
  line-height: 1.1;
  margin-bottom: 4px;
  display: block;
}
.ts-lab {
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  display: block;
}
@media (min-width: 720px) {
  .trust-stats { grid-template-columns: repeat(4, 1fr); }
  .ts-tile { padding: 24px 16px; }
}

/* ---------- TOC ---------- */
.toc {
  position: relative;
  margin: 24px 0 36px;
  padding: 20px 22px 22px;
  background: linear-gradient(180deg, var(--blue-wash) 0%, var(--paper) 100%);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue-flag);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}
.toc-title {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--blue-ink);
  font-size: 1.15rem;
  letter-spacing: -.005em;
  margin: 0 0 12px;
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc-item;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
@media (min-width: 720px) {
  .toc ol { grid-template-columns: 1fr 1fr; gap: 8px 24px; }
}
.toc ol li {
  counter-increment: toc-item;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.4;
}
.toc ol li::before {
  content: counter(toc-item, decimal-leading-zero);
  flex-shrink: 0;
  color: var(--yellow-deep);
  font-weight: 800;
  font-size: 12px;
  font-feature-settings: 'tnum' 1;
  letter-spacing: .04em;
  min-width: 22px;
}
.toc ol li a {
  color: var(--ink-1);
  text-decoration: none;
  transition: color .14s var(--ease);
}
.toc ol li a:hover { color: var(--blue-flag); text-decoration: underline; }

.toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.toc-toggle {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--blue-flag);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
}
.toc-list { padding: 0; margin: 0; }

/* ---------- Content prose ---------- */
.content h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 3.6vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -.012em;
  color: var(--blue-ink);
  margin: 44px 0 14px;
  padding-bottom: 10px;
  position: relative;
}
.content h2::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
}
.content h2:first-child { margin-top: 0; }

.content h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -.005em;
  color: var(--blue-ink);
  margin: 26px 0 10px;
  line-height: 1.3;
}

.content p {
  margin: 0 0 16px;
  color: var(--ink-1);
  font-size: 16px;
  line-height: 1.7;
}
.content p a { font-weight: 600; text-decoration: underline; text-decoration-color: rgba(0, 106, 167, .35); text-underline-offset: 3px; }
.content p a:hover { text-decoration-color: var(--blue-flag); }

.content ul, .content ol {
  margin: 0 0 20px;
  padding-left: 22px;
}
.content ul li, .content ol li {
  margin-bottom: 8px;
  line-height: 1.6;
  color: var(--ink-1);
}
.content ul li::marker { color: var(--blue-flag); }

.content strong { color: var(--blue-ink); font-weight: 700; }

/* ---------- Tables ---------- */
.table-wrap {
  margin: 20px 0 28px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-xs);
  -webkit-overflow-scrolling: touch;
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 540px;
}
.table-wrap th {
  background: var(--blue-ink);
  color: #FFFFFF;
  font-weight: 700;
  text-align: left;
  padding: 12px 14px;
  letter-spacing: .02em;
  font-size: 13px;
  text-transform: uppercase;
  border-bottom: 3px solid var(--yellow);
  vertical-align: middle;
}
.table-wrap td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-1);
  vertical-align: top;
  line-height: 1.5;
}
.table-wrap tr:nth-child(even) td { background: var(--paper-2); }
.table-wrap tr:last-child td { border-bottom: none; }
.table-wrap tr:hover td { background: var(--blue-wash); }

/* ---------- Feature cards (checklist grid) ---------- */
.feature-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 20px 0 28px;
}
@media (min-width: 640px) {
  .feature-cards { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (min-width: 960px) {
  .feature-cards { grid-template-columns: repeat(3, 1fr); }
}
.feature-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  transition: transform .2s var(--ease), border-color .18s var(--ease), box-shadow .22s var(--ease);
  position: relative;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--blue-flag);
  box-shadow: var(--shadow-md);
}
.feature-card .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--yellow-soft);
  color: var(--blue-ink);
  border-radius: 12px;
  font-size: 22px;
  margin-bottom: 12px;
}
.feature-card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--blue-ink);
  font-size: 1.02rem;
  margin: 0 0 6px;
  line-height: 1.3;
}
.feature-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.5;
}

/* ---------- Step grid (numbered testing method) ---------- */
.step-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 22px 0 30px;
  counter-reset: step;
}
@media (min-width: 640px) {
  .step-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .step-grid { grid-template-columns: repeat(3, 1fr); }
}
.step-box {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 20px 20px;
  padding-top: 44px;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .22s var(--ease);
}
.step-box:hover {
  transform: translateY(-3px);
  border-color: var(--blue-flag);
  box-shadow: var(--shadow-md);
}
.step-num {
  position: absolute;
  top: -14px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--blue-flag);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 106, 167, .35);
  border: 3px solid var(--paper);
}
.step-box h3 {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--blue-ink);
  font-size: 1.02rem;
  margin: 0 0 8px;
  line-height: 1.3;
}
.step-box p {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
}

/* ---------- Pros & Cons ---------- */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 22px 0 28px;
}
@media (min-width: 720px) {
  .pros-cons { grid-template-columns: 1fr 1fr; gap: 20px; }
}
.pros, .cons {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 20px 18px;
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
}
.pros { border-top: 4px solid var(--success); }
.cons { border-top: 4px solid var(--warn); }
.pros h3, .cons h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pros h3 { color: var(--success); }
.cons h3 { color: var(--warn); }
.pros h3::before {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--success);
  color: #FFFFFF;
  font-weight: 800;
  border-radius: 50%;
  font-size: 14px;
}
.cons h3::before {
  content: '!';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--warn);
  color: #FFFFFF;
  font-weight: 800;
  border-radius: 50%;
  font-size: 14px;
}
.pros ul, .cons ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pros ul li, .cons ul li {
  padding: 6px 0 6px 24px;
  position: relative;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-1);
  border-bottom: 1px dashed var(--line);
}
.pros ul li:last-child, .cons ul li:last-child { border-bottom: none; }
.pros ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 6px;
  color: var(--success);
  font-weight: 800;
}
.cons ul li::before {
  content: '×';
  position: absolute;
  left: 0;
  top: 4px;
  color: var(--warn);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.3;
}

/* ---------- Callout ---------- */
.callout {
  margin: 24px 0;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--blue-flag);
  background: var(--blue-wash);
  box-shadow: var(--shadow-xs);
}
.callout h3 {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--blue-ink);
  font-size: 1.02rem;
  margin: 0 0 8px;
}
.callout p { margin: 0; color: var(--ink-1); font-size: 14.8px; line-height: 1.6; }
.callout.is-warning {
  background: linear-gradient(180deg, #FFF8E0 0%, #FFFEF5 100%);
  border-left-color: var(--yellow-deep);
}
.callout.is-warning h3 { color: var(--blue-ink); }

/* ---------- FAQ ---------- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0 28px;
}
.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .18s var(--ease), box-shadow .22s var(--ease);
}
.faq-item[open] {
  border-color: var(--blue-flag);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--blue-ink);
  list-style: none;
  position: relative;
  transition: background .18s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--yellow);
  color: var(--blue-ink);
  border-radius: 50%;
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  transition: transform .25s var(--ease), background .18s var(--ease);
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
  background: var(--blue-flag);
  color: #FFFFFF;
}
.faq-item summary:hover { background: var(--blue-wash); }
.faq-answer {
  padding: 2px 20px 18px;
  color: var(--ink-1);
  font-size: 15px;
  line-height: 1.65;
  border-top: 1px solid var(--line);
  margin-top: 0;
}
.faq-answer p { margin: 10px 0 0; }
.faq-answer p:first-child { margin-top: 10px; }

/* ---------- Author box ---------- */
.author-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 24px 22px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--blue-wash) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin: 20px 0;
  position: relative;
  overflow: hidden;
}
.author-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, var(--blue-flag) 0%, var(--yellow) 100%);
}
@media (min-width: 640px) {
  .author-box {
    grid-template-columns: auto 1fr;
    gap: 24px;
    padding: 28px 28px 28px 34px;
    align-items: start;
  }
}
.author-avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--paper);
  box-shadow: 0 6px 18px rgba(0, 58, 107, .18);
  justify-self: start;
}
.author-info { min-width: 0; }
.author-eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-flag);
  background: var(--yellow-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.author-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 4px;
}
.author-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--blue-ink);
  margin: 0;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.author-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-flag);
  color: #FFFFFF;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s var(--ease);
}
.author-email-btn:hover {
  background: var(--blue-ink);
  color: #FFFFFF;
  text-decoration: none;
}
.author-role {
  display: block;
  color: var(--ink-3);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: 10px;
}
.author-bio {
  color: var(--ink-1);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

/* ---------- Related guides grid ---------- */
.related-title {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--blue-ink);
  font-size: clamp(1.3rem, 3.4vw, 1.75rem);
  margin: 10px 0 18px;
  padding-left: 14px;
  position: relative;
  line-height: 1.2;
}
.related-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: .18em;
  bottom: .18em;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--blue-flag) 0%, var(--yellow) 100%);
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
@media (min-width: 560px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .related-grid { grid-template-columns: repeat(3, 1fr); }
}
.related-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: transform .2s var(--ease), border-color .18s var(--ease), box-shadow .22s var(--ease);
  position: relative;
  overflow: hidden;
}
.related-card::after {
  content: '→';
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: var(--blue-flag);
  font-size: 20px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .2s var(--ease), transform .22s var(--ease);
}
.related-card:hover {
  transform: translateY(-3px);
  border-color: var(--blue-flag);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.related-card:hover::after { opacity: 1; transform: translateX(0); }
.r-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--blue-flag);
  background: var(--blue-wash);
  padding: 3px 8px;
  border-radius: 4px;
  align-self: flex-start;
}
.r-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--blue-ink);
  line-height: 1.25;
  letter-spacing: -.005em;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 60px;
  background:
    linear-gradient(135deg, var(--blue-abyss) 0%, var(--blue-ink) 100%);
  color: #CFDEEE;
  padding: 48px 0 24px;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-flag) 0%, var(--blue-flag) 60%, var(--yellow) 60%, var(--yellow) 100%);
}
.site-footer .container { position: relative; }
.site-footer .logo img {
  height: 36px;
  width: auto;
}
.site-footer p {
  color: #BCCDE0;
  font-size: 14.5px;
  line-height: 1.65;
  margin: 10px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 32px;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (min-width: 980px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
}

.footer-grid h3 {
  color: #FFFFFF;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--yellow);
  display: inline-block;
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-grid ul li a {
  color: #BCCDE0;
  font-size: 14.5px;
  text-decoration: none;
  transition: color .16s var(--ease), padding-left .2s var(--ease);
  display: inline-flex;
  align-items: center;
}
.footer-grid ul li a:hover {
  color: var(--yellow);
  padding-left: 4px;
  text-decoration: none;
}

.responsible-badge {
  display: inline-block;
  padding: 7px 14px;
  background: rgba(254, 204, 0, .15);
  border: 1px solid var(--yellow);
  color: var(--yellow);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .06em;
  border-radius: 999px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: #90A4BB;
  font-size: 13px;
  line-height: 1.5;
}
@media (min-width: 720px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
  }
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-visible,
.reveal.visible,
.reveal.in-view {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
}

/* Fallback: on load, show after short delay so content isn't invisible if JS fails */
@keyframes reveal-fallback {
  to { opacity: 1; transform: none; }
}
html.no-js .reveal,
body.loaded .reveal {
  animation: reveal-fallback .6s var(--ease) .1s forwards;
}

/* ---------- Utility and safety ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Focus-visible for keyboard accessibility */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ---------- Home-only subtle enhancements ---------- */
body.home .page-hero {
  padding: 24px 0 20px;
  background:
    linear-gradient(135deg, rgba(0, 106, 167, .07) 0%, rgba(254, 204, 0, .05) 100%),
    linear-gradient(180deg, #FFFFFF 0%, var(--paper-2) 100%);
}
@media (min-width: 720px) {
  body.home .page-hero { padding: 44px 0 36px; }
}

/* ---------- Small screen refinements for toplist-first UX ---------- */
@media (max-width: 719px) {
  .page-hero {
    padding: 18px 0 14px;
  }
  .page-hero h1 {
    font-size: 1.55rem;
    line-height: 1.2;
  }
  .page-hero .lead {
    font-size: .95rem;
  }
  .list-heading {
    margin: 18px 0 12px;
    font-size: 1.25rem;
  }
  .featured-cards {
    margin: 6px 0 24px;
    gap: 14px;
  }
  .feat-card {
    padding: 18px 16px;
  }
  .feat-card h3 { font-size: 1.1rem; }
  .feat-thumb img { max-height: 70px; }
  .feat-list { gap: 7px; margin-bottom: 14px; }
  .feat-list li { font-size: 14px; }
  .btn-primary { padding: 11px 16px; font-size: 14.5px; }

  .trust-stats-wrap { padding: 0 16px 16px; }
  .ts-tile { padding: 14px 10px; }
  .ts-num { font-size: 1.55rem; }
  .ts-lab { font-size: 11px; letter-spacing: .05em; }

  .content { padding: 20px 0 40px; }
  .content h2 { margin-top: 32px; font-size: 1.35rem; }
  .content h3 { font-size: 1.05rem; margin-top: 20px; }
  .content p { font-size: 15.5px; }

  .faq-item summary { font-size: 15px; padding: 14px 16px; }
  .faq-answer { padding: 2px 16px 14px; font-size: 14.5px; }

  .toc { padding: 16px 18px; margin: 20px 0 28px; }

  .step-box { padding: 36px 16px 16px; }

  .pros ul li, .cons ul li { font-size: 14px; }

  .author-box { padding: 20px 18px; margin: 16px 0; }
  .author-avatar { width: 86px; height: 86px; border-width: 3px; }
  .author-name { font-size: 1.3rem; }

  .related-card { padding: 14px 16px; }
  .r-title { font-size: 1rem; }

  .site-footer { padding: 36px 0 20px; margin-top: 40px; }
  .footer-grid { gap: 24px; margin-bottom: 24px; }
}

/* ---------- Print basics ---------- */
@media print {
  .site-header, .site-footer, .toc, .btn, .menu-toggle { display: none !important; }
  body { background: #FFFFFF; color: #000; }
  .container { max-width: none; padding: 0; }
  .feat-card, .feature-card, .step-box { break-inside: avoid; box-shadow: none; }
}

/* ---------- Collapsible TOC ---------- */
.toc .toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: default;
  margin-bottom: 12px;
}
.toc .toc-header .toc-title { margin: 0; }
.toc .toc-toggle {
  background: var(--yellow);
  border: 1px solid var(--yellow-deep);
  color: var(--blue-ink);
  padding: 2px 10px;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 800;
  flex-shrink: 0;
  transition: transform .22s var(--ease), background .18s var(--ease);
}
.toc .toc-toggle:hover { background: var(--yellow-deep); }
.toc.is-collapsed ol,
.toc.is-collapsed .toc-list { display: none !important; }
.toc.is-collapsed { padding-bottom: 20px; }
