/* JS SEO Lab — GitHub-style dark theme.
   Researcher-credible, monospace-friendly, no marketing-bright colors. */

:root {
  /* GitHub dark palette */
  --canvas-default: #0d1117;
  --canvas-subtle: #161b22;
  --canvas-inset: #010409;
  --canvas-overlay: #161b22;

  --border-default: #30363d;
  --border-muted: #21262d;

  --fg-default: #c9d1d9;
  --fg-muted: #8b949e;
  --fg-subtle: #6e7681;
  --fg-emphasis: #f0f6fc;

  --accent-fg: #58a6ff;
  --accent-emphasis: #1f6feb;
  --accent-subtle: #1c2128;

  --success-fg: #3fb950;
  --success-emphasis: #238636;
  --success-hover: #2ea043;

  --danger-fg: #f85149;
  --attention-fg: #d29922;
  --done-fg: #a371f7;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Radius */
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 12px;

  /* Container */
  --container-max: 1280px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg-default);
  background-color: var(--canvas-default);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--fg-emphasis);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 0.6em;
}
h1 { font-size: 2rem; padding-bottom: 0.3em; border-bottom: 1px solid var(--border-muted); margin-bottom: 1em; }
h2 { font-size: 1.5rem; padding-bottom: 0.3em; border-bottom: 1px solid var(--border-muted); margin-top: 1.5em; }
h3 { font-size: 1.25rem; margin-top: 1.25em; }
h4 { font-size: 1rem; margin-top: 1em; }

p { margin-bottom: 1em; }
ul, ol { margin-bottom: 1em; padding-left: 2em; }
li { margin-bottom: 0.25em; }

/* Links */
a {
  color: var(--accent-fg);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* Code */
code {
  font-family: var(--font-mono);
  font-size: 85%;
  background: rgba(110, 118, 129, 0.4);
  padding: 0.2em 0.4em;
  border-radius: var(--radius-sm);
  color: var(--fg-emphasis);
}
pre {
  font-family: var(--font-mono);
  background: var(--canvas-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1em;
  font-size: 0.85rem;
}
pre code {
  background: none;
  padding: 0;
  font-size: 100%;
  color: var(--fg-default);
}

strong { color: var(--fg-emphasis); }
em { color: var(--fg-default); }

hr { border: 0; border-top: 1px solid var(--border-muted); margin: 2em 0; }

/* Container */
.container, .portal-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== Header ========== */
header { background: var(--canvas-default); border-bottom: 1px solid var(--border-default); }

.header-top { padding: 1rem 0; }
.header-top-content {
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg-emphasis);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.logo:hover { color: var(--accent-fg); text-decoration: none; }

/* Mobile menu (CSS-only, checkbox hack) */
.mobile-menu-checkbox { display: none; }
.mobile-menu-toggle {
  display: none;
  width: 32px; height: 24px;
  cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.mobile-menu-toggle span {
  display: block; width: 100%; height: 2px;
  background: var(--fg-default); border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Navbar */
.navbar, .navbar-red {
  background: var(--canvas-subtle) !important;
  border-bottom: 1px solid var(--border-default);
  padding: 0;
  position: sticky; top: 0; z-index: 100;
}
.navbar .flex, .navbar-red .flex { display: flex; }
.nav-menu {
  display: flex; flex-wrap: wrap; gap: 0; align-items: stretch;
  width: 100%;
}
.nav-link {
  color: var(--fg-default);
  text-decoration: none;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-link:hover { color: var(--fg-emphasis); text-decoration: none; }
.nav-link.active { color: var(--fg-emphasis); border-bottom-color: var(--accent-fg); }

@media (max-width: 768px) {
  .mobile-menu-toggle { display: flex; }
  .navbar, .navbar-red { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; position: static; }
  header:has(.mobile-menu-checkbox:checked) .navbar,
  header:has(.mobile-menu-checkbox:checked) .navbar-red { max-height: 600px; }
  .nav-menu { flex-direction: column; }
  .nav-link { padding: 0.6rem 1rem; border-bottom: 1px solid var(--border-muted); }
  .nav-link.active { border-bottom-color: var(--accent-fg); }
}

/* ========== Hero / homepage ========== */
.hero-section { padding: 2.5rem 0 1.5rem; }

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.hero-card {
  background: var(--canvas-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}
.hero-card:hover { border-color: var(--accent-fg); }

.hero-card-link { color: inherit; text-decoration: none; display: block; }
.hero-card-link:hover { text-decoration: none; }

.hero-card-image-wrapper { position: relative; aspect-ratio: 16/9; background: var(--canvas-inset); }
.hero-card-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-card-image-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--canvas-inset), var(--canvas-subtle));
}
.hero-category-tag {
  position: absolute; top: 0.75rem; left: 0.75rem;
  background: var(--canvas-overlay); color: var(--fg-emphasis);
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
}

.hero-card-content { padding: 1.25rem; }
.hero-card-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  border-bottom: none;
  padding-bottom: 0;
  margin-top: 0;
}
.hero-card-description { color: var(--fg-muted); font-size: 0.9rem; margin-bottom: 0.75rem; }
.hero-card-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.85rem; color: var(--fg-subtle); }
.hero-card-date { color: var(--fg-subtle); font-family: var(--font-mono); font-size: 0.8rem; }

/* ========== Buttons ========== */
.btn {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--canvas-subtle);
  color: var(--fg-emphasis);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  margin-right: 0.5rem;
}
.btn:hover { background: var(--border-muted); border-color: var(--fg-subtle); text-decoration: none; color: var(--fg-emphasis); }

