/* Dispatch Labs — blog pages. Loads after pages.css and reuses its tokens. */

  .narrow { max-width: 760px; }
  .nav-link[aria-current="page"] { color: var(--spearmint); }

  .draft-banner {
    position: sticky; top: 0; z-index: 300; text-align: center;
    background: #E2B04A; color: var(--midnight); font-size: 13px; font-weight: 600; padding: 6px 16px;
  }

  /* pages.css styles every <nav> as the sticky top bar; undo that for in-page navs */
  nav.crumbs, nav.filters {
    position: static; height: auto; z-index: auto; background: none; border: 0;
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }

  /* Breadcrumbs */
  .crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: rgba(232,244,240,0.45); margin-bottom: 20px; }
  .crumbs li + li::before { content: '/'; margin-right: 6px; opacity: 0.5; }
  .crumbs a:hover { color: var(--spearmint); }
  .crumbs li[aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 28ch; }

  /* Index + category heroes */
  .blog-hero { min-height: 0; padding: clamp(4rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 3.5rem); }
  .blog-hero .lede { margin-bottom: 32px; max-width: 640px; }
  .filters { display: flex; flex-wrap: wrap; gap: 8px; }
  .filters a {
    font-size: 14px; font-weight: 500; padding: 8px 18px; border-radius: 999px;
    border: 1px solid rgba(78,203,160,0.22); color: rgba(232,244,240,0.75);
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
  }
  .filters a:hover { border-color: var(--spearmint); color: var(--spearmint); }
  .filters a[aria-current="page"] { background: var(--spearmint); border-color: var(--spearmint); color: var(--midnight); }

  .blog-list { padding-top: clamp(2.5rem, 5vw, 3.5rem); }

  /* Cards */
  .post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 13px; color: rgba(232,244,240,0.5); }
  .tag {
    font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--spearmint);
  }
  .tag-draft { color: #E2B04A; }
  .post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .post-card {
    position: relative; background: var(--midnight); padding: 32px 28px 36px; border: 1px solid var(--line); overflow: hidden;
    display: flex; flex-direction: column; gap: 14px; transition: background 0.25s ease;
  }
  .alt .post-card { background: var(--midnight-soft); }
  .post-card:hover { background: rgba(78,203,160,0.035); }
  .post-card h2, .post-card h3 { margin: 0; font-size: 20px; letter-spacing: -0.02em; line-height: 1.25; }
  .post-card h2 a::after, .post-card h3 a::after { content: ''; position: absolute; inset: 0; } /* whole card is the link */
  .post-card p { font-size: 14.5px; line-height: 1.65; color: rgba(232,244,240,0.55); }
  .post-card .read-more { margin-top: auto; font-size: 14px; font-weight: 500; color: var(--spearmint); }
  .post-card--featured {
    border: 1px solid var(--line); margin-bottom: 32px; padding: clamp(32px, 5vw, 56px);
    background: linear-gradient(135deg, rgba(78,203,160,0.06), transparent 60%), var(--midnight-soft);
  }
  .post-card--featured h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.12; max-width: 820px; }
  .post-card--featured p { font-size: 16px; max-width: 640px; }

  /* Card photos */
  .post-card.has-img { padding: 0; gap: 0; }
  .post-card.has-img .post-card-text { display: flex; flex-direction: column; gap: 14px; padding: 24px 28px 32px; flex: 1; }
  .post-card:not(.has-img) .post-card-text { display: contents; }
  .post-card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--midnight-soft); }
  .post-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; filter: saturate(0.9); }
  .post-card:hover .post-card-img img { transform: scale(1.03); }
  .post-card--featured.has-img { display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch; }
  .post-card--featured.has-img .post-card-img { aspect-ratio: auto; min-height: 340px; order: 2; }
  .post-card--featured.has-img .post-card-text { padding: clamp(32px, 4.5vw, 52px); justify-content: center; }

  /* Post photo */
  .post-photo { margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); max-width: 1040px; }
  .post-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; border: 1px solid var(--line); }
  .post-photo figcaption { margin-top: 10px; font-size: 12.5px; color: rgba(232,244,240,0.45); }

  .empty { border: 1px dashed rgba(78,203,160,0.25); padding: 48px 32px; text-align: center; }
  .empty p { color: rgba(232,244,240,0.6); margin-bottom: 20px; }

  /* Post */
  .post-head { padding: clamp(3.5rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 2.5rem); position: relative; }
  .post-head::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 55% 60% at 84% 20%, rgba(78,203,160,0.08), transparent 70%);
  }
  .post-head .wrap { position: relative; }
  .post-head h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; margin-bottom: 22px; }
  .byline { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 14px; color: rgba(232,244,240,0.6); }
  .byline img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
  .byline strong { color: var(--off-white); font-weight: 500; }
  .byline:hover strong { color: var(--spearmint); }

  .toc { border: 1px solid var(--line); background: var(--midnight-soft); padding: 18px 22px; margin-bottom: 40px; }
  .toc summary { cursor: pointer; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--spearmint); }
  .toc ol { margin: 14px 0 0 20px; display: grid; gap: 6px; font-size: 15px; color: rgba(232,244,240,0.7); }
  .toc a:hover { color: var(--spearmint); }

  .post-body { font-size: 18px; line-height: 1.75; color: rgba(232,244,240,0.78); padding-bottom: 24px; }
  .post-body > * + * { margin-top: 1.2em; }
  .post-body > p:first-of-type { font-size: 20px; color: var(--off-white); }
  .post-body h2 { font-size: clamp(24px, 3vw, 32px); color: var(--off-white); margin-top: 2.2em; scroll-margin-top: 88px; }
  .post-body h3 { font-size: 21px; color: var(--off-white); margin-top: 1.8em; scroll-margin-top: 88px; }
  .post-body strong { color: var(--off-white); font-weight: 600; }
  .post-body a { color: var(--spearmint); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
  .post-body a:hover { text-decoration-thickness: 2px; }
  .post-body ul, .post-body ol { padding-left: 1.3em; }
  .post-body li + li { margin-top: 0.4em; }
  .post-body li::marker { color: var(--spearmint); }
  .post-body blockquote { border-left: 2px solid var(--spearmint); padding-left: 20px; color: var(--off-white); font-size: 20px; }
  .post-body img { max-width: 100%; height: auto; border: 1px solid var(--line); background: var(--midnight-soft); }
  .post-body code { font-size: 0.88em; background: rgba(78,203,160,0.08); padding: 2px 6px; border-radius: 4px; }
  .post-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
  .post-body table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
  .post-body th, .post-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .post-body th { color: var(--off-white); font-weight: 600; }

  .post-faq { border-top: 0; padding: 32px 0 0; overflow: visible; }
  .post-faq h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 12px; }

  .post-cta {
    display: flex; gap: 28px; align-items: center; margin: 56px 0 40px;
    padding: clamp(28px, 4vw, 40px); border: 1px solid rgba(78,203,160,0.25);
    background: radial-gradient(ellipse 80% 120% at 0% 50%, rgba(78,203,160,0.10), transparent 70%), var(--midnight-soft);
  }
  .post-cta img { width: 96px; height: 96px; flex-shrink: 0; }
  .post-cta h2 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 8px; }
  .post-cta p { font-size: 15px; color: rgba(232,244,240,0.6); margin-bottom: 20px; }
  .post-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
  .text-link { font-size: 14px; font-weight: 500; color: rgba(232,244,240,0.7); text-decoration: underline; text-underline-offset: 3px; }
  .text-link:hover { color: var(--spearmint); }

  .author-card { display: flex; gap: 20px; align-items: flex-start; padding: 28px 0 8px; border-top: 1px solid var(--line); margin-bottom: clamp(3rem, 6vw, 4.5rem); }
  .author-card img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
  .author-card .label { margin-bottom: 6px; }
  .author-card h2 { font-size: 20px; margin-bottom: 6px; }
  .author-card h2 a:hover { color: var(--spearmint); }
  .author-card p { font-size: 15px; color: rgba(232,244,240,0.6); }

  /* Author page */
  .author-head { display: flex; align-items: center; gap: 28px; margin-bottom: 28px; }
  .author-head img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(78,203,160,0.3); }
  .author-head .label { margin-bottom: 8px; }
  .author-hero h1 { margin-bottom: 0; }
  .author-links { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 8px; font-size: 15px; font-weight: 500; color: var(--spearmint); }

  @media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 760px) {
    .post-card--featured.has-img { grid-template-columns: 1fr; }
    .post-card--featured.has-img .post-card-img { order: 0; min-height: 0; aspect-ratio: 16 / 10; }
  }
  @media (max-width: 640px) {
    .post-grid { grid-template-columns: 1fr; }
    .post-body { font-size: 17px; }
    .post-body > p:first-of-type { font-size: 18px; }
    .post-cta { flex-direction: column; align-items: flex-start; gap: 16px; }
    .post-cta img { width: 72px; height: 72px; }
    .author-head { gap: 18px; }
    .author-head img { width: 84px; height: 84px; }
  }
  @media (prefers-reduced-motion: reduce) { .post-card, .filters a, .post-card-img img { transition: none; } }
