/* ============================================================
   Linux Admin Toolkit — styles.css
   Design: Industrial minimalism. Inspired by GitHub / Linear.
   Font: IBM Plex Mono (logo/code) + IBM Plex Sans (body)
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --bg:           #0d1117;
  --bg-alt:       #161b22;
  --bg-card:      #1c2128;
  --bg-card-hover:#212830;
  --border:       #30363d;
  --border-light: #21262d;
  --text-primary: #e6edf3;
  --text-secondary:#8b949e;
  --text-muted:   #6e7681;
  --accent:       #3fb950;
  --accent-dim:   #1a4426;
  --accent-glow:  rgba(63, 185, 80, 0.15);
  --red:          #f85149;
  --code-bg:      #161b22;
  --code-text:    #79c0ff;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.6);
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    14px;
  --nav-h:        60px;
  --font-body:    'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono:    'IBM Plex Mono', 'Fira Code', ui-monospace, monospace;
  --transition:   0.18s ease;
}

[data-theme="light"] {
  --bg:           #ffffff;
  --bg-alt:       #f6f8fa;
  --bg-card:      #ffffff;
  --bg-card-hover:#f6f8fa;
  --border:       #d0d7de;
  --border-light: #eaeef2;
  --text-primary: #1f2328;
  --text-secondary:#656d76;
  --text-muted:   #9198a1;
  --accent:       #1a7f37;
  --accent-dim:   #dafbe1;
  --accent-glow:  rgba(26, 127, 55, 0.08);
  --code-bg:      #f6f8fa;
  --code-text:    #0550ae;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.12);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1.5rem);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 15px; line-height: 1.65;
  background: var(--bg); color: var(--text-primary);
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--accent); color: #fff;
  padding: 0.5rem 1rem; border-radius: var(--radius-sm);
  font-weight: 600; z-index: 9999; transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

kbd {
  display: inline-block; padding: 0.1em 0.45em;
  font-family: var(--font-mono); font-size: 0.75em;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 4px; color: var(--text-secondary);
}

/* ---------- NAVIGATION ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border-bottom: 1px solid var(--border-light);
}

.nav-container {
  display: flex; align-items: center; gap: 1rem;
  max-width: 1140px; margin: 0 auto; padding: 0 1.5rem;
  height: var(--nav-h);
}

.nav-logo {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--text-primary); font-weight: 700; font-size: 0.95rem;
  text-decoration: none; white-space: nowrap; flex-shrink: 0;
}
.nav-logo:hover { text-decoration: none; opacity: 0.9; }
.logo-icon {
  font-family: var(--font-mono); font-size: 1rem; font-weight: 600;
  color: var(--accent); background: var(--accent-dim);
  padding: 0.2em 0.4em; border-radius: 5px; letter-spacing: -0.02em;
}
.logo-accent { color: var(--accent); }

.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
  list-style: none; margin-left: auto;
}
.nav-link {
  display: inline-block; padding: 0.35rem 0.65rem;
  font-size: 0.875rem; font-weight: 500; color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary); background: var(--bg-card); text-decoration: none;
}

.nav-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: 0.75rem; }

.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; background: none;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
}
.theme-toggle:hover { background: var(--bg-card); color: var(--text-primary); }
.theme-toggle svg { width: 16px; height: 16px; }

[data-theme="dark"] .icon-sun  { display: block; }
[data-theme="dark"] .icon-moon { display: none;  }
[data-theme="light"] .icon-sun  { display: none;  }
[data-theme="light"] .icon-moon { display: block; }
.icon-sun  { display: block; }
.icon-moon { display: none;  }

.hamburger {
  display: none; flex-direction: column; justify-content: space-between;
  width: 36px; height: 36px; padding: 9px 7px;
  background: none; border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer;
}
.hamburger span {
  display: block; height: 2px; width: 100%;
  background: var(--text-secondary); border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.mobile-menu {
  display: none; border-top: 1px solid var(--border); background: var(--bg);
  padding: 0.75rem 0;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; padding: 0 1.5rem; }
.mobile-link {
  display: block; padding: 0.65rem 0;
  color: var(--text-secondary); font-size: 0.9rem;
  border-bottom: 1px solid var(--border-light); text-decoration: none;
}
.mobile-link:hover { color: var(--text-primary); }

/* ---------- HERO ---------- */
.hero {
  padding: 5rem 0 4rem;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, var(--accent-glow), transparent);
  border-bottom: 1px solid var(--border-light);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--accent); font-weight: 500;
  background: var(--accent-dim); border: 1px solid var(--accent);
  padding: 0.3em 0.75em; border-radius: 20px; margin-bottom: 1.5rem;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-heading {
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 700;
  line-height: 1.2; letter-spacing: -0.03em; margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.1rem); color: var(--text-secondary);
  line-height: 1.7; max-width: 560px; margin-bottom: 2rem;
}

