/* =================================================================
   MẠCH LẠC — blog công nghệ
   Phong cách: lấy cảm hứng từ GeeksforGeeks — xanh lá, nền sáng,
   gọn gàng, ưu tiên nội dung. Font: Nunito.
   ================================================================= */

:root {
  --font-display: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Consolas", "Liberation Mono", Menlo, monospace;

  --wrap: 1080px;
  --read: 760px;
  --radius: 10px;
  --radius-sm: 6px;
}

/* ---- SÁNG (mặc định, giống GFG) ---- */
html[data-theme="light"] {
  --bg: #f5f7f8;
  --bg-2: #ffffff;
  --bg-3: #eef1f3;
  --line: #e1e6ea;
  --line-soft: #eef1f3;
  --ink: #1f2933;
  --ink-2: #5a6672;
  --ink-3: #8b97a3;
  --accent: #2f8d46;
  --accent-dark: #237536;
  --accent-2: #1a7f37;
  --accent-soft: rgba(47, 141, 70, 0.10);
  --accent-line: rgba(47, 141, 70, 0.28);
  --code-bg: #f6f8fa;
  --code-head: #eef2f4;
  --shadow: 0 1px 2px rgba(16, 30, 40, 0.06);
  --shadow-lg: 0 8px 26px -10px rgba(16, 40, 24, 0.22);
}

/* ---- TỐI ---- */
html[data-theme="dark"] {
  --bg: #11151a;
  --bg-2: #1a1f26;
  --bg-3: #232a33;
  --line: #2c343e;
  --line-soft: #232a33;
  --ink: #e6e9ed;
  --ink-2: #a6b0bb;
  --ink-3: #6f7b87;
  --accent: #45b369;
  --accent-dark: #5cc47c;
  --accent-2: #6dd28b;
  --accent-soft: rgba(69, 179, 105, 0.15);
  --accent-line: rgba(69, 179, 105, 0.35);
  --code-bg: #12161c;
  --code-head: #1f262e;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 34px -14px rgba(0, 0, 0, 0.6);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

main.wrap { padding-top: 30px; padding-bottom: 64px; }

/* Thanh tiến trình đọc bài */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--accent); z-index: 999; transition: width 0.1s linear;
}

/* =========================== HEADER =========================== */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { color: var(--accent); display: block; flex: none; }
.brand-name {
  font-family: var(--font-display); font-weight: 800; font-size: 20px;
  color: var(--ink); letter-spacing: -0.01em; white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  font-weight: 700; font-size: 15px; color: var(--ink-2);
  padding: 8px 12px; border-radius: var(--radius-sm); transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--accent); background: var(--accent-soft); }

.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border: none; background: transparent; color: var(--ink-2); cursor: pointer;
  border-radius: var(--radius-sm); transition: color 0.15s, background 0.15s;
}
.icon-btn:hover { color: var(--accent); background: var(--accent-soft); }
.i-sun { display: none; }
html[data-theme="dark"] .i-moon { display: none; }
html[data-theme="dark"] .i-sun { display: block; }

/* =========================== BUTTON =========================== */
.btn {
  display: inline-block; font-family: var(--font-body); font-weight: 700; font-size: 15px;
  color: #fff; background: var(--accent); padding: 11px 22px; border-radius: var(--radius-sm);
  border: 1px solid var(--accent); cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-lg); }

/* =========================== HERO =========================== */
.hero { padding: 30px 0 26px; }
.hero-title {
  font-family: var(--font-display); font-weight: 800; line-height: 1.12;
  font-size: clamp(30px, 5vw, 44px); color: var(--ink); letter-spacing: -0.02em;
}
.hero-sub {
  display: block; margin-top: 8px; font-size: clamp(15px, 2.4vw, 19px);
  font-weight: 700; color: var(--accent);
}
.hero-desc { margin-top: 14px; max-width: 640px; color: var(--ink-2); font-size: 16px; }
.hero-stats {
  margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 14.5px; color: var(--ink-2);
}
.hero-stats strong { color: var(--accent); font-weight: 800; }
.hero-stats .sep { color: var(--ink-3); }

.hero-slim { padding: 26px 0 18px; }
.hero-slim .hero-title { font-size: clamp(26px, 4vw, 34px); }

.back-link {
  display: inline-block; color: var(--accent); font-weight: 700; font-size: 14.5px;
  margin-bottom: 4px;
}
.back-link:hover { color: var(--accent-dark); text-decoration: underline; }
.hero-slim .back-link { margin-top: 14px; }

