/* ============================================================
   TVpikoma.com — Blog Stylesheet
   Premium Dutch IPTV Provider
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --accent:  #00bfff;
  --accent2: #005aff;
  --bg:      #070a10;
  --bg2:     #080b14;
  --bg3:     #0d1120;
  --text:    #e2e8f0;
  --muted:   #94a3b8;
  --border:  rgba(255, 255, 255, 0.07);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-glow: 0 0 24px rgba(0, 191, 255, 0.15);
  --transition: 0.2s ease;
  --max-content: 860px;
  --max-site: 1100px;
}

/* ── Full Reset ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: #fff;
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
}

/* ── Reading Progress Bar ──────────────────────────────────── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(0, 191, 255, 0.6);
}

/* ── Header / Nav ──────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 10, 16, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: var(--max-site);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity var(--transition);
}

.logo:hover {
  opacity: 0.85;
  text-decoration: none;
  color: var(--text);
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #25d366, #128c3e);
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.25);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  opacity: 0.95;
  color: #fff !important;
}

.nav-cta svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.nav-toggle:hover {
  background: var(--border);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Page Layout ───────────────────────────────────────────── */
.page-wrapper {
  max-width: var(--max-site);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 48px;
  align-items: start;
  padding-top: 48px;
  padding-bottom: 80px;
}

.page-wrapper.no-sidebar {
  grid-template-columns: 1fr;
  max-width: var(--max-content);
}

/* ── Article ───────────────────────────────────────────────── */
.article-main {
  min-width: 0;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--muted);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb .sep {
  opacity: 0.4;
  user-select: none;
}

/* Article meta row */
.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 0.82rem;
  color: var(--muted);
}

.article-meta .author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
}

.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.article-meta .dot {
  opacity: 0.3;
}

/* Meta tag / category badge */
.meta-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 191, 255, 0.12);
  color: var(--accent);
  border: 1px solid rgba(0, 191, 255, 0.25);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition);
}

.meta-tag:hover {
  background: rgba(0, 191, 255, 0.22);
  border-color: rgba(0, 191, 255, 0.5);
  text-decoration: none;
  color: var(--accent);
}

/* Tags row */
.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag {
  display: inline-flex;
  align-items: center;
  background: var(--bg3);
  color: var(--muted);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  transition: border-color var(--transition), color var(--transition);
}

.tag:hover {
  border-color: rgba(0, 191, 255, 0.3);
  color: var(--text);
  text-decoration: none;
}

/* Headings */
h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 24px;
}

h1 .grad {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  margin-top: 28px;
  margin-bottom: 10px;
}

h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 20px;
  margin-bottom: 8px;
}

