/* ============================================================
   kb.txtly.ru — Light theme (with system dark mode support)
   ============================================================ */

:root {
  /* Brand colors (light) */
  --color-bg: #f7f8f9;
  --color-surface: #ffffff;
  --color-text: #222222;
  --color-text-light: #555555;
  --color-text-muted: #888888;
  --color-primary: #1e73be;
  --color-primary-hover: #155d9a;
  --color-border: #dddddd;
  --color-border-light: #e8e8e8;
  --color-code-bg: #eef1f4;
  --color-code-border: rgba(0, 0, 0, 0.06);
  --color-success: #27ae60;
  --color-success-hover: #219a52;
  --color-success-bg: #eafaf1;
  --color-danger: #e74c3c;
  --color-danger-hover: #c0392b;
  --color-danger-bg: #fdedec;
  --color-warning: #f39c12;
  --color-warning-bg: #fef9e7;
  --color-info: #3498db;
  --color-info-bg: #eaf2fd;
  --color-purple-accent: #8e44ad;
  --color-purple-accent-hover: #7d3c98;
  --color-orange-accent: #e67e22;
  --color-orange-accent-hover: #d35400;

  /* archlet component system variables (override theme-default palette) */
  --ac-color-bg: #f7f8f9;
  --ac-color-surface: #ffffff;
  --ac-color-text: #222222;
  --ac-color-text-light: #555555;
  --ac-color-text-muted: #888888;
  --ac-color-primary: #1e73be;
  --ac-color-primary-hover: #155d9a;
  --ac-color-border: #dddddd;
  --ac-color-border-light: #e8e8e8;
}

/* Dark mode — both via media query AND [data-theme] attribute */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #1a1b26;
    --color-surface: #24253a;
    --color-text: #c0caf5;
    --color-text-light: #a9b1d6;
    --color-text-muted: #565f89;
    --color-primary: #7aa2f7;
    --color-primary-hover: #89b4fa;
    --color-border: #3b4261;
    --color-border-light: #292e42;
    --color-code-bg: #292e42;
    --color-code-border: rgba(255, 255, 255, 0.07);
    --color-success: #4ade80;
    --color-success-hover: #22c55e;
    --color-success-bg: rgba(74, 222, 128, 0.1);
    --color-danger: #f87171;
    --color-danger-hover: #ef4444;
    --color-danger-bg: rgba(248, 113, 113, 0.1);
    --color-warning: #fbbf24;
    --color-warning-bg: rgba(251, 191, 36, 0.1);
    --color-info: #60a5fa;
    --color-info-bg: rgba(96, 165, 250, 0.1);
    --color-purple-accent: #c084fc;
    --color-purple-accent-hover: #a855f7;
    --color-orange-accent: #fb923c;
    --color-orange-accent-hover: #f97316;
    --color-card-gradient: linear-gradient(135deg, #1a1b26 0%, #24253a 100%);

    --ac-color-bg: #1a1b26;
    --ac-color-surface: #24253a;
    --ac-color-text: #c0caf5;
    --ac-color-text-light: #a9b1d6;
    --ac-color-text-muted: #565f89;
    --ac-color-primary: #7aa2f7;
    --ac-color-primary-hover: #89b4fa;
    --ac-color-border: #3b4261;
    --ac-color-border-light: #292e42;
  }
}

