/* =========================================================
   Muses — News section (dark theme, btcm.nl-style layout)
   Reuses the site's existing dark palette from muse-shared.css
   (--ink, --ink-dim, --ink-faint, --violet, --serif, --sans)
   ========================================================= */

:root {
  --news-shadow: 0 1px 2px rgba(0,0,0,0.20), 0 4px 14px rgba(0,0,0,0.20);
  --news-shadow-hover: 0 10px 30px -8px rgba(185,143,255,0.30);
  --news-accent: #b98fff;
  --news-accent-strong: #d4b8ff;
  --news-accent-soft: rgba(185,143,255,0.10);
  --news-accent-border: rgba(185,143,255,0.30);
  --news-card-bg: rgba(255,255,255,0.025);
  --news-card-bg-2: rgba(255,255,255,0.04);
  --news-border: rgba(255,255,255,0.08);
  --news-border-strong: rgba(255,255,255,0.14);
}

/* Scoped color/text-decoration reset — applies ONLY to card components,
   NOT to general <a> tags (so .btn-primary, .nav-cta, inline links etc.
   keep their own color and underline rules). */
body[data-page="news"] .news-side-card,
body[data-page="news"] .news-hero-card,
body[data-page="news"] .news-list-item,
body[data-page="news"] .news-top5-card,
body[data-page="news-post"] .news-side-item {
  color: inherit;
  text-decoration: none;
}

/* ========================================================================
   NEWS INDEX
   ======================================================================== */

.news-section-head {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px 28px;
  display: flex;
  align-items: baseline;
  gap: 16px;
  border-bottom: 1px solid var(--news-border);
}
.news-section-head h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.news-section-head h1 em {
  font-style: italic;
  color: var(--news-accent);
}
.news-section-meta {
  color: var(--ink-faint);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.news-section-meta::before {
  content: "/";
  color: var(--news-border-strong);
  margin-right: 8px;
}

/* Three-column featured row */
.news-featured-row {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 24px 48px;
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 36px;
  align-items: start;
}
.news-side-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.news-side-card {
  display: block;
  cursor: pointer;
}
.news-img {
  aspect-ratio: 16 / 11;
  background: var(--news-card-bg-2);
  border: 1px solid var(--news-border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
  transition: border-color .18s ease, transform .18s ease;
}
.news-side-card:hover .news-img { border-color: var(--news-accent-border); transform: translateY(-2px); }
.news-img img { width: 100%; height: 100%; object-fit: cover; }
.news-cat-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(11,9,16,0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--news-accent);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--news-accent-border);
}
.news-side-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 10px;
}
.news-side-card:hover h3 { color: var(--news-accent-strong); }
.news-byline {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 8px;
}
.news-byline-sep {
  color: var(--news-border-strong);
  font-weight: 400;
}

/* Center hero card */
.news-hero-card { display: block; cursor: pointer; }
.news-hero-card .news-img {
  aspect-ratio: 16 / 10;
  margin-bottom: 22px;
}
.news-hero-card h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 14px;
}
.news-hero-card:hover h2 { color: var(--news-accent-strong); }
.news-hero-card .news-lede {
  font-family: var(--sans);
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 14px;
}

/* Right secondary list (no images) */
.news-list-side {
  display: flex;
  flex-direction: column;
}
.news-list-item {
  display: block;
  cursor: pointer;
  padding: 22px 0;
  border-bottom: 1px solid var(--news-border);
}
.news-list-item:first-child { padding-top: 0; }
.news-list-item:last-child { border-bottom: 0; padding-bottom: 0; }
.news-list-item h4 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 8px;
}
.news-list-item:hover h4 { color: var(--news-accent-strong); }

