/**
 * Single-post reading experience.
 *
 * Layout note: several rules below carry `!important` with a comment naming
 * the core rule they override. WordPress emits its layout rules (block gap,
 * image sizing) with `:where()` selectors that are more specific than they
 * look, or with the resolved value baked into a per-instance style; those
 * cases need `!important` regardless of source order. That is the only
 * reason `!important` appears in this file.
 */

/* ─────────────────────────────────────────────────────────────────
   Reading progress
   ───────────────────────────────────────────────────────────────── */

/* max-width: none — this sits as a direct child of the constrained <main>,
   and core's `.is-layout-constrained > :where(...)` rule would otherwise cap
   the bar at contentSize (760px) instead of letting it span the viewport.
   Same one-class specificity as that rule, and the theme's CSS prints after
   core's, so no !important is needed. */
.c-reading-progress {
  position: fixed;
  z-index: calc(var(--z-header) + 1);
  top: 0;
  left: 0;
  width: 100%;
  max-width: none;
  height: 3px;
  background: transparent;
  pointer-events: none;
}

.c-reading-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* ─────────────────────────────────────────────────────────────────
   Breadcrumbs
   ───────────────────────────────────────────────────────────────── */

.c-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-micro);
  font-weight: 600;
}

.c-breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}

.c-breadcrumbs__sep {
  color: var(--color-text-muted);
  opacity: .7;
}

.c-breadcrumbs a {
  color: var(--color-text-secondary);
  text-underline-offset: .2em;
}

.c-breadcrumbs a:hover,
.c-breadcrumbs a:focus-visible {
  color: var(--color-accent-text);
  text-decoration: underline;
}

.c-breadcrumbs__current {
  display: inline-block;
  overflow: hidden;
  max-width: 22ch;
  color: var(--color-ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ─────────────────────────────────────────────────────────────────
   Immersive article hero
   ───────────────────────────────────────────────────────────────── */

.c-article-hero {
  position: relative;
  display: flex;
  min-height: clamp(24rem, 52vh, 34rem);
  flex-direction: column;
  justify-content: flex-end;
  background: var(--color-dark);
  color: var(--color-white);
  isolation: isolate;
}

.c-article-hero--no-image {
  min-height: 0;
  background:
    radial-gradient(120% 140% at 15% 0%, var(--color-dark-raised), transparent 60%),
    var(--color-dark);
}

.c-article-hero__image {
  position: absolute;
  z-index: -2;
  inset: 0;
}

/* !important: core's global image styles set `height: auto` on thumbnail
   images, including raw `the_post_thumbnail()` output — without this the
   image keeps its intrinsic height instead of covering the hero box. */
.c-article-hero__image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover !important;
  object-position: center;
}

.c-article-hero__scrim {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgb(44 33 26 / .30) 0%,
    rgb(44 33 26 / .42) 34%,
    rgb(44 33 26 / .84) 76%,
    rgb(44 33 26 / .94) 100%
  );
}

.c-article-hero__inner {
  width: min(100% - (2 * var(--gutter)), var(--container-2xl));
  margin-inline: auto;
}

.c-article-hero__top {
  padding-top: var(--space-6);
}

/* Frosted pill so the trail stays readable over any photograph. */
.c-article-hero__top .c-breadcrumbs__list {
  display: inline-flex;
  padding: .4rem 1rem;
  border: 1px solid rgb(245 237 226 / .18);
  border-radius: var(--radius-pill);
  background: rgb(44 33 26 / .45);
  backdrop-filter: blur(10px);
}

.c-article-hero__top .c-breadcrumbs a,
.c-article-hero__top .c-breadcrumbs__current {
  color: rgb(245 237 226 / .78);
}

.c-article-hero__top .c-breadcrumbs__current {
  max-width: 18ch;
  color: var(--color-white);
}

.c-article-hero__top .c-breadcrumbs a:hover,
.c-article-hero__top .c-breadcrumbs a:focus-visible {
  color: var(--color-white);
}

.c-article-hero__top .c-breadcrumbs__sep {
  color: var(--color-tan-400);
  opacity: .55;
}

