/* ============================================================
   news.css - News.html page styles
   ============================================================ */

/* ---------- HERO ---------- */
.news-hero {
  background: var(--tap-bg-warm);
  border-bottom: 1px solid var(--tap-line);
  padding: var(--pad-y) 28px;
}
.news-hero-inner { max-width: calc(var(--maxw) - 2 * var(--pad-x)); margin: 0 auto; }
.news-h1 {
  font-size: clamp(48px, 6.5vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 12px 0 18px;
  text-wrap: balance;
}
.news-h1-em { color: var(--tap-orange); font-style: italic; }
.news-deck {
  font-size: 19px; line-height: 1.55;
  color: var(--tap-ink-2);
  max-width: 640px;
}

/* ---------- THESIS (pinned, two-part series) ----------
   The two thesis essays are hero editorial content. They sit
   immediately under the page hero and read as a paired set:
   Part I + Part II of a single argument. Dark surface to
   separate them visually from the rest of the page; large
   roman numerals carry the "series" idea without iconography. */
.news-thesis {
  background:
    radial-gradient(900px 500px at 88% -10%, color-mix(in oklab, var(--tap-orange) 22%, transparent) 0%, transparent 60%),
    radial-gradient(700px 400px at 8% 110%, color-mix(in oklab, var(--tap-orange) 10%, transparent) 0%, transparent 55%),
    linear-gradient(180deg, #19130F 0%, #14100C 100%);
  color: #fff;
  padding: var(--pad-y) 28px;
  border-bottom: 1px solid var(--tap-line);
  position: relative;
  overflow: hidden;
}
/* Page-opener variant: more top air now that there is no hero above. */
.news-thesis--opener {
  padding-top: 96px;
  padding-bottom: 88px;
  border-top: 1px solid var(--tap-line);
}
.news-thesis-inner {
  max-width: calc(var(--maxw) - 2 * var(--pad-x)); margin: 0 auto;
  position: relative;
}
.news-thesis-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.news-thesis-head .eyebrow {
  color: var(--tap-orange);
  letter-spacing: 0.18em;
}
.news-thesis-h2 {
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 700; letter-spacing: -0.025em; line-height: 1.05;
  margin: 8px 0 0;
  color: #fff;
  text-wrap: balance;
  max-width: 720px;
}
/* H1 variant - same family, larger size for the page-opener role. */
.news-thesis-h1 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.02;
  margin: 10px 0 0;
  color: #fff;
  text-wrap: balance;
  max-width: 820px;
}
.news-thesis-h2-em {
  color: var(--tap-orange);
  font-style: italic;
  font-weight: 400;
}
.news-thesis-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  letter-spacing: 0.005em;
  max-width: 320px;
  line-height: 1.5;
  text-align: right;
}
.news-thesis-meta strong { color: #fff; font-weight: 700; }

.news-thesis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.news-thesis-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 36px 36px 28px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.015) 100%);
  border: 1px solid rgba(255,255,255,0.10);
  overflow: hidden;
  isolation: isolate;
  min-height: 380px;
  transition: transform 220ms var(--ease), border-color 220ms var(--ease), background 220ms var(--ease);
}
.news-thesis-card::before {
  /* the giant ornamental numeral */
  content: attr(data-numeral);
  position: absolute;
  top: -22px; right: -8px;
  font-family: inherit;
  font-style: italic;
  font-weight: 100;
  font-size: 280px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242,122,46,0.22);
  pointer-events: none;
  z-index: 0;
  transition: -webkit-text-stroke 220ms var(--ease), transform 600ms var(--ease);
}
.news-thesis-card > * { position: relative; z-index: 1; }
.news-thesis-card:hover {
  transform: translateY(-3px);
  border-color: rgba(242,122,46,0.4);
  background:
    linear-gradient(180deg, rgba(242,122,46,0.06) 0%, rgba(255,255,255,0.015) 100%);
}
.news-thesis-card:hover::before {
  -webkit-text-stroke-color: rgba(242,122,46,0.45);
  transform: translateY(-4px);
}