/* Intro paragraph */
.intro {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.8;
  border-left: 3px solid var(--accent);
  padding-left: 18px;
  margin-bottom: 32px;
  background: rgba(0, 191, 255, 0.04);
  padding: 16px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Body text */
.article-body p {
  color: var(--muted);
  margin-bottom: 18px;
  line-height: 1.8;
}

.article-body p strong {
  color: var(--text);
  font-weight: 600;
}

/* Lists */
.article-body ul,
.article-body ol {
  margin-bottom: 20px;
  padding-left: 0;
}

.article-body ul li,
.article-body ol li {
  color: var(--muted);
  padding: 5px 0 5px 24px;
  position: relative;
  line-height: 1.7;
}

.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

.article-body ol {
  counter-reset: ol-counter;
}

.article-body ol li {
  counter-increment: ol-counter;
}

.article-body ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  width: 18px;
  height: 18px;
  background: rgba(0, 191, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 18px;
  text-align: center;
}

/* ── Info Boxes ─────────────────────────────────────────────── */
.highlight-box,
.warning-box,
.success-box {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  margin: 28px 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.highlight-box {
  background: rgba(0, 191, 255, 0.07);
  border: 1px solid rgba(0, 191, 255, 0.2);
  color: #b8e8f8;
}

.highlight-box strong,
.warning-box strong,
.success-box strong {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.highlight-box strong { color: var(--accent); }

.warning-box {
  background: rgba(255, 59, 48, 0.07);
  border: 1px solid rgba(255, 59, 48, 0.25);
  color: #f8c0bc;
}

.warning-box strong { color: #ff6b6b; }

.success-box {
  background: rgba(37, 211, 102, 0.07);
  border: 1px solid rgba(37, 211, 102, 0.25);
  color: #b8f0d0;
}

.success-box strong { color: #25d366; }

/* ── Comparison Table ───────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  margin: 28px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

table.compare thead {
  background: var(--bg3);
}

table.compare th {
  color: var(--text);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

table.compare td {
  padding: 12px 16px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

table.compare tbody tr:last-child td {
  border-bottom: none;
}

table.compare tbody tr {
  transition: background var(--transition);
}

table.compare tbody tr:hover {
  background: rgba(0, 191, 255, 0.04);
}

table.compare .yes { color: #25d366; font-weight: 600; }
table.compare .no  { color: #ff6b6b; font-weight: 600; }
table.compare .highlight-row { background: rgba(0, 191, 255, 0.06); }
table.compare .highlight-row td { color: var(--text); }

/* ── CTA Box ────────────────────────────────────────────────── */
.cta-box {
  background: linear-gradient(135deg, rgba(0, 191, 255, 0.08), rgba(0, 90, 255, 0.08));
  border: 1px solid rgba(0, 191, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: center;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 191, 255, 0.06), transparent 70%);
  pointer-events: none;
}

.cta-box h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 10px;
}

.cta-box p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 24px !important;
  max-width: 480px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #25d366, #128c3e);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
  text-decoration: none;
  color: #fff;
}

.cta-btn svg {
  width: 20px;
  height: 20px;
}

/* ── Internal Links Block ───────────────────────────────────── */
.internal-links {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin: 32px 0;
}

.internal-links h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 14px;
}

.internal-links ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.internal-links li {
  padding: 0 !important;
}

.internal-links li::before {
  display: none !important;
}

.internal-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color var(--transition);
}

.internal-links a::before {
  content: '→';
  color: var(--accent);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.internal-links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ── Table of Contents (Sidebar) ───────────────────────────── */
.toc {
  position: sticky;
  top: 80px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  font-size: 0.875rem;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.toc::-webkit-scrollbar { width: 4px; }
.toc::-webkit-scrollbar-track { background: transparent; }
.toc::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.toc-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.toc ol,
.toc ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toc li {
  padding: 0 !important;
}

.toc li::before {
  display: none !important;
}

.toc a {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
  display: block;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.toc a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  border-left-color: var(--accent);
}

.toc a.active {
  color: var(--accent);
  background: rgba(0, 191, 255, 0.08);
  border-left-color: var(--accent);
  font-weight: 600;
}

/* ── FAQ Accordion ──────────────────────────────────────────── */
.faq-section {
  margin: 40px 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-of-type {
  border-top: 1px solid var(--border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  text-align: left;
  padding: 18px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  transition: color var(--transition);
  cursor: pointer;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform var(--transition), background var(--transition);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: rgba(0, 191, 255, 0.12);
}

.faq-answer {
  display: none;
  padding: 0 0 20px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.8;
  animation: fadeIn 0.2s ease;
}

.faq-item.open .faq-answer {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Share Bar ──────────────────────────────────────────────── */
.share-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 40px 0;
}

.share-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--muted);
}

.share-btn:hover {
  transform: translateY(-1px);
  opacity: 0.9;
  text-decoration: none;
  color: var(--text);
}

.share-btn.whatsapp  { border-color: rgba(37, 211, 102, 0.3); color: #25d366; }
.share-btn.twitter   { border-color: rgba(29, 155, 240, 0.3); color: #1d9bf0; }
.share-btn.facebook  { border-color: rgba(24, 119, 242, 0.3); color: #1877f2; }
.share-btn.copy-link { border-color: var(--border); }

.share-btn svg {
  width: 16px;
  height: 16px;
}

/* ── Code Blocks ────────────────────────────────────────────── */
pre {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
  position: relative;
}

pre code {
  font-family: 'Fira Code', 'Cascadia Code', Consolas, monospace;
  font-size: 0.875rem;
  color: #a8d8f0;
  line-height: 1.6;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.copy-btn:hover {
  color: var(--accent);
  border-color: rgba(0, 191, 255, 0.3);
  background: rgba(0, 191, 255, 0.06);
}

.copy-btn.copied {
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.3);
}

code:not(pre code) {
  font-family: 'Fira Code', 'Cascadia Code', Consolas, monospace;
  font-size: 0.875em;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--accent);
}

/* ── Article Cards (blog index / category pages) ───────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.article-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.article-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 191, 255, 0.25);
  box-shadow: var(--shadow-glow);
}

.card-badge {
  align-self: flex-start;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin: 0;
}

.card-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

.card-title a:hover {
  color: var(--accent);
}

.card-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--muted);
}

.card-read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition);
}

.card-read-more:hover {
  gap: 8px;
  text-decoration: none;
  color: var(--accent);
}

/* ── Category Hero ──────────────────────────────────────────── */
.category-hero {
  background: linear-gradient(135deg, rgba(0, 191, 255, 0.06), rgba(0, 90, 255, 0.06));
  border-bottom: 1px solid var(--border);
  padding: 64px 24px 48px;
  text-align: center;
}

.category-hero h1 {
  margin-bottom: 12px;
}

.category-hero p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1rem;
}

.category-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 191, 255, 0.1);
  border: 1px solid rgba(0, 191, 255, 0.2);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 48px 24px;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-site);
  margin: 0 auto;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 16px;
}