.c-article-hero__content {
  padding-block: clamp(var(--space-12), 8vw, var(--space-20)) clamp(var(--space-8), 4vw, var(--space-12));
}

.c-article-hero__content .c-article-hero__inner {
  display: grid;
  max-width: min(100% - (2 * var(--gutter)), var(--container-2xl));
  justify-items: start;
  gap: var(--space-5);
}

.c-article-hero__category {
  padding: .45rem 1rem;
  background: var(--color-accent-fill);
  color: var(--color-white) !important;
  font-size: var(--text-label);
  font-weight: 800;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.c-article-hero__category:hover,
.c-article-hero__category:focus-visible {
  background: var(--color-accent-hover);
}

.c-article-hero__title {
  max-width: 20ch;
  color: var(--color-white);
  font-size: var(--text-h1);
  text-shadow: 0 2px 18px rgb(44 33 26 / .45);
  text-wrap: balance;
}

.c-article-hero__standfirst {
  max-width: 58ch;
  color: rgb(245 237 226 / .82);
  font-size: var(--text-lead);
  line-height: 1.55;
}

.c-article-hero__meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-2);
}

.c-article-hero__avatar-link {
  flex-shrink: 0;
  line-height: 0;
}

.c-article-hero__avatar {
  width: 2.75rem !important;
  height: 2.75rem !important;
  border: 2px solid rgb(212 176 138 / .55);
  border-radius: var(--radius-pill);
  object-fit: cover;
}

.c-article-hero__meta-text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  color: rgb(245 237 226 / .74);
  font-size: var(--text-small);
}

.c-article-hero__author {
  color: var(--color-white) !important;
  font-weight: 700;
}

.c-article-hero__author:hover,
.c-article-hero__author:focus-visible {
  color: var(--color-tan-400) !important;
}

.c-article-hero__dot {
  width: 4px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--color-tan-400);
  opacity: .7;
}

.c-article-hero :focus-visible {
  outline-color: var(--color-focus-dark);
}

@media (max-width: 47.9375rem) {
  .c-article-hero { min-height: clamp(20rem, 62vh, 26rem); }
  .c-article-hero__title { max-width: none; }
  .c-article-hero__standfirst { display: none; }
}

/* ─────────────────────────────────────────────────────────────────
   Article layout — one centered reading column at every width. The table
   of contents sits inline in that column, above the prose, rather than in
   a side rail.
   ───────────────────────────────────────────────────────────────── */

/* grid-template-columns: minmax(0, 1fr) — the implicit column is auto by
   default, so it can't shrink below the widest item's min-content. A wide
   prose table (its figure scrolls, but the column still sizes to it) blew
   the column past the viewport, and because every child below is sized
   `min(100% - gutters, ...)` against that column, the whole reading
   column then overflowed by ~40px on a 320px phone. minmax(0, 1fr) pins
   the column to the container and lets the table scroll on its own. */
.c-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
  row-gap: clamp(var(--space-8), 4vw, var(--space-12));
}

/* !important: neutralizes core's flow-layout block gap on this group so the
   grid's own row-gap is the single source of vertical rhythm. */
.c-article-layout > * {
  width: min(100% - (2 * var(--gutter)), var(--container-read));
  margin-block: 0 !important;
}

/* ─────────────────────────────────────────────────────────────────
   Featured image credit
   ───────────────────────────────────────────────────────────────── */

.c-article-image-credit {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--text-micro);
  line-height: 1.55;
}

.c-article-image-credit__label {
  color: var(--color-ink);
  font-weight: 800;
}

.c-article-image-credit__label::after {
  content: ":";
}

.c-article-image-credit__text {
  min-width: 0;
}

.c-article-image-credit__text > * {
  margin-block: 0 !important;
}

.c-article-image-credit__text a {
  color: var(--color-accent-text) !important;
  font-weight: 700;
  text-underline-offset: .18em;
}

/* ─────────────────────────────────────────────────────────────────
   Article prose
   ───────────────────────────────────────────────────────────────── */

.c-article-body {
  /* Re-points the block-gap custom property for any core rule that reads
     it; the explicit rhythm below covers the root-layout rules that bake
     the resolved value in instead. */
  --wp--style--block-gap: 1.5em;

  color: var(--color-body);
  font-size: clamp(1.0625rem, .35vw + 1rem, 1.1875rem);
  line-height: 1.75;
}

