/* =============================================================================
   Aeberli Digital — News & Blog stylesheet
   Used by /news.php (index) and /news-template.php (single article).
   Builds on colors_and_type.css tokens (--ad-red, --ad-paper, etc.).
   ============================================================================= */

/* =============================================================================
   INDEX PAGE — kinetic editorial broadsheet (v2)
   Live ticker · Editorial masthead with floating chips · Sticky filter bar ·
   Featured triptych (1 huge + 2 stacked mini) · Horizontal story strip ·
   Pull-quote pause with animated rings · Editorial archive list · Newsletter.
   ============================================================================= */

/* Local content variables — scoped to .kx-body so they don't leak to the
   header/footer chrome (which keep using the global --ad-wrap from site.css).
   --kx-wrap controls the news content lane only. */
.kx-body {
  background: var(--ad-paper);
  --kx-wrap: 1480px;
  --kx-wrap-pad: clamp(1.5rem, 5vw, 4rem);
}
.kx-body main { max-width: none; }
.kx-wrap {
  max-width: var(--kx-wrap);
  margin: 0 auto;
  padding: 0 var(--kx-wrap-pad);
}

/* ── Live ticker ──────────────────────────────────────────────────────────── */
.kx-ticker {
  background: var(--ad-anthrazit-deep);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
  font-family: var(--ad-sans);
  font-size: .78rem;
  letter-spacing: .02em;
  position: relative;
}
.kx-ticker__inner {
  display: flex; align-items: center;
  max-width: var(--ad-wrap);
  margin: 0 auto;
  padding: 0 var(--ad-wrap-pad);
  height: 38px;
  gap: 1.25rem;
}
.kx-ticker__label {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .62rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ad-red); font-weight: 500;
  flex-shrink: 0;
  padding-right: 1.25rem;
  border-right: 1px solid rgba(255,255,255,.1);
  height: 100%;
}
.kx-ticker__label .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ad-red);
  box-shadow: 0 0 0 0 rgba(218,41,28,.6);
  animation: kxPulse 1.8s ease-out infinite;
}
@keyframes kxPulse {
  0%   { box-shadow: 0 0 0 0 rgba(218,41,28,.6); }
  100% { box-shadow: 0 0 0 10px rgba(218,41,28,0); }
}
.kx-ticker__rail {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex; align-items: center;
  mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}
