/* ============================================================
   The Jakarta Broadsheet — Editorial Modernist Design System
   IndoNews v2.5 | 2026
   ============================================================ */

/* --- Design Tokens ----------------------------------------- */
:root {
  /* Palette — Light (warm parchment) */
  --bg:           #F7F4EF;
  --surface:      #FFFFFF;
  --surface-alt:  #F0EDE7;
  --topbar-bg:    rgba(247, 244, 239, 0.88);
  --fg:           #1C1917;
  --fg-secondary: #44403C;
  --muted:        #78716C;
  --border:       #D6D3D1;
  --border-light: #E7E5E4;
  --card-shadow:  0 1px 3px rgba(28, 25, 23, 0.06), 0 1px 2px rgba(28, 25, 23, 0.04);
  --card-shadow-hover: 0 8px 25px rgba(28, 25, 23, 0.10), 0 2px 6px rgba(28, 25, 23, 0.06);

  /* Accents */
  --accent:       #B91C1C;
  --accent-light: #FEE2E2;
  --accent-ink:   #FFFFFF;
  --gold:         #B45309;
  --gold-light:   #FEF3C7;
  --banking:      #1E40AF;
  --banking-light:#DBEAFE;
  --economy:      #047857;
  --economy-light:#D1FAE5;

  /* Status */
  --ok:           #047857;
  --ok-bg:        #ECFDF5;
  --warn-color:   #92400E;
  --warn-bg:      #FFFBEB;

  /* Typography */
  --font-display: "Playfair Display", "Noto Serif TC", "Noto Serif SC", "Source Han Serif TC", "STSong", serif;
  --font-body:    "Manrope", "PingFang TC", "PingFang SC", "Microsoft JhengHei", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Mono", "Consolas", monospace;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration: 0.3s;
}

/* --- Dark Mode --------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #0C0A09;
    --surface:      #1C1917;
    --surface-alt:  #292524;
    --topbar-bg:    rgba(12, 10, 9, 0.88);
    --fg:           #F5F5F4;
    --fg-secondary: #D6D3D1;
    --muted:        #A8A29E;
    --border:       #3F3A36;
    --border-light: #292524;
    --card-shadow:  0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
    --card-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);

    --accent:       #EF4444;
    --accent-light: rgba(239, 68, 68, 0.15);
    --accent-ink:   #FFFFFF;
    --gold:         #F59E0B;
    --gold-light:   rgba(245, 158, 11, 0.15);
    --banking:      #60A5FA;
    --banking-light:rgba(96, 165, 250, 0.15);
    --economy:      #34D399;
    --economy-light:rgba(52, 211, 153, 0.15);

    --ok:           #34D399;
    --ok-bg:        rgba(52, 211, 153, 0.12);
    --warn-color:   #FBBF24;
    --warn-bg:      rgba(251, 191, 36, 0.12);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

/* Subtle grain texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

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

/* --- Skip Link --------------------------------------------- */
.skip-link {
  position: fixed;
  left: -9999px;
  top: 16px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
}
.skip-link:focus { left: 16px; }

/* --- Container --------------------------------------------- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Topbar / Masthead ------------------------------------- */
.topbar {
  background: var(--topbar-bg);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 0 0;
}

/* Masthead / Brand */
.brand { flex: 1; }

.brand-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--fg);
}

.brand-rule {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 8px 0;
  border: none;
  border-radius: 2px;
}

.brand-tagline {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.4;
  max-width: 380px;
}

/* Language selector */
.lang {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  min-width: 180px;
  flex-shrink: 0;
}

.lang-label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lang .select {
  width: auto;
  min-width: 160px;
  padding: 6px 10px;
  font-size: 0.85rem;
}

/* Time bar */
.time-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 10px 0;
  font-size: 0.8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  border-top: 1px solid var(--border-light);
  margin-top: 12px;
}

.time-row strong {
  color: var(--fg-secondary);
  font-weight: 700;
}

/* Warning */
.warn {
  padding: 10px 14px;
  margin: 8px 0;
  background: var(--warn-bg);
  border: 1px solid rgba(180, 83, 9, 0.2);
  border-radius: 8px;
  color: var(--warn-color);
  font-size: 0.85rem;
  font-weight: 500;
}

/* --- Navigation -------------------------------------------- */
.nav {
  display: flex;
  gap: 2px;
  padding: 8px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }

.nav-link {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  text-decoration: none;
  color: var(--muted);
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  position: relative;
  transition: color var(--duration) var(--ease-out);
  border-radius: 6px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--duration) var(--ease-out);
}