.btn-primary, .btn:first-of-type {
  background: var(--success-emphasis);
  border-color: rgba(240, 246, 252, 0.1);
  color: var(--fg-emphasis);
}
.btn-primary:hover { background: var(--success-hover); }

.btn-category {
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
}

/* ========== Category sections (index) ========== */
.category-section { padding: 2rem 0; }
.category-header {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.5rem;
}
.category-title {
  font-size: 1.5rem;
  margin: 0;
  border-bottom: none;
  padding-bottom: 0;
}
.category-line { flex: 1; height: 1px; background: var(--border-default); }

.category-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 900px) { .category-layout { grid-template-columns: 1fr; } }

.category-featured-card {
  background: var(--canvas-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.category-featured-link { display: block; color: inherit; }
.category-featured-link:hover { text-decoration: none; }
.category-featured-image-wrapper { position: relative; aspect-ratio: 16/9; }
.category-featured-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.category-featured-image-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--canvas-inset), var(--canvas-subtle));
}
.category-featured-tag {
  position: absolute; top: 0.75rem; left: 0.75rem;
  background: var(--canvas-overlay); color: var(--fg-emphasis);
  padding: 0.25rem 0.5rem; font-size: 0.75rem;
  border: 1px solid var(--border-default); border-radius: var(--radius-sm);
  font-family: var(--font-mono);
}
.category-featured-date {
  position: absolute; bottom: 0.75rem; right: 0.75rem;
  background: rgba(0,0,0,0.6); color: var(--fg-emphasis);
  padding: 0.2rem 0.5rem; font-size: 0.75rem;
  border-radius: var(--radius-sm); font-family: var(--font-mono);
}
.category-featured-title-overlay {
  position: absolute; bottom: 0.75rem; left: 0.75rem; right: 4rem;
  font-size: 1.1rem; color: var(--fg-emphasis); text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  margin: 0; border: none; padding: 0;
}
.category-featured-content { padding: 1rem 1.25rem; }
.category-featured-description { color: var(--fg-muted); font-size: 0.9rem; }
.category-featured-cta { margin-top: 1rem; }

.category-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.category-sidebar-item {
  background: var(--canvas-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  overflow: hidden;
}
.category-sidebar-link { display: flex; gap: 0.75rem; padding: 0.6rem; color: inherit; }
.category-sidebar-link:hover { background: var(--border-muted); text-decoration: none; }
.category-sidebar-image-wrapper {
  width: 80px; height: 60px; flex-shrink: 0;
  border-radius: var(--radius-sm); overflow: hidden;
}
.category-sidebar-image { width: 100%; height: 100%; object-fit: cover; }
.category-sidebar-image-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--canvas-inset), var(--canvas-subtle));
}
.category-sidebar-content { flex: 1; }
.category-sidebar-date { font-size: 0.75rem; color: var(--fg-subtle); font-family: var(--font-mono); }
.category-sidebar-title { font-size: 0.9rem; margin: 0.25rem 0 0; line-height: 1.3; color: var(--fg-default); border: none; padding: 0; font-weight: 500; }

/* ========== Category articles grid (per-category page) ========== */
.category-page-header { padding: 2rem 0 1rem; }
.category-page-title { font-size: 2rem; }
.category-page-description { color: var(--fg-muted); margin-top: 0.5rem; }

