/* ===================================================================
   PNG Casino King — shared stylesheet
=================================================================== */

/* Self-hosted Poppins (latin subset) — avoids the render-blocking
   fonts.googleapis.com + fonts.gstatic.com request chain. */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/poppins-800.woff2') format('woff2');
}

:root {
  --purple: #7c3aed;
  --purple-dark: #5b21b6;
  --purple-light: #efe9ff;
  --hero-bg: #7e88ab;
  --hero-bg-2: #8994b8;
  --navy: #121830;
  --navy-2: #1a2140;
  --orange: #f5883c;
  --orange-dark: #e0722a;
  --green: #16a34a;
  --gold: #eab308;
  --text-dark: #1c2033;
  --text-muted: #6b7086;
  --border: #e7e6f0;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(30, 20, 60, 0.08);
  --shadow-lg: 0 20px 45px rgba(20, 15, 45, 0.16);
  --font: "Poppins", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--purple);
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }

.section { padding: 80px 0; }
.section-dark {
  background: var(--navy);
  background-image: radial-gradient(circle at 15% 20%, rgba(124, 58, 237, 0.25), transparent 45%),
                     radial-gradient(circle at 85% 80%, rgba(245, 136, 60, 0.14), transparent 40%);
  color: #f4f4fb;
}
.section-dark .section-title,
.section-dark h2 { color: #ffffff; }
.section-dark .section-sub { color: #b7bad2; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.section-sub { color: var(--text-muted); font-size: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-orange {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  box-shadow: 0 8px 18px rgba(245, 136, 60, 0.35);
}
.btn-purple {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 8px 18px rgba(124, 58, 237, 0.35);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--purple);
  color: var(--purple);
}
.btn-outline-light {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.4);
  color: #fff;
}
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  color: var(--text-dark);
}
.brand .crown {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.brand small {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--purple);
  letter-spacing: 0.12em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  padding: 6px 0;
}
.main-nav a.active { color: var(--purple); font-weight: 600; }
.main-nav a:hover { color: var(--purple); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  background: var(--purple-light);
}
.lang-select {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--purple-light);
  align-items: center;
  justify-content: center;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--hero-bg), var(--hero-bg-2));
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 90% 10%, rgba(255,255,255,0.12), transparent 40%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero-copy h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 16px;
}
.hero-copy p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 28px;
}
.search-wrap { position: relative; max-width: 480px; }
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 999px;
  padding: 6px 6px 6px 20px;
  max-width: 480px;
  box-shadow: var(--shadow);
}
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 50;
  max-height: 320px;
  overflow-y: auto;
}
.search-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text-dark);
}
.search-result:hover, .search-result:focus { background: var(--purple-light); }
.search-result-title { font-size: 0.88rem; font-weight: 600; }
.search-result-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--purple-dark);
  background: var(--purple-light);
  padding: 3px 9px;
  border-radius: 999px;
  flex-shrink: 0;
}
.search-empty { padding: 14px; font-size: 0.85rem; color: var(--text-muted); text-align: center; }
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 10px 0;
}
.search-bar button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-mascot {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-mascot svg { width: 100%; max-width: 320px; }

.stat-row {
  position: relative;
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.stat-card {
  border-radius: var(--radius);
  padding: 18px 16px;
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-card .num { font-size: 1.4rem; font-weight: 800; display: block; }
.stat-card .label { font-size: 0.75rem; opacity: 0.9; }
.stat-card.c1 { background: linear-gradient(135deg, #9333ea, #7c3aed); }
.stat-card.c2 { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.stat-card.c3 { background: linear-gradient(135deg, #6d28d9, #5b21b6); }
.stat-card.c4 { background: linear-gradient(135deg, #3b5bdb, #2f4bc9); }
.stat-card.c5 { background: linear-gradient(135deg, #2f4bc9, #24399e); }

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  background: var(--purple-light);
  border-radius: 999px;
  padding: 6px;
  width: fit-content;
  margin: 0 auto 40px;
}
.tab-btn {
  padding: 10px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--purple-dark);
}
.tab-btn.active { background: var(--purple); color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- Offer / bonus cards ---------- */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.offer-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.offer-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.rank-badge {
  position: absolute;
  top: -14px;
  left: 22px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: #402c00;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(234, 179, 8, 0.5);
}
.offer-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.logo-badge {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}
.offer-top .name { font-weight: 700; font-size: 1rem; }
.offer-top .tagline { font-size: 0.78rem; color: var(--text-muted); }
.badge-row { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.badge-green { background: #dcfce7; color: #166534; }
.badge-orange { background: #ffe6d3; color: #9a3412; }
.badge-flag { background: #eef1ff; color: #3b5bdb; }
.offer-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.offer-meta b { display: block; color: var(--text-dark); font-size: 0.85rem; }
.offer-actions { display: flex; gap: 10px; }

/* ---------- Certified logos ---------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.cert-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 12px;
  text-align: center;
}
.cert-card .logo-badge { margin: 0 auto 12px; }
.cert-card .rev-link {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.show-all-wrap { text-align: center; margin-top: 36px; }

/* ---------- Slot picks ---------- */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.slot-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}
.slot-img {
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.slot-card .cap { padding: 12px; font-size: 0.82rem; font-weight: 600; }
.slot-card .provider { font-size: 0.7rem; color: #9a9dbd; padding-bottom: 12px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #cfd1e6;
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-grid h3 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer-grid li { margin-bottom: 10px; font-size: 0.88rem; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { font-size: 0.85rem; color: #9a9dbd; margin: 14px 0 18px; max-width: 320px; }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 22px;
  font-size: 0.78rem;
  color: #82859f;
}
.footer-disclaimer {
  font-size: 0.76rem;
  color: #82859f;
  max-width: 900px;
  margin: 18px auto 0;
  text-align: center;
  line-height: 1.7;
}
.age-badge {
  display: inline-flex;
  width: 34px; height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}

/* ---------- Breadcrumb / page hero (blog & review) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--hero-bg), var(--hero-bg-2));
  padding: 48px 0 40px;
  color: #fff;
}
.breadcrumb { font-size: 0.82rem; opacity: 0.85; margin-bottom: 14px; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Blog post page ---------- */
.post-layout {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 48px;
  padding: 56px 0 80px;
}
.post-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 18px 0 8px;
}
.author-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--purple);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem;
}
.post-hero-img {
  border-radius: var(--radius);
  height: 340px;
  margin: 26px 0 32px;
  background: linear-gradient(135deg, #9333ea, #3b5bdb);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85);
  font-size: 3rem;
}
.post-body h2 { font-size: 1.4rem; margin: 32px 0 14px; }
.post-body h3 { font-size: 1.15rem; margin: 24px 0 10px; color: var(--purple-dark); }
.post-body p { margin-bottom: 16px; color: #3a3d54; }
.post-body ul { margin: 0 0 18px 0; }
.post-body ul li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
  color: #3a3d54;
}
.post-body ul li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--purple);
}
.pull-quote {
  border-left: 4px solid var(--purple);
  background: var(--purple-light);
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--purple-dark);
  margin: 28px 0;
}
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 28px 0; }
.pill {
  background: var(--purple-light);
  color: var(--purple-dark);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.sidebar-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.sidebar-card h3 { font-size: 0.95rem; margin-bottom: 16px; }
.recent-post-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  align-items: flex-start;
}
.recent-post-item .thumb {
  width: 52px; height: 52px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, #7c3aed, #3b5bdb);
}
.recent-post-item .t { font-size: 0.85rem; font-weight: 600; line-height: 1.35; }
.recent-post-item .d { font-size: 0.72rem; color: var(--text-muted); }
.cat-list li { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.88rem; }
.cat-list li span:last-child { color: var(--text-muted); }
.newsletter-card {
  background: linear-gradient(160deg, var(--purple), var(--purple-dark));
  color: #fff;
}
.newsletter-card p { font-size: 0.85rem; opacity: 0.9; margin-bottom: 14px; }
.newsletter-card input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  margin-bottom: 10px;
  font-family: inherit;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.blog-card:hover { transform: translateY(-5px); }
.blog-card .img {
  height: 150px;
  background: linear-gradient(135deg, #7c3aed, #3b5bdb);
}
.blog-card .body { padding: 16px; }
.blog-card .cat { font-size: 0.72rem; font-weight: 700; color: var(--purple); text-transform: uppercase; }
.blog-card h3 { font-size: 0.98rem; margin: 8px 0; }
.blog-card .meta { font-size: 0.76rem; color: var(--text-muted); }

/* ---------- Review / service post page ---------- */
.review-hero-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  margin-top: -60px;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}
.review-hero-card .logo-badge { width: 76px; height: 76px; font-size: 1.4rem; border-radius: 18px; }
.stars { color: var(--gold); font-size: 1rem; letter-spacing: 2px; }
.rating-num { font-weight: 800; font-size: 1.1rem; color: var(--text-dark); margin-right: 6px; }

.key-info-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 32px 0 40px;
}
.key-info-bar .item {
  background: var(--purple-light);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.key-info-bar .item b { display: block; font-size: 1rem; color: var(--purple-dark); }
.key-info-bar .item span { font-size: 0.75rem; color: var(--text-muted); }

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 30px 0 10px;
}
.pc-card { border-radius: var(--radius); padding: 22px; }
.pc-card.pros { background: #f0fdf4; border: 1px solid #bbf7d0; }
.pc-card.cons { background: #fef2f2; border: 1px solid #fecaca; }
.pc-card h4 { margin-bottom: 14px; font-size: 1rem; }
.pc-card.pros h4 { color: var(--green); }
.pc-card.cons h4 { color: #dc2626; }
.pc-card li { padding-left: 22px; position: relative; margin-bottom: 10px; font-size: 0.9rem; }
.pc-card.pros li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.pc-card.cons li::before { content: "✕"; position: absolute; left: 0; color: #dc2626; font-weight: 700; }

.payment-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 40px; }
.payment-chip {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.92rem;
  background: #fff;
}
.faq-q .chev { transition: transform 0.2s ease; color: var(--purple); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  background: #fafafe;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0 20px;
}
.faq-item.open .faq-a { max-height: 240px; padding: 0 20px 18px; }

.sticky-cta {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  border-radius: var(--radius);
  padding: 26px;
  color: #fff;
  text-align: center;
}
.sticky-cta .rating-num { color: #fff; }
.sticky-cta p { font-size: 0.85rem; opacity: 0.9; margin: 10px 0 18px; }

/* ---------- Mobile nav ---------- */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mascot { display: none; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .offer-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: repeat(3, 1fr); }
  .slot-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .post-layout { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .review-hero-card { grid-template-columns: 1fr; text-align: center; }
  .pros-cons { grid-template-columns: 1fr; }
  .key-info-bar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .slot-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .header-actions .lang-select { display: none; }
}

/* ---------- Skip link (a11y) ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--purple);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 1000;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Table of contents ---------- */
.toc-box {
  background: var(--purple-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 26px 0;
}
.toc-box h2 { font-size: 1rem; margin: 0 0 10px; color: var(--purple-dark); }
.toc-box ol { margin: 0; padding-left: 20px; }
.toc-box li { margin-bottom: 6px; font-size: 0.92rem; }
.toc-box a { color: var(--purple-dark); font-weight: 600; }
.toc-box a:hover { text-decoration: underline; }

/* ---------- Jump-to-top ---------- */
.jump-top {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--purple);
  font-weight: 600;
  margin: 4px 0 18px;
}
.jump-top:hover { text-decoration: underline; }
.back-to-top-wrap { text-align: center; margin: 32px 0 8px; }

/* ---------- FAQ (checklist item 5) ---------- */
.faq-block { margin: 20px 0 30px; }
.faq-block .faq-item { border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; margin-bottom: 10px; }
.faq-block .faq-q { font-weight: 700; font-size: 0.98rem; margin-bottom: 6px; color: var(--text-dark); }
.faq-block .faq-a { font-size: 0.92rem; color: #3a3d54; margin: 0; }

/* ---------- Author bio ---------- */
.author-bio {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #f8f8fc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 30px 0;
}
.author-bio .author-avatar { width: 48px; height: 48px; font-size: 1rem; flex-shrink: 0; }
.author-bio h3 { font-size: 0.98rem; margin: 0 0 6px; }
.author-bio p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }
.author-bio a { color: var(--purple); font-weight: 600; }

/* ---------- Muted text contrast fix (WCAG AA) ---------- */
.img-credit, .muted-caption { color: #6b6f85 !important; }
