:root {
  --red-900: #7f1d1d;
  --red-700: #b91c1c;
  --red-500: #dc2626;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-500: #64748b;
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --font: "DM Sans", system-ui, sans-serif;
  --font-bn: "Noto Sans Bengali", "DM Sans", sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.lang-bn body,
body.lang-bn { font-family: var(--font-bn); }

.container { width: min(960px, 92vw); margin: 0 auto; }
.container-wide { width: min(1280px, 96vw); margin: 0 auto; }
.container-narrow { width: min(640px, 92vw); margin: 0 auto; }

a { color: var(--red-700); }
a:hover { color: var(--red-500); }

/* Header */
.site-header {
  background: var(--slate-900);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--red-700);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-nav {
  display: flex;
  gap: 0.25rem;
  flex: 1;
}

.main-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.lang-switch a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.5rem;
}

.lang-switch a.active { color: #fff; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--slate-900) 0%, #1e293b 60%, var(--red-900) 100%);
  color: #fff;
  padding: 2rem 0 1.75rem;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  letter-spacing: -0.02em;
}

.hero-lead {
  max-width: 640px;
  opacity: 0.9;
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 0.85rem;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.hero-point-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.hero-note {
  margin: 0;
  font-size: 0.78rem;
  opacity: 0.62;
  max-width: 640px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--red-600, var(--red-700));
  background: var(--red-700);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red-500);
  color: #fff;
}

.btn-block { width: 100%; }

/* Feed */
.section { padding: 2rem 0 3rem; }

/* Two-column layout: feed + sidebar */
.feed-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .feed-layout { grid-template-columns: 1fr; }
}

/* Area filter bar */
.feed-filter {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

.feed-filter-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.85rem;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1 1 160px;
  min-width: 140px;
  margin: 0;
}

.filter-field > span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.filter-field select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--surface);
  cursor: pointer;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-sm { padding: 0.55rem 1rem; font-size: 0.85rem; }

.filter-reset {
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
}
.filter-reset:hover { color: var(--red-700); }

.filter-office-chip {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: var(--slate-700);
}
.filter-office-chip a {
  margin-left: 0.4rem;
  text-decoration: none;
  font-weight: 700;
}

.feed-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.feed-heading { margin: 0; font-size: 1.2rem; }
.feed-count { font-size: 0.85rem; color: var(--muted); white-space: nowrap; }

.report-feed {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 700px) {
  .report-feed { grid-template-columns: 1fr; }
}

.report-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--red-700);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.report-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
}

.report-card.has-thumb {
  display: grid;
  grid-template-columns: 150px 1fr;
}

.report-card-thumb img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
}

.report-card-body {
  padding: 0.95rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.report-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.report-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #fef2f2;
  color: var(--red-900);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.report-time { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }

.report-card-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.report-card-title a {
  color: var(--text);
  text-decoration: none;
}

.report-card-title a:hover { color: var(--red-700); }

.report-office {
  margin: 0 0 0.2rem;
  font-size: 0.88rem;
  color: var(--slate-700);
  font-weight: 600;
}

.report-area {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.report-excerpt {
  margin: 0 0 0.75rem;
  color: var(--slate-700);
  font-size: 0.85rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.report-card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.78rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.report-amount {
  background: #fef2f2;
  color: var(--red-900);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

.report-stats {
  color: var(--muted);
  display: inline-flex;
  gap: 0.6rem;
}

.read-more {
  margin-left: auto;
  font-weight: 600;
}

.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.page-link {
  min-width: 38px;
  text-align: center;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.page-link:hover { border-color: #94a3b8; color: var(--red-700); }
.page-link.current { background: var(--red-700); color: #fff; border-color: var(--red-700); }
.page-link.disabled { opacity: 0.4; pointer-events: none; }

/* Top offices sidebar */
.feed-aside { position: sticky; top: 80px; }

.top-offices {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
}

.top-offices-title {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--red-700);
}

.top-offices-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}

.top-offices-list li { margin: 0; }

.top-office-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
}

.top-offices-list li:last-child .top-office-link { border-bottom: none; }
.top-office-link:hover .top-office-name { color: var(--red-700); }

.top-office-rank {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--slate-900);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-office-name {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
}

.top-office-name small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.75rem;
}

.top-office-count {
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red-700);
  background: #fef2f2;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
}

/* Forms */
.report-form label {
  display: block;
  margin-bottom: 1rem;
}

.report-form label span {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.report-form input,
.report-form textarea,
.report-form select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--surface);
}

.report-form select {
  cursor: pointer;
  max-width: 100%;
}

.district-other-wrap[hidden] {
  display: none !important;
}

.location-picker {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem 0.25rem;
  margin-bottom: 1.25rem;
  background: #f8fafc;
}

.location-picker legend {
  font-weight: 700;
  padding: 0 0.35rem;
  font-size: 1rem;
}

.loc-hint {
  margin: -0.25rem 0 1rem;
  font-size: 0.85rem;
}

.location-picker label[hidden] {
  display: none !important;
}

.loc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1rem;
}

