:root {
  --bg: #0f1524;
  --panel: #111827;
  --panel-dark: #0b1120;
  --panel-soft: #182138;
  --border: #1e293b;
  --border-soft: rgba(255, 255, 255, 0.08);
  --muted: #94a3b8;
  --muted-light: #cbd5e1;
  --text: #e5e7eb;
  --white: #ffffff;
  --accent: #d5a037;
  --accent-dark: #9b7225;
  --danger: #ef4444;
  --danger-dark: #991b1b;
  --success: #22c55e;
  --font-sans: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(213, 160, 55, 0.13), transparent 32rem),
    radial-gradient(circle at top right, rgba(239, 68, 68, 0.11), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.blog-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 12px 20px;
  background: rgba(17, 24, 39, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--white);
  font-weight: 700;
}

.brand-mark img {
  width: 138px;
  height: 30px;
  object-fit: contain;
}

.brand-mark span {
  white-space: nowrap;
}

.blog-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted-light);
  font-size: 0.9rem;
  font-weight: 600;
}

.blog-nav a {
  border-radius: 6px;
  padding: 8px 10px;
}

.blog-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.blog-nav .nav-cta {
  background: var(--accent);
  color: #111827;
}

.blog-hero,
.content-shell,
.article-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.blog-hero {
  padding: 44px 0 22px;
}

.eyebrow,
.panel-kicker,
.filter-label {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: stretch;
  margin-top: 12px;
}

.blog-hero h1,
.article-hero h1 {
  max-width: 820px;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.blog-hero p,
.article-hero p {
  max-width: 720px;
  margin-top: 14px;
  color: var(--muted-light);
  font-size: 1.04rem;
}

.hero-panel,
.source-box,
.post-card,
.filter-shell,
.empty-state {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.88);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.18);
}

.hero-panel {
  padding: 22px;
}

.panel-stat {
  margin: 8px 0;
  color: var(--danger);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.hero-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.filter-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 12px auto 28px;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.filter-label {
  width: 100%;
  color: var(--muted);
}

.filter-chip,
.button-secondary {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 6px;
  background: rgba(15, 21, 36, 0.8);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 8px 10px;
}

.filter-chip:hover,
.filter-chip.active,
.button-secondary:hover {
  border-color: rgba(213, 160, 55, 0.72);
  color: var(--white);
}

.filter-chip.active {
  background: rgba(213, 160, 55, 0.18);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.section-heading h2 {
  color: var(--white);
  font-size: 1.45rem;
}

.section-heading p {
  color: var(--muted);
}

.text-link {
  color: var(--accent);
  font-weight: 800;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.post-card {
  min-height: 260px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-card:hover {
  border-color: rgba(213, 160, 55, 0.55);
}

.featured-card {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(24, 33, 56, 0.95), rgba(17, 24, 39, 0.94)),
    var(--panel);
}

.card-topline,
.card-meta,
.article-chips,
.status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.card-topline {
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.post-card h3 {
  color: var(--white);
  font-size: 1.3rem;
  line-height: 1.2;
}

.featured-card h3 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.post-card p {
  color: var(--muted-light);
}

.card-meta {
  margin-top: auto;
  color: var(--muted);
  font-size: 0.88rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.status-chip.injury {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fecaca;
}

.status-chip.fatality {
  background: rgba(127, 29, 29, 0.5);
  border: 1px solid rgba(239, 68, 68, 0.62);
  color: #fee2e2;
}

.status-chip.traffic {
  background: rgba(213, 160, 55, 0.18);
  border: 1px solid rgba(213, 160, 55, 0.45);
  color: #f8e3ad;
}

.status-chip.guide,
.muted-chip {
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.34);
  color: var(--muted-light);
}

.empty-state {
  margin-top: 16px;
  padding: 24px;
  color: var(--muted-light);
  text-align: center;
}

.hidden {
  display: none !important;
}

.article-shell {
  padding: 40px 0 0;
}

.article-hero {
  margin-bottom: 26px;
}

.article-chips {
  margin-top: 18px;
}

.article-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.source-panel {
  position: sticky;
  top: 82px;
  display: grid;
  gap: 14px;
}

.source-box {
  padding: 18px;
}

.source-box h2 {
  margin: 7px 0 8px;
  color: var(--white);
  font-size: 1.05rem;
}

.source-box p {
  margin-bottom: 12px;
  color: var(--muted-light);
}

.meta-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--border);
}

.meta-list div {
  padding: 13px 14px;
  background: rgba(17, 24, 39, 0.94);
}

.meta-list dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meta-list dd {
  margin-top: 3px;
  color: var(--white);
  font-weight: 700;
}

.article-body {
  display: grid;
  gap: 20px;
}

.article-body section {
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 22px;
}

.article-body h2 {
  color: var(--white);
  font-size: 1.35rem;
  line-height: 1.2;
}

.article-body h3 {
  color: var(--white);
  font-size: 1.1rem;
}

.article-body p {
  margin-top: 10px;
  color: var(--muted-light);
}

.tracker-cta,
.attorney-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  border: 1px solid rgba(213, 160, 55, 0.35);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(24, 33, 56, 0.96), rgba(11, 17, 32, 0.96));
  padding: 18px;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 6px;
  font-weight: 800;
  line-height: 1.1;
  padding: 10px 14px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.button-primary {
  background: var(--accent);
  color: #111827;
}

.button-primary:hover,
.button-secondary:hover {
  text-decoration: none;
}

.attorney-cta {
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(213, 160, 55, 0.2), rgba(24, 33, 56, 0.96));
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.link-modules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.link-modules a {
  display: grid;
  gap: 5px;
  min-height: 110px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.88);
  padding: 14px;
}

.link-modules a:hover {
  border-color: rgba(213, 160, 55, 0.58);
  text-decoration: none;
}

.link-modules span {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
}

.link-modules strong {
  color: var(--white);
  line-height: 1.2;
}

.blog-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 44px auto 0;
  padding: 26px 0 36px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--border-soft);
}

@media (max-width: 900px) {
  .blog-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .blog-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 2px;
  }

  .hero-grid,
  .filter-shell,
  .article-layout,
  .link-modules {
    grid-template-columns: 1fr;
  }

  .source-panel {
    position: static;
  }

  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-card {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .blog-header {
    padding: 10px 14px;
  }

  .brand-mark img {
    width: 126px;
  }

  .brand-mark span {
    font-size: 0.95rem;
  }

  .blog-nav a {
    padding: 7px 8px;
    white-space: nowrap;
  }

  .blog-hero,
  .content-shell,
  .article-shell,
  .filter-shell,
  .blog-footer {
    width: min(100% - 24px, 1120px);
  }

  .blog-hero {
    padding-top: 30px;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .featured-card {
    grid-column: span 1;
  }

  .section-heading,
  .tracker-cta,
  .attorney-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .button-primary,
  .button-secondary,
  .cta-actions {
    width: 100%;
  }
}
