/* =====================================================================
   Cornerstone Newsroom — "Next" editorial layer (Nov 2026)
   Loaded last. Look only: type, surfaces, motion. Article text untouched.
   ===================================================================== */

/* Editorial display serif. The newsroom stylesheet asks for Georgia everywhere;
   serving Newsreader under that name upgrades every headline at once. */
@font-face { font-family: "Georgia"; src: url("/newsroom/fonts/newsreader.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Georgia"; src: url("/newsroom/fonts/newsreader-italic.woff2") format("woff2"); font-weight: 300 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/newsroom/fonts/newsreader.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }

:root {
  --csn-ink: #070b16;
  --csn-paper: #f6f3ec;
  --csn-paper-2: #fbf9f4;
  --csn-rule: rgba(16, 22, 38, .12);
  --csn-gold: #b98a2e;
  --csn-gold-hi: #e2bb62;
  --csn-gold-grad: linear-gradient(135deg, #fbe7a8 0%, #e2bb62 38%, #c39434 70%, #f1d488 100%);
  --csn-ease: cubic-bezier(.22, 1, .36, 1);
}

html.csn { background: var(--csn-paper); }
body.csn {
  background-color: var(--csn-paper) !important;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.csn::after {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
body.csn ::selection { background: rgba(226, 187, 98, .35); }

/* headline typography: optical sizing, tight tracking */
body.csn h1, body.csn h2, body.csn h3, body.csn h4 {
  font-optical-sizing: auto; font-variation-settings: "opsz" 60;
  text-wrap: balance;
}
body.csn h1 { letter-spacing: -0.025em !important; font-weight: 500 !important; }
body.csn h2, body.csn h3 { letter-spacing: -0.015em !important; }
body.csn .masthead h1 em, body.csn .masthead h1 i { font-weight: 400 !important; }

/* top strip + header: the same deep-ink glass as the main site */
body.csn .disclosure-strip { background: #04060c !important; }
body.csn .site-header {
  background: rgba(7, 11, 22, .86) !important;
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid rgba(255,255,255,.07) !important;
  box-shadow: 0 1px 0 rgba(226,187,98,.18), 0 18px 40px -28px rgba(0,0,0,.6);
}
body.csn .desktop-nav a { position: relative; transition: color .25s; }
body.csn .desktop-nav a::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: -6px; height: 1px; background: var(--csn-gold-hi);
  transition: left .35s var(--csn-ease), right .35s var(--csn-ease);
}
body.csn .desktop-nav a:hover::after { left: 20%; right: 20%; }
body.csn .desktop-home-action {
  border-radius: 999px !important; transition: background-color .3s, border-color .3s, transform .3s var(--csn-ease) !important;
}
body.csn .desktop-home-action:hover { transform: translateY(-1px); background: rgba(226,187,98,.12) !important; }

/* front page masthead */
body.csn .masthead h1 { font-size: clamp(3.2rem, 7.4vw, 7rem) !important; line-height: .95 !important; }

/* lead story: deeper shade, slow image drift on hover */
body.csn .lead-story { border-radius: 26px !important; overflow: hidden; box-shadow: 0 50px 90px -50px rgba(7,11,22,.65) !important; }
body.csn .lead-story__image, body.csn .lead-story img { transition: transform 1.6s var(--csn-ease) !important; }
body.csn .lead-story:hover .lead-story__image, body.csn .lead-story:hover img { transform: scale(1.04); }

/* cards: paper-white panels with a gold hairline, image zoom, gentle lift */
body.csn .story-card, body.csn .company-card, body.csn .desk-card, body.csn .lead-stack > *,
body.csn .related-grid > article, body.csn .company-story-list > * {
  border-radius: 20px !important;
  transition: transform .55s var(--csn-ease), box-shadow .55s var(--csn-ease), border-color .4s !important;
}
body.csn .story-card, body.csn .company-card, body.csn .lead-stack > *, body.csn .related-grid > article {
  background: var(--csn-paper-2) !important;
  border: 1px solid var(--csn-rule) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 20px 40px -32px rgba(7,11,22,.45) !important;
  overflow: hidden;
}
body.csn .story-card:hover, body.csn .company-card:hover, body.csn .lead-stack > *:hover, body.csn .related-grid > article:hover {
  transform: translateY(-6px);
  border-color: rgba(185,138,46,.45) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 40px 70px -40px rgba(7,11,22,.55), 0 0 0 1px rgba(226,187,98,.15) !important;
}
body.csn .story-card__image, body.csn .story-card img, body.csn .related-grid img { transition: transform 1.2s var(--csn-ease) !important; }
body.csn .story-card:hover .story-card__image, body.csn .story-card:hover img, body.csn .related-grid article:hover img { transform: scale(1.05); }
body.csn .story-card h3 a, body.csn .lead-stack h3 a, body.csn .related-grid h3 a {
  background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .5s var(--csn-ease), color .3s;
}
body.csn .story-card:hover h3 a, body.csn .lead-stack > *:hover h3 a, body.csn .related-grid article:hover h3 a { background-size: 100% 1px; }
body.csn .read-link { letter-spacing: .14em; }

/* filters + search */
body.csn .sector-filter button, body.csn .sector-filter a { border-radius: 999px !important; transition: background-color .25s, color .25s, border-color .25s !important; }
body.csn .search-field input { border-radius: 999px !important; }

/* ticker rail */
body.csn .ticker-rail { background: #04060c !important; border-top: 1px solid rgba(226,187,98,.25); border-bottom: 1px solid rgba(226,187,98,.25); }

/* article page */
body.csn .article-hero { isolation: isolate; }
body.csn .article-hero h1 { font-size: clamp(2.6rem, 5.4vw, 5rem) !important; line-height: 1.02 !important; }
body.csn .article-body .article-section > p { font-size: 1.075rem; line-height: 1.85 !important; color: #2a3142; }
body.csn .article-body h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem) !important; margin-top: 3rem !important; }
body.csn .article-body h2::before {
  content: ""; display: block; width: 36px; height: 2px; margin-bottom: .9rem; border-radius: 2px; background: var(--csn-gold-grad);
}
body.csn .article-summary-box, body.csn .article-facts, body.csn .article-disclosure, body.csn .company-profile-card {
  border-radius: 20px !important;
}
body.csn .company-profile-card { box-shadow: 0 40px 80px -40px rgba(7,11,22,.6) !important; }
body.csn .article-watch-list li { transition: transform .4s var(--csn-ease), border-color .3s; }
body.csn .article-watch-list li:hover { transform: translateX(4px); }

/* related coverage: a proper three-up grid */
body.csn .related-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 22px !important; }
body.csn .related-grid > article { display: flex; flex-direction: column; }
body.csn .related-grid > article img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
body.csn .related-grid > article .story-meta, body.csn .related-grid > article h3, body.csn .related-grid > article > a:last-child { padding-left: 20px; padding-right: 20px; }
body.csn .related-grid > article .story-meta { padding-top: 16px; }
body.csn .related-grid > article h3 { font-size: 1.32rem !important; line-height: 1.22 !important; margin: .5rem 0 .8rem !important; text-transform: none !important; color: #0c1222 !important; }
body.csn .related-grid > article h3 a { color: inherit !important; }
body.csn .related-grid > article > a:last-child { padding-bottom: 20px; margin-top: auto; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--csn-gold) !important; }
@media (max-width: 900px) { body.csn .related-grid { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 600px) { body.csn .related-grid { grid-template-columns: 1fr !important; } }

/* footer */
body.csn .site-footer { position: relative; }
body.csn .site-footer::before {
  content: ""; position: absolute; left: 50%; top: 0; width: min(900px, 80%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(246,221,150,.6), transparent);
}

/* scroll reveal (only with JS) */
html.csn-js body.csn .csn-reveal { opacity: 0; transform: translateY(22px);
  transition: opacity .9s var(--csn-ease), transform .9s var(--csn-ease); transition-delay: var(--csn-d, 0ms); }
html.csn-js body.csn .csn-reveal.csn-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  /* only this layer's own reveal is turned off; the site's own animations (the company ticker) keep running */
  html.csn-js body.csn .csn-reveal { opacity: 1; transform: none; transition: none; }
}
