@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Figtree:wght@300;400;500;600&display=swap');

:root {
  --bg: #f4f6fb;
  --indigo: #3730a3;
  --indigo-dark: #1e1b6e;
  --indigo-light: #e0e7ff;
  --slate: #64748b;
  --ink: #0f172a;
  --green: #059669;
  --red: #dc2626;
  --card: #ffffff;
  --border: #dde3f0;
  --stripe: rgba(55,48,163,0.04);
}

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

body {
  font-family: 'Figtree', sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

/* Sidebar layout */
.layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  background: var(--indigo-dark);
  color: #fff;
  padding: 36px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-logo {
  font-family: 'Libre Baskerville', serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.sidebar-dept {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 32px;
}

.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }

.nav-item {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-item.active { background: rgba(255,255,255,0.14); color: #fff; font-weight: 600; }
.nav-icon { font-size: 0.95rem; }

/* Main content */
.main { padding: 40px 40px 80px; }

/* Header */
.page-header { margin-bottom: 40px; }
.dept-label { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--slate); margin-bottom: 12px; }

h1 {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--ink);
}

.subtitle { margin-top: 14px; font-size: 1.02rem; color: var(--slate); max-width: 60ch; line-height: 1.72; }

/* KPI row */
.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.kpi { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 20px; }
.kpi-num { font-family: 'Libre Baskerville', serif; font-size: 1.9rem; color: var(--indigo); display: block; line-height: 1; }
.kpi-label { font-size: 0.75rem; color: var(--slate); display: block; margin-top: 6px; text-transform: uppercase; letter-spacing: 0.08em; }

/* Section */
section { margin-bottom: 44px; scroll-margin-top: 20px; }
.section-title {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--indigo-light);
}

/* Cards */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 26px; margin-bottom: 16px; }
.card:hover { box-shadow: 0 4px 20px rgba(55,48,163,0.09); }
.card h2 { font-family: 'Libre Baskerville', serif; font-size: 1.1rem; font-weight: 700; color: var(--indigo); margin-bottom: 12px; }
.card p { color: var(--slate); line-height: 1.75; font-size: 0.96rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }

.card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.card ul li { padding-left: 20px; position: relative; color: var(--slate); font-size: 0.94rem; line-height: 1.6; }
.card ul li::before { content: '§'; position: absolute; left: 0; color: var(--indigo); font-size: 0.7rem; top: 3px; }

/* Tax table */
.tax-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.tax-table th { text-align: left; padding: 11px 14px; background: var(--indigo); color: #fff; font-weight: 500; font-family: 'Libre Baskerville', serif; font-size: 0.85rem; }
.tax-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); }
.tax-table tr:nth-child(even) td { background: var(--stripe); }
.tax-table tr:last-child td { border-bottom: none; }
.tax-table .rate { font-family: 'Libre Baskerville', serif; font-weight: 700; color: var(--indigo); }

/* Tags */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag { background: var(--indigo-light); color: var(--indigo-dark); padding: 4px 13px; border-radius: 999px; font-size: 0.8rem; font-weight: 500; }

@media (max-width: 768px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
