:root {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-tertiary: #21262d;
  --bg-card: #1c2128;
  --bg-card-hover: #22272e;
  --border: #30363d;
  --border-muted: #21262d;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #656d76;
  --accent-green: #3fb950;
  --accent-green-glow: rgba(63, 185, 80, 0.15);
  --accent-green-dim: #238636;
  --accent-blue: #58a6ff;
  --accent-blue-glow: rgba(88, 166, 255, 0.15);
  --accent-purple: #bc8cff;
  --accent-orange: #f0883e;
  --sev-p0: #f85149;
  --sev-p0-bg: rgba(248, 81, 73, 0.1);
  --sev-p0-border: rgba(248, 81, 73, 0.3);
  --sev-p1: #f0883e;
  --sev-p1-bg: rgba(240, 136, 62, 0.1);
  --sev-p1-border: rgba(240, 136, 62, 0.3);
  --sev-p2: #d29922;
  --sev-p2-bg: rgba(210, 153, 34, 0.1);
  --sev-p2-border: rgba(210, 153, 34, 0.3);
  --sev-p3: #58a6ff;
  --sev-p3-bg: rgba(88, 166, 255, 0.1);
  --sev-p3-border: rgba(88, 166, 255, 0.3);
  --status-resolved: #3fb950;
  --status-ongoing: #f85149;
  --status-monitoring: #d29922;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.4), 0 4px 12px rgba(0,0,0,0.3);
  --shadow-card-hover: 0 4px 16px rgba(0,0,0,0.5), 0 8px 32px rgba(0,0,0,0.4);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ─── SCROLLBAR ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ─── LAYOUT ─────────────────────────────────────────────── */
.site-wrapper {
  display: grid;
  grid-template-columns: 260px 1fr;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
}

/* ─── HEADER ─────────────────────────────────────────────── */
.site-header {
  grid-column: 1 / -1;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent-green), #1a7f37);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 0 12px var(--accent-green-glow);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.logo-subtitle {
  font-size: 10px;
  font-weight: 500;
  color: var(--accent-green);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-resolved);
  box-shadow: 0 0 6px var(--status-resolved);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--status-resolved); }
  50% { opacity: 0.7; box-shadow: 0 0 12px var(--status-resolved); }
}

.header-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-mono);
}

.stat-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.stat-label {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.header-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
}

/* ─── SIDEBAR ─────────────────────────────────────────────── */
.sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  padding: 20px 0;
  overflow-y: auto;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
}

.sidebar-section {
  margin-bottom: 24px;
}

.sidebar-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 0 16px;
  margin-bottom: 6px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  cursor: pointer;
  transition: var(--transition);
  border-left: 2px solid transparent;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
}

.sidebar-item:hover, .sidebar-item.active {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-left-color: var(--accent-green);
}

.sidebar-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-item-icon { font-size: 14px; }

.sidebar-badge {
  font-size: 10px;
  font-family: var(--font-mono);
  padding: 1px 6px;
  border-radius: 10px;
  background: var(--bg-tertiary);
  color: var(--text-muted);
}

.sidebar-item.active .sidebar-badge {
  background: var(--accent-green-glow);
  color: var(--accent-green);
}

.filter-group {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 12px;
  border: 1px solid transparent;
}

.filter-chip:hover { background: var(--bg-tertiary); }
.filter-chip.selected { border-color: var(--border); background: var(--bg-tertiary); }

.sev-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.chip-count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

/* ─── MAIN CONTENT ────────────────────────────────────────── */
.main-content {
  padding: 24px 28px;
  overflow-y: auto;
}

/* ─── TOOLBAR ─────────────────────────────────────────────── */
.toolbar {
  display: flex;
  align-items: center;
  justify-between: space-between;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  flex: 1;
  max-width: 400px;
  transition: var(--transition);
}

.search-box:focus-within {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px var(--accent-blue-glow);
}

.search-box svg { color: var(--text-muted); flex-shrink: 0; }

.search-input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 13px;
  font-family: var(--font-sans);
  width: 100%;
}

.search-input::placeholder { color: var(--text-muted); }