.kx-ticker__track {
  display: flex; gap: 3rem;
  white-space: nowrap;
  animation: kxScroll 60s linear infinite;
  will-change: transform;
}
.kx-ticker__rail:hover .kx-ticker__track { animation-play-state: paused; }
.kx-ticker__track a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: .55rem;
}
.kx-ticker__track a:hover { color: #fff; }
.kx-ticker__track .cat {
  color: var(--ad-red);
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.kx-ticker__track .sep {
  width: 4px; height: 4px; background: rgba(255,255,255,.25); border-radius: 50%;
  flex-shrink: 0;
}
@keyframes kxScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Editorial masthead ───────────────────────────────────────────────────── */
.kx-mast {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 2px solid var(--ad-fg);
  overflow: hidden;
}
.kx-mast__rule {
  display: flex; align-items: baseline;
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ad-fg-2);
  border-bottom: 1px solid var(--ad-border);
  padding-bottom: .85rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  font-variant-numeric: tabular-nums;
  gap: 1.5rem; flex-wrap: wrap;
}
.kx-mast__rule .red    { color: var(--ad-red); font-weight: 500; }
.kx-mast__rule .spacer { flex: 1; }

.kx-mast__hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.kx-mast__title {
  font-size: clamp(3.5rem, 11vw, 9.5rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: .92;
  margin: 0;
  color: var(--ad-fg);
  text-wrap: balance;
}
.kx-mast__title .ital {
  font-family: var(--ad-serif-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--ad-red);
}
.kx-mast__title .dot {
  display: inline-block;
  width: .12em; height: .12em;
  background: var(--ad-red);
  border-radius: 50%;
  vertical-align: baseline;
  transform: translateY(.04em);
  margin-left: .04em;
}
.kx-mast__byline {
  display: flex; align-items: end; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  font-family: var(--ad-sans);
  font-size: .82rem;
  color: var(--ad-fg-2);
  line-height: 1.5;
  max-width: 980px;
  margin-top: .5rem;
}
.kx-mast__byline p { max-width: 48ch; margin: 0; }
.kx-mast__since {
  font-family: var(--ad-serif-italic); font-style: italic;
  font-size: 1.1rem; color: var(--ad-fg-2);
  white-space: nowrap;
}
@media (max-width: 720px) {
  .kx-mast__title { line-height: .98; }
}

/* Top spacing below masthead → triptych. */
.kx-mast + .kx-wrap > .kx-triptych:first-child,
.kx-wrap > .kx-triptych:first-child {
  margin-top: clamp(2.5rem, 4vw, 4rem);
}

/* ── Featured triptych: 1 huge + 2 stacked ────────────────────────────────── */
.kx-triptych {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 2rem;
  margin-bottom: clamp(3rem, 5vw, 5rem);
}
@media (max-width: 1080px) { .kx-triptych { grid-template-columns: 1fr; } }

.kx-feature {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  background: var(--ad-fg);
  aspect-ratio: 16 / 11;
  isolation: isolate;
}
.kx-feature__img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .9s var(--ad-ease);
  filter: saturate(.95);
}
.kx-feature:hover .kx-feature__img { transform: scale(1.05); }
.kx-feature__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,20,20,0) 30%, rgba(20,20,20,.85) 100%);
  z-index: 1;
}
.kx-feature__pill {
  position: absolute; top: 1.25rem; left: 1.25rem; z-index: 2;
  background: var(--ad-red); color: #fff;
  font-size: .65rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 500;
  padding: .42rem .85rem;
  display: inline-flex; align-items: center; gap: .5rem;
}
.kx-feature__pill::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff;
  animation: kxPulse2 1.6s ease-out infinite;
}
@keyframes kxPulse2 {
  0%, 100% { opacity: .4; }
  50%      { opacity: 1; }
}
.kx-feature__num {
  position: absolute; top: 1.5rem; right: 1.5rem; z-index: 2;
  font-family: var(--ad-serif-italic); font-style: italic;
  color: rgba(255,255,255,.85);
  font-size: 4rem; line-height: 1;
  font-weight: 400;
}
.kx-feature__num small {
  display: block;
  font-family: var(--ad-sans);
  font-style: normal;
  font-size: .55rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-top: .25rem;
  text-align: right;
}
.kx-feature__body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 2rem 2.25rem 1.75rem;
  color: #fff;
}
.kx-feature__body .cat {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ad-red);
  font-weight: 500;
  display: inline-flex; align-items: center; gap: .5rem;
  margin-bottom: .75rem;
}
.kx-feature__body .cat::before {
  content: ""; width: 18px; height: 2px; background: var(--ad-red);
}
.kx-feature__body h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin: 0 0 .85rem;
  text-wrap: balance;
  max-width: 22ch;
}
.kx-feature__body h2 em {
  display: inline;
  font-family: var(--ad-serif-italic);
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,.85);
}
.kx-feature__body .dek {
  font-size: .92rem; line-height: 1.55;
  color: rgba(255,255,255,.78);
  margin: 0 0 1.1rem;
  max-width: 50ch;
}
.kx-feature__body .meta {
  display: flex; align-items: center; gap: .65rem;
  font-size: .72rem; color: rgba(255,255,255,.6);
}
.kx-feature__body .meta .dot {
  width: 3px; height: 3px; background: rgba(255,255,255,.4); border-radius: 50%;
}

