/* Public SV Journal theme — dark, gold-edged editorial language shared with
   the homepage (assets/home-reference.css). Every rule is scoped to .news-page
   so the light Admin news console (#news-section in news.css) is untouched. */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("/assets/fonts/cormorant-garamond-400-latin-ext.woff2?v=font-2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("/assets/fonts/cormorant-garamond-400-latin.woff2?v=font-2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: optional;
  src: url("/assets/fonts/cormorant-garamond-italic-400-latin-ext.woff2?v=font-2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: optional;
  src: url("/assets/fonts/cormorant-garamond-italic-400-latin.woff2?v=font-2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Jost;
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("/assets/fonts/jost-400-latin-ext.woff2?v=font-2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Jost;
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("/assets/fonts/jost-400-latin.woff2?v=font-2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("/assets/fonts/jetbrains-mono-400-latin-ext.woff2?v=font-2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url("/assets/fonts/jetbrains-mono-400-latin.woff2?v=font-2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Longhand + !important: site-editorial forces #171613 onto custom-content
   pages with an !important rule, and luxury-glass layers the ambient radial
   background-image onto this same selector — a background shorthand here
   would wipe those radials. */
body.public-reference-shell:has(.news-page) {
  background-color: oklch(0.17 0.015 50) !important;
  color: oklch(0.95 0.02 85);
}

/* Specificity bridge: assets/site-editorial.css carries an older partial dark
   news theme under body:not(.admin-page) selectors that win on equal weight.
   Prefixing with the shell + :has() keeps these rules one notch stronger while
   leaving the Admin news console (which lacks .news-page entirely) untouched. */
body.public-reference-shell:has(.news-page) .news-page { color: var(--news-ink); }
body.public-reference-shell:has(.news-page) .news-heading h1,
body.public-reference-shell:has(.news-page) .news-card h1,
body.public-reference-shell:has(.news-page) .news-card h2,
body.public-reference-shell:has(.news-page) .news-author-profile h1 {
  color: var(--news-ink);
  font-family: var(--news-serif);
}
body.public-reference-shell:has(.news-page) .news-heading p,
body.public-reference-shell:has(.news-page) .news-card time,
body.public-reference-shell:has(.news-page) .news-author-link small,
body.public-reference-shell:has(.news-page) .news-summary,
body.public-reference-shell:has(.news-page) .news-media figcaption,
body.public-reference-shell:has(.news-page) .news-comment small,
body.public-reference-shell:has(.news-page) .news-comments form small { color: var(--news-muted); }
body.public-reference-shell:has(.news-page) .news-card {
  background: var(--news-surface);
  border-color: var(--news-line);
  border-radius: 16px;
  color: var(--news-ink);
}
body.public-reference-shell:has(.news-page) .news-card.news-detail {
  background: transparent;
  border-color: transparent;
  border-radius: 0;
}
body.public-reference-shell:has(.news-page) .news-product-link {
  background: var(--news-surface);
  border-color: var(--news-line);
  border-radius: 14px;
}
body.public-reference-shell:has(.news-page) .news-author-profile {
  background: transparent;
  border-color: transparent;
  border-radius: 0;
  color: var(--news-ink);
}
body.public-reference-shell:has(.news-page) .news-card-actions,
body.public-reference-shell:has(.news-page) .news-comments,
body.public-reference-shell:has(.news-page) .news-comment { border-color: var(--news-line); }
body.public-reference-shell:has(.news-page) .news-hashtag {
  background: transparent;
  border-color: var(--news-line);
  border-radius: 999px;
  color: var(--news-gold);
}
body.public-reference-shell:has(.news-page) .news-page button {
  background: transparent;
  border-color: var(--news-line);
  border-radius: 999px;
  color: var(--news-muted);
}
body.public-reference-shell:has(.news-page) .news-page button[aria-pressed="true"] {
  background: var(--news-gold-gradient);
  border-color: transparent;
  color: oklch(0.17 0.015 50);
}
body.public-reference-shell:has(.news-page) .news-page [data-news-fresh] {
  background: var(--news-gold-gradient);
  border-color: transparent;
  color: oklch(0.17 0.015 50);
}
body.public-reference-shell:has(.news-page) .news-cta {
  background: var(--news-gold-gradient);
  border-radius: 999px;
  color: oklch(0.17 0.015 50);
}
body.public-reference-shell:has(.news-page) .news-cta:hover { color: oklch(0.17 0.015 50); }
body.public-reference-shell:has(.news-page) .news-comments textarea {
  background: var(--news-surface-deep);
  border-color: var(--news-line);
  border-radius: 12px;
  color: var(--news-ink);
}
body.public-reference-shell:has(.news-page) .news-media img,
body.public-reference-shell:has(.news-page) .news-media video {
  background: var(--news-surface);
  border: 1px solid var(--news-line);
  border-radius: 16px;
}
body.public-reference-shell:has(.news-page) .news-page button:focus-visible,
body.public-reference-shell:has(.news-page) .news-page a:focus-visible { outline-color: var(--news-gold); }
body.public-reference-shell:has(.news-page) a:hover { color: var(--news-gold); }

.news-page {
  --news-surface: oklch(0.21 0.018 50);
  --news-surface-deep: oklch(0.15 0.014 50);
  --news-ink: oklch(0.95 0.02 85);
  --news-copy: oklch(0.87 0.023 78);
  --news-muted: oklch(0.7 0.03 74);
  --news-gold: oklch(0.8 0.11 82);
  --news-gold-soft: oklch(0.8 0.11 82 / 22%);
  --news-line: oklch(0.8 0.11 82 / 17%);
  --news-danger: oklch(0.74 0.15 35);
  --news-gold-gradient: linear-gradient(120deg, oklch(0.7 0.1 70), oklch(0.92 0.09 90), oklch(0.7 0.11 68));
  --news-serif: "Cormorant Garamond", Georgia, serif;
  --news-sans: Jost, "Segoe UI", Arial, sans-serif;
  --news-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  max-width: 1180px;
  margin: 0 auto;
  padding: 88px 24px 120px;
  font-family: var(--news-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--news-ink);
  background: radial-gradient(900px 420px at 50% -240px, oklch(0.8 0.11 82 / 0.07), transparent 70%);
}
.news-page *,
.news-page *::before,
.news-page *::after { box-sizing: border-box; }
.news-page p,
.news-page h1,
.news-page h2 { margin: 0; }
.news-page a { color: var(--news-gold); }
.news-page ::selection { background: oklch(0.8 0.11 82 / 0.28); color: var(--news-ink); }
.news-page :focus-visible { outline: 2px solid var(--news-gold); outline-offset: 4px; }
.news-page img { display: block; max-width: 100%; }

/* ---- Landing hero ------------------------------------------------------- */

.news-page .news-heading {
  display: block;
  margin: 0 0 56px;
  padding: 0 0 44px;
  border-bottom: 1px solid var(--news-line);
}
/* The eyebrow is a <p>. The bridge rule body…:has(.news-page) .news-heading p
   paints every heading paragraph muted at (0,3,2), which beats the plain
   class selector (0,3,0); the shell-scoped :has form reaches (0,5,1). */
body.public-reference-shell:has(.news-page) .news-page .news-heading .eyebrow {
  margin: 0 0 18px;
  font-family: var(--news-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--news-gold);
}
.news-page .news-heading h1 {
  font-family: var(--news-serif);
  font-weight: 400;
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  color: var(--news-ink);
}
/* font-family declared explicitly: the global h em rule (Instrument Serif,
   (0,1,3)) otherwise wins by silence even though this rule is stronger. */
.news-page .news-heading h1 em {
  font-family: var(--news-serif);
  font-style: italic;
  background: var(--news-gold-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.news-page .news-heading > div > p:last-child {
  max-width: 560px;
  color: var(--news-muted);
  font-size: 17px;
  line-height: 1.85;
}
.news-page .news-heading-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding: 14px 24px;
  border: 1px solid var(--news-gold-soft);
  border-radius: 999px;
  color: var(--news-gold);
  font-family: var(--news-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.news-page .news-heading-link:hover {
  background: oklch(0.8 0.11 82 / 0.1);
  border-color: var(--news-gold);
}
.news-page .news-heading-link span { transition: transform 0.3s ease; }
.news-page .news-heading-link:hover span { transform: translateX(4px); }

.news-page > p > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--news-gold);
  font-family: var(--news-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.news-page > p > a:hover { color: var(--news-ink); }

/* ---- Feed --------------------------------------------------------------- */

.news-page .news-feed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}
.news-page .news-feed > .news-card:first-child:has(.news-card-cover) {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
}
.news-page .news-feed > .news-card:only-child { display: block; grid-column: 1 / -1; max-width: 720px; justify-self: center; width: 100%; }
.news-page .news-feed > .news-card:first-child:has(.news-card-cover) h2 { font-size: clamp(28px, 2.6vw, 40px); }
.news-page .news-feed > .news-card:first-child:has(.news-card-cover) .news-summary { -webkit-line-clamp: 4; }

.news-page .news-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  padding: 0;
  background: var(--news-surface);
  border: 1px solid var(--news-line);
  border-radius: 16px;
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}
.news-page .news-card:hover {
  border-color: oklch(0.8 0.11 82 / 45%);
  transform: translateY(-3px);
  box-shadow: 0 24px 60px -32px oklch(0 0 0 / 0.8);
}
.news-page .news-card-cover {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--news-surface-deep);
}
.news-page .news-card-cover img,
.news-page .news-card-cover video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.65, 0.25, 1);
}
.news-page .news-card:hover .news-card-cover img,
.news-page .news-card:hover .news-card-cover video { transform: scale(1.05); }
.news-page .news-feed > .news-card:first-child .news-card-cover { aspect-ratio: auto; min-height: 100%; }
.news-page .news-feed > .news-card:first-child .news-card-cover img,
.news-page .news-feed > .news-card:first-child .news-card-cover video { min-height: 340px; }

.news-page .news-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 26px 28px 24px;
}

.news-page .news-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
}
.news-page .news-author-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.news-page .news-author-link img,
.news-page .news-avatar {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--news-gold-soft);
}
.news-page .news-avatar {
  display: grid;
  place-items: center;
  background: oklch(0.8 0.11 82 / 0.12);
  color: var(--news-gold);
  font-family: var(--news-mono);
  font-size: 11px;
}
.news-page .news-author-link strong {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--news-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.news-page .news-author-link:hover strong { color: var(--news-gold); }
.news-page .news-author-link small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--news-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.news-page .news-card time {
  flex-shrink: 0;
  font-family: var(--news-mono);
  font-size: 10.5px;
  color: var(--news-muted);
  white-space: nowrap;
}

.news-page .news-card h2 {
  font-family: var(--news-serif);
  font-weight: 400;
  font-size: 29px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--news-ink);
}
.news-page .news-card h2 a { color: inherit; transition: color 0.3s ease; }
.news-page .news-card h2 a:hover { color: var(--news-gold); }

.news-page .news-summary {
  color: var(--news-muted);
  font-size: 15px;
  line-height: 1.8;
  white-space: pre-wrap;
}
.news-page .news-feed .news-card .news-summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.news-page .news-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}
.news-page .news-hashtag {
  display: inline-block;
  border: 1px solid var(--news-line);
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--news-gold);
  background: transparent;
  font-family: var(--news-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
}