.sort-select {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  color: var(--text-primary);
  font-size: 12px;
  font-family: var(--font-sans);
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.sort-select:hover { border-color: var(--text-muted); }

.view-toggle {
  display: flex;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.view-btn {
  background: none;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
  font-size: 14px;
}

.view-btn.active, .view-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

/* ─── STATS BANNER ────────────────────────────────────────── */
.stats-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--text-muted);
  transform: translateY(-1px);
  box-shadow: var(--shadow-card-hover);
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.stat-icon.total { background: rgba(88, 166, 255, 0.1); }
.stat-icon.p0 { background: var(--sev-p0-bg); }
.stat-icon.resolved { background: var(--accent-green-glow); }
.stat-icon.mttr { background: rgba(188, 140, 255, 0.1); }

.stat-info { min-width: 0; }
.stat-number {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-mono);
  line-height: 1;
  margin-bottom: 2px;
}
.stat-desc {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── POST CARDS ──────────────────────────────────────────── */
.posts-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.posts-grid.grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 16px;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
}

.post-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--sev-color, var(--border));
  transition: var(--transition);
}

.post-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-muted);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.post-card:hover::before { width: 4px; }

.post-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.post-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  flex: 1;
}

.post-card:hover .post-title { color: var(--accent-blue); }

.post-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  border: 1px solid;
  white-space: nowrap;
}

.badge-p0 { color: var(--sev-p0); background: var(--sev-p0-bg); border-color: var(--sev-p0-border); }
.badge-p1 { color: var(--sev-p1); background: var(--sev-p1-bg); border-color: var(--sev-p1-border); }
.badge-p2 { color: var(--sev-p2); background: var(--sev-p2-bg); border-color: var(--sev-p2-border); }
.badge-p3 { color: var(--sev-p3); background: var(--sev-p3-bg); border-color: var(--sev-p3-border); }

.badge-resolved { color: var(--status-resolved); background: rgba(63, 185, 80, 0.1); border-color: rgba(63, 185, 80, 0.3); }
.badge-ongoing { color: var(--status-ongoing); background: rgba(248, 81, 73, 0.1); border-color: rgba(248, 81, 73, 0.3); }
.badge-monitoring { color: var(--status-monitoring); background: rgba(210, 153, 34, 0.1); border-color: rgba(210, 153, 34, 0.3); }

.post-summary {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.meta-item svg { width: 12px; height: 12px; flex-shrink: 0; }

.post-services {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.service-tag {
  font-size: 10px;
  padding: 2px 7px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  transition: var(--transition);
}

.post-card:hover .service-tag {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* ─── LOADING / EMPTY STATES ──────────────────────────────── */
.loading-state, .empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  color: var(--text-muted);
  gap: 16px;
}

.loading-icon {
  font-size: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.terminal-line {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-green);
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-line::before {
  content: '>';
  color: var(--text-muted);
}

.blink {
  animation: blink 1s step-end infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ─── PAGINATION ──────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.page-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font-mono);
  transition: var(--transition);
}

.page-btn:hover, .page-btn.active {
  border-color: var(--accent-green);
  color: var(--accent-green);
  background: var(--accent-green-glow);
}

/* ─── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  grid-column: 1 / -1;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ─── POST VIEW (post.html) ───────────────────────────────── */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px;
}

.post-content-wrapper { min-width: 0; }

.post-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.post-toolbar .post-back-btn { margin-bottom: 0; }

.language-switch {
  display: inline-flex;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.language-switch[hidden] { display: none; }

.language-option {
  padding: 7px 10px;
  color: var(--text-secondary);
  font: 12px var(--font-mono);
  line-height: 1;
  text-decoration: none;
  transition: var(--transition);
}

.language-option + .language-option { border-left: 1px solid var(--border); }
.language-option:hover { color: var(--text-primary); }
.language-option[aria-current="page"] {
  background: var(--accent-blue-glow);
  color: var(--accent-blue);
}

.post-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 24px;
  transition: var(--transition);
  font-family: var(--font-mono);
}

.post-back-btn:hover { color: var(--accent-blue); }

.post-page-header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.post-page-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.4px;
}

.post-page-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.post-toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  position: sticky;
  top: 80px;
}

.toc-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-family: var(--font-mono);
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc-item a {
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 4px 8px;
  display: block;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  border-left: 2px solid transparent;
}