/* Search */
.search-wrapper { margin-bottom: 2rem; max-width: 540px; }
.search-box {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 0 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-box:focus-within {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow);
}
.search-icon { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; }
.search-input {
  flex: 1; background: none; border: none; outline: none;
  font-family: var(--font-body); font-size: 0.9rem;
  color: var(--text-primary); padding: 0.8rem 0;
}
.search-input::placeholder { color: var(--text-muted); }
.search-kbd {
  display: none; font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--text-muted); background: var(--bg-alt);
  border: 1px solid var(--border); border-radius: 4px;
  padding: 0.1em 0.4em; flex-shrink: 0;
}
@media (min-width: 768px) { .search-kbd { display: inline-block; } }

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; }
.btn {
  display: inline-flex; align-items: center; padding: 0.65rem 1.35rem;
  font-size: 0.875rem; font-weight: 600; border-radius: var(--radius-sm);
  cursor: pointer; border: 1px solid transparent;
  transition: all var(--transition); text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-secondary { background: var(--bg-card); color: var(--text-primary); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--accent); }

.hero-stats { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-mono); font-size: 1.3rem; font-weight: 600; line-height: 1; }
.stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }
.stat-divider { width: 1px; height: 2.5rem; background: var(--border); }

/* ---------- SECTIONS ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-header { margin-bottom: 2.5rem; }
.section-title {
  font-size: clamp(1.4rem, 3vw, 1.85rem); font-weight: 700;
  letter-spacing: -0.025em; margin-bottom: 0.4rem;
}
.section-desc { color: var(--text-secondary); font-size: 0.95rem; }

/* ---------- FILTER TABS ---------- */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.75rem; }
.filter-tab {
  padding: 0.35rem 0.85rem; font-size: 0.82rem; font-weight: 500;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; cursor: pointer; color: var(--text-secondary);
  transition: all var(--transition);
}
.filter-tab:hover { color: var(--text-primary); border-color: var(--accent); }
.filter-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- COMMANDS GRID ---------- */
.commands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}
.cmd-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.25rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.cmd-card:hover {
  border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-1px);
}
.cmd-card-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem;
}
.cmd-meta { display: flex; gap: 0.4rem; }
.cmd-category {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em; padding: 0.2em 0.6em;
  background: var(--accent-dim); color: var(--accent); border-radius: 4px;
}
.cmd-title {
  font-family: var(--font-mono); font-size: 1rem; font-weight: 600;
  color: var(--text-primary); margin-bottom: 0.5rem;
}
.cmd-desc {
  font-size: 0.86rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 0.9rem;
}
.cmd-desc code {
  font-family: var(--font-mono); font-size: 0.82em;
  background: var(--code-bg); color: var(--code-text);
  padding: 0.1em 0.35em; border-radius: 3px;
}
.cmd-snippet {
  background: var(--code-bg); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); padding: 0.85rem 1rem;
  overflow-x: auto; font-size: 0.8rem; line-height: 1.7;
}
.cmd-snippet code {
  font-family: var(--font-mono); color: var(--code-text); white-space: pre;
}

/* ---------- COPY BUTTON ---------- */
.copy-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.65rem; font-size: 0.78rem; font-weight: 500;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer; color: var(--text-secondary);
  transition: all var(--transition); white-space: nowrap;
}
.copy-btn:hover { background: var(--bg-card-hover); color: var(--text-primary); border-color: var(--accent); }
.copy-btn svg { width: 13px; height: 13px; }
.copy-btn.copied { color: var(--accent); border-color: var(--accent); background: var(--accent-dim); }
.copy-btn.inline { font-size: 0.76rem; padding: 0.2rem 0.55rem; }

.no-results { text-align: center; padding: 3rem 1rem; color: var(--text-secondary); }

/* ---------- GUIDES GRID ---------- */
.guides-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem;
}
.guide-card {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.25rem; text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.guide-card:hover {
  border-color: var(--accent); box-shadow: var(--shadow-md);
  transform: translateY(-1px); text-decoration: none;
}
.guide-icon {
  flex-shrink: 0; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-dim); border-radius: var(--radius-sm); color: var(--accent);
}
.guide-icon svg { width: 20px; height: 20px; }
.guide-body { flex: 1; }
.guide-title {
  font-size: 0.9rem; font-weight: 600; color: var(--text-primary);
  margin-bottom: 0.4rem; line-height: 1.4;
}
.guide-desc { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 0.65rem; }
.guide-meta { display: flex; align-items: center; gap: 0.5rem; }
.guide-tag {
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.15em 0.5em; background: var(--accent-dim); color: var(--accent); border-radius: 4px;
}
.guide-read { font-size: 0.76rem; color: var(--text-muted); }
.guide-arrow {
  flex-shrink: 0; width: 16px; height: 16px; color: var(--text-muted); margin-top: 0.25rem;
  transition: transform var(--transition), color var(--transition);
}
.guide-card:hover .guide-arrow { transform: translateX(4px); color: var(--accent); }