.news-page .news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 2px;
  color: var(--news-gold);
  font-family: var(--news-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.news-page .news-read-more span { transition: transform 0.3s ease; }
.news-page .news-read-more:hover span { transform: translateX(4px); }

/* ---- Engagement controls ------------------------------------------------ */

.news-page .news-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: auto 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--news-line);
}
.news-page button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--news-line);
  border-radius: 999px;
  background: transparent;
  color: var(--news-muted);
  font-family: var(--news-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease, opacity 0.25s ease;
}
.news-page button:hover:not(:disabled) { border-color: var(--news-gold); color: var(--news-gold); }
.news-page button:disabled { opacity: 0.55; cursor: wait; }
.news-page .news-card-actions button[aria-pressed="true"] {
  border-color: transparent;
  background: var(--news-gold-gradient);
  color: oklch(0.17 0.015 50);
}
.news-page .news-card-actions button[aria-pressed="true"]:hover:not(:disabled) {
  border-color: transparent;
  color: oklch(0.17 0.015 50);
  opacity: 0.9;
}
.news-page .news-card-actions a {
  margin-left: auto;
  color: var(--news-muted);
  font-family: var(--news-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}
.news-page .news-card-actions a:hover { color: var(--news-gold); }

.news-page [data-news-fresh] {
  display: flex;
  width: fit-content;
  margin: 0 auto 26px;
  padding: 14px 26px;
  border-color: transparent;
  border-radius: 999px;
  background: var(--news-gold-gradient);
  color: oklch(0.17 0.015 50);
  letter-spacing: 0.2em;
}
.news-page [data-news-fresh]:hover:not(:disabled) {
  border-color: transparent;
  color: oklch(0.17 0.015 50);
  opacity: 0.92;
}
.news-page [data-news-status] {
  min-height: 20px;
  margin: 28px 0 0;
  text-align: center;
  font-family: var(--news-mono);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--news-muted);
}
.news-page .news-load-controls { margin: 44px 0 0; text-align: center; }
.news-page .news-load-controls button { padding: 14px 28px; }
.news-page [data-news-sentinel] { height: 1px; }

