/*
Theme Name: DecodeTopics
Theme URI: https://decodetopics.com
Author: Lakhan
Description: A clean, minimalist, mobile-first theme for DecodeTopics — a personal learning site that decodes terms, facts, subjects and industries into simple, clear notes. Flat neutral palette, one restrained accent color, no heavy motion. Elementor-compatible; write entries as normal WordPress posts and they get an automatic table of contents, read time, and source-credit box.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: decodetopics
*/

/* ==========================================================================
   DecodeTopics — Design System & Global Styles (mobile-first)
   Decode terms, facts, subjects and industries. Simply.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* One restrained accent — used sparingly: links, tags, active states */
  --accent: #2f6feb;
  --accent-dark: #1d4ed8;
  --accent-soft: #eef4ff;

  --warning: #b42318;
  --warning-soft: #fdecea;
  --success: #0f7a4d;

  /* Flat neutral surface — plain white/near-white, near-black ink */
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --surface: #ffffff;
  --surface-2: #f5f5f6;
  --border: #e5e7eb;
  --text: #16181d;
  --text-dim: #5b6472;
  --text-faint: #8a8fa0;
  --shadow: rgba(16, 24, 40, 0.06);
  --overlay: rgba(255, 255, 255, 0.9);

  /* Type scale — one font family throughout, kept modest (not oversized) */
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-head: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-md: 1.0625rem;
  --fs-lg: clamp(1.1rem, 1rem + 0.4vw, 1.25rem);
  --fs-xl: clamp(1.3rem, 1.1rem + 0.9vw, 1.6rem);
  --fs-2xl: clamp(1.55rem, 1.25rem + 1.6vw, 2.05rem);
  --fs-3xl: clamp(1.85rem, 1.3rem + 2.6vw, 2.65rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 2.75rem;
  --space-10: 3.5rem;
  --space-12: 4.5rem;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 999px;

  --container: 1100px;
  --measure: 680px; /* comfortable reading width for article body */
  --transition: 150ms ease;
}

/* A single deliberate light look — no OS dark/light swap, no gradients,
   no decorative motion. Clean and quiet by design. */

/* ---------- Reset ---------- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 var(--space-4);
  letter-spacing: -0.01em;
}
p { margin: 0 0 var(--space-4); color: var(--text-dim); }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent-soft); color: var(--accent-dark); }

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-4);
}
.section { padding: var(--space-10) 0; }
.section-head {
  max-width: 560px;
  margin: 0 auto var(--space-6);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: var(--space-3);
}
.gradient-text { color: var(--accent-dark); } /* kept as a plain accent color, no gradient/animation */
.text-center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--fs-sm);
  border: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { padding: 0.5rem 1rem; font-size: var(--fs-xs); }
.btn-block { width: 100%; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: var(--space-3) 0;
  background: var(--overlay);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.brand { display: flex; align-items: baseline; gap: var(--space-2); font-weight: 700; font-size: var(--fs-md); }
.brand-mark { display: none; } /* wordmark-only brand — no icon, by design */
.brand-tagline {
  font-weight: 400; font-size: var(--fs-xs);
  color: var(--text-faint);
}
.nav-links { display: flex; align-items: center; gap: var(--space-5); }
.nav-links a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-dim);
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--text); }
/* WordPress nav menu current-item classes land on the <li>, not the <a> */
.nav-links li { list-style: none; }
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a,
.nav-links .current-menu-ancestor > a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.nav-actions { display: flex; align-items: center; gap: var(--space-3); }
.lang-toggle {
  display: flex; border: 1px solid var(--border); border-radius: var(--radius-full);
  overflow: hidden; font-size: var(--fs-xs); font-weight: 600;
}
.lang-toggle a { padding: 0.3rem 0.65rem; color: var(--text-faint); transition: var(--transition); }
.lang-toggle a.is-active { background: var(--text); color: var(--bg); }
.nav-toggle {
  display: flex;
  background: none; border: 1px solid var(--border); border-radius: var(--radius-sm);
  width: 38px; height: 36px; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 16px; height: 2px; background: var(--text);
  position: relative; transition: var(--transition);
}
.nav-toggle span::before { position: absolute; top: -5px; width: 16px; }
.nav-toggle span::after { position: absolute; top: 5px; width: 16px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: rotate(45deg); top: 0; }
.nav-toggle.is-open span::after { transform: rotate(-45deg); top: 0; }

