/* ═══════════════════════════════════════════════════════════════════════════
   CAP10K — POSTS, ARCHIVES, FEED PAGES, SEARCH, 404   (owner: W7)
   Loaded by inc/archives.php on single posts, archives, search, 404 and the
   News Feed page template. Depends on style.css (W1) for the --c10k-* tokens
   and on assets/css/sections-data.css (W3c) for the card / share / pagination
   components, which cap10k_data_sections_use() enqueues alongside it.

   COLOUR RULE: no hex literals — everything comes from the --c10k-* tokens.
   SPECIFICITY: the Tailwind Play CDN injects utilities AFTER this file, so
   anything that must beat a utility is written as a double class.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── CONTAINERS ───────────────────────────────────────────────────────────── */

.c10k-wrap {
  width: 100%;
  min-width: 0;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 768px) {
  .c10k-wrap { padding-inline: 2rem; }
}

/* Wider than the reading column, still inside the page gutters. */
.c10k-wrap-wide {
  width: 100%;
  min-width: 0;
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 768px) {
  .c10k-wrap-wide { padding-inline: 2rem; }
}

/* ═══════════════════════════ SINGLE POST HERO ════════════════════════════ */

.c10k-posthero {
  padding-top: 2.5rem;
  background: linear-gradient(180deg, var(--c10k-sand-100) 0%, var(--c10k-surface) 100%);
}
@media (min-width: 1024px) {
  .c10k-posthero { padding-top: 3.5rem; }
}

.c10k-posthero-inner { max-width: 48rem; }

.c10k-posthero-kicker { margin: 0 0 1rem; }

.c10k-badge {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 1.05rem;
  border-radius: 9999px;
  background: var(--c10k-lime-500);
  color: var(--c10k-ink-900);
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
a.c10k-badge:hover { background: var(--c10k-ink-900); color: #fff; }

.c10k-posthero-title {
  margin: 0;
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.005em;
  color: var(--c10k-ink-900);
  text-wrap: balance;
}

.c10k-posthero-sub {
  margin: 1rem 0 0;
  max-width: 44ch;
  font-size: clamp(1.075rem, 1.5vw, 1.3rem);
  line-height: 1.45;
  font-weight: 500;
  color: var(--c10k-muted);
  text-wrap: pretty;
}

.c10k-posthero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 1.35rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--c10k-line);
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c10k-muted);
}
.c10k-posthero-by { color: var(--c10k-ink-900); }
.c10k-posthero-dot { color: var(--c10k-line); }

.c10k-posthero-figure { margin: 2rem 0 0; }
.c10k-posthero-img.c10k-posthero-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1rem;
  background: var(--c10k-sand-100);
}
@media (max-width: 639px) {
  /* Edge-to-edge on a phone — the gutter is the only thing given up. */
  .c10k-posthero-figure .c10k-wrap-wide { padding-inline: 0; }
  .c10k-posthero-img.c10k-posthero-img { border-radius: 0; }
}

.c10k-figcaption {
  margin: 0.65rem 0 0;
  padding-inline: 1.25rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--c10k-muted);
}
@media (min-width: 640px) { .c10k-figcaption { padding-inline: 0; } }

/* ═══════════════════════════ SINGLE POST BODY ════════════════════════════ */

.c10k-postbody { padding-block: 2.5rem 0; }
@media (min-width: 1024px) { .c10k-postbody { padding-block: 3.5rem 0; } }

/* THE ARTICLE COLUMN (48rem). Hero copy, body, boilerplate, share and prev/next all
   sit in it, so every block on a post shares one left edge; only the featured figure
   and the in-content figures break out of it. */
.c10k-postbody > .c10k-wrap,
.c10k-postshare > .c10k-wrap { max-width: 48rem; }

.c10k-prose { margin-inline: 0; }
.c10k-prose > :first-child { margin-top: 0; }

/* Figures inside converted post_content breathe wider than the text column. */
.c10k-prose figure {
  margin-block: 2rem;
}
.c10k-prose figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  background: var(--c10k-sand-100);
}
.c10k-prose figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--c10k-muted);
}
@media (max-width: 639px) {
  /* Full-bleed-ish: figures escape the 1.25rem gutter on a phone. */
  .c10k-prose figure {
    margin-inline: -1.25rem;
    width: calc(100% + 2.5rem);
    max-width: none;
  }
  .c10k-prose figure img { border-radius: 0; }
  .c10k-prose figcaption { padding-inline: 1.25rem; }
}
@media (min-width: 1024px) {
  /* The figure breaks the column; its caption steps back into it. */
  .c10k-prose figure { margin-inline: -3rem; width: calc(100% + 6rem); max-width: none; }
  .c10k-prose figcaption { padding-inline: 3rem; }
}

.c10k-prose table { width: 100%; }
.c10k-prose .table-wrap { margin-block: 2rem; }

