/* Car Accident Clinics - blog listing + post template
   Builds on css/main.css tokens. No em dashes. */

/* ============================== SHARED BITS ============================== */
.breadcrumb { margin-bottom: var(--space-5); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.breadcrumb li {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: var(--pine-300); }
.breadcrumb a { color: var(--pine-600); text-decoration: none; }
.breadcrumb a:hover { color: var(--persimmon-deep); }

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.post-cat {
  font-family: var(--font-mono);
  font-size: var(--t-chip);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  white-space: nowrap;
}
.cat-billing { color: var(--persimmon-deep); background: var(--persimmon-soft); }
.cat-legal { color: var(--teal); background: var(--teal-soft); }
.cat-benefits { color: #8A6824; background: var(--gold-soft); }
.post-read {
  font-family: var(--font-mono);
  font-size: var(--t-chip);
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ============================== LISTING HERO ============================== */
.blog-hero {
  position: relative;
  padding: clamp(40px, 5vw, 72px) 0 clamp(36px, 4vw, 56px);
  background: var(--paper);
  overflow: hidden;
}
.blog-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blog-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.blog-glow-a {
  width: 520px; height: 520px;
  top: -240px; right: -140px;
  background: radial-gradient(circle, rgba(42, 140, 119, 0.3), transparent 70%);
}
.blog-glow-b {
  width: 440px; height: 440px;
  bottom: -280px; left: -160px;
  background: radial-gradient(circle, rgba(217, 92, 54, 0.18), transparent 70%);
}
.blog-hero .container { position: relative; }

.blog-title {
  font-size: var(--t-h1);
  line-height: var(--lh-display);
  letter-spacing: -0.03em;
  color: var(--pine-900);
  max-width: 20ch;
  text-wrap: balance;
}
.blog-lede {
  margin-top: var(--gap-heading);
  font-size: var(--t-lead);
  line-height: var(--lh-body);
  color: var(--ink-soft);
  max-width: 58ch;
}
.blog-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-6);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}
.blog-facts li {
  font-size: var(--t-small);
  color: var(--muted);
}
.blog-facts strong {
  font-family: var(--font-display);
  font-size: var(--t-h4);
  color: var(--pine-900);
  margin-right: 6px;
}

/* ============================== TOOLBAR + FILTERS ============================== */
.blog-body {
  padding: clamp(40px, 5vw, 64px) 0 clamp(56px, 7vw, 96px);
  background: var(--paper);
}
.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  justify-content: space-between;
  margin-bottom: var(--space-6);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  max-width: 100%;
}
.filter {
  font-family: var(--font-body);
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--pine-700);
  background: transparent;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.filter:hover { color: var(--pine-900); background: rgba(11, 32, 28, 0.05); }
.filter.is-active {
  background: var(--cream);
  color: var(--pine-900);
  box-shadow: 0 1px 2px rgba(11, 32, 28, 0.08), 0 6px 18px rgba(11, 32, 28, 0.08);
}
.filter:focus-visible { outline: 3px solid var(--persimmon); outline-offset: 2px; }
.filter-count {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  background: rgba(11, 32, 28, 0.06);
  border-radius: var(--radius-pill);
  padding: 1px 7px;
}
.filter.is-active .filter-count { background: var(--persimmon-soft); color: var(--persimmon-deep); }
.filter-status { font-size: var(--t-small); color: var(--muted); }

/* ============================== POST GRID ============================== */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.post-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform 0.32s var(--ease-spring), box-shadow 0.32s var(--ease-spring), border-color 0.2s ease;
  display: flex;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--pine-300);
}
.post-card.is-hidden { display: none; }
.post-card-link {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  text-decoration: none;
  color: inherit;
  width: 100%;
}
.post-card-title {
  font-size: var(--t-h4);
  line-height: var(--lh-snug);
  font-weight: 600;
  color: var(--pine-900);
  letter-spacing: -0.01em;
}
.post-card:hover .post-card-title { color: var(--persimmon-deep); }
.post-card-summary {
  font-size: var(--t-body-sm);
  line-height: 1.6;
  color: var(--muted);
  flex: 1;
}
.post-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--pine-700);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}
.post-card-cta svg { transition: transform 0.25s var(--ease-spring); }
.post-card:hover .post-card-cta { color: var(--persimmon-deep); }
.post-card:hover .post-card-cta svg { transform: translateX(4px); }
.no-results {
  text-align: center;
  color: var(--muted);
  font-size: var(--t-body);
  padding: var(--space-8) 0;
}

/* ============================== LISTING CTA ============================== */
.blog-cta {
  padding: clamp(56px, 7vw, 96px) 0;
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}
.blog-cta .section-lede { margin-top: var(--gap-heading); }
.blog-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

/* ============================== POST HEADER ============================== */
.post-header {
  padding: clamp(36px, 4.5vw, 64px) 0 clamp(24px, 3vw, 40px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.post-header-inner { max-width: 62rem; }
.post-title {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--pine-900);
  margin-top: var(--space-4);
  text-wrap: balance;
  max-width: 26ch;
}
.post-standfirst {
  margin-top: var(--space-5);
  font-size: var(--t-lead);
  line-height: var(--lh-body);
  color: var(--ink-soft);
  max-width: 62ch;
}
.post-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  font-size: var(--t-small);
  color: var(--muted);
}
.byline-name { font-weight: 600; color: var(--pine-800); }
.byline-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--pine-300); }
.byline-note { font-family: var(--font-mono); font-size: var(--t-chip); letter-spacing: 0.06em; }