.kx-feature--stacked {
  display: flex; flex-direction: column; gap: 2rem;
  background: transparent; aspect-ratio: auto;
}
.kx-feat-mini {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  flex: 1;
  align-items: stretch;
}
.kx-feat-mini__img {
  position: relative;
  overflow: hidden;
  background: var(--ad-paper-2);
}
.kx-feat-mini__img-fill {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .9s var(--ad-ease);
}
.kx-feat-mini:hover .kx-feat-mini__img-fill { transform: scale(1.05); }
.kx-feat-mini__img--ph {
  background: linear-gradient(135deg, var(--ad-paper-2), #ece6dc);
}
.kx-feat-mini__body { display: flex; flex-direction: column; padding: .25rem 0; }
.kx-feat-mini__body .cat {
  font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ad-red); font-weight: 500;
  margin-bottom: .5rem;
}
.kx-feat-mini__body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -.005em;
  line-height: 1.3;
  margin: 0 0 .5rem;
  color: var(--ad-fg);
  text-wrap: pretty;
}
.kx-feat-mini:hover h3 { color: var(--ad-red); }
.kx-feat-mini__body .meta {
  font-size: .7rem; color: var(--ad-fg-2);
  margin-top: auto;
  display: flex; align-items: center; gap: .55rem;
}
.kx-feat-mini__body .meta .dot {
  width: 3px; height: 3px; background: var(--ad-fg-3, #b8b3ad); border-radius: 50%;
}

/* ── Story strip — horizontal scroll ──────────────────────────────────────── */
.kx-strip {
  margin: clamp(3rem, 5vw, 5rem) 0;
}
.kx-strip__head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap;
}
.kx-strip__head h3 {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0;
  line-height: 1.1;
}
.kx-strip__head h3 em {
  font-family: var(--ad-serif-italic); font-style: italic; font-weight: 400; color: var(--ad-red);
}
.kx-strip__nav { display: flex; gap: .35rem; align-items: center; }
.kx-strip__nav button {
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--ad-border);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--ad-fg);
  transition: all var(--ad-dur) var(--ad-ease);
  border-radius: 999px;
}
.kx-strip__nav button:hover { border-color: var(--ad-red); color: var(--ad-red); }
.kx-strip__nav button:disabled { opacity: .35; cursor: default; }
.kx-strip__nav button:disabled:hover { border-color: var(--ad-border); color: var(--ad-fg); }
.kx-strip__progress {
  margin-left: 1rem;
  font-size: .72rem;
  font-variant-numeric: tabular-nums;
  color: var(--ad-fg-2);
}

.kx-strip__rail {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: .5rem;
  scroll-behavior: smooth;
  margin: 0 calc(var(--kx-wrap-pad) * -1);
  padding-left: var(--kx-wrap-pad);
  padding-right: var(--kx-wrap-pad);
}
.kx-strip__rail::-webkit-scrollbar { display: none; }
.kx-strip__card {
  flex: 0 0 calc(33.333% - 1rem);
  min-width: 280px;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column;
}
@media (max-width: 1080px) { .kx-strip__card { flex-basis: calc(50% - .75rem); } }
@media (max-width: 720px)  { .kx-strip__card { flex-basis: 80%; } }