.nav-link:hover {
  color: var(--fg);
  text-decoration: none;
  background: var(--surface-alt);
}

.nav-link.active {
  color: var(--accent);
}
.nav-link.active::after {
  transform: scaleX(1);
}

/* --- Main Content ------------------------------------------ */
.main {
  padding: 28px 0 48px;
  animation: fadeIn 0.5s var(--ease-out);
}

/* --- Page Title -------------------------------------------- */
.page-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 4px;
  color: var(--fg);
}

.page-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 32px 0 16px;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* --- Utility Classes --------------------------------------- */
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

/* --- Cards ------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--card-shadow);
  transition: box-shadow var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

.card:hover {
  box-shadow: var(--card-shadow-hover);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--fg);
}

/* --- Grid Layouts ------------------------------------------ */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

/* --- Download Cards ---------------------------------------- */
.download-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--card-shadow);
  transition: all var(--duration) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.download-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  opacity: 0;
  transition: opacity var(--duration) var(--ease-out);
}

.download-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}

.download-card:hover::before {
  opacity: 1;
}

.download-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.download-format {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

/* --- Pills & Badges ---------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pill.ok {
  background: var(--ok-bg);
  color: var(--ok);
  border: 1px solid rgba(4, 120, 87, 0.2);
}

.pill.warn {
  background: var(--warn-bg);
  color: var(--warn-color);
  border: 1px solid rgba(180, 83, 9, 0.2);
}

/* --- File Meta --------------------------------------------- */
.meta {
  color: var(--muted);
  font-size: 0.85rem;
  display: grid;
  gap: 4px;
  margin: 12px 0 16px;
  font-variant-numeric: tabular-nums;
}

.meta code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--surface-alt);
  padding: 1px 5px;
  border-radius: 4px;
}

/* --- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  font-family: var(--font-body);
}

.btn:hover {
  text-decoration: none;
  background: var(--surface-alt);
  border-color: var(--muted);
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.btn.primary:hover {
  filter: brightness(1.1);
  background: var(--accent);
  border-color: var(--accent);
}

/* --- Form Elements ----------------------------------------- */
.input, .select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  outline: none;
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: border-color var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}

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

.input:focus, .select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

/* --- Info Box ---------------------------------------------- */
.info {
  background: var(--gold-light);
  border: 1px solid rgba(180, 83, 9, 0.15);
  color: var(--gold);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 0.9rem;
  font-weight: 500;
}

/* --- Filters ----------------------------------------------- */
.filters { display: grid; gap: 14px; }
.filters-row { display: grid; gap: 14px; }
.filters-row-3 { grid-template-columns: 1.4fr 1.2fr 1fr; }

.filters-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-top: 4px;
}

.field { display: grid; gap: 5px; }

.field-label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* HTMX loading */
.loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.8rem;
}

.htmx-indicator { display: none; }
.htmx-indicator.htmx-request {
  display: inline-flex;
  animation: pulse 1.5s ease-in-out infinite;
}

/* --- Stats Grid -------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.5s var(--ease-out) both;
}

.stat:nth-child(1) { animation-delay: 0.05s; }
.stat:nth-child(2) { animation-delay: 0.10s; }
.stat:nth-child(3) { animation-delay: 0.15s; }
.stat:nth-child(4) { animation-delay: 0.20s; }
.stat:nth-child(5) { animation-delay: 0.25s; }
.stat:nth-child(6) { animation-delay: 0.30s; }
.stat:nth-child(7) { animation-delay: 0.35s; }
.stat:nth-child(8) { animation-delay: 0.40s; }

.stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  border-radius: 0 2px 2px 0;
}

.stat:nth-child(1)::before { background: var(--accent); }
.stat:nth-child(2)::before { background: var(--banking); }
.stat:nth-child(3)::before { background: var(--economy); }
.stat:nth-child(4)::before { background: var(--gold); }
.stat:nth-child(5)::before { background: var(--accent); }
.stat:nth-child(6)::before { background: var(--banking); }
.stat:nth-child(7)::before { background: var(--economy); }
.stat:nth-child(8)::before { background: var(--gold); }

.stat-label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  margin-top: 4px;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

/* --- Bar Chart --------------------------------------------- */
.bar-chart {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px;
  display: grid;
  gap: 6px;
  box-shadow: var(--card-shadow);
  max-height: 500px;
  overflow-y: auto;
}

.bar-row {
  display: grid;
  grid-template-columns: 100px 1fr 44px;
  gap: 10px;
  align-items: center;
  padding: 3px 0;
  animation: fadeInLeft 0.4s var(--ease-out) both;
}