.category-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.category-featured-article {
  background: var(--canvas-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.15s;
}
.category-featured-article:hover { border-color: var(--accent-fg); }
.category-featured-article-link { color: inherit; display: block; }
.category-featured-article-link:hover { text-decoration: none; }
.category-featured-article-image-wrapper { aspect-ratio: 16/9; background: var(--canvas-inset); }
.category-featured-article-image { width: 100%; height: 100%; object-fit: cover; }
.category-featured-article-image-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--canvas-inset), var(--canvas-subtle));
}
.category-featured-article-content { padding: 1rem 1.25rem; }
.category-featured-article-tag {
  display: inline-block;
  background: var(--accent-subtle); color: var(--accent-fg);
  padding: 0.2rem 0.5rem; font-size: 0.7rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  margin-bottom: 0.5rem;
  border: 1px solid var(--accent-subtle);
}
.category-featured-article-title {
  font-size: 1.05rem; margin: 0 0 0.4rem; border: none; padding: 0;
}
.category-featured-article-excerpt { color: var(--fg-muted); font-size: 0.85rem; }
.category-featured-article-meta { display: flex; gap: 0.4rem; margin-top: 0.5rem; font-size: 0.8rem; color: var(--fg-subtle); }
.category-featured-article-author { font-weight: 500; }
.category-featured-article-separator { color: var(--border-default); }
.category-featured-article-date { font-family: var(--font-mono); }

/* ========== Article ========== */
.article { padding: 2rem 0; }
.article-layout { display: grid; grid-template-columns: 1fr 280px; gap: 2rem; }
@media (max-width: 1024px) { .article-layout { grid-template-columns: 1fr; } }
.article-content {
  background: transparent;
  font-size: 1.05rem;
}
.article-image { margin-bottom: 1.5rem; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-default); }
.article-image img { width: 100%; height: auto; display: block; }
.article-header { margin-bottom: 2rem; }
.article-title { font-size: 2rem; line-height: 1.3; margin-top: 0.5rem; }
.article-lead { font-size: 1.1rem; color: var(--fg-muted); margin-bottom: 1.5em; }
.article-meta { font-size: 0.875rem; color: var(--fg-muted); display: flex; gap: 0.75rem; flex-wrap: wrap; }
.article-meta time { font-family: var(--font-mono); }
.article-author a { color: var(--accent-fg); }

.article-body { line-height: 1.7; }
.article-body p { margin-bottom: 1em; }
.article-body h2 { margin-top: 2em; }
.article-body h3 { margin-top: 1.5em; }
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border-muted); }

.article-tags { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border-muted); }
.tags-label { color: var(--fg-muted); font-size: 0.85rem; margin-right: 0.5rem; }

/* ========== Tag pill ========== */
.tag {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  background: var(--accent-subtle); color: var(--accent-fg);
  border: 1px solid var(--accent-subtle);
  border-radius: 999px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  margin: 0.15rem 0.25rem 0.15rem 0;
  text-decoration: none;
}
.tag:hover { background: rgba(31, 111, 235, 0.15); border-color: var(--accent-fg); text-decoration: none; }

/* ========== Breadcrumbs ========== */
.breadcrumbs { margin-bottom: 1.5rem; font-size: 0.85rem; color: var(--fg-muted); }
.breadcrumbs-list { list-style: none; padding: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 0; margin: 0; }
.breadcrumbs-item { display: flex; align-items: center; }
.breadcrumbs-link { color: var(--accent-fg); text-decoration: none; padding: 0.25rem 0.4rem; border-radius: var(--radius-sm); }
.breadcrumbs-link:hover { background: var(--border-muted); text-decoration: none; }
.breadcrumbs-home { display: inline-flex; align-items: center; }
.breadcrumbs-separator { color: var(--border-default); margin: 0 0.25rem; }
.breadcrumbs-current { color: var(--fg-muted); padding: 0.25rem 0.4rem; }

