/*
 * News listing and blog article styles. Loaded only on /news/ and single posts.
 * Category accent colours come from the existing --news1..4 / --coral tokens.
 */

/* ── Article card (grid + read next) ─────────────────── */
.card-news {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, .02);
  transition: border-color .15s ease, transform .15s ease;
}

.card-news:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.card-news__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.card-news__media {
  aspect-ratio: 16 / 10;
  background: #1a2234;
  overflow: hidden;
}

.card-news__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.card-news:hover .card-news__img {
  transform: scale(1.05);
}

.card-news__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 26px;
}

.card-news__cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cat-color, var(--news1));
}

.card-news__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cat-color, var(--news1));
}

.card-news__title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.3;
  margin-top: 12px;
  text-wrap: balance;
}

.card-news__excerpt {
  flex: 1;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-top: 12px;
}

.card-news__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--muted);
}

.card-news__author {
  font-weight: 600;
  color: var(--ink-soft);
}

/* ── Hero ────────────────────────────────────────────── */
.news-hero {
  padding: 60px 0 40px;
  text-align: center;
}

.news-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  margin-bottom: 24px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .05em;
}

.news-hero__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.news-hero__headline {
  font-size: clamp(38px, 6vw, 84px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.05;
  margin: 6px 0 24px;
  text-wrap: balance;
}

/* One accent word inside the headline, set lighter and italic per the design. */
.news-hero__em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.news-hero__sub {
  font-size: 20px;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 760px;
  margin: 0 auto;
}

/* ── Featured ────────────────────────────────────────── */
.news-featured {
  padding: 20px 0 40px;
}

.news-featured__card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, .02);
  color: inherit;
  text-decoration: none;
  transition: border-color .15s ease;
}

.news-featured__card:hover {
  border-color: var(--accent);
}

.news-featured__media {
  position: relative;
  min-height: 340px;
  background: #1a2234;
}

.news-featured__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-featured__badge {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(13, 17, 23, .7);
  backdrop-filter: blur(6px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
}

.news-featured__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 44px;
}

.news-featured__title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
  margin-top: 16px;
  text-wrap: balance;
}

.news-featured__excerpt {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-top: 18px;
}

.news-featured__date {
  margin-top: 26px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.news-featured__cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin-top: 26px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.news-featured__card:hover .news-featured__cta svg {
  transform: translateX(3px);
}

.news-featured__cta svg {
  transition: transform .15s ease;
}

/* ── Filter + grid ───────────────────────────────────── */
.news-grid-section {
  padding: 40px 0 80px;
}

.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.news-filter__pill {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  font-family: 'Noto Sans', sans-serif;
  cursor: pointer;
  transition: all .18s ease;
}

.news-filter__pill:hover {
  color: var(--ink);
  border-color: var(--muted);
}

.news-filter__pill.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

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

.news-grid__empty {
  text-align: center;
  color: var(--muted);
  padding: 60px 0;
}

/* ── Contact CTA ─────────────────────────────────────── */
.news-cta {
  padding: 20px 0 90px;
}

.news-cta__box {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(244, 128, 38, .1), rgba(124, 159, 255, .06));
  padding: 56px 60px;
  text-align: center;
}

.news-cta__title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
  text-wrap: balance;
}

.news-cta__sub {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 14px auto 0;
  max-width: 520px;
}

.news-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 15px 30px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

@media (width <= 1024px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (width <= 768px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-featured__card { grid-template-columns: 1fr; }
  .news-featured__body { padding: 32px 26px; }
  .news-featured__title { font-size: 30px; }
  .news-cta__box { padding: 40px 26px; }
  .news-cta__title { font-size: 30px; }
}

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

/* Reading-progress bar, driven by news.js. */
.post-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 60;
  pointer-events: none;
}

.post-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width .1s linear;
}

/* The design uses a wider column for the title block and a narrower one for
   body copy, with the cover image wider than both. */
.container--article { max-width: 820px; }
.container--cover { max-width: 960px; }

.post-article__head { padding: 48px 0 0; }

.post-article__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s ease;
}

.post-article__back:hover { color: var(--accent); }

.post-article__cat-row { margin-top: 24px; }

.post-article__title {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-top: 16px;
  text-wrap: balance;
}

.post-article__dek {
  font-size: 20px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-top: 22px;
}

.post-article__byline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.post-article__avatar {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #b8d4f1, #5a7fa8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
}

.post-article__author { font-size: 15px; font-weight: 700; }

.post-article__meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.post-article__cover { margin-top: 40px; }

.post-article__cover-img {
  /* height:auto is required: WordPress prints width/height attributes on the
     img, and those win over aspect-ratio unless height is overridden. */
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #1a2234;
  display: block;
}

.post-article__body {
  margin-top: 44px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* Body copy sits in a narrower measure than the title block. */
.post-article__body > * { max-width: 720px; margin-inline: auto; }

.post-article__body p { margin-bottom: 1.35em; }

.post-article__body h2 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.25;
  color: var(--ink);
  margin: 2.2em auto .5em;
}

.post-article__body h3 {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.3;
  color: var(--ink);
  margin: 1.9em auto .4em;
}

.post-article__body ul,
.post-article__body ol { margin-bottom: 1.35em; padding-left: 1.3em; }

.post-article__body li { margin-bottom: .6em; }

.post-article__body img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  margin: 1.4em auto;
}

.post-article__body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 22px;
  margin: 1.8em auto;
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink);
}

.post-article__body a { color: var(--accent); }

/* ── FAQ ─────────────────────────────────────────────── */
/* Answers are always visible (no accordion), matching the design. */
.post-faq {
  max-width: 720px;
  margin: 0 auto;
}

.post-faq__title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.25;
  color: var(--ink);
  margin: 2.2em 0 .5em;
}

.post-faq__item {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.post-faq__item:last-child { border-bottom: 1px solid var(--line); }

.post-faq__q {
  display: flex;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}

.post-faq__marker {
  flex-shrink: 0;
  color: var(--accent);
  font-weight: 800;
}

.post-faq__a {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-top: 12px;
  padding-left: 29px;
}

.post-faq__a p { margin-bottom: .8em; }
.post-faq__a p:last-child { margin-bottom: 0; }

/* ── TLDR note ───────────────────────────────────────── */
.post-tldr {
  max-width: 720px;
  margin: 48px auto 0;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 16px;
  background: rgba(255, 255, 255, .03);
}

.post-tldr__text {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0;
}

/* ── Read next ───────────────────────────────────────── */
.post-read-next {
  padding: 40px 0 90px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

.post-read-next__title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 32px;
}