@media (max-width: 980px) {
  .news-featured-row {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* Top-5 horizontal row (homepage-style "Top 5") */
.news-top5-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px 60px;
  border-top: 1px solid var(--news-border);
}
.news-top5-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 28px;
}
.news-top5-head h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.015em;
}
.news-top5-head a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--news-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.news-top5-head a:hover { color: var(--news-accent-strong); }
.news-top5-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.news-top5-card { display: block; cursor: pointer; position: relative; }
.news-top5-card .news-img {
  aspect-ratio: 5 / 4;
  margin-bottom: 14px;
}
.news-top5-card h4 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0;
  position: relative;
  z-index: 1;
}
.news-top5-card:hover h4 { color: var(--news-accent-strong); }
.news-top5-num {
  position: absolute;
  bottom: -8px;
  right: -4px;
  font-family: var(--serif);
  font-size: 62px;
  font-weight: 700;
  color: rgba(255,255,255,0.05);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 1080px) {
  .news-top5-grid { grid-template-columns: repeat(3, 1fr); }
  .news-top5-card:nth-child(n+4) { display: none; }
}
@media (max-width: 640px) {
  .news-top5-grid { grid-template-columns: 1fr 1fr; }
  .news-top5-card:nth-child(n+3) { display: none; }
}

/* ========================================================================
   ARTICLE PAGE
   ======================================================================== */

.news-article-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px 24px 0;
}
.news-breadcrumb {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 22px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-faint);
  font-weight: 500;
}
.news-breadcrumb a { color: var(--ink-faint); }
.news-breadcrumb a:hover { color: var(--news-accent); }
.news-breadcrumb .sep {
  margin: 0 8px;
  color: var(--news-border-strong);
}
.news-disclaimer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-faint);
}

.news-article-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 36px;
  max-width: 1100px;
}
.news-article-title em {
  font-style: italic;
  color: var(--news-accent);
}

.news-article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  margin-bottom: 80px;
}
.news-article-main { min-width: 0; }

.news-hero-image {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 30px;
  background: var(--news-card-bg-2);
  border: 1px solid var(--news-border);
  position: relative;
}
.news-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.news-hero-image .news-img-credit {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(11,9,16,0.72);
  color: rgba(255,255,255,0.85);
  font-size: 11px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 999px;
  letter-spacing: 0.01em;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--news-border);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-faint);
}
.news-meta-author {
  color: var(--ink);
  font-weight: 600;
}
.news-meta-dot {
  width: 3px; height: 3px;
  background: var(--news-border-strong);
  border-radius: 999px;
}
.news-meta-share {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-faint);
  cursor: pointer;
}
.news-meta-share svg { width: 14px; height: 14px; }
.news-meta-share:hover { color: var(--news-accent); }

.news-prose {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-dim);
}
.news-prose > p:first-of-type::first-letter {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 4.2em;
  float: left;
  line-height: 0.85;
  margin: 6px 12px 0 0;
  color: var(--news-accent);
}
.news-prose p { margin: 0 0 22px; }
.news-prose strong { color: var(--ink); font-weight: 600; }
.news-prose h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 32px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 52px 0 18px;
}
.news-prose h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.28;
  color: var(--ink);
  margin: 36px 0 14px;
}
.news-prose a {
  color: var(--news-accent);
  border-bottom: 1px solid var(--news-accent-border);
  transition: border-color .15s ease, color .15s ease;
}
.news-prose a:hover {
  color: var(--news-accent-strong);
  border-bottom-color: var(--news-accent-strong);
}
.news-prose ul, .news-prose ol {
  margin: 0 0 22px;
  padding-left: 26px;
}
.news-prose li { margin-bottom: 9px; }
.news-prose blockquote {
  margin: 36px 0;
  padding: 8px 0 8px 24px;
  border-left: 3px solid var(--news-accent);
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink);
}

/* Inline CTA card */
.news-inline-cta {
  background: linear-gradient(135deg, var(--news-accent-soft), rgba(255,255,255,0.02));
  border: 1px solid var(--news-accent-border);
  border-radius: 16px;
  padding: 32px 28px;
  margin: 36px 0;
  text-align: center;
}
.news-inline-cta h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.news-inline-cta p {
  color: var(--ink-dim);
  margin: 0 0 22px;
  font-size: 15px;
}