/* =========================== FEATURED =========================== */
.featured {
  display: flex; align-items: center; gap: 20px; margin: 6px 0 36px;
  background: var(--bg-2); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow);
  transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
}
.featured:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.featured-body { flex: 1; min-width: 0; }
.featured-flag {
  display: inline-block; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 3px 10px; border-radius: 20px; margin-bottom: 12px;
}
.featured-title {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(20px, 3vw, 26px);
  line-height: 1.25; color: var(--ink); transition: color 0.15s;
}
.featured:hover .featured-title { color: var(--accent); }
.featured-excerpt { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; }
.featured-arrow {
  flex: none; font-size: 26px; color: var(--accent); transition: transform 0.2s;
}
.featured:hover .featured-arrow { transform: translateX(5px); }

/* ====================== SECTION HEAD ====================== */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 6px 0 18px; gap: 14px;
}
.section-head h2 {
  font-family: var(--font-display); font-weight: 800; font-size: 21px; color: var(--ink);
  display: flex; align-items: center; gap: 11px; letter-spacing: -0.01em; white-space: nowrap;
}
.section-head h2::before {
  content: ""; width: 4px; height: 20px; border-radius: 2px; background: var(--accent);
}
.section-count { color: var(--ink-3); font-size: 13.5px; font-weight: 600; }

/* ====================== POST LIST (cards) ====================== */
.index-section { margin-bottom: 40px; }
.post-index { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.row-no { display: none; }

.row-link {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 18px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow);
  transition: border-color 0.16s, box-shadow 0.16s, transform 0.16s;
}
.row-link:hover { border-color: var(--accent-line); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.row-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.row-title {
  font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.35;
  color: var(--ink); transition: color 0.15s;
}
.row-link:hover .row-title { color: var(--accent); }
.row-excerpt {
  color: var(--ink-2); font-size: 14.5px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 2px; }
.row-read { color: var(--ink-3); font-size: 12.5px; font-weight: 600; }
.row-date {
  color: var(--ink-3); font-size: 13px; font-weight: 600; white-space: nowrap; align-self: start;
  padding-top: 2px;
}
.row-arrow { display: none; }

/* =========================== PAGER =========================== */
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 26px; }
.pager-btn {
  font-weight: 700; font-size: 14px; color: var(--accent);
  border: 1px solid var(--accent-line); border-radius: var(--radius-sm); padding: 8px 16px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.pager-btn:not(.is-off):hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.pager-btn.is-off { color: var(--ink-3); border-color: var(--line); cursor: default; }
.pager-now { color: var(--ink-2); font-size: 13.5px; font-weight: 600; }

/* =========================== CHIPS =========================== */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--accent-soft); color: var(--accent-dark);
  font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
  transition: background 0.15s, color 0.15s;
}
a.chip:hover { background: var(--accent); color: #fff; }
.chip-lg { font-size: 13.5px; padding: 6px 13px; }
.chip-count { color: inherit; opacity: 0.7; font-size: 0.85em; }
.chip-list { display: flex; flex-wrap: wrap; gap: 9px; }
.tags-cloud { margin-bottom: 30px; }

/* =========================== EMPTY =========================== */
.empty {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 28px; text-align: center; color: var(--ink-2); box-shadow: var(--shadow);
}
.empty-mark { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--ink); margin-bottom: 8px; }
.empty a { color: var(--accent); font-weight: 700; }
.empty code { font-family: var(--font-mono); font-size: 0.88em; background: var(--bg-3); padding: 2px 6px; border-radius: 4px; }

/* =========================== ARTICLE =========================== */
.article { max-width: var(--read); margin: 0 auto; }
.article-head { margin: 6px 0 22px; }
.meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ink-3); font-size: 13.5px; font-weight: 600; }
.meta-line .dot { color: var(--ink-3); }
.meta-top { margin-bottom: 12px; }
.article-title {
  font-family: var(--font-display); font-weight: 800; line-height: 1.18;
  font-size: clamp(28px, 4.5vw, 40px); color: var(--ink); letter-spacing: -0.02em;
}
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.article-cover { margin: 8px 0 24px; }
.article-cover img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); display: block; }

/* =========================== PROSE =========================== */
.prose { font-size: 17px; line-height: 1.8; color: var(--ink); }
.prose > * + * { margin-top: 1.1em; }
.prose h1, .prose h2, .prose h3, .prose h4 {
  font-family: var(--font-display); font-weight: 800; color: var(--ink);
  line-height: 1.3; letter-spacing: -0.01em; scroll-margin-top: 80px;
}
.prose h2 { font-size: 1.55em; margin-top: 1.9em; padding-bottom: 0.3em; border-bottom: 1px solid var(--line); }
.prose h3 { font-size: 1.28em; margin-top: 1.6em; }
.prose h4 { font-size: 1.1em; margin-top: 1.4em; }
.prose p { margin-top: 1.1em; }
.prose a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--accent-dark); }
.prose strong { font-weight: 800; color: var(--ink); }
.prose ul, .prose ol { margin-top: 1.1em; padding-left: 1.4em; }
.prose li { margin-top: 0.4em; }
.prose li::marker { color: var(--accent); }
.prose img { max-width: 100%; border-radius: var(--radius-sm); display: block; }
.prose figure { margin-top: 1.4em; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2em 0; }