/* ---------- Hero — plain, search-first, no imagery ---------- */
.hero { padding: var(--space-10) 0 var(--space-8); border-bottom: 1px solid var(--border); }
.hero-grid { max-width: 640px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: var(--fs-3xl); margin-bottom: var(--space-4); }
.hero-sub { font-size: var(--fs-md); max-width: 520px; margin: 0 auto var(--space-6); }
.hero-search { max-width: 480px; margin: 0 auto; }
.hero-cta { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-5); justify-content: center; }
.hero-meta { display: flex; gap: var(--space-5); margin-top: var(--space-6); flex-wrap: wrap; justify-content: center; }
.hero-meta div { font-size: var(--fs-xs); color: var(--text-faint); }
.hero-meta strong { display: block; font-size: var(--fs-md); color: var(--text); }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: var(--space-5); }
.step-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}
.step-num {
  font-size: var(--fs-xl); font-weight: 700; color: var(--text-faint);
  margin-bottom: var(--space-2);
}
.step-card h3 { font-size: var(--fs-md); margin-bottom: var(--space-2); }
.step-card p { margin: 0; font-size: var(--fs-sm); }

/* ---------- Card grid / entries ---------- */
.grid-3, .grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
.card-article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-3);
  transition: border-color var(--transition);
  height: 100%;
}
.card-article:hover { border-color: var(--text-faint); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.tag {
  font-size: var(--fs-xs); font-weight: 600; padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full); background: var(--surface-2); color: var(--text-dim);
  border: 1px solid var(--border);
}
.tag.is-brand { color: var(--accent-dark); border-color: var(--accent-soft); background: var(--accent-soft); }
.read-time { font-size: var(--fs-xs); color: var(--text-faint); }
.card-article h3 { font-size: var(--fs-md); margin-bottom: 0; }
.card-article:hover h3 { text-decoration: underline; text-decoration-color: var(--accent); }
.card-article .excerpt { font-size: var(--fs-sm); margin: 0; flex-grow: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; font-size: var(--fs-xs); color: var(--text-faint); border-top: 1px solid var(--border); padding-top: var(--space-3); }
.card-cta { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-dark); font-weight: 600; font-size: var(--fs-xs); }