@media (max-width: 480px) {
  .loc-row {
    grid-template-columns: 1fr;
  }
}

.location-summary {
  background: #f1f5f9;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .report-card.has-thumb { grid-template-columns: 1fr; }
  .report-card-body { padding: 1rem; }
}

.checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
}

.checkbox-label input { width: auto; margin-top: 0.25rem; }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.alert {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }

.muted { color: var(--muted); }
.lead { font-size: 1.05rem; }

/* Full report view */
.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.report-full {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.report-full-header h1 {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.5rem;
}

.report-full-meta { font-size: 0.85rem; color: var(--muted); }

.report-by { margin: 0; font-size: 0.9rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.gallery-grid img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}

.officer-photo {
  margin: 0 0 1.5rem;
}

.officer-photo h2 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.officer-photo img {
  max-width: 220px;
  max-height: 260px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.detail-list {
  display: grid;
  grid-template-columns: minmax(120px, 35%) 1fr;
  gap: 0.5rem 1rem;
  margin: 1.25rem 0;
  padding: 1rem;
  background: var(--bg);
  border-radius: 8px;
}

.detail-list dt {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}

.detail-list dd { margin: 0; }

.report-details-block {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  font-size: 1rem;
}

.vote-bar {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  transition: background 0.15s, border-color 0.15s;
}

.vote-btn:hover { border-color: #94a3b8; }

.vote-btn.active.vote-like {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #047857;
}

.vote-btn.active.vote-dislike {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.comments-section { margin-top: 1.5rem; }

.comments-section h2 { font-size: 1.1rem; margin-bottom: 1rem; }

.comment-form textarea {
  width: 100%;
  padding: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  margin-bottom: 0.75rem;
}

.comment-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.comment-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.comment-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
}

.comment-head time { color: var(--muted); }

.comment-item p { margin: 0; }

/* Footer */
.site-footer {
  background: var(--slate-900);
  color: rgba(255,255,255,0.75);
  padding: 1.5rem 0;
  font-size: 0.85rem;
  margin-top: auto;
}

.site-main { min-height: calc(100vh - 140px); }

.footer-disclaimer { margin: 0 0 0.5rem; max-width: 640px; }
.footer-copy { margin: 0; opacity: 0.6; }

.prose h1 { margin-top: 0; }
.prose h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.2rem;
}
.prose p { margin: 0 0 1rem; }
.prose ol,
.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}
.prose li { margin-bottom: 0.5rem; }

/* ============================================================
   HOME PAGE — full-width redesign
   ============================================================ */
.page-home .site-main { min-height: auto; }

.home-inner {
  width: min(1200px, 92vw);
  margin-left: auto;
  margin-right: auto;
}

.page-home .site-header-home {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-home .site-header-home .header-inner {
  padding: 0.75rem 0;
}

/* Hero — edge to edge */
.home-hero {
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(185, 28, 28, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
    linear-gradient(160deg, #0f172a 0%, #1e293b 45%, #1a0505 100%);
  color: #fff;
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2rem, 4vw, 3rem);
}

.home-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

@media (max-width: 900px) {
  .home-hero-grid { grid-template-columns: 1fr; }
}

.home-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
}

.home-hero-copy h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.home-hero-lead {
  margin: 0 0 1.5rem;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  opacity: 0.88;
  max-width: 540px;
  line-height: 1.65;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.btn-lg {
  padding: 0.8rem 1.6rem;
  font-size: 1rem;
  border-radius: 10px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.home-hero-note {
  margin: 0;
  font-size: 0.78rem;
  opacity: 0.55;
  max-width: 520px;
}

.home-feature-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.home-feature-cards li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  backdrop-filter: blur(8px);
}

.home-feature-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.home-feature-cards strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.home-feature-cards p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.78;
  line-height: 1.5;
}

/* Stats bar — full width */
.home-stats-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.25rem 0;
  align-items: center;
}

@media (max-width: 700px) {
  .home-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .home-stat-cta { grid-column: 1 / -1; justify-self: start; }
}

.home-stat-num {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--red-700);
  line-height: 1.1;
}