/* External-story CTA. */
.c10k-external {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin: 0 0 2rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--c10k-line);
  border-left: 4px solid var(--c10k-blue-500);
  border-radius: 0.75rem;
  background: var(--c10k-sand-100);
}
.c10k-external-note {
  margin: 0;
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c10k-muted);
}

/* ── BOILERPLATE + PRESS CONTACT ─────────────────────────────────────────── */

.c10k-boiler {
  margin: 3rem 0 0;
  padding: 1.6rem 1.5rem;
  border-top: 4px solid var(--c10k-lime-500);
  border-radius: 0 0 0.75rem 0.75rem;
  background: var(--c10k-sand-100);
}

.c10k-boiler-title,
.c10k-presscontact-title {
  margin: 0 0 0.75rem;
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c10k-ink-900);
}

.c10k-boiler-body { font-size: 0.98rem; line-height: 1.65; color: var(--c10k-body); }
.c10k-boiler-body > :first-child { margin-top: 0; }
.c10k-boiler-body > :last-child { margin-bottom: 0; }
.c10k-boiler-body p { margin-block: 0 0.9em; }
.c10k-boiler-body a { color: var(--c10k-blue-600); text-underline-offset: 3px; }

.c10k-presscontact {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--c10k-line);
}
.c10k-presscontact-title { font-size: 1.05rem; }
.c10k-presscontact-body { margin: 0; font-size: 0.95rem; line-height: 1.6; color: var(--c10k-body); }
.c10k-presscontact-body a { color: var(--c10k-blue-600); }

/* ── SHARE ROW ───────────────────────────────────────────────────────────── */

.c10k-postshare { padding-block: 2.25rem; }
.c10k-postshare-title {
  margin: 0 0 0.9rem;
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--c10k-muted);
}

/* ── PREV / NEXT ─────────────────────────────────────────────────────────── */

.c10k-prevnext { border-top: 1px solid var(--c10k-line); padding-block: 1.5rem; }

.c10k-prevnext-inner {
  display: grid;
  gap: 0.75rem;
  max-width: 48rem;
}
@media (min-width: 768px) {
  .c10k-prevnext-inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

.c10k-prevnext-link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--c10k-line);
  border-radius: 0.75rem;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.c10k-prevnext-link:hover { border-color: var(--c10k-ink-900); background: var(--c10k-sand-100); }
.c10k-prevnext-link--next { text-align: right; }

.c10k-prevnext-dir {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c10k-muted);
}
.c10k-prevnext-link--next .c10k-prevnext-dir { justify-content: flex-end; }

.c10k-prevnext-title {
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--c10k-ink-900);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.c10k-prevnext-link:hover .c10k-prevnext-title { color: var(--c10k-blue-600); }
.c10k-prevnext-spacer { display: none; }
@media (min-width: 768px) { .c10k-prevnext-spacer { display: block; } }

/* ── MORE FROM … ─────────────────────────────────────────────────────────── */

.c10k-more { padding-block: 3rem; background: var(--c10k-sand-100); }
@media (min-width: 1024px) { .c10k-more { padding-block: 4rem; } }

.c10k-more-title {
  position: relative;
  margin: 0 0 1.75rem;
  padding-top: 1.3rem;
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--c10k-ink-900);
}
.c10k-more-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2.75rem;
  height: 4px;
  border-radius: 2px;
  background: var(--c10k-lime-500);
}
.c10k-more .c10k-pcard--grid { background: var(--c10k-surface); }
.c10k-more-all { margin: 1.75rem 0 0; }

/* ── REGISTER BAND ───────────────────────────────────────────────────────── */

.c10k-postcta {
  padding-block: 2.5rem;
  background: var(--c10k-lime-500);
  color: var(--c10k-ink-900);
}
@media (min-width: 1024px) { .c10k-postcta { padding-block: 3.25rem; } }

.c10k-postcta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}
.c10k-postcta-copy { min-width: 0; }
.c10k-postcta .eyebrow { color: var(--c10k-lime-900); margin-bottom: 0.4rem; }