/* !important: core's root flow-layout rule bakes the resolved 2rem block
   gap into `:root :where(.is-layout-flow) > *`. Every prose rule below that
   needs a different rhythm therefore repeats `!important` and relies on
   being more specific than this base. */
.c-article-body > * {
  margin-block: 1.5em 0 !important;
  max-width: none;
}

.c-article-body > :first-child {
  margin-block-start: 0 !important;
}

/* Standfirst: the opening paragraph is set larger and in the darker ink so
   the article has a clear entry point. */
.c-article-body > p:first-of-type {
  color: var(--color-ink);
  font-size: 1.15em;
  line-height: 1.6;
}

.c-article-body :is(h2, h3, h4) {
  scroll-margin-top: calc(var(--header-height) + var(--space-6));
}

/* !important: beats the block-gap base rule above, which would otherwise
   flatten every heading to the same 1.5em the paragraphs use. */
.c-article-body > h2 {
  position: relative;
  margin-block: clamp(3rem, 6vw, 4.5rem) var(--space-5) !important;
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-h2);
}

.c-article-body > h2::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 3.5rem;
  height: 3px;
  background: var(--color-accent);
  content: "";
}

.c-article-body > h3 {
  margin-block: clamp(2.25rem, 4vw, 3rem) var(--space-4) !important;
  font-size: var(--text-h3);
}

.c-article-body > h4 {
  margin-block: var(--space-8) var(--space-3) !important;
  color: var(--color-earth-600);
  font-family: var(--font-body);
  font-size: var(--text-h4);
  font-weight: 700;
  letter-spacing: .01em;
}

