/* main-site fixed nav sits over the page top — clear it (blog wears the site chrome) */
main#main { padding-top: 64px; }

/* =================================================================
   YEC. — Blog (archive index + post pages). Builds on legal.css/.prose.
   ================================================================= */

/* ---- breadcrumb ---- */
.crumb { padding: 18px 0 0; }
.crumb a, .crumb span {
  font-family: var(--font-kicker); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 0.68rem;
}
.crumb a { color: var(--teal); display: inline-block; padding: 10px 0; margin: -10px 0; }
.crumb a:hover { color: var(--navy); }
.crumb span[aria-current] { color: var(--gray); }
.crumb .crumb-sep { color: var(--warm-gray); margin: 0 0.5em; }

/* ---- archive index ---- */
.blog-count { color: var(--gray); margin-top: 16px; font-size: 0.98rem; }
.blog-preview-tag {
  font-family: var(--font-kicker); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 0.62rem; color: var(--navy);
  background: rgba(233,133,0,0.12); padding: 3px 9px; border-radius: 0;
  white-space: nowrap;
}

.blog-year {
  font-family: var(--font-kicker); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; font-size: 0.8rem; color: var(--navy);
  margin: 52px 0 4px; padding-bottom: 12px;
  border-bottom: 1px solid rgba(23,32,41,0.12);
}
.blog-year:first-of-type { margin-top: 8px; }

.blog-list { list-style: none; padding: 0; margin: 0; }

/* Card structure (7/22 a11y fix): the <li> is the card, the h3 inside holds
   the ONLY link. DOM order is heading -> date -> excerpt so assistive tech
   anchors each article to its heading; flex `order` puts the date visually
   first, exactly as before. The whole card stays clickable through the
   stretched ::after on the title link — without gluing the date and excerpt
   into the link's accessible name (the old single-blob <a> the audit flagged). */
.blog-item {
  position: relative;
  display: flex; flex-direction: column;
  padding: 24px 0;
  border-bottom: 1px solid rgba(23,32,41,0.08);
}
.blog-item-date {
  order: -1; /* visually above the title; DOM keeps the heading first */
  display: block; margin: 0;
  font-family: var(--font-kicker); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.7rem;
  color: var(--teal); /* accent-ink on light — matches kickers site-wide */
}
.blog-item-title {
  display: block; font-family: var(--font-head); font-weight: 400;
  font-size: clamp(1.25rem, 2.4vw, 1.62rem); line-height: 1.18;
  color: var(--navy); letter-spacing: -0.02em; margin: 7px 0 8px;
}
.blog-item-title a {
  color: inherit; text-decoration: none;
  transition: color 0.25s ease;
}
.blog-item-title a::after { content: ""; position: absolute; inset: 0; }
.blog-item-title a:focus-visible { outline: none; }
.blog-item-title a:focus-visible::after {
  outline: 2px solid var(--teal); outline-offset: 2px;
}
.blog-item-excerpt {
  display: block; margin: 0;
  color: var(--slate); font-size: 1rem; line-height: 1.6;
  text-wrap: pretty;
}
.blog-item:hover .blog-item-title a,
.blog-item:focus-within .blog-item-title a { color: var(--teal); }

/* ---- post page ---- */
.post-title { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.08; }

/* media inside imported article bodies */
.prose img {
  max-width: 100%; height: auto; display: block;
  margin: 1.6em auto; border-radius: 0;
}
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: 0.9rem; color: var(--gray); margin-top: 0.6em; text-align: center; }
.prose iframe { max-width: 100%; border: 0; }
.prose blockquote {
  border-left: 3px solid var(--orange); padding-left: 1.1em;
  color: var(--navy); font-style: italic;
}
.prose h2 { margin-top: 1.7em; }

.post-back { margin-top: 3.2em; padding-top: 1.4em; border-top: 1px solid rgba(23,32,41,0.10); }
.post-back a {
  font-family: var(--font-kicker); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 0.72rem; color: var(--teal);; display: inline-block; padding: 10px 0; margin: -10px 0; }
.post-back a:hover { color: var(--navy); }

/* =================================================================
   Reading rail (the climb) on post pages — one continuous hairline
   with a waypoint dot per section; the in-view dot goes orange.
   ================================================================= */
.blog-climb {
  position: relative;
  width: 100%;
  max-width: calc(var(--container-narrow) + 2 * var(--gutter));
  margin-inline: auto;
  --rail-x: 7px;          /* rail center, from the content left edge */
  --rail-pad: 38px;       /* left indent so content clears the rail */
  --climb-top: clamp(30px, 5vw, 52px);
  --climb-bot: clamp(56px, 8vw, 100px);
  padding: var(--climb-top) var(--gutter) var(--climb-bot);
  padding-left: calc(var(--gutter) + var(--rail-pad));
}
/* the continuous line — shares --rail-x with the dots so it passes dead-center */
.blog-climb::before {
  content: ""; position: absolute;
  top: var(--climb-top); bottom: var(--climb-bot);
  left: calc(var(--gutter) + var(--rail-x));
  width: 1px; transform: translateX(-50%);
  background: rgba(23,32,41,0.16);
}
.blog-climb [data-wp] { position: relative; }
.blog-climb [data-wp]::before {
  content: ""; position: absolute; top: 0.5rem;
  left: calc(var(--rail-x) - var(--rail-pad));
  width: 11px; height: 11px; border-radius: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  transition: background .35s ease, transform .35s ease, box-shadow .35s ease;
  z-index: 1;
}
.blog-climb [data-wp].is-active::before {
  background: var(--orange);
  transform: translateX(-50%) scale(1.35);
  box-shadow: 0 0 0 6px rgba(233,133,0,0.16);
}

.bc-crumb { padding: 0 0 6px; }
.bc-head { margin-bottom: clamp(26px, 4vw, 40px); }
.bc-head .kicker { margin-bottom: 18px; }

@media (prefers-reduced-motion: reduce) {
  .blog-climb [data-wp]::before { transition: none; }
}
@media (max-width: 560px) {
  .blog-climb { --rail-pad: 24px; --rail-x: 5px; }
}


/* ---- pagination (25 posts/page) ---- */
.blog-pager { display: flex; align-items: center; justify-content: center; gap: 8px;
  flex-wrap: wrap; margin-top: clamp(44px, 6vw, 68px); }
.blog-pager a { font-family: var(--font-kicker); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.1em; text-transform: uppercase; transition: color .2s ease,
  background .2s ease, border-color .2s ease; }
.pg-num { min-width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid rgba(23,32,41,0.18); color: var(--navy); }
.pg-num:hover { border-color: var(--teal); color: var(--teal); }
.pg-num.is-current { background: var(--navy); border-color: var(--navy); color: var(--white); }
.pg-arrow { padding: 12px 14px; color: var(--teal); }
.pg-arrow:hover { color: var(--navy); }
.pg-gap { color: var(--gray); font-family: var(--font-kicker); }

/* archive note: every imported post predates the 2026 relaunch (Drew, 7/8) */
.archive-note {
  font-family: var(--font-kicker); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 0.66rem; color: var(--warm-gray);
  border-top: 1px solid rgba(23,32,41,0.12); padding-top: 10px;
  margin: 10px 0 2px; max-width: 420px;
}