/* ============================== POST LAYOUT ============================== */
.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.34fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(48px, 6vw, 80px);
  align-items: start;
  background: var(--paper);
}
.post-aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: var(--space-4);
}
.toc {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}
.toc-title {
  font-family: var(--font-mono);
  font-size: var(--t-chip);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.toc-title::-webkit-details-marker { display: none; }
.toc-title::after {
  content: "+";
  font-size: 0.95rem;
  color: var(--persimmon);
  letter-spacing: 0;
}
.toc[open] .toc-title { margin-bottom: var(--space-3); }
.toc[open] .toc-title::after { content: "\2212"; }
.toc-list {
  list-style: none;
  display: grid;
  gap: 2px;
  counter-reset: none;
}
.toc-list a {
  display: block;
  font-size: var(--t-small);
  line-height: 1.45;
  color: var(--pine-700);
  text-decoration: none;
  padding: 7px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.toc-list a:hover,
.toc-list a.is-active {
  color: var(--pine-900);
  background: var(--paper-2);
  border-left-color: var(--persimmon);
}
.aside-cta {
  background: var(--pine-900);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: grid;
  gap: 10px;
}
.aside-cta-title {
  font-family: var(--font-display);
  font-size: var(--t-h4);
  font-weight: 600;
  color: var(--cream);
  line-height: 1.25;
}
.aside-cta-text { font-size: var(--t-small); color: var(--pine-300); line-height: 1.55; }
.aside-cta .btn { margin-top: 4px; }

/* ============================== POST BODY COPY ============================== */
.post-content {
  max-width: 68ch;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #2C3A34;
}
.post-content > * + * { margin-top: 1.15em; }
.post-content > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.post-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--pine-900);
  margin-top: 2.1em;
  padding-top: 0.9em;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.post-content h3 {
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--pine-900);
  margin-top: 1.7em;
}
.post-content p { margin: 0; }
.post-content ul {
  list-style: none;
  display: grid;
  gap: 0.55em;
  padding-left: 0;
}
.post-content ul li {
  position: relative;
  padding-left: 22px;
}
.post-content ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--persimmon);
}
.post-content a {
  color: var(--pine-700);
  text-decoration: underline;
  text-decoration-color: var(--pine-300);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.post-content a:hover { color: var(--persimmon-deep); text-decoration-color: var(--persimmon); }
.post-content strong { color: var(--pine-900); font-weight: 650; }
.post-content blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--persimmon);
  color: var(--pine-800);
  font-style: italic;
}

/* ============================== POST FOOTER ============================== */
.post-footer {
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  display: grid;
  gap: var(--space-5);
}
.post-disclaimer {
  font-size: var(--t-small);
  line-height: 1.6;
  color: var(--muted);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
}
.post-disclaimer strong { color: var(--pine-800); }
.post-tags { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.post-tags-label {
  font-family: var(--font-mono);
  font-size: var(--t-chip);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.post-tags ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.post-tags li {
  font-size: var(--t-chip);
  color: var(--pine-700);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 5px 11px;
}

/* ============================== RELATED ============================== */
.related {
  padding: clamp(48px, 6vw, 80px) 0;
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}
.related-heading {
  font-size: var(--t-h3);
  color: var(--pine-900);
  margin-bottom: var(--space-5);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.related-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: grid;
  gap: 10px;
  align-content: start;
  text-decoration: none;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-spring), border-color 0.2s ease;
}
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); border-color: var(--pine-300); }
.related-card .post-cat { justify-self: start; }
.related-title {
  font-family: var(--font-display);
  font-size: var(--t-h4);
  line-height: var(--lh-snug);
  font-weight: 600;
  color: var(--pine-900);
}
.related-card:hover .related-title { color: var(--persimmon-deep); }
.related-meta {
  font-family: var(--font-mono);
  font-size: var(--t-chip);
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ============================== POST CTA ============================== */
.post-cta {
  padding: clamp(56px, 7vw, 96px) 0;
  background: var(--paper);
}

/* ============================== RESPONSIVE ============================== */
@media (max-width: 1100px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .post-layout { grid-template-columns: 1fr; }
  .post-aside { position: static; }
  .toc-list { columns: 2; column-gap: var(--space-4); }
  .related-grid { grid-template-columns: 1fr; }
  .post-title, .post-standfirst { max-width: none; }
}
@media (max-width: 760px) {
  .post-grid { grid-template-columns: 1fr; }
  .toc-list { columns: 1; }
  .post-layout { gap: var(--space-5); padding-top: var(--space-6); }
  .post-aside { gap: var(--space-3); }
  .aside-cta { display: none; }
  .filters {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    border-radius: var(--radius-md);
  }
  .filter { white-space: nowrap; }
  .blog-facts { gap: var(--space-3) var(--space-5); }
  .post-content { font-size: 1.03rem; }
  .blog-cta-actions .btn { width: 100%; }
}