[data-theme="dark"], .dark {
  --color-bg: #1a1b26;
  --color-surface: #24253a;
  --color-text: #c0caf5;
  --color-text-light: #a9b1d6;
  --color-text-muted: #565f89;
  --color-primary: #7aa2f7;
  --color-primary-hover: #89b4fa;
  --color-border: #3b4261;
  --color-border-light: #292e42;
  --color-code-bg: #292e42;
  --color-code-border: rgba(255, 255, 255, 0.07);
  --color-success: #4ade80;
  --color-success-hover: #22c55e;
  --color-success-bg: rgba(74, 222, 128, 0.1);
  --color-danger: #f87171;
  --color-danger-hover: #ef4444;
  --color-danger-bg: rgba(248, 113, 113, 0.1);
  --color-warning: #fbbf24;
  --color-warning-bg: rgba(251, 191, 36, 0.1);
  --color-info: #60a5fa;
  --color-info-bg: rgba(96, 165, 250, 0.1);
  --color-purple-accent: #c084fc;
  --color-purple-accent-hover: #a855f7;
  --color-orange-accent: #fb923c;
  --color-orange-accent-hover: #f97316;
  --color-card-gradient: linear-gradient(135deg, #1a1b26 0%, #24253a 100%);

  --ac-color-bg: #1a1b26;
  --ac-color-surface: #24253a;
  --ac-color-text: #c0caf5;
  --ac-color-text-light: #a9b1d6;
  --ac-color-text-muted: #565f89;
  --ac-color-primary: #7aa2f7;
  --ac-color-primary-hover: #89b4fa;
  --ac-color-border: #3b4261;
  --ac-color-border-light: #292e42;
}

img {
  max-width: 100%;
  height: auto;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: #cccccc; border-radius: 4px; }
@media (prefers-color-scheme: dark) {
  ::-webkit-scrollbar-thumb { background: #404060; }
}

/* Mermaid dark mode overrides */
@media (prefers-color-scheme: dark) {
  .mermaid svg .edgePath .path {
    stroke: #a9b1d6 !important;
  }
  .mermaid svg .edgeLabel rect {
    fill: #1a1b26 !important;
  }
  .mermaid svg .edgeLabel span {
    color: #c0caf5 !important;
  }
  .mermaid svg .messageText {
    stroke: none !important;
    fill: #c0caf5 !important;
  }
  .mermaid svg g.node rect,
  .mermaid svg g.node circle,
  .mermaid svg g.node ellipse,
  .mermaid svg g.node polygon {
    stroke: #7aa2f7 !important;
  }
  .mermaid svg g.node .label {
    color: #c0caf5 !important;
  }
  .mermaid svg .arrowheadPath {
    fill: #a9b1d6 !important;
    stroke: #a9b1d6 !important;
  }
  .mermaid svg .flowchart-title {
    fill: #c0caf5 !important;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 17px;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7;
  color-scheme: light dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
}

a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

/* ============================================================
   Header / Site Nav — white background
   ============================================================ */

.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.inside-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.site-branding-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-logo a {
  display: flex;
  align-items: center;
}

.header-image {
  width: 40px;
  height: 40px;
}

.site-branding .main-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.site-branding .main-title a {
  color: var(--color-text);
  text-decoration: none;
}

.site-branding .site-description {
  margin: 0;
  font-size: 0.75rem;
  color: var(--color-text-light);
  line-height: 1.3;
}

.main-navigation .menu {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-item a {
  display: block;
  padding: 0.4rem 0.75rem;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  transition: background 150ms ease, color 150ms ease;
}

.menu-item a:hover,
.menu-item.current-menu-item a {
  background: var(--color-bg);
  color: var(--color-primary);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  color: var(--color-text);
  z-index: 110;
  position: relative;
}

.mobile-menu-overlay {
  display: none;
}

.lang-bar {
  display: none;
}

/* ============================================================
   Layout grid — 3-column (home) / 2-column (post/page)
   ============================================================ */

.app-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-content {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 2rem;
  gap: 2rem;
  flex: 1;
}

/* 3-column layout on home */
.site-content.layout-home {
  display: grid;
  grid-template-columns: 250px 1fr 280px;
  gap: 2rem;
}

/* 2-column layout on post/page: aside-left + article */
.site-content.layout-post {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
}

/* ============================================================
   Content area
   ============================================================ */

.content-area {
  min-width: 0;
}

.content-area article,
.content-area .article-content {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 2rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.entry-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.75rem;
  color: var(--color-text);
}

h1 { font-size: 2rem; font-weight: 700; line-height: 1.25; margin-bottom: 1rem; color: var(--color-text); }
h2 { font-size: 1.5rem; font-weight: 600; margin-top: 2rem; margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--color-border); }
h3 { font-size: 1.2rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.5rem; }

h1, h2, h3 { overflow-wrap: break-word; }

p { margin-bottom: 1rem; }

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
li { margin-bottom: 0.5rem; }

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2rem 0;
}

blockquote {
  border-left: 4px solid var(--color-primary);
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  background: var(--color-bg);
  border-radius: 0 4px 4px 0;
}

code {
  font-family: 'Fira Code', 'JetBrains Mono', monospace;
  font-size: 0.88em;
  background: var(--color-code-bg);
  color: var(--color-text);
  padding: 0.15em 0.4em;
  border: 1px solid var(--color-code-border);
  border-radius: 4px;
  overflow-wrap: break-word;
}

pre {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
  max-width: 100%;
  tab-size: 2;
  font-size: 0.88rem;
  line-height: 1.5;
}

pre code {
  display: block;
  background: none;
  border: none;
  padding: 0;
  white-space: pre;
  word-break: normal;
  overflow-wrap: normal;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.93rem;
}

th, td {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--color-border);
  text-align: left;
}

th {
  background: var(--color-bg);
  font-weight: 600;
}

tbody tr:nth-child(even) {
  background: #fafafa;
}
@media (prefers-color-scheme: dark) {
  tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.04);
  }
}

