/* ==========================================================================
   Technofrigo news/article-page styling
   Stacks on top of solution-page.css for shared chrome and project-page.css
   for hero patterns. Adds news-index, article hero, article body typography.
   ========================================================================== */

/* ── News index hero ─────────────────────────────────────────────── */
.news-hero {
  position: relative;
  background: var(--tf-darkgreen);
  color: var(--fg-inverse);
  padding: clamp(160px, 18vw, 220px) 0 clamp(48px, 6vw, 80px);
  overflow: hidden;
}
.news-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(155,204,158,0.18), transparent 70%),
    radial-gradient(40% 40% at 0% 100%, rgba(155,204,158,0.10), transparent 70%);
  pointer-events: none;
}
.news-hero .wrap { position: relative; z-index: 2; }
.news-hero .breadcrumb {
  font-family: var(--font-display); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--fg-inverse-3);
  margin-bottom: 28px; display: flex; gap: 12px; align-items: center;
}
.news-hero .breadcrumb a { color: var(--tf-pale-green); text-decoration: none; }
.news-hero .breadcrumb .current { color: var(--fg-inverse); }
.news-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--tf-sage); margin-bottom: 24px;
}
.news-hero__eyebrow::before {
  content: ''; width: 36px; height: 1px; background: var(--tf-sage);
}
.news-hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1.02; letter-spacing: -0.025em;
  color: var(--fg-inverse);
  margin: 0 0 24px; max-width: 18ch; text-wrap: balance;
}
.news-hero h1 .sage { color: var(--tf-sage); font-style: italic; font-weight: 600; }
.news-hero__lede {
  font-size: clamp(15px, 1.1vw, 18px); line-height: 1.6;
  color: var(--fg-inverse-2); max-width: 60ch; margin: 0;
}

/* ── Featured article (big card) ─────────────────────────────────── */
.news-featured-section {
  background: var(--tf-cream);
  padding: clamp(64px, 8vw, 112px) 0;
}
.featured-article {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--fg);
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.featured-article:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.featured-article__img {
  aspect-ratio: auto;
  background-size: cover;
  background-position: center;
  min-height: 360px;
  position: relative;
}
.featured-article__img.placeholder {
  background:
    repeating-linear-gradient(45deg,
      rgba(155,204,158,0.10) 0,
      rgba(155,204,158,0.10) 14px,
      transparent 14px,
      transparent 28px),
    linear-gradient(135deg, var(--tf-forest), var(--tf-darkgreen));
  display: grid; place-items: center;
}
.featured-article__img.placeholder::after {
  content: attr(data-label);
  font-family: var(--font-mono), var(--font-display);
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--tf-sage);
  text-align: center; padding: 14px 22px;
  border: 1px dashed rgba(155,204,158,0.5);
  border-radius: var(--radius-sm);
  max-width: 60%; line-height: 1.5;
}
.featured-badge {
  position: absolute; top: 16px; left: 16px;
  font-family: var(--font-mono), var(--font-display);
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--tf-sage);
  background: rgba(14,20,16,0.65);
  padding: 7px 12px;
  border-radius: var(--radius-xs);
  backdrop-filter: blur(8px);
}
.featured-article__body {
  padding: clamp(28px, 4vw, 48px);
  display: flex; flex-direction: column; gap: 18px;
  justify-content: center;
}
.featured-article .meta-row {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.featured-article .meta-row .pill {
  font-family: var(--font-display);
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600;
  padding: 5px 11px; border-radius: var(--radius-pill);
  background: var(--tf-pale-green); color: var(--tf-darkgreen);
}
.featured-article .meta-row .pill.date {
  background: transparent; border: 1px solid var(--border-strong);
  color: var(--fg-3);
}
.featured-article h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.02em;
  line-height: 1.1; margin: 0;
  text-wrap: balance;
}
.featured-article h2 .sage { color: var(--tf-forest); font-style: italic; font-weight: 600; }
.featured-article .summary {
  font-size: 15.5px; line-height: 1.6;
  color: var(--fg-2); margin: 0;
}
.featured-article .read {
  font-family: var(--font-display); font-weight: 600;
  font-size: 13px; color: var(--tf-forest);
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 8px;
}