.bar-row:nth-child(n) {
  animation-delay: calc(var(--i, 0) * 0.02s);
}

.bar-date {
  color: var(--muted);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.bar-track {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-alt);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  animation: barGrow 0.8s var(--ease-out) both;
  animation-delay: inherit;
}

.bar-count {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--fg-secondary);
  font-weight: 800;
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

/* --- Articles List ----------------------------------------- */
.articles {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.article {
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all var(--duration) var(--ease-out);
  animation: fadeInUp 0.35s var(--ease-out) both;
}

.article:hover {
  border-color: var(--border);
  box-shadow: var(--card-shadow-hover);
}

.article-summary {
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  transition: background var(--duration) var(--ease-out);
}

.article-summary:hover {
  background: var(--surface-alt);
}

details.article > summary::-webkit-details-marker { display: none; }
details.article > summary::marker { display: none; content: ''; }

details.article[open] {
  border-color: var(--accent);
}

details.article[open] > summary {
  border-bottom: 1px solid var(--border-light);
  background: var(--surface-alt);
}

.article-title {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.badge { font-size: 1rem; flex-shrink: 0; }

.title-text {
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--fg);
}

.article-sub {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.8rem;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.meta-line {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.article-body {
  padding: 16px;
  display: grid;
  gap: 12px;
}

/* --- Chips ------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fg-secondary);
}

.chip-economy {
  background: var(--economy-light);
  border-color: rgba(4, 120, 87, 0.2);
  color: var(--economy);
}

.chip-banking {
  background: var(--banking-light);
  border-color: rgba(30, 64, 175, 0.2);
  color: var(--banking);
}

/* --- Content Preview --------------------------------------- */
.content {
  border-top: 1px dashed var(--border);
  padding-top: 12px;
}

.content-title {
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.content-pre {
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: var(--surface-alt);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 320px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--fg-secondary);
}

/* --- Prose (About page) ------------------------------------ */
.prose {
  line-height: 1.75;
  color: var(--fg-secondary);
}

.prose h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 24px 0 8px;
  color: var(--fg);
}

.prose ul {
  padding-left: 20px;
  margin: 6px 0 12px;
}

.prose li {
  margin: 4px 0;
  font-size: 0.92rem;
}

.prose li::marker {
  color: var(--accent);
}

/* --- Footer ------------------------------------------------ */
.footer {
  padding: 20px 0 32px;
  color: var(--muted);
  font-size: 0.78rem;
  border-top: 1px solid var(--border-light);
  text-align: center;
  letter-spacing: 0.04em;
  font-weight: 500;
}

/* --- Animations -------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes barGrow {
  from { width: 0; }
}

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger for article list */
.article:nth-child(1)  { animation-delay: 0.02s; }
.article:nth-child(2)  { animation-delay: 0.04s; }
.article:nth-child(3)  { animation-delay: 0.06s; }
.article:nth-child(4)  { animation-delay: 0.08s; }
.article:nth-child(5)  { animation-delay: 0.10s; }
.article:nth-child(6)  { animation-delay: 0.12s; }
.article:nth-child(7)  { animation-delay: 0.14s; }
.article:nth-child(8)  { animation-delay: 0.16s; }
.article:nth-child(9)  { animation-delay: 0.18s; }
.article:nth-child(10) { animation-delay: 0.20s; }

/* --- Custom Scrollbar -------------------------------------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* --- Responsive -------------------------------------------- */
@media (max-width: 960px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .topbar-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .lang {
    align-items: stretch;
    min-width: unset;
    flex-direction: row;
    gap: 10px;
    align-items: center;
  }

  .lang-label { flex-shrink: 0; }

  .brand-title { font-size: 1.75rem; }

  .grid-2 { grid-template-columns: 1fr; }
  .filters-row-3 { grid-template-columns: 1fr; }

  .bar-row { grid-template-columns: 84px 1fr 40px; }

  .page-title { font-size: 1.5rem; }

  .container { padding: 0 16px; }

  .stat-value { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .time-row { flex-direction: column; gap: 4px; }
  .nav { gap: 0; }
  .nav-link { padding: 8px 10px; font-size: 0.8rem; }
}

/* --- Focus Visible ----------------------------------------- */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Print ------------------------------------------------- */
@media print {
  .topbar, .nav, .filters, .footer, .btn, .skip-link { display: none !important; }
  .main { padding: 0; }
  body { background: white; color: black; }
  body::after { display: none; }
  .card, .stat, .article { box-shadow: none; border: 1px solid #ccc; }
}