@media (max-width: 768px) {
  table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
  }

  main.layout-main,
  article.layout-article {
    overflow-x: hidden;
    overflow-x: clip;
  }

  .header-inner {
    flex-wrap: wrap;
  }
}

.katex-display {
  overflow-x: auto;
  overflow-y: hidden;
}

.katex {
  position: relative;
}

main img,
article img {
  max-width: 100%;
  height: auto;
}

/* ============================================================
   Sidebar
   ============================================================ */

.sidebar {
  min-width: 0;
}

.sidebar .inside-right-sidebar,
.sidebar .inside-left-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 1.25rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.widget-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary);
  color: var(--color-text);
}

.wp-block-latest-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wp-block-latest-posts li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--color-bg);
}

.wp-block-latest-posts li:last-child {
  border-bottom: none;
}

.wp-block-latest-posts a {
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--color-primary);
}

.wp-block-categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wp-block-categories-list li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--color-bg);
}

.wp-block-categories-list li:last-child {
  border-bottom: none;
}

.wp-block-categories-list a {
  font-size: 0.88rem;
  color: var(--color-primary);
}

.wp-block-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
}

.wp-block-tag-cloud a {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  font-size: 0.8rem !important;
  color: var(--color-primary);
  text-decoration: none;
}

.wp-block-tag-cloud a:hover {
  background: var(--color-primary);
  color: var(--color-surface);
  border-color: var(--color-primary);
}

.rss-button {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: #f26522;
  color: var(--color-surface) !important;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 500;
}

.rss-button:hover {
  background: #d4551d;
  text-decoration: none !important;
}

@media (prefers-color-scheme: dark) {
  .rss-button {
    background: #f26522;
    color: #0d0d0d !important;
  }
  .rss-button:hover {
    background: #e87c4d;
  }
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  margin-top: auto;
  padding: 1.25rem 2rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-text-light);
}

.site-footer a { color: var(--color-primary); }

/* ============================================================
   Post meta
   ============================================================ */

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.post-categories,
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.82rem;
}

.post-category,
.post-tag {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 0.78rem;
}

.post-category:hover,
.post-tag:hover {
  background: var(--color-primary);
  color: var(--color-surface);
  border-color: var(--color-primary);
}

/* ============================================================
   Home page header and posts
   ============================================================ */

.home-page-header {
  margin-bottom: 2rem;
}

.home-page-header h1 {
  margin-bottom: 0.5rem;
}

.page-description {
  color: var(--color-text-light);
  font-size: 1.05rem;
}

.home-posts-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ============================================================
   Search
   ============================================================ */

.archlet-search {
  position: relative;
}

.archlet-search-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 0.88rem;
  outline: none;
  background: var(--color-surface);
  color: var(--color-text);
}

.archlet-search-input:focus {
  border-color: var(--color-primary);
}

.archlet-search-results {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-height: 320px;
  overflow-y: auto;
  position: absolute;
  width: 100%;
  z-index: 10;
}

.archlet-search-result {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-bg);
}

.archlet-search-result:last-child { border-bottom: none; }
.archlet-search-result:hover { background: var(--color-bg); }

.archlet-search-result strong {
  display: block;
  color: var(--color-primary);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  .site-content.layout-home {
    grid-template-columns: 1fr;
  }

  .site-content.layout-home .sidebar-right {
    order: 2;
    margin-top: 1.5rem;
  }

  .site-content.layout-post {
    display: flex;
    flex-direction: column;
  }

  .site-content.layout-post .content-area {
    order: -1;
  }

  .site-content.layout-post .sidebar-left {
    order: 1;
    margin-top: 1.5rem;
  }

  .sidebar {
    order: 3;
  }
}