/* ---------- MONITORING GRID ---------- */
.monitoring-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem;
}
.monitor-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.25rem;
}
.monitor-title {
  display: flex; align-items: center; gap: 0.65rem;
  font-size: 0.92rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.9rem;
}
.monitor-num {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent);
  background: var(--accent-dim); padding: 0.15em 0.4em; border-radius: 3px; flex-shrink: 0;
}

/* ---------- LOG TABLE ---------- */
.log-table-wrapper {
  overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border);
}
.log-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.log-table th {
  background: var(--bg-card); padding: 0.85rem 1rem;
  text-align: left; font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.log-table td {
  padding: 0.9rem 1rem; vertical-align: top;
  border-bottom: 1px solid var(--border-light); color: var(--text-secondary); line-height: 1.6;
}
.log-table td code {
  font-family: var(--font-mono); font-size: 0.82em;
  background: var(--code-bg); color: var(--code-text);
  padding: 0.15em 0.4em; border-radius: 3px;
}
.log-table td small { font-size: 0.78em; color: var(--text-muted); display: block; margin-top: 0.2rem; }
.log-table tr:last-child td { border-bottom: none; }
.log-table tr:hover td { background: var(--bg-alt); }

/* ---------- ARTICLES GRID ---------- */
.articles-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem;
}
.article-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.35rem;
  text-decoration: none; display: flex; flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.article-card:hover {
  border-color: var(--accent); box-shadow: var(--shadow-md);
  transform: translateY(-1px); text-decoration: none;
}
.article-tag-row { margin-bottom: 0.75rem; }
.article-tag {
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.2em 0.55em; background: var(--accent-dim); color: var(--accent); border-radius: 4px;
}
.article-title {
  font-size: 0.95rem; font-weight: 600; color: var(--text-primary);
  line-height: 1.45; margin-bottom: 0.55rem;
}
.article-excerpt {
  font-size: 0.83rem; color: var(--text-secondary); line-height: 1.65;
  flex: 1; margin-bottom: 1rem;
}
.article-footer {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.76rem; color: var(--text-muted);
  padding-top: 0.9rem; border-top: 1px solid var(--border-light);
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--bg-alt); border-top: 1px solid var(--border); padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr auto; gap: 3rem; margin-bottom: 2.5rem;
}
.footer-logo { margin-bottom: 0.75rem; }
.footer-tagline { font-size: 0.85rem; color: var(--text-muted); max-width: 240px; line-height: 1.6; }
.footer-nav { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-col h4 {
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-secondary); margin-bottom: 0.9rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { font-size: 0.85rem; color: var(--text-muted); text-decoration: none; transition: color var(--transition); }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  padding-top: 1.5rem; border-top: 1px solid var(--border-light);
  font-size: 0.78rem; color: var(--text-muted);
}

/* ---------- TOAST ---------- */
.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.65rem 1rem;
  font-size: 0.85rem; color: var(--text-primary);
  box-shadow: var(--shadow-lg); z-index: 9999;
  transform: translateY(calc(100% + 2rem));
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s;
  opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 0.5rem;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast::before {
  content: ''; display: block; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent); flex-shrink: 0;
}