.kx-strip__card .img {
  aspect-ratio: 4 / 3;
  background: var(--ad-paper-2);
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}
.kx-strip__card .img-fill {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .8s var(--ad-ease);
}
.kx-strip__card:hover .img-fill { transform: scale(1.04); }
.kx-strip__card .img.is-ph {
  background: linear-gradient(135deg, var(--ad-paper-2), #ece6dc);
  display: flex; align-items: center; justify-content: center;
  color: var(--ad-fg-3, #c8c1b6);
}
.kx-strip__card .num {
  position: absolute; top: 1rem; left: 1rem;
  font-family: var(--ad-serif-italic); font-style: italic;
  color: rgba(255,255,255,.85);
  font-size: 2rem; font-weight: 400; line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
  font-variant-numeric: tabular-nums;
}
.kx-strip__card .num.num--ph {
  text-shadow: none;
  color: var(--ad-fg-3, #c8c1b6);
}
.kx-strip__card .cat {
  font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ad-red); font-weight: 500;
  margin-bottom: .55rem;
}
.kx-strip__card h4 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -.005em;
  line-height: 1.3;
  margin: 0 0 .65rem;
  color: var(--ad-fg);
  text-wrap: pretty;
}
.kx-strip__card:hover h4 { color: var(--ad-red); }
.kx-strip__card .meta {
  font-size: .72rem; color: var(--ad-fg-2);
  margin-top: auto;
  display: flex; align-items: center; gap: .55rem;
}
.kx-strip__card .meta .dot {
  width: 3px; height: 3px; background: var(--ad-fg-3, #b8b3ad); border-radius: 50%;
}

/* ── Pull-quote pause ─────────────────────────────────────────────────────── */
.kx-pause {
  margin: clamp(4rem, 7vw, 7rem) 0;
  padding: clamp(3rem, 5vw, 5rem) 0;
  background: var(--ad-anthrazit-deep);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.kx-pause__inner {
  max-width: var(--kx-wrap);
  margin: 0 auto;
  padding: 0 var(--kx-wrap-pad);
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 880px) { .kx-pause__inner { grid-template-columns: 1fr; } }
.kx-pause__quote {
  font-family: var(--ad-serif-italic);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.7rem, 3.5vw, 2.7rem);
  line-height: 1.25;
  color: #fff;
  margin: 0;
  text-wrap: pretty;
  position: relative;
  padding-left: 2.5rem;
}
.kx-pause__quote::before {
  content: "„";
  position: absolute;
  left: -.4rem; top: -1.6rem;
  font-size: 8rem;
  color: var(--ad-red);
  font-family: var(--ad-serif-italic);
  line-height: 1;
}
.kx-pause__cite {
  display: flex; align-items: center; gap: 1rem;
  margin-top: 1.75rem;
  font-family: var(--ad-sans);
  font-style: normal;
  font-size: .82rem;
  color: rgba(255,255,255,.7);
  padding-left: 2.5rem;
}
.kx-pause__cite strong { color: #fff; font-weight: 500; display: block; }
.kx-pause__cite a { color: rgba(255,255,255,.8); text-decoration: underline; text-underline-offset: 3px; }
.kx-pause__cite a:hover { color: var(--ad-red); }

.kx-pause__visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 360px;
  margin-left: auto;
}
.kx-pause__visual .ring {
  position: absolute; inset: 0;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  animation: kxRotate 30s linear infinite;
}
.kx-pause__visual .ring:nth-child(2) {
  inset: 12%;
  border-color: rgba(218,41,28,.4);
  animation-duration: 22s;
  animation-direction: reverse;
}
.kx-pause__visual .ring:nth-child(3) {
  inset: 28%;
  border-color: rgba(255,255,255,.18);
  animation-duration: 14s;
}
.kx-pause__visual .core {
  position: absolute; inset: 40%;
  background: var(--ad-red);
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(218,41,28,.5);
  animation: kxBob 3s ease-in-out infinite;
}
@keyframes kxRotate { to { transform: rotate(360deg); } }
@keyframes kxBob {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(.9); }
}
.kx-pause__grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ── Avatar (letter, used in archive rows + pull quote) ───────────────────── */
.avatar.avatar--letter {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--ad-anthrazit-deep);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700;
  flex-shrink: 0;
  font-family: var(--ad-sans);
  line-height: 1;
}
.kx-pause__cite .avatar.avatar--letter {
  width: 44px; height: 44px;
  font-size: 1rem;
}

/* ── No-posts empty state ─────────────────────────────────────────────────── */
.kx-empty {
  max-width: var(--kx-wrap);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) var(--kx-wrap-pad);
  text-align: center;
  color: var(--ad-fg-2);
  font-family: var(--ad-sans);
}
.kx-empty .big {
  font-family: var(--ad-serif-italic);
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ad-fg-3, #b8b3ad);
  margin: 0 0 1rem;
}

/* ── Newsletter — full-bleed editorial hero ───────────────────────────────── */
.kx-news-hero {
  position: relative;
  margin-top: clamp(4rem, 7vw, 7rem);
  padding: clamp(4rem, 7vw, 7rem) 0;
  background: var(--ad-anthrazit-deep);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

/* Decorative background — huge italic watermark + grid */
.kx-news-hero__bg {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.kx-news-hero__watermark {
  position: absolute;
  bottom: -.18em; left: 50%;
  transform: translateX(-50%);
  font-family: var(--ad-serif-italic); font-style: italic;
  font-size: clamp(12rem, 28vw, 28rem);
  font-weight: 400;
  line-height: .85;
  color: rgba(255,255,255,.04);
  letter-spacing: -.04em;
  white-space: nowrap;
  user-select: none;
}
.kx-news-hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 60% at 30% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 30% 50%, black 30%, transparent 80%);
}

.kx-news-hero__inner {
  position: relative; z-index: 1;
  max-width: var(--kx-wrap);
  margin: 0 auto;
  padding: 0 var(--kx-wrap-pad);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 980px) {
  .kx-news-hero__inner { grid-template-columns: 1fr; }
}