.news-thesis-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tap-orange);
  padding: 6px 10px;
  border-radius: 4px;
  background: rgba(242,122,46,0.10);
  border: 1px solid rgba(242,122,46,0.22);
  align-self: flex-start;
}
.news-thesis-tag::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--tap-orange);
}
.news-thesis-title {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700; letter-spacing: -0.025em; line-height: 1.08;
  margin: 22px 0 10px;
  color: #fff;
  text-wrap: balance;
}
.news-thesis-title em {
  color: var(--tap-orange);
  font-style: italic;
  font-weight: 400;
}
.news-thesis-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  font-style: italic;
  font-weight: 350;
  line-height: 1.45;
  margin: 0 0 24px;
  max-width: 420px;
}
.news-thesis-deck {
  font-size: 14.5px;
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
  margin: 0 0 28px;
  max-width: 460px;
  flex: 1;
}
.news-thesis-foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.news-thesis-author {
  display: flex; align-items: center; gap: 10px;
  min-width: 0;
}
.news-thesis-author-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  overflow: hidden;
  flex: none;
  border: 1px solid rgba(255,255,255,0.10);
  background: var(--tap-grad-hank);
}
.news-thesis-author-avatar img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.news-thesis-author-text { font-size: 12px; line-height: 1.4; }
.news-thesis-author-name { color: #fff; font-weight: 700; }
.news-thesis-author-role { color: rgba(255,255,255,0.5); }
.news-thesis-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 700;
  color: var(--tap-orange);
  letter-spacing: 0.005em;
  transition: gap 220ms var(--ease);
}
.news-thesis-cta svg { width: 13px; height: 13px; transition: transform 220ms var(--ease); }
.news-thesis-card:hover .news-thesis-cta { gap: 12px; }
.news-thesis-card:hover .news-thesis-cta svg { transform: translateX(3px); }

/* The little series connector between the two cards on desktop */
.news-thesis-grid::after {
  content: "→";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--tap-orange);
  color: #fff;
  display: grid; place-items: center;
  font-size: 16px; font-weight: 700;
  box-shadow: 0 4px 16px rgba(242,122,46,0.45);
  pointer-events: none;
  z-index: 2;
}

@media (max-width: 900px) {
  .news-thesis-grid { grid-template-columns: 1fr; gap: 14px; }
  .news-thesis-grid::after {
    top: calc(50% + 0px); left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
  }
  .news-thesis-card { min-height: 0; padding: 28px 26px 22px; }
  .news-thesis-card::before { font-size: 200px; top: -16px; right: -4px; }
}
@media (max-width: 640px) {
  .news-thesis { padding: 48px 20px 56px; }
  .news-thesis-meta { text-align: left; }
}