/* ---------- ARTICLE PAGES ---------- */
.article-hero { padding: 3rem 0 2rem; border-bottom: 1px solid var(--border-light); }
.article-breadcrumb { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1rem; }
.article-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.article-breadcrumb a:hover { color: var(--accent); }
.article-breadcrumb span { margin: 0 0.4rem; }
.article-heading {
  font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.25; margin-bottom: 1rem;
}
.article-meta {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
  font-size: 0.82rem; color: var(--text-muted); margin-top: 1rem;
}
.article-body { padding: 2.5rem 0 4rem; }
.article-content { max-width: 720px; }
.article-content h2 {
  font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em;
  margin: 2.25rem 0 0.85rem;
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-light);
}
.article-content h3 { font-size: 1.05rem; font-weight: 600; margin: 1.75rem 0 0.6rem; }
.article-content p {
  font-size: 0.95rem; line-height: 1.8; margin-bottom: 1.1rem; color: var(--text-secondary);
}
.article-content a { color: var(--accent); }
.article-content a:hover { text-decoration: underline; }
.article-content code {
  font-family: var(--font-mono); font-size: 0.84em;
  background: var(--code-bg); color: var(--code-text);
  padding: 0.15em 0.45em; border-radius: 4px; border: 1px solid var(--border-light);
}
.article-content pre {
  background: var(--code-bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1rem 1.1rem;
  overflow-x: auto; margin: 1.25rem 0;
}
.article-content pre code {
  background: none; border: none; padding: 0;
  font-size: 0.83rem; line-height: 1.75; color: var(--code-text); white-space: pre;
}
.article-content ul, .article-content ol { padding-left: 1.4rem; margin-bottom: 1.1rem; }
.article-content li {
  font-size: 0.95rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 0.35rem;
}
.article-content .callout {
  background: var(--accent-dim); border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.9rem 1.1rem; margin: 1.5rem 0;
  font-size: 0.875rem; color: var(--text-secondary); line-height: 1.65;
}
.article-content table {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.875rem;
}
.article-content th {
  background: var(--bg-card); padding: 0.7rem 0.9rem;
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text-secondary); border: 1px solid var(--border); text-align: left;
}
.article-content td {
  padding: 0.7rem 0.9rem; border: 1px solid var(--border-light);
  color: var(--text-secondary); vertical-align: top;
}
.article-content tr:hover td { background: var(--bg-alt); }

.article-aside { display: none; }
.article-layout { display: grid; gap: 3rem; }
@media (min-width: 960px) {
  .article-layout { grid-template-columns: 1fr 220px; align-items: start; }
  .article-aside { display: block; position: sticky; top: calc(var(--nav-h) + 1.5rem); }
}

.toc {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.1rem;
}
.toc-title {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-secondary); margin-bottom: 0.8rem;
}
.toc ul { list-style: none; }
.toc li { margin-bottom: 0.4rem; }
.toc a { font-size: 0.82rem; color: var(--text-secondary); text-decoration: none; }
.toc a:hover { color: var(--accent); }

.article-related { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.article-related h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.25rem; }
.related-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.75rem;
}
.related-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1rem; text-decoration: none;
  transition: border-color var(--transition);
}
.related-card:hover { border-color: var(--accent); text-decoration: none; }
.related-card h3 { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.3rem; line-height: 1.4; }
.related-card p { font-size: 0.78rem; color: var(--text-muted); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-nav { gap: 2rem; }
}
@media (max-width: 600px) {
  .hero { padding: 3rem 0 2.5rem; }
  .section { padding: 3rem 0; }
  .commands-grid, .monitoring-grid, .guides-grid, .articles-grid { grid-template-columns: 1fr; }
  .footer-nav { flex-direction: column; gap: 1.5rem; }
  .footer-grid { gap: 1.5rem; }
  .log-table th:nth-child(2), .log-table td:nth-child(2) { display: none; }
}

/* ---------- CONTACT FORM ---------- */
.contact-form-wrapper { margin-top: 1.5rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }
.form-input {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.65rem 0.85rem;
  font-family: var(--font-body); font-size: 0.9rem; color: var(--text-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-input::placeholder { color: var(--text-muted); }
.form-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
select.form-input { cursor: pointer; }

/* ---------- PRINT ---------- */
@media print {
  .site-header, .toast, .copy-btn, .hero-cta, .search-wrapper { display: none !important; }
  body { font-size: 12pt; color: #000; }
}

/* ---------- PERMALINK ANCHOR ---------- */
.cmd-title-row { display: flex; align-items: center; gap: 0.5rem; }
.cmd-permalink {
  opacity: 0; color: var(--text-muted); transition: opacity var(--transition);
  display: inline-flex; align-items: center;
}
.cmd-permalink svg { width: 14px; height: 14px; }
.cmd-card:hover .cmd-permalink,
.cmd-card:focus-within .cmd-permalink { opacity: 1; }
.cmd-permalink:hover { color: var(--accent); }

/* ---------- MOBILE TABLE REFLOW ---------- */
@media (max-width: 600px) {
  .log-table thead { display: none; }
  .log-table, .log-table tbody, .log-table tr, .log-table td { display: block; width: 100%; }
  .log-table tr { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 0.75rem; padding: 0.75rem; }
  .log-table td { border: none; padding: 0.3rem 0; font-size: 0.83rem; }
  .log-table td:first-child { font-weight: 600; color: var(--text-primary); margin-bottom: 0.25rem; }
  .log-table tr:hover td { background: none; }
}

/* ---------- 404 PAGE ---------- */
.error-page { min-height: 60vh; display: flex; align-items: center; }
.error-code { font-family: var(--font-mono); font-size: 5rem; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 1rem; }
.error-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; }
.error-desc { color: var(--text-secondary); margin-bottom: 2rem; max-width: 420px; line-height: 1.7; }

