/* =========================================================================
   Article page styles (used by src/news/articles/*.html)
   Loaded via the partials loader. Shared with news.html for cards.
   ========================================================================= */

.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 22px 32px;
}
.article .crumb { font-size: 13px; color: #6b7480; margin-bottom: 18px; letter-spacing: .04em; }
.article .crumb a { color: var(--accent); font-weight: 600; }
.article .crumb a:hover { color: var(--accent-2); }
.article .kicker { display:inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(224,16,48,.10); border: 1px solid rgba(224,16,48,.4); color: var(--accent-2); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.article h1 { font-family: var(--font-display); font-size: clamp(32px, 4.6vw, 56px); font-weight: 900; line-height: 1.08; letter-spacing: -.02em; margin: 18px 0 14px; }
.article .byline { color: #4a535d; font-size: 15px; margin: 0 0 32px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.article .byline .dot { width: 4px; height: 4px; background: #c2c8cf; border-radius: 50%; }
.article .hero { margin: 0 0 32px; border-radius: var(--radius-lg); overflow: hidden; background: #11151a; aspect-ratio: 16/9; }
.article .hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Article body — generous reading width, nice typography */
.article-body { font-size: 18px; line-height: 1.78; color: #1d242d; }
.article-body p { margin: 0 0 22px; }
.article-body h2 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin: 40px 0 16px; letter-spacing: -.015em; }
.article-body h3 { font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 24px); font-weight: 800; margin: 32px 0 12px; }
.article-body ul, .article-body ol { padding-left: 22px; margin: 0 0 22px; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.article-body a:hover { color: var(--accent-2); }
.article-body strong { color: #0a0d10; }
.article-body img { width: 100%; border-radius: 14px; margin: 12px 0 22px; }

/* Block: pull quote */
.article-body .pull-quote {
  margin: 36px 0; padding: 26px 30px;
  border-left: 4px solid var(--accent-2);
  background: linear-gradient(90deg, rgba(224,16,48,.05), transparent 70%);
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(20px, 2.4vw, 26px); line-height: 1.35; color: #0a0d10;
}
.article-body .pull-quote .attrib { display: block; font-family: var(--font-body); font-weight: 600; font-size: 14px; color: #6b7480; margin-top: 12px; letter-spacing: .02em; }

/* Block: stat/spec callout (dark card with key:value rows) */
.article-body .spec-card {
  margin: 36px 0; padding: 28px 28px 22px;
  background: linear-gradient(160deg, #0a0d10, #1d242d);
  color: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line);
}
.article-body .spec-card h4 { font-family: var(--font-body); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); margin: 0 0 18px; font-weight: 800; }
.article-body .spec-card .spec { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 15px; }
.article-body .spec-card .spec:first-of-type { border-top: 0; }
.article-body .spec-card .spec .k { color: var(--muted); }
.article-body .spec-card .spec .v { color: #fff; font-weight: 700; }

/* Block: image gallery (3-up grid for multi-image articles) */
.article-body .gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 30px 0; }
.article-body .gallery figure { margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; background: #11151a; }
.article-body .gallery img { width: 100%; height: 100%; object-fit: cover; margin: 0; }
.article-body .gallery figcaption { font-size: 13px; color: #6b7480; padding: 8px 4px 0; line-height: 1.45; }
@media (max-width: 760px) { .article-body .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .article-body .gallery { grid-template-columns: 1fr; } }

/* Tags row */
.article .tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 0; padding-top: 26px; border-top: 1px solid #e7eaee; }
.article .tag { font-size: 12.5px; color: #3a424b; background: #eef1f4; border-radius: 999px; padding: 6px 12px; font-weight: 600; }

/* Author card */
.article .author-card { display: flex; align-items: center; gap: 16px; margin: 40px 0 0; padding: 22px; background: #f6f7f9; border: 1px solid #e7eaee; border-radius: 14px; }
.article .author-card .avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--steel)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; flex: none; }
.article .author-card .who { font-size: 15px; }
.article .author-card .who strong { display: block; color: #0a0d10; font-size: 16px; }
.article .author-card .who span { color: #6b7480; font-size: 14px; }

/* ---------- Share to socials ---------- */
.share { background: #f6f7f9; padding: 64px 0; margin-top: 40px; border-top: 1px solid #e7eaee; }
.share .sec-head { text-align: center; margin: 0 auto 28px; }
.share .sec-head h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; }
.share .sec-head p { color: #4a535d; font-size: 16px; margin-top: 8px; }
.share-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 700; font-size: 14.5px; letter-spacing: .01em;
  background: #fff; color: #0a0d10; border: 1px solid #e7eaee;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  cursor: pointer; text-decoration: none;
}
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(0,0,0,.18); border-color: transparent; }
.share-btn svg { width: 18px; height: 18px; fill: currentColor; display: block; flex: none; }
.share-btn[data-network="linkedin"]:hover  { background: #0a66c2; color: #fff; }
.share-btn[data-network="facebook"]:hover  { background: #1877f2; color: #fff; }
.share-btn[data-network="x"]:hover        { background: #0a0d10; color: #fff; }
.share-btn[data-network="whatsapp"]:hover  { background: #25d366; color: #fff; }
.share-btn[data-network="email"]:hover     { background: var(--accent); color: #fff; }
.share-btn[data-network="copy"]:hover     { background: var(--accent-2); color: #fff; }
.share-btn[data-network="copy"].copied    { background: var(--ok); color: #fff; border-color: transparent; }
.share-btn .icon-native { display: none; }
@media (max-width: 480px) { .share-btn { padding: 12px 16px; } .share-btn .lbl { display: none; } }

/* ---------- Related articles ---------- */
.related { background: #fff; padding: 72px 0; border-top: 1px solid #e7eaee; }
.related .sec-head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.related .sec-head h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; }
.related .sec-head p { color: #4a535d; font-size: 16px; margin-top: 8px; }
.related .news-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.related .news-card { background:#fff; border:1px solid #e7eaee; border-radius: var(--radius-lg); overflow:hidden; display:flex; flex-direction:column; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.related .news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.related .news-card .thumb { display:block; aspect-ratio: 16/9; overflow:hidden; background:#11151a; }
.related .news-card .thumb img { width:100%; height:100%; object-fit:cover; transition: transform .45s ease; }
.related .news-card:hover .thumb img { transform: scale(1.06); }
.related .news-card .body { padding: 20px 22px 24px; display:flex; flex-direction:column; gap:8px; }
.related .news-card .meta { font-size:12px; color: var(--accent); font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.related .news-card h3 { font-size: 19px; font-weight: 800; margin:0; line-height: 1.25; }
.related .news-card p { color:#4a535d; font-size:14.5px; margin:0; }
.related .news-card .more { margin-top:auto; padding-top: 8px; font-weight:700; color: var(--text); font-size:14px; display:inline-flex; align-items:center; gap:8px; }
.related .news-card .more .arrow { color: var(--accent); }
@media (max-width: 980px) { .related .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .related .news-grid { grid-template-columns: 1fr; } .related { padding: 52px 0; } .article { padding: 40px 22px 24px; } }

/* ---------- News index — numbered pagination ---------- */
.news-pagination { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 40px; }
.news-page {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: 10px; cursor: pointer;
  background: #0a0d10; color: #fff;
  border: 1.5px solid transparent;
  font-weight: 700; font-size: 14.5px; letter-spacing: .01em;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
}
.news-page:hover { background: #1d242d; transform: translateY(-1px); box-shadow: 0 14px 30px -14px rgba(0,0,0,.4); }
.news-page:active { transform: translateY(1px); }
.news-page[aria-current="page"] { background: #fff; color: #0a0d10; border-color: #0a0d10; cursor: default; transform: none; box-shadow: none; }
.news-page[disabled] { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.news-page .arrow { font-weight: 800; }
.news-page-ellipsis { color: #6b7480; padding: 0 4px; user-select: none; }

/* Reveal animation for the news grid cards (used by index too) */
.news-card.reveal { opacity:0; transform: translateY(20px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1); transition-delay: var(--rd, 0s); will-change: opacity, transform; }
.news-card.reveal.in { opacity:1; transform: none; }
@media (prefers-reduced-motion: reduce) { .news-card.reveal { opacity:1 !important; transform: none !important; transition: none !important; } }

/* News index — skeleton state shown before manifest.json loads */
.news-skeleton { display: contents; }
.news-skeleton .skeleton {
  background: #f0f2f5;
  background-image: linear-gradient(90deg, #f0f2f5 0%, #e7eaee 40%, #f0f2f5 80%);
  background-size: 200% 100%;
  animation: shimmerSkel 1.4s linear infinite;
  border-radius: var(--radius-lg);
  min-height: 320px;
  border: 1px solid #e7eaee;
}
@keyframes shimmerSkel { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
