/* ============================================================
   SINGLE — Article / News post
   ============================================================ */

/* ── ARTICLE HEADER ── */
.ahead {
  position: relative;
  background: var(--blue);
  color: var(--paper);
  overflow: hidden;
  padding: clamp(132px, 17vh, 190px) 0 clamp(48px, 7vh, 80px);
}
.ahead-waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.8;
}
.ahead-glow {
  position: absolute;
  top: -22%;
  right: -6%;
  width: min(540px, 64vw);
  aspect-ratio: 1;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at center,
    rgba(129, 152, 199, 0.28),
    transparent 62%
  );
}
.ahead-inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
}

/* breadcrumb (re-declared here for specificity within .ahead) */
.ahead .crumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--paper-faint);
  margin-bottom: 26px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.ahead .crumb a {
  color: var(--steel-soft);
  transition: color 0.2s;
}
.ahead .crumb a:hover {
  color: var(--paper);
}

.a-cat {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 7px 14px;
  margin-bottom: 24px;
}
.ahead h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5.2vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0;
}
.a-deck {
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 400;
  color: var(--paper-dim);
  max-width: 62ch;
  margin: 26px 0 0;
  line-height: 1.6;
}

/* byline — date + read time */
.byline {
  margin-top: 38px;
}
.byline .when {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--paper-faint);
  line-height: 1.5;
}

/* ── HERO FIGURE ── */
.a-hero {
  background: var(--white);
}
.a-hero .wrap {
  padding-block: clamp(40px, 6vh, 72px);
}
.a-hero figure {
  margin: 0;
}

.a-hero .fimg {
  position: relative;
  border-left: 4px solid var(--red);
  overflow: hidden;
}
.a-hero .fimg img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  display: block;
}
figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.4px;
  color: var(--ink-faint);
  margin-top: 14px;
  padding-left: 18px;
  border-left: 1px solid var(--line-light);
}

/* ── ARTICLE BODY ── */
.article {
  background: var(--white);
}
.article .wrap {
  padding-bottom: clamp(64px, 9vh, 110px);
}
.article.no-hero .wrap {
  padding-top: clamp(48px, 7vh, 80px);
}

/* reading column — constrain direct children */
.a-body {
  font-size: 18px;
  line-height: 1.8;
  color: #2a3160;
}
.a-body > p,
.a-body > h2,
.a-body > h3,
.a-body > ul,
.a-body > ol,
.a-body > blockquote,
.a-body > figure,
.a-body > .callout,
.a-body > .a-foot,
.a-body > hr,
.a-body > .wp-block-paragraph,
.a-body > .wp-block-heading,
.a-body > .wp-block-list,
.a-body > .wp-block-quote,
.a-body > .wp-block-separator {
  max-width: 720px;
  margin-inline: auto;
}

/* paragraphs */
.a-body > p,
.a-body > .wp-block-paragraph {
  margin: 0 0 26px;
}

/* drop cap on first paragraph */
.a-body > p:first-of-type::first-letter,
.a-body > .wp-block-paragraph:first-of-type::first-letter {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 4.4em;
  line-height: 0.8;
  float: left;
  margin: 6px 14px 0 0;
  color: var(--red);
}

/* inline links */
.a-body a.inline {
  color: var(--red);
  font-weight: 600;
  border-bottom: 1px solid rgba(200, 48, 42, 0.35);
  transition: border-color 0.2s;
}
.a-body a.inline:hover {
  border-color: var(--red);
}

.a-body strong {
  color: var(--ink);
  font-weight: 600;
}

/* headings */
.a-body h2,
.a-body .wp-block-heading:is(h2) {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 56px 0 20px;
}
.a-body h3,
.a-body .wp-block-heading:is(h3) {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 40px 0 14px;
}

/* custom bullet list */
.a-body ul,
.a-body .wp-block-list:is(ul) {
  margin: 0 0 26px;
  padding-left: 0;
  list-style: none;
}
.a-body ul li,
.a-body .wp-block-list:is(ul) li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 14px;
}
.a-body ul li::before,
.a-body .wp-block-list:is(ul) li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 13px;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
}

/* custom ordered list */
.a-body ol,
.a-body .wp-block-list:is(ol) {
  margin: 0 0 26px;
  padding-left: 0;
  list-style: none;
  counter-reset: li;
}
.a-body ol li,
.a-body .wp-block-list:is(ol) li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 14px;
  counter-increment: li;
}
.a-body ol li::before,
.a-body .wp-block-list:is(ol) li::before {
  content: counter(li, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 13px;
  color: var(--red);
  letter-spacing: 1px;
}

/* blockquote */
.a-body blockquote,
.a-body .wp-block-quote {
  margin: 44px auto;
  border-left: 3px solid var(--red);
  padding: 6px 0 6px 30px;
  background: none;
  border-radius: 0;
}
.a-body blockquote p,
.a-body .wp-block-quote p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 14px;
  max-width: 100%;
}
.a-body blockquote cite,
.a-body .wp-block-quote cite {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 12.5px;
  letter-spacing: 0.5px;
  color: var(--steel);
  text-transform: uppercase;
}