/* ---------- Categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.cat-chip {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-3); text-align: center; font-size: var(--fs-sm); font-weight: 600;
  transition: border-color var(--transition), color var(--transition);
}
.cat-chip:hover { border-color: var(--accent); color: var(--accent-dark); }
.cat-chip .cat-count { display: block; font-weight: 400; color: var(--text-faint); font-size: var(--fs-xs); margin-top: 2px; }

/* ---------- Email capture (plain, low-emphasis strip) ---------- */
.newsletter {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6) var(--space-5);
  text-align: center;
  background: var(--bg-soft);
}
.newsletter h2 { font-size: var(--fs-lg); margin-bottom: var(--space-2); }
.newsletter p { font-size: var(--fs-sm); }
.newsletter-form { display: flex; flex-direction: column; gap: var(--space-3); max-width: 380px; margin: var(--space-5) auto 0; }
.newsletter-form input {
  padding: 0.7rem 1rem; border-radius: var(--radius-md);
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 1rem;
}
.newsletter-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-note { font-size: var(--fs-xs); color: var(--text-faint); margin-top: var(--space-3); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: var(--space-8) 0 var(--space-5); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-5); margin-bottom: var(--space-6); }
.footer-grid h4 { font-size: var(--fs-xs); color: var(--text-faint); text-transform: uppercase; letter-spacing: .04em; margin-bottom: var(--space-3); }
.footer-grid a { display: block; font-size: var(--fs-sm); color: var(--text-dim); margin-bottom: var(--space-2); transition: color var(--transition); }
.footer-grid a:hover { color: var(--accent-dark); }
.footer-bottom { display: flex; flex-direction: column; gap: var(--space-2); padding-top: var(--space-5); border-top: 1px solid var(--border); font-size: var(--fs-xs); color: var(--text-faint); }
.social-icons { display: flex; gap: var(--space-3); }
.social-icons a { width: 30px; height: 30px; border-radius: var(--radius-full); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.social-icons svg { width: 14px; height: 14px; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; bottom: 18px; right: 18px; width: 40px; height: 40px;
  border-radius: 50%; background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none;
  transition: opacity var(--transition); z-index: 90;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top:hover { border-color: var(--text); }

/* ---------- Page header (sub-pages) ---------- */
.page-header { padding: var(--space-8) 0 var(--space-6); border-bottom: 1px solid var(--border); }
.breadcrumb { display: flex; gap: var(--space-2); font-size: var(--fs-xs); color: var(--text-faint); margin-bottom: var(--space-3); }
.breadcrumb a:hover { color: var(--accent-dark); }

/* ---------- Filters (entries listing) ---------- */
.filters-bar { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-6); }
.filter-chips { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.chip {
  padding: 0.4rem 0.85rem; border-radius: var(--radius-full); border: 1px solid var(--border);
  font-size: var(--fs-xs); font-weight: 600; color: var(--text-dim); background: var(--surface);
  transition: var(--transition);
}
.chip.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.search-box { position: relative; }
.search-box input {
  width: 100%; padding: 0.65rem 1rem 0.65rem 2.3rem; border-radius: var(--radius-md);
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 1rem;
}
.search-box svg { position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--text-faint); }
.empty-state { text-align: center; padding: var(--space-8) 0; color: var(--text-faint); display: none; }
.empty-state.is-visible { display: block; }
.grid-3 .empty-state.is-visible, .grid-2 .empty-state.is-visible { grid-column: 1 / -1; }

/* ---------- Entry (article) page ---------- */
.article-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-8); align-items: start; }
.toc { display: none; font-size: var(--fs-sm); } /* shown from tablet width up — see breakpoints */
.toc h4 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .04em; color: var(--text-faint); margin-bottom: var(--space-2); }
.toc a { display: block; padding: 0.3rem 0; color: var(--text-dim); border-left: 2px solid var(--border); padding-left: var(--space-3); transition: var(--transition); }
.toc a:hover, .toc a.is-active { color: var(--accent-dark); border-left-color: var(--accent); }
.article-body { max-width: var(--measure); }
.article-meta { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; font-size: var(--fs-xs); color: var(--text-faint); margin-bottom: var(--space-5); }
.article-title { font-size: var(--fs-2xl); }
.tldr {
  background: var(--bg-soft); border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm); padding: var(--space-4); margin: var(--space-5) 0; font-size: var(--fs-sm);
}
.tldr strong { color: var(--text); display: block; margin-bottom: var(--space-2); }
.step-block { margin: var(--space-6) 0; }
.step-chip {
  display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--fs-xs); font-weight: 700;
  color: var(--accent-dark); text-transform: uppercase; letter-spacing: .03em; margin-bottom: var(--space-2);
}
.callout {
  background: var(--surface-2); border-radius: var(--radius-sm); padding: var(--space-4);
  border: 1px solid var(--border); margin: var(--space-5) 0; font-size: var(--fs-sm);
}
.callout.is-warning { border-color: var(--warning); background: var(--warning-soft); color: var(--warning); }
.callout.is-warning strong { color: var(--warning); }
.faq-item { border-bottom: 1px solid var(--border); padding: var(--space-3) 0; }
.faq-item h4 { font-size: var(--fs-base); margin-bottom: var(--space-2); }
.source-credit {
  font-size: var(--fs-xs); color: var(--text-faint); border-top: 1px solid var(--border);
  padding-top: var(--space-3); margin-top: var(--space-6);
}
.article-cta { display: flex; gap: var(--space-3); margin: var(--space-6) 0; flex-wrap: wrap; }

/* ---------- About page ---------- */
.about-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
.value-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-3); margin-top: var(--space-6); }
.value-card { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--space-4); }

/* ---------- Utility icon sizing ---------- */
.icon { width: 20px; height: 20px; }

/* ==========================================================================
   WordPress core / block-editor / Elementor compatibility
   ========================================================================== */
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.alignleft { float: left; margin: 0 var(--space-4) var(--space-3) 0; }
.alignright { float: right; margin: 0 0 var(--space-3) var(--space-4); }
.aligncenter { display: block; margin: 0 auto var(--space-3); }
.alignwide { max-width: calc(var(--container) + 3rem); margin-left: auto; margin-right: auto; }
.alignfull { max-width: 100vw; }
.wp-caption, .wp-block-image figure { max-width: 100%; }
.wp-caption-text, figcaption { font-size: var(--fs-xs); color: var(--text-faint); text-align: center; margin-top: var(--space-2); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); list-style: none; padding: 0; margin: var(--space-5) 0; }
.gallery-item { margin: 0; }
.sticky { border-left: 3px solid var(--accent); padding-left: var(--space-3); }
.bypostpassword input[type="password"] {
  padding: 0.6rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text);
}