/* — Left column: copy — */
.kx-news-hero__copy { max-width: 56ch; }
.kx-news-hero__eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .65rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ad-red);
  margin-bottom: 1.5rem;
  padding: .35rem .8rem;
  border: 1px solid rgba(218,41,28,.4);
  border-radius: 999px;
  background: rgba(218,41,28,.08);
}
.kx-news-hero__eyebrow .pulse {
  width: 7px; height: 7px;
  background: var(--ad-red);
  border-radius: 50%;
  animation: kxPulse 1.8s ease-out infinite;
}
.kx-news-hero__title {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.02;
  color: #fff;
  margin: 0 0 1.5rem;
  text-wrap: balance;
}
.kx-news-hero__title em {
  font-family: var(--ad-serif-italic);
  font-style: italic; font-weight: 400;
  color: var(--ad-red);
}
.kx-news-hero__lede {
  font-size: 1rem; line-height: 1.7;
  color: rgba(255,255,255,.7);
  margin: 0 0 2rem;
  max-width: 50ch;
}
.kx-news-hero__benefits {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: .85rem;
}
.kx-news-hero__benefits li {
  display: flex; align-items: baseline; gap: 1rem;
  font-size: .92rem;
  color: rgba(255,255,255,.85);
  letter-spacing: -.005em;
  padding-bottom: .85rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.kx-news-hero__benefits li:last-child { border-bottom: 0; padding-bottom: 0; }
.kx-news-hero__benefits .num {
  font-family: var(--ad-serif-italic); font-style: italic;
  color: var(--ad-red);
  font-size: 1.05rem; font-weight: 400;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  min-width: 1.5rem;
}

/* — Right column: card — */
.kx-news-hero__card {
  position: relative;
  background: var(--ad-paper);
  color: var(--ad-fg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex; flex-direction: column;
  gap: 1.5rem;
  box-shadow:
    0 30px 80px -20px rgba(0,0,0,.5),
    0 0 0 1px rgba(255,255,255,.06);
  /* Hand-drawn lift: slight rotation on large screens */
}
.kx-news-hero__card::before {
  /* Red corner accent (top-left) */
  content: "";
  position: absolute; top: -1px; left: -1px;
  width: 56px; height: 56px;
  border-top: 4px solid var(--ad-red);
  border-left: 4px solid var(--ad-red);
  pointer-events: none;
}
.kx-news-hero__card::after {
  /* Red corner accent (bottom-right) */
  content: "";
  position: absolute; bottom: -1px; right: -1px;
  width: 56px; height: 56px;
  border-bottom: 4px solid var(--ad-red);
  border-right: 4px solid var(--ad-red);
  pointer-events: none;
}

.kx-news-hero__cardhead {
  display: flex; align-items: baseline; gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px dashed var(--ad-border);
}
.kx-news-hero__num {
  font-family: var(--ad-serif-italic); font-style: italic;
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  font-weight: 400;
  color: var(--ad-red);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.kx-news-hero__label {
  font-size: .68rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ad-fg-2);
  line-height: 1.3;
  margin-left: auto;
  text-align: right;
}

.kx-news-hero__form {
  display: flex; flex-direction: column;
  gap: .85rem;
}
.kx-news-hero__field {
  display: flex; flex-direction: column;
  gap: .5rem;
}
.kx-news-hero__field .lbl {
  font-size: .65rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ad-fg-2);
}
.kx-news-hero__field input {
  width: 100%;
  padding: 1rem 1.1rem;
  font-size: 1rem;
  font-family: var(--ad-sans);
  background: #fff;
  border: 0;
  border-bottom: 2px solid var(--ad-fg);
  letter-spacing: -.005em;
  transition: border-color var(--ad-dur) var(--ad-ease);
}
.kx-news-hero__field input::placeholder { color: var(--ad-fg-3, #b8b3ad); }
.kx-news-hero__field input:focus {
  outline: 0;
  border-color: var(--ad-red);
}
.kx-news-hero__form button {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .65rem;
  padding: 1.1rem 1.5rem;
  background: var(--ad-fg);
  color: #fff;
  border: 0;
  font-family: var(--ad-sans);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background var(--ad-dur) var(--ad-ease), gap var(--ad-dur) var(--ad-ease);
}
.kx-news-hero__form button:hover:not(:disabled) {
  background: var(--ad-red);
  gap: .9rem;
}
.kx-news-hero__form button:disabled {
  background: #2a8a3a;
  cursor: default;
}
.kx-news-hero__fine {
  font-size: .72rem;
  color: var(--ad-fg-2);
  line-height: 1.5;
  margin: 0;
}
.kx-news-hero__fine a { color: var(--ad-red); text-decoration: underline; text-underline-offset: 2px; }
.kx-news-hero__fine a:hover { color: var(--ad-fg); }

.kx-news-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .65rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--ad-border);
}
.kx-news-hero__stats div {
  display: flex; flex-direction: column;
  align-items: center;
  gap: .25rem;
  text-align: center;
}
.kx-news-hero__stats strong {
  font-size: .58rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ad-fg-2);
}
.kx-news-hero__stats span {
  font-family: var(--ad-serif-italic); font-style: italic;
  font-size: 1.2rem; font-weight: 400;
  color: var(--ad-fg);
  line-height: 1;
}
/* ── Single-post page ─────────────────────────────────────────────────────── */

