/* ============================================================
   DISPATCH — Ghost-theme additions (layered on dispatch.css)
   Keeps dispatch.css identical to the apex source of truth.
   ============================================================ */

/* numbered feed via CSS counters (01, 02, ...) */
.feed__list { counter-reset: dispatch; }
.feed__list .post-feat,
.feed__list .post { counter-increment: dispatch; }
.feed__list .post-feat__no::before,
.feed__list .post__no::before { content: counter(dispatch, decimal-leading-zero); }

/* featured title link */
.post-feat h3 a { color: inherit; }
.post-feat h3 a:hover { color: var(--accent); }

/* subscribe CTA button (Ghost Portal) */
.sub-cta {
  display: inline-block;
  font-family: var(--mono); font-weight: 700; font-size: 13px;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--accent); color: var(--accent-ink);
  padding: 13px 22px; border: 2px solid var(--accent); cursor: pointer;
  transition: filter .15s;
}
.sub-cta:hover { filter: brightness(1.1); }

/* nav active state */
.nav .nav-current { color: var(--paper); }

/* ---- article (post) ---- */
.article { padding-block: clamp(40px,6vw,80px) clamp(60px,8vw,110px); }
.article__wrap { max-width: 760px; }
.article__head .hero__eyebrow { margin-bottom: 18px; }
.article__title {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(34px, 6vw, 74px); line-height: 0.94; letter-spacing: -0.025em;
  margin: 0 0 16px; text-wrap: balance;
}
.article__meta { display: block; margin: 0; }
.article__feature { margin: 26px 0 0; }
.article__feature img { width: 100%; height: auto; display: block; }

/* prose */
.article__body { font-family: var(--serif); font-size: 20px; line-height: 1.7; color: var(--paper); }
.article__body > * + * { margin-top: 1.2em; }
.article__body h2 {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(24px,3vw,34px); line-height: 1.05; letter-spacing: -0.02em; margin-top: 1.8em;
}
.article__body h3 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(20px,2.4vw,26px); margin-top: 1.6em;
}
.article__body a { color: var(--accent); box-shadow: inset 0 -0.1em 0 var(--accent); }
.article__body a:hover { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.article__body blockquote {
  border-left: var(--rule-w) solid var(--accent); padding-left: 22px; margin-left: 0;
  color: var(--paper-dim); font-style: italic;
}
.article__body img { max-width: 100%; height: auto; }
.article__body figure { margin: 1.6em 0; }
.article__body figcaption {
  font-family: var(--mono); font-size: 12px; color: var(--paper-faint);
  text-align: center; margin-top: 8px; letter-spacing: 0.04em;
}
.article__body code {
  font-family: var(--mono); font-size: 0.85em; background: var(--ink-2);
  padding: 2px 6px; border-radius: 3px;
}
.article__body pre {
  background: var(--ink-2); border: 1px solid var(--rule); padding: 18px;
  overflow-x: auto; font-family: var(--mono); font-size: 14px; line-height: 1.5;
}
.article__body pre code { background: none; padding: 0; }
.article__body hr { border: 0; height: 1px; background: var(--rule); }
.article__body ul, .article__body ol { padding-left: 1.3em; }
.article__body li + li { margin-top: 0.4em; }

/* post subscribe block */
.article__sub {
  margin-top: 36px; padding: 30px;
  background: var(--ink-2); border: 1px solid var(--rule);
}
.article__sub-h {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: 26px; letter-spacing: -0.02em; margin: 0 0 8px;
}
.article__sub-h .sec { color: var(--accent); }
.article__sub p { color: var(--paper-dim); font-size: 16px; margin: 0 0 16px; max-width: 52ch; }

/* pagination (Ghost default markup) */
.pagination {
  display: flex; justify-content: space-between; align-items: center; padding: 40px 0;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
}
.pagination a { color: var(--accent); }
.pagination .page-number { color: var(--paper-faint); }

/* ============================================================
   Koenig editor cards (required by Ghost / gscan)
   ============================================================ */
.article__body .kg-card { margin-top: 1.4em; }
.kg-card figcaption {
  font-family: var(--mono); font-size: 12px; color: var(--paper-faint);
  text-align: center; margin-top: 8px; letter-spacing: 0.04em;
}

/* image card widths */
.kg-width-wide {
  position: relative; width: min(92vw, 1040px); left: 50%; transform: translateX(-50%);
}
.kg-width-full {
  position: relative; width: 100vw; left: 50%; transform: translateX(-50%);
}
.kg-image-card img { display: block; margin: 0 auto; }
.kg-image { max-width: 100%; }

/* gallery card */
.kg-gallery-container { display: flex; flex-direction: column; margin: 0 auto; max-width: 1040px; width: 100%; }
.kg-gallery-row { display: flex; flex-direction: row; justify-content: center; }
.kg-gallery-image { flex: 1 1 0; }
.kg-gallery-image img { display: block; margin: 0; width: 100%; height: 100%; object-fit: cover; }
.kg-gallery-row:not(:first-of-type) { margin-top: 0.6em; }
.kg-gallery-image:not(:first-of-type) { margin-left: 0.6em; }

/* bookmark card */
.kg-bookmark-card { width: 100%; }
.kg-bookmark-container {
  display: flex; min-height: 148px; color: var(--paper); text-decoration: none;
  border: 1px solid var(--rule); background: var(--ink-2);
}
.kg-bookmark-content {
  display: flex; flex-direction: column; flex-grow: 1; justify-content: flex-start;
  padding: 20px; overflow: hidden;
}
.kg-bookmark-title {
  font-family: var(--display); font-weight: 700; font-size: 16px;
  text-transform: uppercase; letter-spacing: -0.01em; color: var(--paper);
}
.kg-bookmark-description {
  font-family: var(--serif); font-size: 15px; line-height: 1.5; color: var(--paper-dim);
  margin-top: 8px; max-height: 46px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.kg-bookmark-metadata {
  display: flex; align-items: center; margin-top: 14px;
  font-family: var(--mono); font-size: 12px; color: var(--paper-faint);
}
.kg-bookmark-icon { width: 18px; height: 18px; margin-right: 8px; }
.kg-bookmark-author, .kg-bookmark-publisher { color: var(--paper-faint); }
.kg-bookmark-publisher::before { content: "\2022"; margin: 0 6px; }
.kg-bookmark-thumbnail { position: relative; min-width: 33%; max-height: 100%; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