/* ========== TOC ========== */
.article-toc, .toc-accordion {
  background: var(--canvas-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.article-toc summary, .toc-accordion summary {
  cursor: pointer; font-weight: 600; color: var(--fg-emphasis);
  padding: 0.25rem 0;
}
.article-toc { position: sticky; top: 4rem; }
.article-toc-mobile { display: block; }
@media (min-width: 1025px) { .toc-accordion { display: none; } }
@media (max-width: 1024px) { .article-toc { display: none; } }

.toc-list { list-style: none; padding-left: 0.5rem; margin: 0.5rem 0 0; }
.toc-sublist { list-style: none; padding-left: 1rem; margin: 0; }
.toc-list li { margin-bottom: 0.2rem; }
.toc-link { color: var(--accent-fg); text-decoration: none; font-size: 0.85rem; line-height: 1.4; display: block; padding: 0.15rem 0; }
.toc-link:hover { color: var(--fg-emphasis); text-decoration: none; }

/* ========== Related posts ========== */
.related-posts { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border-muted); }
.related-posts-list { list-style: none; padding: 0; }
.related-posts-list li { margin-bottom: 0.5rem; }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.post-card {
  background: var(--canvas-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  overflow: hidden;
}
.post-card:hover { border-color: var(--accent-fg); }
.post-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.post-card-content { padding: 0.75rem; }
.post-card-content h3 { font-size: 0.95rem; margin: 0 0 0.4rem; border: none; padding: 0; }
.post-card-content p { font-size: 0.85rem; color: var(--fg-muted); margin: 0; }

/* ========== Sidebar ========== */
.article-sidebar {
  display: flex; flex-direction: column; gap: 1.5rem;
  font-size: 0.9rem;
}
.sidebar-section {
  background: var(--canvas-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  padding: 1rem;
}
.sidebar-section h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-muted);
  margin: 0 0 0.75rem;
  border: none;
  padding: 0;
  font-weight: 600;
}
.sidebar-list { list-style: none; padding: 0; margin: 0; }
.sidebar-list li { margin-bottom: 0.4rem; line-height: 1.4; }
.sidebar-list a { color: var(--accent-fg); text-decoration: none; font-size: 0.85rem; }
.sidebar-list a:hover { text-decoration: underline; }

.tags-cloud { display: flex; flex-wrap: wrap; }

/* ========== Posts list (archive, author) ========== */
.posts-list { display: flex; flex-direction: column; gap: 1rem; margin: 1.5rem 0; }
.post-item {
  display: flex; gap: 1rem;
  background: var(--canvas-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s;
}
.post-item:hover { border-color: var(--accent-fg); }
.post-item-image { display: block; width: 200px; flex-shrink: 0; }
.post-item-image img { width: 100%; height: 100%; object-fit: cover; }
.post-item-content { flex: 1; padding: 1rem 1.25rem; }
.post-item-content h2 { font-size: 1.1rem; margin: 0 0 0.5rem; border: none; padding: 0; }
.post-item-content h2 a { color: var(--fg-emphasis); }
.post-item-content h2 a:hover { color: var(--accent-fg); text-decoration: none; }
.post-item-content p { color: var(--fg-muted); font-size: 0.9rem; margin-bottom: 0.5rem; }
.post-item-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.8rem; color: var(--fg-subtle); align-items: center; }
.post-item-meta time { font-family: var(--font-mono); }
.post-author { color: var(--fg-muted); }
.post-category a { color: var(--accent-fg); }

@media (max-width: 600px) {
  .post-item { flex-direction: column; }
  .post-item-image { width: 100%; aspect-ratio: 16/9; }
}

/* ========== Authors list / author page ========== */
.authors-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.author-card {
  display: flex; gap: 1rem;
  background: var(--canvas-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.author-image { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid var(--border-default); }
.author-content h2 { font-size: 1.1rem; margin: 0 0 0.5rem; border: none; padding: 0; }
.author-content p { font-size: 0.9rem; color: var(--fg-muted); margin-bottom: 0.5rem; }
.author-posts-count { font-size: 0.8rem; color: var(--fg-subtle); font-family: var(--font-mono); }

.author-header {
  display: flex; gap: 1.5rem; padding: 2rem 0 1.5rem; align-items: flex-start;
  border-bottom: 1px solid var(--border-muted); margin-bottom: 2rem;
}
.author-header-image { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border-default); }
.author-header-content h1 { margin-top: 0; }
.author-bio { color: var(--fg-muted); font-size: 1rem; line-height: 1.6; }

/* ========== Tags map ========== */
.tags-intro { color: var(--fg-muted); margin-bottom: 1.5rem; }
.tags-map-list {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.tags-map-list li {
  background: var(--canvas-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 0;
}
.tag-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-fg);
  margin-bottom: 0.4rem;
}
.tag-link-description { color: var(--fg-muted); font-size: 0.85rem; }

/* ========== Pagination ========== */
.pagination { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin: 2rem 0; flex-wrap: wrap; }
.pagination-numbers { display: flex; gap: 0.25rem; }
.pagination-link {
  display: inline-block; padding: 0.4rem 0.75rem;
  background: var(--canvas-subtle); color: var(--fg-default);
  border: 1px solid var(--border-default);
  border-radius: var(--radius); font-size: 0.875rem;
  text-decoration: none; font-family: var(--font-mono);
}
.pagination-link:hover { background: var(--border-muted); border-color: var(--fg-subtle); text-decoration: none; color: var(--fg-emphasis); }
.pagination-active { background: var(--accent-emphasis); border-color: var(--accent-emphasis); color: var(--fg-emphasis); }

/* ========== About section (index) ========== */
.about-section { padding: 3rem 0; border-top: 1px solid var(--border-muted); margin-top: 2rem; }
.about-content { max-width: 900px; }
.about-title { font-size: 1.5rem; }
.about-intro { color: var(--fg-muted); font-size: 1rem; margin-bottom: 1.5rem; line-height: 1.7; }
.about-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.about-highlight {
  background: var(--canvas-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.about-highlight h3 { font-size: 1rem; margin: 0 0 0.5rem; border: none; padding: 0; }
.about-highlight p { color: var(--fg-muted); font-size: 0.9rem; margin: 0; }
.about-cta { margin-top: 1.5rem; }

/* ========== Forms ========== */
input[type="search"], input[type="text"], input[type="email"] {
  background: var(--canvas-default);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  padding: 0.4rem 0.75rem;
  color: var(--fg-default);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}
input:focus { outline: none; border-color: var(--accent-fg); box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.3); }
button[type="submit"] {
  padding: 0.4rem 1rem;
  background: var(--success-emphasis); color: var(--fg-emphasis);
  border: 1px solid rgba(240, 246, 252, 0.1); border-radius: var(--radius);
  cursor: pointer; font-weight: 500;
}
button[type="submit"]:hover { background: var(--success-hover); }

/* ========== Tables (dashboard, data) ========== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin: 1rem 0;
}
.data-table th, .data-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border-muted);
  text-align: left;
}
.data-table th {
  background: var(--canvas-subtle);
  color: var(--fg-emphasis);
  font-weight: 600;
  border-bottom: 1px solid var(--border-default);
}
.data-table tr:hover { background: var(--canvas-subtle); }
.data-table code { background: rgba(110, 118, 129, 0.2); }

/* ========== Dashboard ========== */
.totals-list {
  list-style: none; padding: 0; margin: 1rem 0;
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  background: var(--canvas-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.totals-list li { white-space: nowrap; color: var(--fg-muted); font-size: 0.9rem; margin: 0; }
.totals-list strong { font-size: 1.4rem; color: var(--fg-emphasis); margin-right: 0.25rem; }

.error-notice {
  background: rgba(248, 81, 73, 0.1);
  border: 1px solid rgba(248, 81, 73, 0.4);
  border-left-width: 4px;
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
}
.error-notice h2 { color: var(--danger-fg); margin-top: 0; border: none; padding: 0; }

/* ========== Footer ========== */
.footer, .footer-red {
  background: var(--canvas-subtle) !important;
  border-top: 1px solid var(--border-default);
  margin-top: 4rem;
  padding: 2rem 0;
}
.footer-nav {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.5rem;
  font-size: 0.85rem;
}
.footer-nav a { color: var(--accent-fg); text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-separator { color: var(--fg-subtle); }
.footer-copyright {
  text-align: center; color: var(--fg-muted); font-size: 0.85rem;
  margin-top: 1rem; font-family: var(--font-mono);
}

/* ========== 404 ========== */
.error-404 {
  max-width: 720px; margin: 4rem auto;
  background: var(--canvas-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
}
.error-404 h1 { color: var(--danger-fg); }

/* ========== Utility ========== */
.muted { color: var(--fg-muted); font-size: 0.9rem; }
.no-posts-message { color: var(--fg-muted); padding: 2rem; text-align: center; background: var(--canvas-subtle); border: 1px solid var(--border-muted); border-radius: var(--radius); }

/* Selection */
::selection { background: rgba(56, 139, 253, 0.4); color: var(--fg-emphasis); }

/* Scrollbar (subtle) */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--canvas-default); }
::-webkit-scrollbar-thumb { background: var(--canvas-subtle); border: 3px solid var(--canvas-default); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-default); }