.footer-logo span { color: var(--accent); }

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin: 16px 0;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 20px;
  opacity: 0.7;
}

/* ── Lazy images ────────────────────────────────────────────── */
img.lazy {
  opacity: 0;
  transition: opacity 0.4s ease;
}

img.lazy.loaded {
  opacity: 1;
}

/* ── Utility ────────────────────────────────────────────────── */
.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;
}

.text-accent { color: var(--accent); }
.text-muted  { color: var(--muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }

/* ── Responsive ─────────────────────────────────────────────── */

/* Large screens: adjust sidebar column */
@media (max-width: 1024px) {
  .page-wrapper {
    grid-template-columns: 1fr 220px;
    gap: 32px;
  }
}

/* Tablet: collapse to single column, hide TOC */
@media (max-width: 768px) {
  .page-wrapper {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 32px;
    padding-bottom: 60px;
  }

  .toc {
    display: none;
  }

  h1 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  h2 {
    font-size: 1.25rem;
    margin-top: 36px;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    padding: 24px 20px;
  }

  .cta-box h3 {
    font-size: 1.15rem;
  }

  .share-bar {
    gap: 8px;
  }

  .share-btn {
    padding: 7px 12px;
    font-size: 0.78rem;
  }
}

/* Mobile nav */
@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(7, 10, 16, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 16px;
    align-items: flex-start;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header {
    position: sticky;
    top: 0;
  }

  .category-hero {
    padding: 40px 16px 32px;
  }

  .category-hero h1 {
    font-size: 1.6rem;
  }

  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  table.compare {
    font-size: 0.8rem;
  }

  table.compare th,
  table.compare td {
    padding: 8px 10px;
  }

  .nav-cta {
    font-size: 0.8rem;
    padding: 8px 14px;
  }

  pre {
    padding: 14px;
    font-size: 0.8rem;
  }

  .intro {
    font-size: 0.98rem;
  }
}

/* Very small screens */
@media (max-width: 380px) {
  .nav-inner {
    padding: 0 16px;
  }

  .page-wrapper {
    padding: 24px 16px 48px;
  }

  h1 {
    font-size: 1.4rem;
  }
}