.nb-post {
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 5vw, 5rem);
}

.nb-post-back {
  margin-bottom: 1.5rem;
}
.nb-post-back a {
  font-size: .85rem; color: var(--ad-muted); text-decoration: none;
}
.nb-post-back a:hover { color: var(--ad-red); }

.nb-post-header {
  max-width: 70ch; margin: 0 auto 2.5rem;
}
.nb-post-tags {
  display: flex; flex-wrap: wrap; gap: .35rem;
  margin-bottom: 1.5rem;
}
.nb-tag-chip {
  display: inline-block;
  font-size: .68rem; font-weight: 600;
  letter-spacing: var(--ad-track-mini); text-transform: uppercase;
  color: var(--ad-fg-2);
  padding: .3rem .65rem;
  border: 1px solid var(--ad-border);
  border-radius: var(--ad-radius-pill);
  background: #fff;
  text-decoration: none;
}
.nb-tag-chip:hover { border-color: var(--ad-red); color: var(--ad-red); }
.nb-tag-chip--layout {
  background: rgba(218,41,28,.06);
  border-color: rgba(218,41,28,.25);
  color: var(--ad-red);
}

.nb-block-h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700; line-height: 1.08;
  letter-spacing: var(--ad-track-tight);
  color: var(--ad-fg);
  margin: 0 0 1.25rem;
}
.nb-block-h1 em {
  font-family: var(--ad-serif-italic); font-style: italic;
  font-weight: 400; color: var(--ad-red);
}

.nb-block-p {
  font-size: 1.02rem; line-height: 1.75;
  color: var(--ad-fg-2);
  margin: 0 0 1.25rem;
}
.nb-block-p--lead {
  font-size: 1.2rem; line-height: 1.65;
  color: var(--ad-fg-2);
  margin-bottom: 2rem;
}

.nb-post-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: .6rem;
  font-size: .85rem; color: var(--ad-muted);
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ad-border);
}
.nb-author { font-weight: 500; color: var(--ad-fg-2); }
.nb-author__name { color: var(--ad-fg); font-weight: 600; }