/* ---- Comments ----------------------------------------------------------- */

.news-page .news-comments {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--news-line);
}
.news-page .news-comments [data-comment-status] {
  margin: 0 0 10px;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--news-sans);
  font-size: 13px;
  line-height: 1.6;
}
.news-page .news-comment {
  margin: 12px 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--news-line);
}
.news-page .news-comment strong { color: var(--news-ink); font-weight: 400; font-size: 14px; }
.news-page .news-comment small {
  display: block;
  margin-top: 3px;
  color: var(--news-muted);
  font-family: var(--news-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.news-page .news-comment p { margin: 8px 0 0; color: var(--news-copy); font-size: 14px; line-height: 1.75; white-space: pre-wrap; }
.news-page .news-comment button { margin-top: 10px; padding: 8px 14px; }
.news-page .news-comments label {
  display: grid;
  gap: 8px;
  color: var(--news-muted);
  font-family: var(--news-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.news-page .news-comments textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--news-line);
  border-radius: 12px;
  background: var(--news-surface-deep);
  color: var(--news-ink);
  font-family: var(--news-sans);
  font-size: 15px;
  line-height: 1.7;
  resize: vertical;
  transition: border-color 0.25s ease;
}
.news-page .news-comments textarea::placeholder { color: oklch(0.6 0.03 70); text-transform: none; letter-spacing: 0; }
.news-page .news-comments textarea:focus { outline: none; border-color: var(--news-gold); }
.news-page .news-comments form { display: grid; gap: 12px; margin-top: 20px; }
.news-page .news-comments form small { font-size: 11px; line-height: 1.7; color: var(--news-muted); }
.news-page .news-comments form button { justify-self: start; }
.news-page .news-comments [data-comments-more] { margin-top: 14px; }
.news-page [data-news-sign-in] { margin: 14px 0 0; font-size: 13px; color: var(--news-muted); }
.news-page .news-error { color: var(--news-danger) !important; }

/* ---- Article detail ----------------------------------------------------- */

.news-page .news-card.news-detail {
  max-width: 780px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.news-page .news-card.news-detail:hover { transform: none; border-color: transparent; box-shadow: none; }
.news-page .news-detail .news-card-body { padding: 0; }
.news-page .news-detail .news-card-header {
  align-items: center;
  margin-bottom: 26px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--news-line);
}
.news-page .news-detail h1 {
  font-family: var(--news-serif);
  font-weight: 400;
  font-size: clamp(38px, 5.2vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 4px 0 18px;
  color: var(--news-ink);
}
.news-page .news-detail .news-summary {
  display: block;
  font-size: 18px;
  line-height: 1.8;
  color: var(--news-copy);
}
.news-page .news-detail .news-keywords { margin: 22px 0 0; }
.news-page .news-text {
  margin: 0 0 1.5em;
  color: var(--news-copy);
  font-size: 17px;
  line-height: 1.95;
  white-space: pre-wrap;
}
.news-page .news-media { margin: 32px 0; }
.news-page .news-media img,
.news-page .news-media video {
  width: 100%;
  max-width: 100%;
  max-height: 720px;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--news-line);
  border-radius: 16px;
  background: var(--news-surface);
}
.news-page .news-media figcaption { margin-top: 10px; font-size: 12px; color: var(--news-muted); }
.news-page .news-product-link {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0;
  padding: 18px;
  border: 1px solid var(--news-line);
  border-radius: 14px;
  background: var(--news-surface);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.news-page .news-product-link:hover { border-color: var(--news-gold); transform: translateY(-2px); }
.news-page .news-product-link img { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; border: 1px solid var(--news-line); }
.news-page .news-product-link small {
  display: block;
  margin: 0 0 5px;
  color: var(--news-gold);
  font-family: var(--news-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.news-page .news-product-link strong {
  display: block;
  margin: 0 0 5px;
  color: var(--news-ink);
  font-family: var(--news-serif);
  font-size: 21px;
  font-weight: 400;
}
.news-page .news-product-link > span:last-child { margin-left: auto; color: var(--news-gold); }
.news-page .news-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  padding: 15px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--news-gold-gradient);
  color: oklch(0.17 0.015 50);
  font-family: var(--news-sans);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}
.news-page .news-cta:hover { opacity: 0.9; color: oklch(0.17 0.015 50); }
.news-page .news-detail .news-card-actions { margin-top: 36px; }
.news-page .news-detail .news-comments { margin-top: 22px; }
.news-page[data-post] > [data-news-status]:not(.news-error) { display: none; }

/* ---- Author profile ----------------------------------------------------- */

.news-page .news-author-profile {
  max-width: 780px;
  margin: 0 auto 56px;
  padding: 0 0 44px;
  border: 0;
  border-bottom: 1px solid var(--news-line);
}
.news-page .news-author-profile .news-author-link img,
.news-page .news-author-profile .news-avatar { width: 64px; height: 64px; }
.news-page .news-author-profile .news-author-link > span { display: none; }
.news-page .news-author-profile .news-author-link { gap: 0; }
.news-page .news-author-profile .news-avatar { font-size: 15px; }
.news-page .news-author-profile h1 {
  font-family: var(--news-serif);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 56px);
  letter-spacing: -0.02em;
  margin: 22px 0 8px;
  color: var(--news-ink);
}
/* Shell-scoped like the heading eyebrow: the bridge .news-summary muted
   rule is (0,3,1) and beats the plain (0,3,0) profile selector; this role
   line is meant to read as a brass JetBrains eyebrow. */
body.public-reference-shell:has(.news-page) .news-page .news-author-profile .news-summary {
  color: var(--news-gold);
  font-family: var(--news-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.news-page .news-author-profile .news-text {
  margin-top: 16px;
  color: var(--news-copy);
  font-size: 16px;
  line-height: 1.9;
}
.news-page .news-author-profile > p:not(.news-summary):not(.news-text) {
  margin-top: 14px;
  color: var(--news-muted);
  font-size: 14px;
}
.news-page .news-author-profile > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-family: var(--news-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.news-page .news-author-profile > a:hover { color: var(--news-ink); }

.news-page noscript { color: var(--news-muted); font-size: 13px; line-height: 1.7; }

/* ---- Right-to-left languages ------------------------------------------- */

body[dir="rtl"] .news-page .news-card-actions a { margin-left: 0; margin-right: auto; }
body[dir="rtl"] .news-page .news-product-link > span:last-child { margin-left: 0; margin-right: auto; }
body[dir="rtl"] .news-page .news-heading-link span,
body[dir="rtl"] .news-page .news-read-more span,
body[dir="rtl"] .news-page > p > a span { transform: scaleX(-1); }

@media (width <= 1100px) {
  .news-page { padding: 72px 24px 96px; }
  .news-page .news-feed { gap: 20px; }
  .news-page .news-feed > .news-card:first-child:has(.news-card-cover) { grid-template-columns: 1fr; }
  .news-page .news-feed > .news-card:first-child:has(.news-card-cover) .news-card-cover { aspect-ratio: 16 / 10; min-height: 0; }
  .news-page .news-feed > .news-card:first-child:has(.news-card-cover) .news-card-cover img,
  .news-page .news-feed > .news-card:first-child:has(.news-card-cover) .news-card-cover video { min-height: 0; }
}

@media (width <= 767px) {
  .news-page { padding: 52px 18px 72px; }
  .news-page .news-heading { margin-bottom: 36px; padding-bottom: 32px; }
  .news-page .news-feed { grid-template-columns: 1fr; gap: 18px; }
  .news-page .news-card-body { padding: 22px 20px 20px; }
  .news-page .news-card time { margin-left: 0; }
  .news-page .news-detail .news-card-header { flex-wrap: wrap; row-gap: 6px; }
  .news-page .news-product-link { padding: 14px; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .news-page *,
  .news-page *::before,
  .news-page *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .news-page .news-card,
  .news-page .news-card:hover { transform: none; }
  .news-page .news-card-cover img,
  .news-page .news-card-cover video,
  .news-page .news-card:hover .news-card-cover img,
  .news-page .news-card:hover .news-card-cover video { transform: none; }
}