.c-article-body a:not(.wp-element-button) {
  color: var(--color-accent-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  transition: color var(--duration-fast) var(--ease-standard);
}

.c-article-body a:not(.wp-element-button):hover,
.c-article-body a:not(.wp-element-button):focus-visible {
  color: var(--color-accent-hover);
  text-decoration-thickness: 2px;
}

.c-article-body strong { color: var(--color-ink); font-weight: 700; }

/* Lists — copper markers, indented off the measure so the text column
   stays visually flush with the paragraphs above it. */
.c-article-body :is(ul, ol) {
  padding-left: 0;
  list-style: none;
}

.c-article-body > :is(ul, ol) {
  margin-block: 1.6em 0 !important;
}

.c-article-body :is(ul, ol) li {
  position: relative;
  padding-left: 2rem;
}

.c-article-body :is(ul, ol) li + li {
  margin-top: .7em;
}

.c-article-body ul > li::before {
  position: absolute;
  top: .62em;
  left: .35rem;
  width: .45rem;
  height: .45rem;
  background: var(--color-accent);
  content: "";
}

.c-article-body ol {
  counter-reset: article-list;
}

.c-article-body ol > li {
  counter-increment: article-list;
}

.c-article-body ol > li::before {
  position: absolute;
  left: 0;
  color: var(--color-accent-text);
  content: counter(article-list) ".";
  font-size: .9em;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.c-article-body :is(ul, ul) ul > li::before {
  background: var(--color-tan-500);
}

.c-article-body li :is(ul, ol) {
  margin-block: .7em;
}

/* Blockquote — olive rule and an oversized display quote mark. */
.c-article-body blockquote {
  position: relative;
  padding: var(--space-2) 0 var(--space-2) clamp(var(--space-6), 4vw, var(--space-10));
  border-left: 3px solid var(--color-olive-600);
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 1.2em;
  font-style: italic;
  line-height: 1.5;
}

.c-article-body blockquote::before {
  position: absolute;
  top: -.15em;
  left: calc(clamp(var(--space-6), 4vw, var(--space-10)) - .1em);
  color: var(--color-olive-600);
  content: "\201C";
  font-family: var(--font-display);
  font-size: 3.5em;
  line-height: 1;
  opacity: .16;
  pointer-events: none;
}

.c-article-body blockquote p { max-width: none; }
.c-article-body blockquote cite {
  display: block;
  margin-top: var(--space-3);
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: .72em;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.c-article-body > :is(blockquote, .wp-block-quote, .wp-block-pullquote) {
  margin-block: clamp(2rem, 4vw, 2.75rem) 0 !important;
}

.c-article-body :is(.wp-block-pullquote, .wp-block-quote.is-style-large) {
  padding: clamp(var(--space-6), 4vw, var(--space-8));
  border: 0;
  border-top: 3px solid var(--color-accent);
  background: var(--color-surface);
  text-align: left;
}

/* ── In-content figures & images ───────────────────────────────────
   The classic editor's [caption] shortcode writes the image's INTRINSIC
   width inline on the figure — `<figure style="width: 1600px">` — which is
   more than twice the 720px reading column, so the image spilled far past
   the measure. An inline style outranks any stylesheet declaration, but
   `max-width` always constrains `width` in the box model, so capping
   max-width reins it in with no need for !important.

   Note the selectors cover BOTH editors: Gutenberg emits `.wp-block-image`,
   the classic editor emits `.wp-caption`. Styling only the former is what
   let these through. */
.c-article-body > :is(figure, .wp-block-image, .wp-block-embed, .wp-block-gallery) {
  margin-block: clamp(2rem, 4vw, 2.75rem) 0 !important;
}

/* Anything that is not a deliberate wide/full breakout is presented as a
   contained figure: capped to the measure, centred, and sat on a bordered
   surface panel so the image reads as a bounded object in the prose. */
.c-article-body :is(figure, .wp-block-image, .wp-caption):not(.alignwide):not(.alignfull) {
  max-width: 100%;
  overflow: hidden;
  margin-inline: auto;
  border: 1px solid var(--color-border);
  background: var(--color-surface-soft);
}

.c-article-body img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* width:auto overrides the legacy `width="1600"` presentation attribute;
   max-height keeps a portrait image from running the length of the screen
   (a landscape image at the 720px measure stays well under it). */
.c-article-body :is(figure, .wp-block-image, .wp-caption) img {
  width: auto;
  max-width: 100%;
  max-height: 32rem;
  margin-inline: auto;
}

/* Floated captions get the same cap, so a left/right aligned image can
   never push the column sideways either. */
@media (min-width: 48rem) {
  .c-article-body :is(.alignleft, .alignright) {
    max-width: 50%;
  }
}

.c-article-body figcaption {
  margin: 0;
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: var(--text-micro);
  line-height: 1.6;
  text-align: left;
}

/* Wide/full media may break the measure — everything else stays inside it. */
.c-article-body > .alignfull {
  width: 100vw;
  max-width: none;
  margin-inline: calc(50% - 50vw);
}

@media (min-width: 60rem) {
  .c-article-body > .alignwide {
    width: min(100vw - (2 * var(--gutter)), var(--container-sm));
    max-width: none;
    margin-inline: calc((var(--container-read) - min(100vw - (2 * var(--gutter)), var(--container-sm))) / 2);
  }
}

/* Tables */
.c-article-body :is(table, .wp-block-table table) {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-small);
}

.c-article-body .wp-block-table {
  overflow-x: auto;
  /* So a phone scrolls the table instead of crushing its columns into
     one word per line. */
  -webkit-overflow-scrolling: touch;
}

.c-article-body .wp-block-table table {
  min-width: min(100%, 30rem);
}

.c-article-body :is(th, td) {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  text-align: left;
}

.c-article-body th {
  background: var(--color-surface);
  color: var(--color-ink);
  font-weight: 800;
}

.c-article-body tbody tr:nth-child(even) td {
  background: var(--color-surface-soft);
}

/* Code */
.c-article-body :is(code, kbd) {
  padding: .12em .4em;
  background: var(--color-surface);
  color: var(--color-earth-700);
  font-size: .9em;
}

.c-article-body > pre {
  margin-block: clamp(2rem, 4vw, 2.5rem) 0 !important;
}

.c-article-body pre {
  overflow-x: auto;
  padding: var(--space-5);
  border-left: 3px solid var(--color-earth-600);
  background: var(--color-dark);
  color: var(--color-page);
  font-size: var(--text-small);
  line-height: 1.6;
}

.c-article-body pre code {
  padding: 0;
  background: none;
  color: inherit;
}

/* Separator — a short centered rule, not a full-width line. */
.c-article-body > :is(hr, .wp-block-separator) {
  width: 4rem;
  height: 2px;
  margin-block: clamp(2.5rem, 5vw, 3.5rem) !important;
  margin-inline: auto;
  border: 0;
  background: var(--color-tan-500);
  opacity: 1;
}

.c-key-takeaways {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-left: .3rem solid var(--color-olive-600);
  background: var(--color-surface);
}

.c-disclaimer {
  max-width: none;
  padding: var(--space-5);
  border: var(--border-1);
  background: var(--color-surface-soft);
  color: var(--color-text-muted);
  font-size: var(--text-small);
  line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────────
   Table of contents
   ───────────────────────────────────────────────────────────────── */

.c-article-toc__details {
  overflow: hidden;
  border: 1px solid var(--color-border-header);
  border-top: 3px solid var(--color-accent);
  background: var(--color-surface-raised);
  box-shadow: var(--shadow-sm);
}

.c-article-toc__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  color: var(--color-ink);
  cursor: pointer;
  font-size: var(--text-micro);
  font-weight: 800;
  letter-spacing: var(--tracking-label);
  list-style: none;
  text-transform: uppercase;
}

.c-article-toc__summary::-webkit-details-marker {
  display: none;
}

.c-article-toc__summary:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: -3px;
}

.c-article-toc__toggle {
  display: inline-grid;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  border: 1px solid var(--color-border-input);
  border-radius: var(--radius-pill);
  color: var(--color-accent-text);
  font-size: 1rem;
  line-height: 1;
  place-items: center;
}

.c-article-toc__toggle::before {
  content: "+";
}

.c-article-toc__details[open] .c-article-toc__toggle::before {
  content: "\2013";
}

.c-article-toc__list {
  display: grid;
  gap: .15rem;
  margin: 0;
  padding: 0 var(--space-4) var(--space-5);
  counter-reset: article-toc;
  font-size: var(--text-small);
  line-height: 1.45;
  list-style: none;
}

.c-article-toc__item--h2 { counter-increment: article-toc; }
.c-article-toc__item--h3 { padding-left: var(--space-5); }
.c-article-toc__item--h4 { padding-left: var(--space-10); font-size: var(--text-micro); }

.c-article-toc__item a {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: .45rem .65rem;
  border-left: 2px solid transparent;
  color: var(--color-text-secondary) !important;
  text-decoration: none;
  transition:
    background var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard);
}