/* Trích dẫn kiểu "Note" của GFG */
.prose blockquote {
  margin-top: 1.4em; padding: 14px 18px;
  background: var(--accent-soft); border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink);
}
.prose blockquote p { margin-top: 0.6em; }
.prose blockquote p:first-child { margin-top: 0; }

/* Bảng */
.prose table { width: 100%; border-collapse: collapse; margin-top: 1.4em; font-size: 15px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.prose th, .prose td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--accent-soft); font-weight: 800; color: var(--ink); }
.prose tbody tr:nth-child(even) { background: var(--bg-3); }

/* Code trong dòng */
.prose :not(pre) > code {
  font-family: var(--font-mono); font-size: 0.86em;
  background: var(--bg-3); color: var(--accent-2);
  padding: 2px 6px; border-radius: 4px; border: 1px solid var(--line-soft);
}

/* ====================== KHỐI CODE (kiểu GFG) ====================== */
.code-block {
  margin-top: 1.5em; background: var(--code-bg);
  border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
}
.code-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--code-head); border-bottom: 1px solid var(--line);
  padding: 7px 12px;
}
.code-dots { display: none; }
.code-lang {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); flex: 1;
}
.code-copy {
  font-family: var(--font-body); font-size: 12.5px; font-weight: 700; color: var(--ink-2);
  background: transparent; border: 1px solid var(--line); border-radius: 5px;
  padding: 4px 12px; cursor: pointer; transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.code-copy:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.code-copy.copied { color: var(--accent); border-color: var(--accent); }
.code-block pre { margin: 0; padding: 16px 18px; overflow-x: auto; }
.code-block pre code {
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.65;
  background: none; padding: 0; border: none; color: var(--ink);
}

/* Tô màu cú pháp — SÁNG (kiểu GitHub) */
html[data-theme="light"] .hljs-comment, html[data-theme="light"] .hljs-quote { color: #6a737d; font-style: italic; }
html[data-theme="light"] .hljs-keyword, html[data-theme="light"] .hljs-selector-tag, html[data-theme="light"] .hljs-built_in { color: #d73a49; }
html[data-theme="light"] .hljs-string, html[data-theme="light"] .hljs-attr { color: #032f62; }
html[data-theme="light"] .hljs-number, html[data-theme="light"] .hljs-literal { color: #005cc5; }
html[data-theme="light"] .hljs-title, html[data-theme="light"] .hljs-section, html[data-theme="light"] .hljs-function .hljs-title { color: #6f42c1; }
html[data-theme="light"] .hljs-type, html[data-theme="light"] .hljs-class .hljs-title { color: #e36209; }
html[data-theme="light"] .hljs-tag { color: #22863a; }
html[data-theme="light"] .hljs-name, html[data-theme="light"] .hljs-variable { color: #005cc5; }
html[data-theme="light"] .hljs-meta { color: #6a737d; }
html[data-theme="light"] .hljs-symbol, html[data-theme="light"] .hljs-bullet { color: #e36209; }

/* Tô màu cú pháp — TỐI */
html[data-theme="dark"] .hljs-comment, html[data-theme="dark"] .hljs-quote { color: #6b7684; font-style: italic; }
html[data-theme="dark"] .hljs-keyword, html[data-theme="dark"] .hljs-selector-tag, html[data-theme="dark"] .hljs-built_in { color: #ff7b72; }
html[data-theme="dark"] .hljs-string, html[data-theme="dark"] .hljs-attr { color: #a5d6ff; }
html[data-theme="dark"] .hljs-number, html[data-theme="dark"] .hljs-literal { color: #79c0ff; }
html[data-theme="dark"] .hljs-title, html[data-theme="dark"] .hljs-section, html[data-theme="dark"] .hljs-function .hljs-title { color: #d2a8ff; }
html[data-theme="dark"] .hljs-type, html[data-theme="dark"] .hljs-class .hljs-title { color: #ffa657; }
html[data-theme="dark"] .hljs-tag { color: #7ee787; }
html[data-theme="dark"] .hljs-name, html[data-theme="dark"] .hljs-variable { color: #79c0ff; }
html[data-theme="dark"] .hljs-meta { color: #79c0ff; }
html[data-theme="dark"] .hljs-symbol, html[data-theme="dark"] .hljs-bullet { color: #ffa657; }

/* ====================== ARTICLE FOOT ====================== */
.article-foot { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.byline { color: var(--ink-2); font-size: 14.5px; }
.byline strong { color: var(--ink); font-weight: 800; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 16px; }
.share-label { color: var(--ink-3); font-size: 13.5px; font-weight: 700; margin-right: 2px; }
.share a, .copy-link {
  font-family: var(--font-body); font-size: 13.5px; font-weight: 700; color: var(--ink-2);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 6px 14px; cursor: pointer; transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.share a:hover, .copy-link:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.copy-link.copied { color: var(--accent); border-color: var(--accent); }

/* ====================== POST NAV ====================== */
.post-nav { max-width: var(--read); margin: 30px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.post-nav-card {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow); transition: border-color 0.16s, box-shadow 0.16s, transform 0.16s;
}
.post-nav-card:hover { border-color: var(--accent-line); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.post-nav-card.align-end { text-align: right; align-items: flex-end; }
.post-nav-dir { color: var(--accent); font-size: 13px; font-weight: 700; }
.post-nav-title { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; line-height: 1.35; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-nav-card:hover .post-nav-title { color: var(--accent); }

/* ====================== RELATED ====================== */
.related { max-width: var(--read); margin: 44px auto 0; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.related-card {
  display: flex; flex-direction: column; gap: 7px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow); transition: border-color 0.16s, box-shadow 0.16s, transform 0.16s;
}
.related-card:hover { border-color: var(--accent-line); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.related-date { color: var(--ink-3); font-size: 12.5px; font-weight: 600; }
.related-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.35; color: var(--ink); transition: color 0.15s; }
.related-card:hover .related-title { color: var(--accent); }
.related-excerpt { color: var(--ink-2); font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* =========================== FOOTER =========================== */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); margin-top: 50px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 34px 22px; }
.footer-brand { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--ink); max-width: 420px; }
.footer-brand p { font-family: var(--font-body); font-weight: 400; font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.footer-meta { text-align: right; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px; margin-bottom: 10px; }
.footer-links a { color: var(--ink-2); font-weight: 700; font-size: 14px; }
.footer-links a:hover { color: var(--accent); }
.copyright { color: var(--ink-3); font-size: 13px; }
.copyright a { color: var(--accent); font-weight: 700; }

/* =========================== 404 =========================== */
.error-page { max-width: 520px; margin: 60px auto; text-align: center; }
.error-code { font-family: var(--font-display); font-weight: 800; font-size: clamp(72px, 16vw, 120px); line-height: 1; color: var(--accent); }
.error-page h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 4vw, 30px); color: var(--ink); margin-top: 8px; }
.error-page p { color: var(--ink-2); margin-top: 12px; }
.error-page .btn { margin-top: 24px; }

/* =========================== SEARCH =========================== */
.search-overlay {
  position: fixed; inset: 0; z-index: 300; background: rgba(15, 23, 30, 0.45);
  backdrop-filter: blur(4px); display: flex; align-items: flex-start; justify-content: center;
  padding: 12vh 20px 20px; animation: fade 0.15s ease;
}
.search-overlay[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.search-panel {
  width: 100%; max-width: 600px; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
}
.search-box { display: flex; align-items: center; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.search-box input { flex: 1; background: transparent; border: none; outline: none; font-family: var(--font-body); font-size: 1rem; color: var(--ink); }
.search-box kbd { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px; }
.search-results { list-style: none; max-height: 56vh; overflow-y: auto; }
.search-results li a { display: block; padding: 12px 18px; border-top: 1px solid var(--line-soft); transition: background 0.12s; }
.search-results li a:hover, .search-results li a.active { background: var(--accent-soft); }

/* =========================== A11Y =========================== */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

/* =========================== RESPONSIVE =========================== */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .featured { flex-direction: column; align-items: flex-start; gap: 14px; }
  .featured-arrow { display: none; }
  .row-link { grid-template-columns: 1fr; gap: 10px; }
  .row-date { padding-top: 0; }
  .post-nav { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-meta { text-align: left; }
  .footer-links { justify-content: flex-start; }
  .prose { font-size: 16.5px; }
}
@media (max-width: 460px) {
  .wrap { padding: 0 16px; }
  .header-inner { height: 56px; }
  .nav-link { padding: 8px 8px; font-size: 14px; }
  .brand-name { font-size: 18px; }
}