/* ── More articles grid ──────────────────────────────────────────── */
.news-list-section {
  background: var(--surface);
  padding: clamp(64px, 8vw, 112px) 0;
}
.news-list-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.news-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--fg);
  display: flex; flex-direction: column;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.news-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-md);
  border-color: var(--tf-forest);
}
.news-card__img {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: var(--tf-darkgreen);
  position: relative;
}
.news-card__img.placeholder {
  background:
    repeating-linear-gradient(45deg,
      rgba(155,204,158,0.10) 0,
      rgba(155,204,158,0.10) 14px,
      transparent 14px,
      transparent 28px),
    linear-gradient(135deg, var(--tf-forest), var(--tf-darkgreen));
  display: grid; place-items: center;
}
.news-card__img.placeholder::after {
  content: attr(data-label);
  font-family: var(--font-mono), var(--font-display);
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--tf-sage); text-align: center;
  padding: 10px 16px;
  border: 1px dashed rgba(155,204,158,0.5);
  border-radius: var(--radius-sm); max-width: 70%; line-height: 1.5;
}
.news-card__body {
  padding: 26px;
  display: flex; flex-direction: column; gap: 12px;
  flex: 1;
}
.news-card .meta-row {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.news-card .meta-row .pill {
  font-family: var(--font-display);
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600;
  padding: 4px 10px; border-radius: var(--radius-pill);
  background: var(--tf-pale-green); color: var(--tf-darkgreen);
}
.news-card .meta-row .pill.date {
  background: transparent; border: 1px solid var(--border-strong); color: var(--fg-3);
}
.news-card h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 21px; letter-spacing: -0.01em; line-height: 1.2;
  margin: 0;
}
.news-card .summary {
  font-size: 14.5px; line-height: 1.55; color: var(--fg-2);
  margin: 0; flex: 1;
}
.news-card .read {
  font-family: var(--font-display); font-weight: 600;
  font-size: 12.5px; color: var(--tf-forest);
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: auto; padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* ── Article detail hero ─────────────────────────────────────────── */
.article-hero {
  position: relative;
  background: var(--tf-darkgreen);
  color: var(--fg-inverse);
  padding: clamp(160px, 18vw, 220px) 0 clamp(64px, 7vw, 96px);
  overflow: hidden;
}
.article-hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.32; filter: saturate(0.85);
}
.article-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,20,16,0.7) 0%, rgba(14,20,16,0.92) 100%);
  pointer-events: none;
}
.article-hero .wrap { position: relative; z-index: 2; max-width: 880px; }
.article-hero .breadcrumb {
  font-family: var(--font-display); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--fg-inverse-3);
  margin-bottom: 28px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.article-hero .breadcrumb a { color: var(--tf-pale-green); text-decoration: none; }
.article-hero .breadcrumb .current { color: var(--fg-inverse); }

.article-hero .meta-row {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.article-hero .meta-row .pill {
  font-family: var(--font-display);
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600;
  padding: 5px 11px; border-radius: var(--radius-pill);
  background: rgba(155,204,158,0.18); color: var(--tf-sage);
  border: 1px solid var(--tf-sage);
}
.article-hero .meta-row .pill.date {
  background: transparent; color: var(--fg-inverse-3); border-color: rgba(255,255,255,0.18);
}
.article-hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.04; letter-spacing: -0.025em;
  color: var(--fg-inverse);
  margin: 0 0 18px; text-wrap: balance;
}
.article-hero h1 .sage { color: var(--tf-sage); font-style: italic; font-weight: 600; }
.article-hero .subtitle {
  font-family: var(--font-display);
  font-weight: 500; font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.35; color: var(--tf-pale-green);
  margin: 0 0 28px; max-width: 38ch;
}
.article-hero .lede {
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.6;
  color: var(--fg-inverse-2);
  margin: 0; max-width: 62ch;
}