.c-article-toc__item a::before {
  flex: 0 0 auto;
  content: "";
}

.c-article-toc__item--h2 a {
  color: var(--color-ink) !important;
  font-weight: 800;
}

.c-article-toc__item--h2 a::before {
  display: inline-grid;
  width: 1.9rem;
  height: 1.5rem;
  margin-top: .05rem;
  background: var(--color-accent-fill);
  color: var(--color-white);
  content: counter(article-toc, decimal-leading-zero);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1;
  place-items: center;
}

.c-article-toc__item--h3 a::before,
.c-article-toc__item--h4 a::before {
  width: .35rem;
  height: .35rem;
  margin-top: .55rem;
  border-radius: var(--radius-pill);
  background: var(--color-tan-500);
}

.c-article-toc__item a:hover,
.c-article-toc__item a:focus-visible,
.c-article-toc__item a.is-active {
  background: var(--color-surface-soft);
  border-left-color: var(--color-accent);
  color: var(--color-accent-text) !important;
}

.c-article-toc__item a.is-active {
  background: var(--color-badge-bg);
}

/* ─────────────────────────────────────────────────────────────────
   Article footer — tags, share, disclaimer
   ───────────────────────────────────────────────────────────────── */

.c-article-footer {
  display: grid;
  gap: var(--space-6);
  padding-top: clamp(var(--space-8), 4vw, var(--space-10));
  border-top: 1px solid var(--color-border);
}

/* !important: core's flow block gap would otherwise re-add a 2rem margin
   between the grid's children on top of its own gap. */
.c-article-footer > * {
  margin-block: 0 !important;
}