/* Hero image (full-bleed within ad-wrap) */
.nb-block-hero-fullbleed {
  margin: 0 calc(50% - 50vw + 1rem) 2.5rem;
  max-width: calc(100vw - 2rem);
  height: clamp(280px, 50vh, 560px);
  background: var(--ad-paper-2);
  border-radius: var(--ad-radius-1);
  overflow: hidden;
}
@media (min-width: 1240px) {
  .nb-block-hero-fullbleed {
    margin: 0 0 2.5rem;
    max-width: 100%;
  }
}
.nb-block-hero-fullbleed img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Body content (constrained measure for readability) */
.nb-measure {
  max-width: 70ch; margin: 0 auto;
  font-size: 1.05rem; line-height: 1.75;
  color: var(--ad-fg-2);
}
.nb-measure h2 {
  font-size: 1.65rem; font-weight: 700;
  letter-spacing: var(--ad-track-snug);
  color: var(--ad-fg);
  margin: 2.25rem 0 1rem;
  padding-top: .75rem;
}
.nb-measure h3 {
  font-size: 1.25rem; font-weight: 700;
  color: var(--ad-fg);
  margin: 1.75rem 0 .85rem;
}
.nb-measure p {
  margin: 0 0 1.25rem;
}
.nb-measure a {
  color: var(--ad-red); text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.nb-measure a:hover { text-decoration-thickness: 2px; }
.nb-measure strong { color: var(--ad-fg); font-weight: 600; }
.nb-measure em { font-style: italic; }
.nb-measure ul, .nb-measure ol {
  margin: 0 0 1.25rem; padding-left: 1.4rem;
}
.nb-measure li { margin: .35rem 0; }
.nb-measure blockquote {
  margin: 2rem 0; padding: 1rem 1.25rem;
  border-left: 3px solid var(--ad-red);
  background: var(--ad-paper-2);
  font-family: var(--ad-serif-italic); font-style: italic;
  font-size: 1.15rem; line-height: 1.6; color: var(--ad-fg);
}
.nb-measure img {
  max-width: 100%; height: auto; display: block;
  margin: 1.5rem 0;
  border-radius: var(--ad-radius-1);
}

/* ── Layout-specific tweaks ───────────────────────────────────────────────────
   Each .nb-layout-* hook lets us style the same article markup differently
   depending on the editor's choice. Kept minimal here — refine per template
   in future iterations.
   ──────────────────────────────────────────────────────────────────────────── */

/* Press release: tighter, more sober */
.nb-layout-press .nb-block-h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.nb-layout-press .nb-block-p--lead { font-size: 1.05rem; }
.nb-layout-press .nb-block-hero-fullbleed { display: none; }

/* Announcement: centered, condensed */
.nb-layout-announcement .nb-post-header { text-align: center; }
.nb-layout-announcement .nb-post-tags { justify-content: center; }
.nb-layout-announcement .nb-post-meta { justify-content: center; }

/* Photo-essay: image-first, smaller text */
.nb-layout-photo-essay .nb-block-hero-fullbleed { height: clamp(360px, 65vh, 720px); }

/* Tutorial: tighter, code-friendly measure */
.nb-layout-tutorial .nb-measure { max-width: 75ch; }
.nb-layout-tutorial .nb-measure h2 {
  font-size: 1.4rem;
  color: var(--ad-red);
  font-family: var(--ad-sans);
}

/* Interview: lead text larger, body italic-friendly */
.nb-layout-interview .nb-block-p--lead { font-size: 1.3rem; }
.nb-layout-interview .nb-measure h2 {
  font-size: 1.3rem;
  color: var(--ad-red);
}

/* Case study: stronger lead emphasis */
.nb-layout-case .nb-block-p--lead {
  border-left: 3px solid var(--ad-red);
  padding-left: 1.25rem;
}

/* Editorial: default, no overrides needed */


/* =============================================================================
   STRUCTURED LAYOUT BLOCKS — rendered when article.layoutData is set
   ============================================================================= */

/* ── Podcast ──────────────────────────────────────────────────────────────── */
.nb-pod { margin-bottom: 2rem; }
.nb-pod__player {
  width: 100%; display: block;
  margin-bottom: 1.25rem;
  border-radius: var(--ad-radius-1);
  background: var(--ad-paper-2);
}
.nb-pod__embed {
  position: relative;
  aspect-ratio: 16 / 5;
  border-radius: var(--ad-radius-1);
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: var(--ad-paper-2);
}
.nb-pod__embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}
.nb-pod__meta,
.nb-vid__meta,
.nb-tut__meta {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  margin: 0 0 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--ad-paper-2);
  border-radius: var(--ad-radius-1);
  border-left: 3px solid var(--ad-red);
}
.nb-pod__meta div,
.nb-vid__meta div,
.nb-tut__meta div { min-width: 0; }
.nb-pod__meta dt,
.nb-vid__meta dt,
.nb-tut__meta dt {
  font-size: .65rem; font-weight: 600;
  letter-spacing: var(--ad-track-eyebrow); text-transform: uppercase;
  color: var(--ad-muted);
  margin: 0 0 .15rem;
}
.nb-pod__meta dd,
.nb-vid__meta dd,
.nb-tut__meta dd {
  font-size: 1rem; font-weight: 600;
  color: var(--ad-fg);
  margin: 0;
}
.nb-pod__meta dd span,
.nb-vid__meta dd span {
  font-weight: 400; color: var(--ad-muted);
}
.nb-pod__bio {
  margin: 0;
  font-size: .95rem; color: var(--ad-fg-2);
  line-height: 1.6;
  font-style: italic;
}

/* ── Video / Talk ─────────────────────────────────────────────────────────── */
.nb-vid { margin-bottom: 2rem; }
.nb-vid__embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--ad-radius-1);
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: #000;
}
.nb-vid__embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}