/* ---------- Sidebar ---------- */
.news-sidebar {
  /* No sticky — the sidebar (trust card + Latest + Live data) is taller
     than many viewports, so sticky behaviour was jumpy. Natural scroll
     matches the btcm.nl pattern anyway. */
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.news-trust-card {
  background: var(--news-card-bg);
  border: 1px solid var(--news-border);
  border-radius: 16px;
  padding: 26px;
}
.news-trust-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  gap: 14px;
}
.news-trust-head h4 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  max-width: 180px;
}
.news-trust-logo {
  width: 56px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--news-accent);
  border-radius: 6px;
  color: #fff;
}
.news-trust-logo svg { width: 18px; height: 18px; }
.news-trust-body {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-dim);
  margin: 0 0 20px;
}
.news-trust-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.news-trust-stat { display: flex; flex-direction: column; gap: 2px; }
.news-trust-stat-num {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--news-accent);
  letter-spacing: -0.01em;
}
.news-trust-stat-lbl {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-faint);
  font-weight: 500;
}

.news-side-section {
  background: var(--news-card-bg);
  border: 1px solid var(--news-border);
  border-radius: 16px;
  padding: 20px 22px;
}
.news-side-section h4 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.news-side-section h4::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--news-border);
}
.news-side-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--news-border);
  align-items: center;
}
.news-side-item:first-of-type { border-top: 0; padding-top: 0; }
.news-side-item:last-of-type { padding-bottom: 0; }
.news-side-item-img {
  width: 56px; height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--news-card-bg-2);
  flex-shrink: 0;
  position: relative;
}
.news-side-item-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.news-side-item-meta h5 {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 4px;
}
.news-side-item:hover h5 { color: var(--news-accent-strong); }
.news-side-item-byline {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-faint);
  font-weight: 500;
}

/* ---------- Article responsive ---------- */
@media (max-width: 980px) {
  .news-article-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .news-sidebar { position: static; }
}
@media (max-width: 640px) {
  .news-prose { font-size: 16px; }
  .news-prose > p:first-of-type::first-letter { font-size: 3.4em; }
  .news-article-title { font-size: clamp(28px, 8vw, 38px); }
  .news-article-wrap { padding: 20px 18px 0; }
}
/* =====================================================================
   PATCH for app/news-styles.css — appends fixes from the audit.
   Append the contents of this file to news-styles.css OR replace
   the file via the fix-news-audit.sh script.
   ===================================================================== */

/* Fix 1+2: SVG icon sizing — the inline <svg><use/></svg> pattern has no
   intrinsic dimensions, so without explicit width/height it expands.
   Constraining everywhere icons are used in news context. */
.news-disclaimer-link svg,
.news-top5-head a svg,
.news-section-head svg,
.news-breadcrumb svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Fix 6: Hero image framing — pin portrait images to the top so faces
   don't get cropped at the chin. Applies when image is an artist headshot. */
.news-img img,
.news-hero-image img,
.news-side-item-img img {
  object-position: center 18%;
}

/* Fix 7: Trust card title — let it use full sidebar width */
.news-trust-head h4 {
  max-width: none;
}

/* Fix 8: Top-5 numbers more visible (was 0.05, now 0.08) */
.news-top5-num {
  color: rgba(255, 255, 255, 0.085);
}

/* Fix 9: Section meta — lighter, smaller, less competing with H1 */
.news-section-meta {
  font-size: 12px;
  opacity: 0.72;
}

/* Fix 11: Slightly wider article body for fewer line breaks */
.news-prose {
  max-width: 760px;
}

/* Coming-soon items styled as not-yet-clickable rather than misleading.
   Apply class="coming-soon" to any link on /news index OR sidebar item
   that doesn't have a real article behind it yet. */
.news-list-item.is-placeholder,
.news-side-card.is-placeholder,
.news-top5-card.is-placeholder,
.news-side-item.is-placeholder {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}
.news-list-item.is-placeholder h4::after,
.news-side-card.is-placeholder h3::after,
.news-top5-card.is-placeholder h4::after,
.news-side-item.is-placeholder h5::after {
  content: " (soon)";
  color: var(--news-accent);
  font-weight: 500;
}