/* Typography inside real post content (block editor / Elementor output) */
.article-body h2, .entry-content h2 { font-size: var(--fs-xl); margin-top: var(--space-6); }
.article-body h3, .entry-content h3 { font-size: var(--fs-lg); margin-top: var(--space-5); }
.article-body ul, .article-body ol, .entry-content ul, .entry-content ol {
  margin: 0 0 var(--space-4); padding-left: 1.2rem; color: var(--text-dim);
}
.article-body ul, .entry-content ul { list-style: disc; }
.article-body ol, .entry-content ol { list-style: decimal; }
.article-body li, .entry-content li { margin-bottom: var(--space-2); }
.article-body blockquote, .entry-content blockquote {
  border-left: 3px solid var(--border); margin: var(--space-5) 0; padding: var(--space-2) var(--space-4);
  font-style: italic; color: var(--text);
}
.article-body img, .entry-content img { border-radius: var(--radius-sm); margin: var(--space-3) 0; }
.article-body table, .entry-content table {
  width: 100%; border-collapse: collapse; margin: var(--space-5) 0; font-size: var(--fs-sm);
  display: block; overflow-x: auto; white-space: nowrap;
}
.article-body th, .article-body td, .entry-content th, .entry-content td {
  border: 1px solid var(--border); padding: var(--space-2) var(--space-3); text-align: left;
}
.article-body code, .entry-content code {
  background: var(--surface-2); padding: 0.15rem 0.4rem; border-radius: 4px; font-size: 0.9em;
}
.article-body pre, .entry-content pre {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: var(--space-4); overflow-x: auto; margin: var(--space-5) 0;
}
.article-body a, .entry-content a { color: var(--accent-dark); text-decoration: underline; text-decoration-color: var(--accent); }

/* Comments (optional, only renders if comments_template() is called and open) */
.comment-list { list-style: none; padding: 0; margin: var(--space-6) 0 0; }
.comment-list .comment { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--space-4); margin-bottom: var(--space-3); }
.comment-respond input, .comment-respond textarea {
  width: 100%; padding: 0.65rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); margin-bottom: var(--space-3); font-family: var(--font-body);
  font-size: 1rem;
}

/* Elementor: don't let theme container fight Elementor's own full-width sections */
.elementor-section.elementor-section-full_width, .elementor-section .elementor-container { max-width: none; }

/* ==========================================================================
   Mobile-first breakpoints — base styles above are the phone layout;
   each query below only ADDS enhancements for wider screens.
   ========================================================================== */

/* ---------- ≥560px: small tablets / large phones ---------- */
@media (min-width: 560px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .filters-bar { flex-direction: row; align-items: center; justify-content: space-between; }
  .search-box { min-width: 220px; }
  .newsletter-form { flex-direction: row; }
  .newsletter-form input { flex: 1; }
}

/* ---------- ≥720px: nav expands, grids go to 2 columns ---------- */
@media (min-width: 720px) {
  .nav-toggle { display: none; }
  .nav-links {
    position: static; height: auto; width: auto; flex-direction: row;
    background: transparent; border: none; padding: 0; transform: none;
  }
  .nav-actions .lang-toggle { display: flex; }
  .nav-links .lang-toggle-mobile { display: none; }
  .grid-3, .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr 1fr; align-items: center; }
  .value-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: var(--space-12) 0 var(--space-10); }
}

/* Mobile nav panel — only matters below 720px, where .nav-toggle is visible */
@media (max-width: 719px) {
  .nav-links {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(80vw, 300px);
    background: var(--surface); border-left: 1px solid var(--border); flex-direction: column;
    justify-content: center; align-items: flex-start; padding: var(--space-8); gap: var(--space-4);
    transform: translateX(100%); transition: transform 200ms ease; z-index: 99;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-actions .lang-toggle { display: none; }
  .nav-links .lang-toggle-mobile { display: flex; margin-top: var(--space-3); }
  .brand-tagline { display: none; }
}

/* ---------- ≥960px: 3-column grids, cat-grid full row, article TOC sidebar ---------- */
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(6, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .article-layout { grid-template-columns: 200px 1fr; gap: var(--space-10); }
  .toc { display: block; position: sticky; top: 90px; }
}