/* ── Article body typography ─────────────────────────────────────── */
.article-body {
  background: var(--surface);
  padding: clamp(64px, 7vw, 96px) 0;
}
.article-body .wrap {
  max-width: 760px;
}
.article-body p {
  font-family: var(--font-body);
  font-size: 17px; line-height: 1.7;
  color: var(--fg-2); margin: 0 0 20px;
}
.article-body p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.4em;
  line-height: 0.9;
  float: left;
  margin: 0.05em 0.12em 0 0;
  color: var(--tf-forest);
}
.article-body h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.01em; line-height: 1.2;
  margin: 48px 0 16px;
  text-wrap: balance;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 19px; letter-spacing: 0;
  margin: 32px 0 10px;
}
.article-body ul, .article-body ol {
  margin: 0 0 24px; padding: 0;
  list-style: none;
}
.article-body ul li, .article-body ol li {
  position: relative;
  padding-left: 22px;
  font-size: 16px; line-height: 1.65;
  color: var(--fg-2);
  margin-bottom: 8px;
}
.article-body ul li::before {
  content: '';
  position: absolute; left: 0; top: 12px;
  width: 12px; height: 1px; background: var(--tf-forest);
}
.article-body ol { counter-reset: alist; }
.article-body ol li::before {
  counter-increment: alist;
  content: counter(alist, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: var(--font-mono), var(--font-display);
  font-size: 11px; font-weight: 700;
  color: var(--tf-forest);
}
.article-body strong { color: var(--fg); font-weight: 600; }

.article-body blockquote,
.article-pullquote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.35;
  color: var(--fg);
  border-left: 3px solid var(--tf-sage);
  padding: 6px 0 6px 24px;
  margin: 32px 0;
  font-style: italic;
}

/* In-body figure / image */
.article-figure {
  margin: 32px 0;
}
.article-figure img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: block;
}
.article-figure figcaption {
  font-family: var(--font-display);
  font-size: 12.5px; color: var(--fg-3);
  margin-top: 10px;
  letter-spacing: 0;
}

/* Spec table inside article (ELYgator) */
.article-spec-table {
  margin: 32px 0;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.article-spec-table .row {
  display: contents;
}
.article-spec-table .k,
.article-spec-table .v {
  background: white;
  padding: 14px 18px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--fg-2);
}
.article-spec-table .k {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--fg);
}

/* Article gallery (multi-image) */
.article-gallery {
  background: var(--tf-cream);
  padding: clamp(56px, 7vw, 96px) 0;
}
.article-gallery .gallery-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 28px; flex-wrap: wrap; gap: 16px;
}
.article-gallery .gallery-head .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--fg-3);
}
.article-gallery .gallery-head .eyebrow::before {
  content: ''; width: 28px; height: 1px; background: var(--accent);
}
.article-gallery .gallery-head h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.01em;
  margin: 6px 0 0;
}
.article-gallery .gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.article-gallery .gallery-grid.single { grid-template-columns: 1fr; }
.article-gallery .gallery-grid.three {
  grid-template-columns: 1.4fr 1fr;
  grid-auto-rows: 1fr;
}
.article-gallery .gallery-grid.three .span2 { grid-row: 1 / 3; }
.article-gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: block;
}
.article-gallery .gallery-grid.three img { aspect-ratio: 4 / 3; }

/* ── Footer of an article: related + back to news ────────────────── */
.article-footer {
  background: white;
  padding: clamp(48px, 6vw, 88px) 0;
  border-top: 1px solid var(--border);
}
.article-footer h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -0.01em;
  margin: 0 0 24px;
}
.article-footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.article-footer-grid .related {
  text-decoration: none; color: var(--fg);
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.article-footer-grid .related:hover {
  border-color: var(--tf-forest);
  background: var(--surface-muted);
}
.article-footer-grid .related .num {
  font-family: var(--font-mono), var(--font-display);
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-3);
}
.article-footer-grid .related .ttl {
  font-family: var(--font-display);
  font-weight: 600; font-size: 16px; line-height: 1.3;
}
.article-footer-grid .related .meta {
  font-size: 12.5px; color: var(--fg-3);
  font-family: var(--font-display);
}

@media (max-width: 1024px) {
  .featured-article { grid-template-columns: 1fr; }
  .news-list-grid { grid-template-columns: 1fr; }
  .article-spec-table { grid-template-columns: 1fr; }
  .article-spec-table .k { padding-bottom: 2px; }
  .article-spec-table .v { padding-top: 2px; }
  .article-gallery .gallery-grid { grid-template-columns: 1fr; }
  .article-gallery .gallery-grid.three { grid-template-columns: 1fr; }
  .article-gallery .gallery-grid.three .span2 { grid-row: auto; }
  .article-footer-grid { grid-template-columns: 1fr; }
}