@media (max-width: 850px) {
  .inside-header {
    padding: 0 1rem;
  }

  .site-branding .site-description {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .main-navigation {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: var(--color-surface);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 105;
    padding: 80px 1.5rem 2rem;
    transition: right 0.3s ease;
    overflow-y: auto;
  }

  .main-navigation.mobile-open {
    right: 0;
  }

  .main-navigation .menu {
    display: flex !important;
    flex-direction: column;
    gap: 0.5rem;
  }

  .main-navigation .menu-item a {
    font-size: 1.05rem;
    padding: 0.6rem 0.75rem;
  }

  .mobile-menu-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 100;
  }

  .site-content {
    flex-direction: column;
    padding: 1rem;
  }

  .site-content.layout-post {
    display: flex;
    flex-direction: column;
  }

  .site-content.layout-post .content-area {
    order: -1;
  }

  .site-content.layout-post .sidebar-left {
    order: 1;
    margin-top: 1.5rem;
  }
}

/* ============================================================
   Screen reader / skip link
   ============================================================ */

.screen-reader-text,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  top: 0;
  left: 0;
  z-index: 9999;
  width: auto;
  height: auto;
  clip: auto;
  padding: 0.5rem 1rem;
  background: var(--color-text);
  color: var(--color-surface);
  font-size: 0.88rem;
}

/* ============================================================
   Archive pages — post cards (category / tag)
   ============================================================ */

.archive-posts {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.archive-posts .archive-empty {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
  padding: 2rem 0;
}

.post-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.post-card .inside-article {
  padding: 2rem;
}

.post-card .entry-header {
  margin-bottom: 0.75rem;
}

.post-card .entry-title {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}

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

.post-card .entry-title a:hover {
  color: var(--color-primary);
}

.post-card .entry-meta {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.post-card .entry-summary {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin: 1rem 0;
}

.post-card .entry-summary p {
  margin: 0;
}

.post-card footer.entry-meta {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border-light);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.post-card .cat-links a,
.post-card .tags-links a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.post-card .cat-links a:hover,
.post-card .tags-links a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

.post-card .gp-icon {
  margin-right: 0.25rem;
  color: var(--color-primary);
  display: inline-flex;
  vertical-align: middle;
}

.post-card .gp-icon svg {
  fill: currentColor;
}

@media (max-width: 768px) {
  .post-card .inside-article {
    padding: 1.25rem;
  }
  .post-card .entry-title {
    font-size: 1.15rem;
  }
}

/* ============================================================
   Home page — filter bar + pagination
   ============================================================ */

.filter-bar {
  margin-bottom: 1.5rem;
}

.filter-group {
  margin-bottom: 0.5rem;
}

.filter-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-light);
  margin-right: 0.5rem;
}

.filter-chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  vertical-align: middle;
}

.filter-chip {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  font-size: 0.78rem;
  color: var(--color-primary);
  background: var(--color-surface);
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-chip:hover {
  background: #eaf3fb;
  border-color: var(--color-primary);
}
@media (prefers-color-scheme: dark) {
  .filter-chip:hover {
    background: rgba(122, 162, 247, 0.15);
  }
}

.filter-chip.active {
  background: var(--color-primary);
  color: var(--color-surface);
  border-color: var(--color-primary);
}

.chip-count {
  font-size: 0.72rem;
  opacity: 0.75;
}

.filter-clear {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  background: var(--color-surface);
  cursor: pointer;
}

.filter-clear:hover {
  color: #c0392b;
  border-color: #c0392b;
}
@media (prefers-color-scheme: dark) {
  .filter-clear:hover {
    color: #f87171;
    border-color: #f87171;
  }
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border-light);
}

.pagination-btn {
  padding: 0.4rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--color-primary);
  background: var(--color-surface);
  cursor: pointer;
  transition: all 0.15s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--color-primary);
  color: var(--color-surface);
  border-color: var(--color-primary);
}

.pagination-btn:disabled {
  color: #cccccc;
  cursor: default;
  border-color: var(--color-border-light);
}
@media (prefers-color-scheme: dark) {
  .pagination-btn:disabled {
    color: #404060;
  }
}

.pagination-info {
  font-size: 0.82rem;
  color: var(--color-text-light);
}