/* wide / full figure — breaks out of reading column */
.a-body figure.wide,
.a-body .alignwide,
.a-body .alignfull {
  max-width: 100%;
  margin: 48px auto;
}
.a-body figure.wide .fimg,
.a-body .alignwide .fimg {
  position: relative;
  border-left: 4px solid var(--red);
  overflow: hidden;
}
.a-body figure.wide img,
.a-body .alignwide img {
  width: 100%;
  aspect-ratio: 16 / 7.5;
  object-fit: cover;
}

/* stat callout */
.callout {
  background: var(--blue-soft);
  border: 1px solid var(--line-light);
  border-radius: 8px;
  padding: 34px 36px;
  margin: 44px auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
}
.callout .stat {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 6vw, 68px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--red);
}
.callout .stat-txt {
  font-size: 15.5px;
  color: var(--ink-dim);
  line-height: 1.6;
}
.callout .stat-txt b {
  display: block;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 5px;
}

/* divider */
.a-body hr,
.a-body .wp-block-separator {
  border: none;
  height: 1px;
  background: var(--line-light);
  margin: 48px auto;
}

/* ── ARTICLE FOOTER (tags + share) ── */
.a-foot {
  max-width: 720px;
  margin: 48px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--line-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.tag {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--ink-dim);
  background: var(--blue-softer);
  border: 1px solid var(--line-light);
  border-radius: 40px;
  padding: 8px 16px;
  transition: all 0.2s;
}
.tag:hover {
  border-color: var(--steel);
  color: var(--ink);
}

.share {
  display: flex;
  align-items: center;
  gap: 10px;
}
.share .slabel {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-right: 4px;
}
.share a,
.share button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  background: none;
  cursor: pointer;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--ink-dim);
  transition: 0.22s;
  flex-shrink: 0;
}
.share a:hover,
.share button:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-3px);
}

/* ── RELATED POSTS ── */
.related {
  background: var(--blue-soft);
  border-top: 1px solid var(--line-light);
}
.related .wrap {
  padding-block: clamp(56px, 8vh, 96px);
}

.rel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 38px;
  flex-wrap: wrap;
}
.rel-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 12px 0 0;
}
.all-news {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.all-news svg {
  transition: transform 0.25s;
}
.all-news:hover svg {
  transform: translateX(4px);
}

.rel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

/* post cards (same as template-news.css, self-contained here) */
.pcard {
  background: var(--white);
  color: var(--ink);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-light);
  transition:
    transform 0.35s,
    box-shadow 0.35s;
}
.pcard:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 46px -28px rgba(28, 35, 80, 0.5);
}
.pcard .pimg {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-light);
}
.pcard .pimg img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.pcard .pimg .ph {
  aspect-ratio: 16 / 9;
  border: none;
  border-bottom: 1px solid var(--line-light);
  background:
    repeating-linear-gradient(
      135deg,
      rgba(28, 35, 80, 0.07) 0 2px,
      transparent 2px 11px
    ),
    var(--blue-soft);
}
.pcard .pbody {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pcard .pmeta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 13px;
  display: flex;
  gap: 9px;
  align-items: center;
}
.pcard .pmeta .cat {
  color: var(--steel);
}
.pcard h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.18;
  margin: 0 0 11px;
  letter-spacing: -0.025em;
}
.pcard p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-dim);
  margin: 0 0 20px;
}
.pcard .pread {
  margin-top: auto;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.pcard .pread svg {
  transition: transform 0.25s;
}
.pcard:hover .pread svg {
  transform: translateX(4px);
}

/* ── RESPONSIVE ── */
@media (max-width: 1040px) {
  .rel-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rel-grid .pcard:last-child {
    display: none;
  }
}

@media (max-width: 880px) {
  .callout {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 560px) {
  .a-body {
    font-size: 17px;
  }
  .a-body > p:first-of-type::first-letter {
    font-size: 3.6em;
  }
  .rel-grid {
    grid-template-columns: 1fr;
  }
  .rel-grid .pcard:last-child {
    display: flex;
  }
  .a-foot {
    flex-direction: column;
    align-items: flex-start;
  }
}