.c10k-postcta-title {
  margin: 0;
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--c10k-ink-900);
}
.c10k-postcta-date {
  margin: 0.5rem 0 0;
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c10k-lime-900);
}
.c10k-postcta .c10k-register-closed {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  background: var(--c10k-ink-900);
  color: #fff;
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.c10k-postcta :focus-visible { outline-color: var(--c10k-ink-900); }

/* ═══════════════════════ LIST PAGES (feed / archive) ═════════════════════ */

.c10k-listhead {
  padding-block: 2.5rem 1.75rem;
  background: linear-gradient(180deg, var(--c10k-sand-100) 0%, var(--c10k-surface) 100%);
}
@media (min-width: 1024px) { .c10k-listhead { padding-block: 3.5rem 2rem; } }

.c10k-listhead-title {
  margin: 0;
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: clamp(2.25rem, 4.6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--c10k-ink-900);
  text-wrap: balance;
}

.c10k-listhead-intro {
  margin: 0.9rem 0 0;
  max-width: 60ch;
  font-size: 1.075rem;
  line-height: 1.6;
  color: var(--c10k-body);
  text-wrap: pretty;
}

/* The listing grid gets the SAME opening gap a Sub Page gives its first section
   (`.section` padding-block 3.5rem / 6rem = the `py-14 lg:py-24` rhythm in
   plans/design-system.md). It used to be 0, which only read as "tight" while the list
   head was the sand→surface gradient that fades into the page; once W17b-A gave
   /press-releases/ and its siblings their real hero photograph the head became a dark
   band with a hard 4px lime edge, and the cards butted straight against it. Shared by
   templates/feed.php, home.php, archive.php, category.php, search.php and 404.php.
   (W18) */
.c10k-listbody { padding-block: 3.5rem 3rem; }
@media (min-width: 1024px) { .c10k-listbody { padding-block: 6rem 4.5rem; } }

/* ── CATEGORY PILLS ──────────────────────────────────────────────────────── */

.c10k-pills { margin-top: 1.6rem; }
.c10k-pills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.c10k-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--c10k-line);
  border-radius: 9999px;
  background: var(--c10k-surface);
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c10k-ink-900);
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.c10k-pill:hover { background: var(--c10k-ink-900); border-color: var(--c10k-ink-900); color: #fff; }
.c10k-pill.is-current {
  background: var(--c10k-ink-900);
  border-color: var(--c10k-ink-900);
  color: #fff;
}
.c10k-pill.is-current::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.5rem;
  border-radius: 2px;
  background: var(--c10k-lime-500);
}

/* ── RSS ─────────────────────────────────────────────────────────────────── */

.c10k-rss { margin: 1.1rem 0 0; }
.c10k-rss-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c10k-muted);
  text-decoration: none;
}
.c10k-rss-link:hover { color: var(--c10k-blue-600); text-decoration: underline; text-underline-offset: 4px; }

/* ── EMPTY STATES ────────────────────────────────────────────────────────── */

.c10k-empty {
  margin: 0;
  padding: 2.5rem 1.5rem;
  border: 1px dashed var(--c10k-line);
  border-radius: 1rem;
  text-align: center;
  color: var(--c10k-muted);
}

.c10k-empty-block { max-width: 46rem; }
.c10k-empty-title {
  margin: 0 0 0.65rem;
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--c10k-ink-900);
}
.c10k-empty-copy { margin: 0 0 1.5rem; color: var(--c10k-body); }

.c10k-helpful {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ═══════════════════════════════ SEARCH ══════════════════════════════════ */

.c10k-searchbox { margin-top: 1.5rem; max-width: 34rem; }
.c10k-searchbox .c10k-searchfield { background: var(--c10k-surface); }

.c10k-resultgroup { padding-top: 2.25rem; }
.c10k-resultgroup:first-child { padding-top: 1.5rem; }

.c10k-resultgroup-title {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--c10k-ink-900);
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--c10k-ink-900);
}
.c10k-resultgroup-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: var(--c10k-lime-500);
  color: var(--c10k-ink-900);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.c10k-results { margin: 0; padding: 0; list-style: none; }
.c10k-result {
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--c10k-line);
}
.c10k-result:last-child { border-bottom: 0; }

.c10k-result-title {
  margin: 0;
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.c10k-result-title a {
  display: inline-block;
  min-height: 32px;
  color: var(--c10k-ink-900);
  text-decoration: none;
}
.c10k-result-title a:hover { color: var(--c10k-blue-600); text-decoration: underline; text-underline-offset: 4px; }

.c10k-result-excerpt {
  margin: 0.4rem 0 0;
  max-width: 68ch;
  font-size: 0.97rem;
  line-height: 1.55;
  color: var(--c10k-body);
}
.c10k-resultgroup-more {
  margin: 0.9rem 0 0;
  font-size: 0.88rem;
  color: var(--c10k-muted);
}

.c10k-result-meta {
  margin: 0.4rem 0 0;
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c10k-muted);
}

/* the_posts_pagination() wraps its list in <div class="nav-links"> */
.c10k-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.c10k-pagination .nav-links > a,
.c10k-pagination .nav-links > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--c10k-line);
  border-radius: 9999px;
  font-family: 'Barlow Condensed', Barlow, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c10k-ink-900);
  text-decoration: none;
}
.c10k-pagination .nav-links > .current {
  background: var(--c10k-ink-900);
  border-color: var(--c10k-ink-900);
  color: #fff;
}
.c10k-pagination .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ═══════════════════════════════ 404 ═════════════════════════════════════ */

.c10k-404head .c10k-listhead-title { font-size: clamp(2.25rem, 5.4vw, 4rem); }
.c10k-404-tour { margin-top: 2.25rem; max-width: 46rem; }
.c10k-404-tour-links { margin-bottom: 0; }
.c10k-404-tour-links a {
  color: var(--c10k-blue-600);
  font-weight: 600;
  text-underline-offset: 3px;
}

/* ── MOTION ──────────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .c10k-pill,
  .c10k-badge,
  .c10k-prevnext-link,
  .c10k-external { transition: none; }
}