/* ---------- FEATURED ---------- */
.news-featured {
  max-width: 1200px; margin: 0 auto;
  padding: 48px 28px 0;
}
.news-feature-card {
  display: block;
  background:
    radial-gradient(800px 400px at 100% 0%, color-mix(in oklab, var(--tap-orange) 18%, transparent) 0%, transparent 60%),
    linear-gradient(135deg, #1A1410 0%, #14100C 100%);
  color: #fff;
  border-radius: 20px;
  padding: 48px 56px;
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
  transition: transform 150ms var(--ease);
}
.news-feature-card:hover { transform: translateY(-3px); }
.news-feature-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.news-feature-card h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700; letter-spacing: -0.025em; line-height: 1.1;
  margin: 0 0 14px;
  color: #fff;
  text-wrap: balance;
  max-width: 800px;
}
.news-feature-card p {
  font-size: 17px; line-height: 1.55;
  color: rgba(255,255,255,0.72);
  max-width: 720px;
  margin: 0 0 32px;
}
.news-feature-foot {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
}
.news-feature-author { display: flex; align-items: center; gap: 12px; }
.news-feature-author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--tap-grad-hank);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 13px; letter-spacing: 0.01em;
}
.news-feature-author-name { font-size: 14px; font-weight: 700; color: #fff; }
.news-feature-author-role { font-size: 12px; color: rgba(255,255,255,0.55); }
.news-feature-card .news-cta {
  font-size: 14px; font-weight: 700; color: var(--tap-orange);
  display: inline-flex; align-items: center; gap: 6px;
}
.news-feature-card .news-cta svg { width: 12px; height: 12px; }

/* ---------- FILTER ---------- */
.news-filter {
  position: sticky; top: 56px;
  z-index: 20;
  background: rgba(250,250,248,0.92);
  backdrop-filter: saturate(140%) blur(20px);
  -webkit-backdrop-filter: saturate(140%) blur(20px);
  border-bottom: 1px solid var(--tap-line);
  padding: 16px 28px;
  margin-top: 0;
}
.news-filter-inner {
  max-width: calc(var(--maxw) - 2 * var(--pad-x)); margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
}
.news-filter-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--tap-ink-3);
}
.news-filter-chips { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.news-filter-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--tap-line-strong);
  background: #fff;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: var(--tap-ink-2);
  cursor: pointer;
  transition: background 120ms, color 120ms, border-color 120ms;
}
.news-filter-chip[data-aud="all"] { padding-left: 14px; }
.news-filter-chip:hover { color: var(--tap-ink); background: var(--tap-bg-warm); }
.news-filter-chip.active {
  background: var(--tap-ink);
  color: #fff;
  border-color: var(--tap-ink);
}
.news-aud-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--tap-orange);
}
.news-filter-chip.active .news-aud-dot { background: #fff; }

/* Filter-chip product mark - small circular badge that reuses the
   product glyph + gradient classes (.r-plus-mark / .s-plus-mark /
   .co-mark / .pp-mark) at chip scale. The shared rules in
   enhancements.css handle the glyph & gradient; we only set size and
   spacing here. */
.news-filter-mark {
  width: 22px; height: 22px;
  border-radius: 50%;
  flex: none;
  display: inline-block;
  box-shadow: 0 1px 2px rgba(0,0,0,0.10), inset 0 0 0 1px rgba(255,255,255,0.18);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
.news-filter-chip:hover .news-filter-mark { transform: scale(1.04); }
.news-filter-chip.active {
  background: var(--tap-ink);
  color: #fff;
  border-color: var(--tap-ink);
}
.news-filter-chip.active .news-filter-mark {
  box-shadow: 0 1px 2px rgba(0,0,0,0.25), inset 0 0 0 1px rgba(255,255,255,0.22);
}
/* Industry chip - no product so we keep a neutral ink dot. */
.news-filter-mark--industry {
  background: var(--tap-ink) !important;
  background-image: none !important;
  width: 14px; height: 14px;
  margin: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.10);
}
.news-filter-chip.active .news-filter-mark--industry {
  background: #fff !important;
}
.news-filter-count {
  font-size: 13px; color: var(--tap-ink-3); font-weight: 600;
  word-spacing: -0.06em;
}

/* Audience dot colours */
.dot-retailers   { background: #F27A2E; }
.dot-suppliers   { background: #0E73BB; }
.dot-wholesalers { background: #C33C8E; }
.dot-developers  { background: #6E4FB8; }
.dot-all         { background: #6B6B6B; }

/* ---------- GRID ---------- */
.news-grid-section {
  max-width: 1200px; margin: 0 auto;
  padding: var(--pad-y) 28px;
}
.news-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}

/* Card - restrained, editorial. Audience identity lives in a thin coloured
   left rail rather than a redundant pill, so the meta row reads as one
   clean line: [KIND] · date. */
.news-card {
  position: relative;
  background: var(--tap-card);
  border: 1px solid var(--tap-line);
  border-radius: 14px;
  padding: 24px 24px 20px 26px;
  display: flex; flex-direction: column; gap: 14px;
  text-align: left;
  overflow: hidden;
  isolation: isolate;
  transition:
    border-color 220ms var(--ease),
    box-shadow 220ms var(--ease),
    transform 220ms var(--ease);
}
/* Audience rail */
.news-card::before {
  content: "";
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 3px;
  background: var(--aud-color, var(--tap-ink-3));
  transition: width 220ms var(--ease), background 220ms var(--ease);
}
/* Soft wash from the audience colour at the top-right corner - invisible
   at rest, blooms gently on hover. Keeps cards looking neutral on the
   page but rewards interaction with a hint of identity. */
.news-card::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(180px 140px at 100% 0%,
              color-mix(in oklab, var(--aud-color, transparent) 10%, transparent) 0%,
              transparent 70%);
  opacity: 0;
  transition: opacity 220ms var(--ease);
  pointer-events: none;
  z-index: -1;
}
.news-card:hover {
  border-color: var(--tap-line-strong);
  box-shadow: var(--tap-shadow-md);
  transform: translateY(-2px);
}
.news-card:hover::before { width: 4px; }
.news-card:hover::after  { opacity: 1; }

/* Per-audience rail / wash colour. Same palette as the filter dots so the
   page reads as one system. */
.news-card[data-aud="retailers"]   { --aud-color: #F27A2E; }
.news-card[data-aud="suppliers"]   { --aud-color: #0E73BB; }
.news-card[data-aud="wholesalers"] { --aud-color: #C33C8E; }
.news-card[data-aud="developers"]  { --aud-color: #6E4FB8; }
.news-card[data-aud="industry"]    { --aud-color: #1A1A1A; }

.news-card-meta {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.news-card-meta .news-date::before {
  content: "·";
  margin-right: 10px;
  color: var(--tap-ink-3);
  font-weight: 400;
}

.news-kind {
  font-size: 10px; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 9px; border-radius: 4px;
  line-height: 1;
}
.news-kind-article { background: rgba(0,0,0,0.05); color: var(--tap-ink-2); }
.news-kind-release { background: #E6F4EE; color: #047857; }
.news-kind-product { background: var(--tap-orange-light); color: var(--tap-orange-deep); }
.news-kind-partner { background: #EFE3F4; color: #6E4FB8; }
.news-kind-guide   { background: #DFEDF8; color: #2D7BB8; }
.news-kind-press   { background: #FFF1E5; color: #B65318; }
.news-kind-paper   { background: #DFEDF8; color: #2D7BB8; }
.news-kind-thought { background: #EFE3F4; color: #6E4FB8; }
.news-kind-video   { background: #18181B; color: #FAFAF8; }

/* Audience pill kept only for the featured card up top - removed from
   in-grid cards (the left rail does that job). */
.news-aud {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em;
  padding: 3px 8px; border-radius: 4px;
  background: var(--tap-bg-warm); color: var(--tap-ink-2);
}
.aud-retailers   { background: rgba(242,122,46,0.10); color: #B8470F; }
.aud-suppliers   { background: rgba(14,115,187,0.10); color: #0A5894; }
.aud-wholesalers { background: rgba(195,60,142,0.10); color: #9F2D72; }
.aud-developers  { background: rgba(110,79,184,0.10); color: #5B3FA6; }
.aud-all         { background: rgba(0,0,0,0.06); color: var(--tap-ink-2); }

/* In-grid cards never show the audience pill - the rail expresses it. */
.news-card .news-aud { display: none; }

/* Featured-card audience pills look on dark */
.news-feature-card .news-aud {
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.85);
}
.news-feature-card .news-kind {
  background: var(--tap-orange);
  color: #fff;
}
.news-feature-card .news-date {
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
}

.news-card h3 {
  font-size: 19px; font-weight: 700; letter-spacing: -0.018em; line-height: 1.22;
  margin: 0;
  color: var(--tap-ink);
  text-wrap: balance;
  /* 2-line clamp with ellipsis - keeps headlines uniform across the row */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  text-overflow: ellipsis;
  transition: color 180ms var(--ease);
}
.news-card:hover h3 { color: var(--aud-color, var(--tap-ink)); }

.news-card p {
  font-size: 13.5px; color: var(--tap-ink-2); line-height: 1.55;
  margin: 0; flex: 1;
  /* 2-line dek with ellipsis - full story lives behind the link */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  text-overflow: ellipsis;
}

.news-card-foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
  border-top: 1px solid var(--tap-line);
  padding-top: 14px;
  margin-top: 4px;
}
.news-date {
  font-size: 12px; color: var(--tap-ink-3); font-weight: 500;
  letter-spacing: 0.005em;
  word-spacing: -0.05em;
}
.news-pub {
  font-size: 12px; color: var(--tap-ink-3); font-weight: 600;
  letter-spacing: 0.005em;
  font-style: italic;
}
.news-card-meta .news-pub::before {
  content: "·";
  margin-right: 10px;
  color: var(--tap-ink-4, rgba(0,0,0,0.18));
  font-style: normal;
}

/* CTA - real SVG arrow that slides on hover. Default colour is muted so it
   doesn't compete on a wall of cards; goes audience-coloured on hover. */
.news-card .news-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 700;
  color: var(--tap-ink-2);
  letter-spacing: 0.005em;
  transition: color 180ms var(--ease), gap 180ms var(--ease);
  margin-left: auto;
  white-space: nowrap;
}
.news-card .news-cta svg {
  width: 12px; height: 12px;
  transition: transform 220ms var(--ease);
}
.news-card:hover .news-cta {
  color: var(--aud-color, var(--tap-orange-deep));
  gap: 8px;
}
.news-card:hover .news-cta svg { transform: translateX(2px); }

/* Author chip - only present when the post has a named byline. Lives
   inline in the footer (left side), date moves up into the meta row so
   the footer keeps a clean two-zone layout: [author or empty]  [CTA]. */
.news-author-chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-width: 0;
  margin: 0; /* override enhancements.css's margin-top:14px (chip now lives in footer) */
}
.news-author-chip .av {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 10.5px;
  letter-spacing: 0.02em;
  flex: none;
  background: linear-gradient(135deg, #F27A2E, #E8601A);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.news-author-chip .av.av-team { background: linear-gradient(135deg, #6B6B6B, #444); }
.news-author-chip .av.av-eng  { background: linear-gradient(135deg, #2A8FD8, #0E73BB); }
.news-author-chip .av.av-cs   { background: linear-gradient(135deg, #14B279, #059669); }
.news-author-chip .news-author-text {
  display: flex; flex-direction: column;
  min-width: 0; line-height: 1.15;
}
.news-author-chip .name {
  font-size: 12.5px; font-weight: 700; color: var(--tap-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 130px;
}
.news-author-chip .role {
  font-size: 11px; color: var(--tap-ink-3); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 130px;
}

.news-empty {
  padding: 48px 16px;
  text-align: center;
  font-size: 16px;
  color: var(--tap-ink-3);
}

/* ---------- SUBSCRIBE ---------- */
/* Quiet warm closer. Editorial, not promotional. Pill form has all
   the affordances inline so the section reads as one unit instead of
   a heading + a separate card. */
.news-subscribe {
  background: var(--tap-bg-warm);
  border-top: 1px solid var(--tap-line);
  padding: var(--pad-y) 28px;
}
.news-subscribe-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.news-subscribe h2 {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700; letter-spacing: -0.025em; line-height: 1.1;
  margin: 10px 0 12px;
  text-wrap: balance;
  color: var(--tap-ink);
}
.news-subscribe > .news-subscribe-inner > p {
  font-size: 15.5px;
  color: var(--tap-ink-2);
  line-height: 1.55;
  margin: 0 auto 28px;
  max-width: 440px;
}

/* Pill form - input + button in a single rounded container, with a
   leading envelope glyph. No card chrome around it. */
.news-subscribe-pill { margin: 0 auto; max-width: 440px; }
.news-subscribe-pill-row {
  display: flex; align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 16px;
  background: #fff;
  border: 1px solid var(--tap-line-strong);
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.05);
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
.news-subscribe-pill-row:focus-within {
  border-color: var(--tap-orange);
  box-shadow: 0 4px 18px rgba(242,122,46,0.18), 0 0 0 4px color-mix(in oklab, var(--tap-orange) 14%, transparent);
}
.news-subscribe-pill-icon {
  width: 16px; height: 16px;
  color: var(--tap-ink-3);
  flex: none;
}
.news-subscribe-pill-row input[type="email"] {
  flex: 1; min-width: 0;
  border: none; outline: none;
  background: transparent;
  font-size: 15px; font-family: inherit;
  color: var(--tap-ink);
  padding: 11px 0;
}
.news-subscribe-pill-row input[type="email"]::placeholder {
  color: var(--tap-ink-3);
}
.news-subscribe-pill-row .btn {
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  white-space: nowrap;
  flex: none;
  line-height: 1;
}
@media (max-width: 480px) {
  .news-subscribe-pill-row { padding: 6px; flex-wrap: wrap; }
  .news-subscribe-pill-row input[type="email"] { padding: 10px 12px; width: 100%; flex: 1 0 100%; order: 2; }
  .news-subscribe-pill-icon { display: none; }
  .news-subscribe-pill-row .btn { width: 100%; order: 3; }
}

.news-subscribe-fineprint {
  font-size: 12.5px;
  color: var(--tap-ink-3);
  margin: 16px auto 0;
  line-height: 1.6;
}
.news-subscribe-fineprint a {
  color: var(--tap-ink-2);
  font-weight: 600;
  border-bottom: 1px solid color-mix(in oklab, var(--tap-ink-3) 50%, transparent);
  transition: color 120ms, border-color 120ms;
}
.news-subscribe-fineprint a:hover {
  color: var(--tap-orange-deep);
  border-bottom-color: var(--tap-orange);
}

.news-subscribe-success {
  text-align: center; padding: 14px 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid color-mix(in oklab, var(--tap-orange) 22%, transparent);
  max-width: 440px; margin: 0 auto;
}
.news-subscribe-success strong {
  display: block; font-size: 16px; color: var(--tap-orange-deep);
  font-weight: 700; margin-bottom: 2px;
}
.news-subscribe-success p { font-size: 13.5px; color: var(--tap-ink-2); margin: 0; }
/* Legacy fields/chips kept for back-compat with other pages that may
   still use them; News.html no longer renders them. */
.news-subscribe-fields {
  display: flex; flex-direction: column; gap: 14px;
  align-items: stretch;
}
/* Single-input variant - email + button on one row at desktop width. */
.news-subscribe-fields--single {
  flex-direction: row;
  gap: 10px;
  align-items: stretch;
  max-width: 520px;
  margin: 0 auto;
}
.news-subscribe-fields--single input[type="email"] { flex: 1; }
.news-subscribe-fields--single .btn { align-self: stretch; white-space: nowrap; }
@media (max-width: 520px) {
  .news-subscribe-fields--single { flex-direction: column; }
}
.news-subscribe-fields input[type="email"] {
  padding: 12px 16px;
  border: 1px solid var(--tap-line-strong);
  border-radius: 10px;
  font-size: 15px; font-family: inherit;
  color: var(--tap-ink);
  outline: none;
  transition: border-color 120ms, box-shadow 120ms;
}
.news-subscribe-fields input[type="email"]:focus {
  border-color: var(--tap-orange);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--tap-orange) 14%, transparent);
}
.news-subscribe-chips {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin: 4px auto;
}

/* Newsletter audience chips - share the page's audience colour system
   (same hues as the filter dots and news-card rails). Native checkbox
   is hidden; the indicator is a custom circle that fills with the
   audience colour and shows a checkmark when selected. */
.news-sub-chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600;
  padding: 9px 16px 9px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--tap-line-strong);
  background: #fff;
  color: var(--tap-ink);
  cursor: pointer; user-select: none;
  position: relative;
  transition:
    background 180ms var(--ease),
    border-color 180ms var(--ease),
    color 180ms var(--ease),
    transform 180ms var(--ease),
    box-shadow 180ms var(--ease);
}
.news-sub-chip:hover {
  border-color: color-mix(in oklab, var(--aud-color, var(--tap-ink-2)) 50%, var(--tap-line-strong));
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
/* Visually hide the native input but keep it keyboard-accessible
   (label clicks still toggle it). */
.news-sub-chip input {
  position: absolute;
  width: 1px; height: 1px;
  margin: 0; padding: 0;
  opacity: 0;
  pointer-events: none;
}
.news-sub-chip-mark {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid color-mix(in oklab, var(--aud-color, var(--tap-ink-3)) 50%, var(--tap-line-strong));
  background: #fff;
  display: grid; place-items: center;
  flex: none;
  transition:
    background 200ms var(--ease),
    border-color 200ms var(--ease),
    transform 200ms var(--ease);
}
.news-sub-chip-mark svg {
  width: 11px; height: 11px;
  stroke: #fff; stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
  fill: none;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 160ms var(--ease), transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.news-sub-chip:has(input:checked) {
  background: color-mix(in oklab, var(--aud-color) 7%, #fff);
  border-color: color-mix(in oklab, var(--aud-color) 38%, transparent);
  color: var(--tap-ink);
}
.news-sub-chip:has(input:checked) .news-sub-chip-mark {
  background: var(--aud-color);
  border-color: var(--aud-color);
}
.news-sub-chip:has(input:checked) .news-sub-chip-mark svg {
  opacity: 1;
  transform: scale(1);
}
.news-sub-chip:focus-within {
  outline: 2px solid color-mix(in oklab, var(--aud-color, var(--tap-orange)) 45%, transparent);
  outline-offset: 2px;
}

/* Per-audience accents - same palette as filter dots & card rails. */
.news-sub-chip[data-aud="retailers"]   { --aud-color: #F27A2E; }
.news-sub-chip[data-aud="suppliers"]   { --aud-color: #0E73BB; }
.news-sub-chip[data-aud="wholesalers"] { --aud-color: #C33C8E; }
.news-sub-chip[data-aud="developers"]  { --aud-color: #6E4FB8; }
.news-sub-chip[data-aud="industry"]    { --aud-color: #1A1A1A; }
.news-subscribe-form .btn { align-self: center; margin-top: 4px; }
.news-subscribe-success {
  text-align: center; padding: 12px;
}
.news-subscribe-success strong {
  display: block; font-size: 18px; color: var(--tap-orange-deep);
  font-weight: 700; margin-bottom: 4px;
}
.news-subscribe-success p { font-size: 14px; color: var(--tap-ink-2); margin: 0; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .news-feature-card { padding: 36px 32px; }
}
@media (max-width: 640px) {
  .news-hero, .news-featured, .news-filter, .news-grid-section, .news-subscribe {
    padding-left: 20px; padding-right: 20px;
  }
  .news-grid { grid-template-columns: 1fr; }
  .news-feature-foot { flex-direction: column; align-items: flex-start; }
}