.toc-item a:hover, .toc-item a.active {
  color: var(--accent-blue);
  background: var(--accent-blue-glow);
  border-left-color: var(--accent-blue);
}

.toc-item.h3 a { padding-left: 20px; font-size: 11px; }

/* ─── MARKDOWN CONTENT ────────────────────────────────────── */
.markdown-body {
  color: var(--text-primary);
  line-height: 1.7;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  margin: 28px 0 12px;
  font-weight: 600;
  letter-spacing: -0.3px;
  line-height: 1.3;
  color: var(--text-primary);
  scroll-margin-top: 80px;
}

.markdown-body h2 {
  font-size: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.markdown-body h3 { font-size: 17px; color: var(--text-secondary); }

.markdown-body p { margin: 0 0 14px; }

.markdown-body a { color: var(--accent-blue); text-decoration: none; }
.markdown-body a:hover { text-decoration: underline; }

.markdown-body code {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-orange);
}

.markdown-body pre {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  overflow-x: auto;
  margin: 16px 0;
  position: relative;
}

.markdown-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-primary);
  font-size: 13px;
}

.markdown-body pre::before {
  content: attr(data-lang);
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13px;
}

.markdown-body th {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.markdown-body td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-muted);
  color: var(--text-secondary);
}

.markdown-body tr:last-child td { border-bottom: none; }
.markdown-body tr:hover td { background: var(--bg-tertiary); color: var(--text-primary); }

.markdown-body ul, .markdown-body ol {
  padding-left: 24px;
  margin: 0 0 14px;
}

.markdown-body li { margin: 4px 0; }

.markdown-body blockquote {
  border-left: 3px solid var(--accent-blue);
  padding: 12px 16px;
  margin: 16px 0;
  background: var(--accent-blue-glow);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
}

.markdown-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

/* ─── INFO PANEL (post sidebar) ──────────────────────────── */
.info-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.info-card-title {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-family: var(--font-mono);
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 12px;
}

.info-row-label { color: var(--text-muted); }
.info-row-value { color: var(--text-primary); font-family: var(--font-mono); font-weight: 500; }

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag-pill {
  font-size: 10px;
  padding: 3px 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ─── TOAST ───────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-card-hover);
  transform: translateY(20px);
  opacity: 0;
  transition: var(--transition);
  z-index: 1000;
  font-family: var(--font-mono);
}

.toast.show { transform: translateY(0); opacity: 1; }
.toast-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-green); }

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .stats-banner { grid-template-columns: repeat(2, 1fr); }
  .post-layout { grid-template-columns: 1fr; }
  .post-toc { position: static; }
}

@media (max-width: 768px) {
  .site-wrapper { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .stats-banner { grid-template-columns: repeat(2, 1fr); }
  .header-meta .header-stat { display: none; }
}

@media (max-width: 480px) {
  .stats-banner { grid-template-columns: 1fr 1fr; }
  .main-content { padding: 16px; }
}

/* ─── ANIMATE IN ──────────────────────────────────────────── */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.post-card {
  animation: fadeSlideIn 0.3s ease backwards;
}

.post-card:nth-child(1) { animation-delay: 0.05s; }
.post-card:nth-child(2) { animation-delay: 0.1s; }
.post-card:nth-child(3) { animation-delay: 0.15s; }
.post-card:nth-child(4) { animation-delay: 0.2s; }
.post-card:nth-child(5) { animation-delay: 0.25s; }
.post-card:nth-child(6) { animation-delay: 0.3s; }

/* ─── UPTIME BAR ──────────────────────────────────────────── */
.uptime-bar {
  display: flex;
  gap: 2px;
  margin-top: 8px;
}

.uptime-day {
  flex: 1;
  height: 24px;
  border-radius: 2px;
  transition: var(--transition);
  cursor: default;
}

.uptime-day:hover { opacity: 0.8; transform: scaleY(1.1); }
.uptime-day.ok { background: var(--accent-green-dim); }
.uptime-day.incident { background: var(--sev-p0); }
.uptime-day.degraded { background: var(--sev-p1); }
.uptime-day.empty { background: var(--bg-tertiary); }