/* ── Case study ───────────────────────────────────────────────────────────── */
.nb-case__client {
  margin: 0 auto 1.5rem;
  max-width: 70ch;
  font-size: .95rem; color: var(--ad-fg-2);
}
.nb-case__kpis {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0 auto 2.5rem;
  max-width: 70ch;
}
@media (max-width: 720px) {
  .nb-case__kpis { grid-template-columns: 1fr; }
}
.nb-case__kpi {
  background: #fff;
  border: 1px solid var(--ad-border);
  border-radius: var(--ad-radius-1);
  padding: 1.25rem 1.1rem;
  text-align: center;
}
.nb-case__kpi-value {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--ad-red);
  letter-spacing: -.02em;
  margin-bottom: .25rem;
  font-feature-settings: "tnum";
}
.nb-case__kpi-label {
  font-size: .82rem;
  color: var(--ad-muted);
  line-height: 1.4;
}
.nb-case__quote {
  margin: 2.5rem auto 1.5rem !important;
  max-width: 70ch;
  padding: 1.5rem 1.75rem !important;
  background: var(--ad-paper-2) !important;
  border-left: 3px solid var(--ad-red);
  font-family: var(--ad-serif-italic) !important;
  font-style: italic !important;
  font-size: 1.2rem !important;
  line-height: 1.55 !important;
  color: var(--ad-fg) !important;
  border-radius: 0 var(--ad-radius-1) var(--ad-radius-1) 0;
  position: relative;
}
.nb-case__quote cite {
  display: block;
  margin-top: .85rem;
  font-family: var(--ad-sans);
  font-style: normal;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ad-muted);
}

/* ── Interview Q&A ────────────────────────────────────────────────────────── */
.nb-interview__who {
  margin: 1.5rem 0 .5rem !important;
  font-size: .95rem;
  color: var(--ad-muted);
}
.nb-interview__who strong { color: var(--ad-fg); }
.nb-qa { margin: 1.5rem 0 2rem; }
.nb-qa__pair {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--ad-border);
}
.nb-qa__pair:last-child {
  border-bottom: 0; padding-bottom: 0;
}
.nb-qa__q {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ad-red);
  margin: 0 0 .65rem !important;
  line-height: 1.4;
}
.nb-qa__q::before {
  content: "F: ";
  font-family: var(--ad-serif-italic);
  font-style: italic;
  font-weight: 400;
}
.nb-qa__a {
  font-size: 1rem;
  color: var(--ad-fg-2);
  line-height: 1.7;
  margin: 0 !important;
}
.nb-qa__a::before {
  content: "A: ";
  font-family: var(--ad-serif-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--ad-red);
}

/* ── Tutorial steps ───────────────────────────────────────────────────────── */
.nb-tut__meta {
  max-width: 75ch;
  margin: 0 auto 1.5rem !important;
}
.nb-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 1.5rem 0 0;
}
.nb-steps__item {
  counter-increment: step;
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 4rem;
  background: #fff;
  border: 1px solid var(--ad-border);
  border-radius: var(--ad-radius-1);
  margin-bottom: 1rem;
}
.nb-steps__item::before {
  content: counter(step);
  position: absolute;
  top: 1.25rem; left: 1rem;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ad-red);
  color: #fff;
  font-size: 1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-feature-settings: "tnum";
}
.nb-steps__title {
  margin: 0 0 .35rem !important;
  font-size: 1.15rem;
  color: var(--ad-fg);
  line-height: 1.35;
  letter-spacing: -.005em;
}
.nb-steps__body {
  margin: 0 !important;
  color: var(--ad-fg-2);
  line-height: 1.6;
  font-size: .95rem;
}

/* ── Photo-essay gallery ──────────────────────────────────────────────────── */
.nb-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.nb-gallery__item {
  margin: 0;
  background: var(--ad-paper-2);
  border-radius: var(--ad-radius-1);
  overflow: hidden;
}
.nb-gallery__item img {
  width: 100%; height: auto; display: block;
  border-radius: 0 !important;
  margin: 0 !important;
}
.nb-gallery__item figcaption {
  padding: .75rem 1rem;
  font-size: .82rem;
  color: var(--ad-muted);
  font-style: italic;
  line-height: 1.4;
}

/* ── Announcement highlight ───────────────────────────────────────────────── */
.nb-announce__hl {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 1rem;
  text-align: inherit;
}
.nb-layout-announcement .nb-announce__hl {
  text-align: center;
}