.c-article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.c-article-tags__label,
.c-article-share__label {
  color: var(--color-text-muted);
  font-size: var(--text-label);
  font-weight: 800;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.c-article-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.c-article-tag {
  display: inline-block;
  padding: .35rem .85rem;
  border: 1px solid var(--color-border-input);
  border-radius: var(--radius-pill);
  color: var(--color-text-secondary) !important;
  font-size: var(--text-micro);
  font-weight: 700;
  transition:
    background var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard);
}

.c-article-tag:hover,
.c-article-tag:focus-visible {
  border-color: var(--color-accent-fill);
  background: var(--color-accent-fill);
  color: var(--color-white) !important;
}

.c-article-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.c-article-share__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.c-article-share__link {
  display: inline-grid;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--color-border-input);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-text-secondary) !important;
  cursor: pointer;
  place-items: center;
  transition:
    background var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard);
}

.c-article-share__link svg {
  width: 1.05rem;
  height: 1.05rem;
}

.c-article-share__link:hover,
.c-article-share__link:focus-visible {
  border-color: var(--color-accent-fill);
  background: var(--color-accent-fill);
  color: var(--color-white) !important;
}

.c-article-share__copy.is-copied {
  border-color: var(--color-olive-600);
  background: var(--color-olive-600);
  color: var(--color-white) !important;
}

.c-article-share__status {
  color: var(--color-olive-700);
  font-size: var(--text-micro);
  font-weight: 700;
}

/* ─────────────────────────────────────────────────────────────────
   Author box
   ───────────────────────────────────────────────────────────────── */

.c-author-box {
  display: grid;
  gap: var(--space-5);
  padding: clamp(var(--space-6), 4vw, var(--space-8));
  border: 1px solid var(--color-border-header);
  border-top: 3px solid var(--color-accent);
  background: var(--color-surface-raised);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 36rem) {
  .c-author-box {
    align-items: center;
    grid-template-columns: auto minmax(0, 1fr);
  }
}

.c-author-box > *,
.c-author-box__body > *,
.c-author-box__links > * {
  margin-block: 0 !important;
}

.c-author-box__avatar {
  width: 5rem;
  height: 5rem;
}

.c-author-box__avatar img,
.c-author-box__avatar-img {
  width: 5rem !important;
  height: 5rem !important;
  border-radius: var(--radius-pill);
}

.c-author-box__body {
  display: grid;
  gap: var(--space-2);
}

.c-author-box__eyebrow {
  color: var(--color-accent-text) !important;
}

.c-author-box__name {
  font-size: clamp(1.4rem, 1vw + 1rem, 1.75rem);
  line-height: 1.1;
}

.c-author-box__bio {
  max-width: none;
  color: var(--color-text-secondary);
  font-size: var(--text-small);
  line-height: 1.65;
}

.c-author-box__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-2);
  font-size: var(--text-micro);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.c-author-box__links a {
  color: var(--color-accent-text) !important;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: .15rem;
}

/* ─────────────────────────────────────────────────────────────────
   Previous / next
   ───────────────────────────────────────────────────────────────── */

.c-post-nav__eyebrow {
  margin-bottom: var(--space-4) !important;
}

.c-post-nav__links {
  display: grid;
  gap: var(--grid-gap);
}

@media (min-width: 40rem) {
  .c-post-nav__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.c-post-nav__link {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  background: var(--color-surface-raised);
  color: var(--color-ink) !important;
  transition:
    border-color var(--duration-base) var(--ease-standard),
    box-shadow var(--duration-base) var(--ease-standard),
    transform var(--duration-base) var(--ease-standard);
}

.c-post-nav__link--prev { border-left: 3px solid var(--color-accent); }
.c-post-nav__link--next {
  border-right: 3px solid var(--color-accent);
  text-align: right;
}

.c-post-nav__link:hover,
.c-post-nav__link:focus-visible {
  border-color: var(--color-border-input);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.c-post-nav__direction {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-accent-text);
  font-size: var(--text-label);
  font-weight: 800;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.c-post-nav__link--next .c-post-nav__direction {
  justify-content: flex-end;
}

.c-post-nav__direction svg {
  width: 1rem;
  height: 1rem;
}

.c-post-nav__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
}