.home-stat-label {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.home-stat-cta { text-align: right; }
@media (max-width: 700px) { .home-stat-cta { text-align: left; } }

/* Sticky filter bar */
.home-filter-bar {
  position: sticky;
  top: 56px;
  z-index: 50;
  background: rgba(248, 250, 252, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
}

.home-filter { margin: 0; }

.home-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
}

.home-filter-title {
  margin: 0;
  font-size: 1.1rem;
  flex: 1 1 auto;
  min-width: 140px;
}

.home-filter-count {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  padding-bottom: 0.55rem;
}

.home-filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1 1 160px;
  max-width: 220px;
  margin: 0;
}

.home-filter-field > span {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.home-filter-field select {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: #fff;
  cursor: pointer;
}

.home-filter-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-bottom: 0.1rem;
}

/* Top offices — horizontal strip */
.home-top-strip {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.home-strip-title {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.home-top-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

@media (max-width: 1100px) {
  .home-top-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .home-top-grid { grid-template-columns: 1fr; }
}

.home-top-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.home-top-card:hover {
  border-color: var(--red-700);
  box-shadow: 0 4px 16px rgba(185, 28, 28, 0.1);
}

.home-top-rank {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--slate-900);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-top-name {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-top-meta {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Feed — full width 3-column grid */
.home-feed {
  padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  background: var(--bg);
}

.report-feed-wide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.85rem, 2vw, 1.25rem);
}

@media (max-width: 1100px) {
  .report-feed-wide { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .report-feed-wide { grid-template-columns: 1fr; }
}

.page-home .report-card {
  border-left: none;
  border-top: 3px solid var(--red-700);
  border-radius: 10px;
}

.page-home .report-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}

.page-home .site-footer-home {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.page-home .site-footer-home .footer-disclaimer {
  max-width: none;
}

/* Office autocomplete */
.office-ac-wrap {
  position: relative;
}

.office-ac-wrap--filter .office-ac-list {
  z-index: 50;
}

.office-ac-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  max-height: 280px;
  overflow-y: auto;
  z-index: 30;
}

.office-ac-item,
.office-ac-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.office-ac-item:hover,
.office-ac-item.active {
  background: rgba(185, 28, 28, 0.06);
}

.office-ac-name {
  flex: 1;
  min-width: 0;
}

.office-ac-meta {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

.office-ac-empty {
  color: var(--muted);
  cursor: default;
}

.office-ac-hint {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
}

.home-filter-office {
  min-width: 200px;
  flex: 1 1 220px;
}

.home-filter-office input {
  width: 100%;
}


