/* =========================================================================
   telangana.report — clean government-digital design system
   Modern, accessible civic portal with consistent typography, spacing,
   and component patterns. No external icon fonts or scripts.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+Telugu:wght@400;500;600&display=swap');

:root {
  --accent: #1a56db;
  --accent-hover: #1543ad;
  --danger: #d92d20;
  --success: #16794f;
  --ink: #1a2023;
  --ink-soft: #6b7280;
  --ink-mute: #9ca3af;
  --paper: #f8f9fb;
  --paper-raised: #ffffff;
  --header-footer-bg: #eef2fb;
  --line: #e5e7eb;
  --panel-bg: #0f2748;
  --panel-bg-raised: #16335e;
  --panel-line: rgba(255,255,255,0.14);
  --panel-ink-soft: #a9bdda;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', 'Noto Sans Telugu', -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 15px;
}

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

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

.display {
  font-weight: 700;
}

button:focus-visible, a:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Navbar --------------------------------------------------------- */
.navbar {
  background: var(--header-footer-bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
}

.brand:hover .logo-mark {
  opacity: 0.85;
}

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

.brand-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.brand-domain {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0;
}

.logo-mark {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: opacity 0.15s ease-out;
}

.topnav {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.topnav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.lang-switch {
  display: flex;
  gap: 6px;
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.lang-switch a {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.15s ease-out;
}

.lang-switch a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.lang-switch a.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.nav-donate {
  color: var(--danger) !important;
  font-weight: 600 !important;
}

.nav-escalate {
  color: var(--accent) !important;
  font-weight: 700 !important;
}

/* Mobile nav toggle (hidden by default) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
}

@media (max-width: 640px) {
  .topnav {
    display: none;
    gap: 12px;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper-raised);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px;
  }

  .topnav.active { display: flex; }

  .nav-toggle { display: block; }

  .navbar .container { padding: 12px 20px; }
}

/* ---- Emergency banner ------------------------------------------------ */
.emergency {
  background: linear-gradient(135deg, #fef2f2 0%, #fde8e8 100%);
  border-bottom: 1px solid #fecaca;
  padding: 14px 0;
  font-size: 0.9rem;
}

.emergency .container {
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.emergency-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.emergency-head strong {
  color: var(--danger);
  font-weight: 700;
}

.emergency-ticker {
  flex: 1;
  overflow: hidden;
  min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}

.emergency-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: emergency-scroll 25s linear infinite;
}

.emergency-ticker:hover .emergency-track,
.emergency-ticker:focus-within .emergency-track {
  animation-play-state: paused;
}

@keyframes emergency-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.emergency-numbers {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.emergency-numbers li {
  color: var(--ink);
  white-space: nowrap;
}

.emergency-numbers b {
  display: inline-block;
  background: #fff;
  border: 1px solid #fca5a5;
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  margin-right: 6px;
  font-variant-numeric: tabular-nums;
  color: var(--danger);
  font-weight: 700;
  font-size: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  .emergency-track {
    animation: none;
  }
}

@media (max-width: 640px) {
  .emergency .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ---- Hero -------------------------------------------------------------- */
.hero {
  padding: 36px 0 28px;
  max-width: 960px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.hero-motto {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-motto .dot {
  color: var(--ink-mute);
  font-weight: 400;
}

.hero-functional-tagline {
  margin: 0 0 18px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.hero h1 {
  font-size: 2.4rem;
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 700;
  max-width: 16ch;
  color: var(--ink);
}

.hero p.lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 48ch;
  margin: 0 0 28px;
  line-height: 1.6;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-rule-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-rule {
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, #c2410c 50%, var(--danger) 100%);
  border-radius: 2px;
}

/* ---- Buttons ------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease-out;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

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

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  background: var(--paper);
  border-color: var(--accent);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  border: 1px solid var(--danger);
}

.btn-danger:hover {
  background: #b91d13;
  border-color: #b91d13;
}

.btn-block { display: block; width: 100%; text-align: center; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---- Cards & layout --------------------------------------------------- */
.card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.section {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
}

.section h2 {
  font-size: 1.25rem;
  margin: 0 0 20px;
  font-weight: 700;
  color: var(--ink);
}

.category-group-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin: 28px 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.category-group-title:first-of-type {
  margin-top: 0;
}

/* ---- Category/poll grid ------------------------------------------------ */
.cat-grid, .poll-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.cat-card, .poll-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease-out;
}

.cat-card:hover, .poll-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.cat-card h3, .poll-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
}

.cat-card p, .poll-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---- Homepage primary decision block --------------------------------- */
.decision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.decision-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper-raised);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease-out;
}

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

.decision-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
}

.decision-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.decision-card-primary {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(26,86,219,0.05) 0%, rgba(26,86,219,0.02) 100%);
}

.decision-card-primary:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.decision-secondary-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.decision-secondary-row a {
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.decision-secondary-row a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- Step-number badge (how-it-works page) --------------------------- */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-right: 12px;
}

/* Category icon: colored badge, tint set inline per category type */
.cat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ---- Homepage two-column layout ---------------------------------------- */
.home-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 860px) {
  .home-layout {
    grid-template-columns: 1fr 2fr;
    align-items: start;
  }
}

/* ---- Side panel: one continuous surface, not a stack of cards --------- */
.side-panel-shell {
  background: var(--panel-bg);
  border: 1px solid var(--panel-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  color: #fff;
}

@media (min-width: 860px) {
  .side-panel-shell {
    position: sticky;
    top: 84px;
  }
}

.side-panel-section {
  padding: 22px 22px;
  border-top: 1px solid var(--panel-line);
}

.side-panel-section:first-child {
  border-top: none;
}

.side-panel-section h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: #fff;
}

.side-panel-section p {
  margin: 0 0 14px;
  color: var(--panel-ink-soft);
}

.side-panel-section p:last-child {
  margin-bottom: 0;
}

.side-panel-section .small {
  color: var(--panel-ink-soft);
}

/* Donut legend + stat tiles need panel-aware colors, not the light-theme
   defaults they use on white backgrounds elsewhere on the site. */
.side-panel-section .donut-legend li {
  color: var(--panel-ink-soft);
}

.side-panel-section .donut-legend .count {
  color: #fff;
}

.side-panel-section .donut-chart::before {
  background: var(--panel-bg-raised);
  box-shadow: none;
}

.side-panel-section .stat-tile {
  background: var(--panel-bg-raised);
  border: 1px solid var(--panel-line);
  box-shadow: none;
}

.side-panel-section .stat-tile .label {
  color: var(--panel-ink-soft);
}

.side-panel-section .stat-tile .number {
  color: #7db4ff;
}

.side-panel-section .btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid var(--panel-line);
}

.side-panel-section .btn-secondary:hover {
  background: var(--panel-bg-raised);
  border-color: #fff;
}

/* ---- Prominent "Create a Poll" CTA (a section within the panel shell) -- */
.poll-cta-section {
  background: linear-gradient(135deg, var(--accent) 0%, #1e40af 100%);
  color: #fff;
  border-top: none;
}

.poll-cta-section h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: #fff;
}

.poll-cta-section p {
  margin: 0 0 16px;
  color: rgba(255,255,255,0.88);
  font-size: 0.9rem;
}

.poll-cta-section .btn-primary {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
}

.poll-cta-section .btn-primary:hover {
  background: #f0f4ff;
}

/* ---- Pricing ------------------------------------------------------------ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 12px;
}

.pricing-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  text-align: center;
}

.pricing-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.pricing-card-featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-price {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--ink);
  margin: 12px 0 20px;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: left;
}

.pricing-features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.pricing-features li:last-child { border-bottom: none; }

/* ---- Donut charts --------------------------------------------------------- */
.donut-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.donut-chart {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.donut-chart::before {
  content: '';
  position: absolute;
  inset: 22px;
  background: var(--paper-raised);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.donut-chart.donut-sm {
  width: 96px;
  height: 96px;
}

.donut-chart.donut-sm::before {
  inset: 16px;
}

.donut-legend {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 160px;
}

.donut-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.donut-legend .swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.donut-legend .count {
  margin-left: auto;
  font-weight: 600;
  color: var(--ink);
}

/* ---- Plan badges ---------------------------------------------------------- */
.plan-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.plan-badge-free { background: #f3f4f6; color: #374151; }
.plan-badge-basic { background: #dbeafe; color: #0369a1; }
.plan-badge-pro { background: #fef3c7; color: #92400e; }

/* ---- Stat tiles ------------------------------------------------------- */
.stat-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 0;
}

.stat-tile {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-tile .number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.stat-tile .label {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ---- Forms --------------------------------------------------------------- */
.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--ink);
}

.field .hint {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 5px;
}

input[type=text], input[type=email], input[type=tel],
input[type=password], input[type=number], input[type=date],
input[type=file], textarea, select {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-raised);
  color: var(--ink);
  transition: all 0.15s ease-out;
}

input[type=text]:focus, input[type=email]:focus, input[type=tel]:focus,
input[type=password]:focus, input[type=number]:focus, input[type=date]:focus,
input[type=file]:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  background: var(--paper-raised);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input[type=checkbox], input[type=radio] {
  margin-right: 8px;
}

.radio-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.15s ease-out;
}

.radio-option:hover {
  border-color: var(--accent);
  background: var(--paper);
}

.radio-option input {
  margin-top: 4px;
  cursor: pointer;
}

.radio-option .opt-label {
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---- Status pills ------------------------------------------------------- */
.status-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-submitted { background: #dbeafe; color: #0369a1; }
.status-reviewing { background: #fef3c7; color: #92400e; }
.status-referred { background: #dbeafe; color: #0369a1; }
.status-resolved { background: #d1fae5; color: #065f46; }
.status-closed { background: #fee2e2; color: #991b1b; }

.status-draft { background: #f3f4f6; color: #374151; }
.status-active { background: #dbeafe; color: #0369a1; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-rejected { background: #fee2e2; color: #991b1b; }

/* ---- Alert & info boxes ------------------------------------------------ */
.warning-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid var(--danger);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.92rem;
  color: #7c2d12;
}

.info-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.92rem;
  color: #1e3a8a;
}

.success-box {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-left: 4px solid var(--success);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.92rem;
  color: #065f46;
}

/* ---- Code blocks / confirmation ---------------------------------------- */
.code-block {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  margin: 20px 0;
}

.code-block .label {
  font-size: 0.75rem;
  color: var(--ink-mute);
  margin-bottom: 6px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.code-block .value {
  font-family: 'Courier New', monospace;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  word-break: break-all;
}

ol.steps { padding-left: 22px; }
ol.steps li { margin-bottom: 6px; }

/* ---- Tables --------------------------------------------------------------- */
table.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

table.admin-table thead {
  background: var(--paper);
  border-bottom: 2px solid var(--line);
}

table.admin-table th {
  text-align: left;
  padding: 12px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

table.admin-table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

table.admin-table tbody tr:hover {
  background: var(--paper);
}

table.admin-table tbody tr:last-child td {
  border-bottom: none;
}

/* ---- Poll components ------------------------------------------------------- */
.poll-option {
  margin-bottom: 20px;
}

.poll-option-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.95rem;
  margin-bottom: 6px;
  gap: 12px;
}

.poll-option-head span:first-child {
  font-weight: 600;
  color: var(--ink);
}

.poll-option-head span:last-child {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.poll-bar-track {
  background: var(--line);
  border-radius: var(--radius-sm);
  height: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.poll-bar-fill {
  background: linear-gradient(90deg, var(--accent), #1e40af);
  height: 100%;
  transition: width 0.3s ease-out;
}

.poll-percentage {
  text-align: right;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ---- Footer --------------------------------------------------------------- */
footer {
  border-top: 1px solid var(--line);
  background: var(--header-footer-bg);
  padding: 48px 0 24px;
  margin-top: 40px;
}

footer .container { max-width: 1080px; }

footer p {
  font-size: 0.85rem;
  color: var(--ink-soft);
  max-width: 65ch;
  line-height: 1.6;
}

footer .grievance {
  font-size: 0.82rem;
  margin-top: 16px;
  line-height: 1.7;
}

footer strong {
  color: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
  }
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin: 0 0 14px;
}

.footer-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 14px;
  opacity: 0.82;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.footer-links a:hover { color: var(--accent); }

.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 14px;
}

.footer-social a {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
}

.footer-subscribe {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 36px;
  padding-top: 20px;
  font-size: 0.8rem;
  color: var(--ink-mute);
}

/* ---- Utility --------------------------------------------------------------- */
.stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.small {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.hidden { display: none !important; }

/* ---- Accessibility ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---- Print ------------------------------------------------------- */
@media print {
  .navbar, .emergency, footer { display: none; }
  body { background: #fff; }
  .card { box-shadow: none; }
}
