/* Distinct editorial subjects, one quiet dark palette. */
.news-board .editorial-color-card,.news-list .editorial-color-card{background:linear-gradient(120deg,var(--news-surface),#0c1527);border:1px solid var(--news-accent);border-left:4px solid var(--news-accent);border-radius:18px;overflow:hidden}
.news-list .editorial-color-card{padding:22px 20px;margin-bottom:16px}
.editorial-color-card .tag,.editorial-color-card .news-date b{color:var(--news-accent);border-color:var(--news-accent)}
.editorial-color-card>.text-link,.editorial-color-card>.arrow,.editorial-color-card> a:last-child{color:var(--news-accent)}
.ribosome-reading-guide{background:#10172b;border:1px solid #a484ed;border-radius:20px;margin:0 0 32px;padding:20px;color:#eef5ff;font-size:16px;line-height:1.65}
.ribosome-reading-guide>summary{display:flex;align-items:center;gap:16px;cursor:pointer;font-size:22px;font-weight:750;list-style:none}
.ribosome-reading-guide>summary:after{content:'+';margin-left:auto;color:#79dce9;font-size:26px}
.ribosome-reading-guide[open]>summary:after{content:'−'}
.ribosome-reading-guide summary::-webkit-details-marker{display:none}
.ribosome-reading-guide>summary img{object-fit:contain;flex-shrink:0}
.ribosome-reading-guide small{display:block;color:#b4c3d9;font-size:16px;font-weight:400;line-height:1.5;margin-top:4px}
.reading-guide-terms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:22px}
.reading-guide-terms>details{border:1px solid #414767;border-radius:12px;padding:14px 16px;min-width:0;background:#0d1425}
.reading-guide-terms summary{cursor:pointer;font-size:17px;font-weight:650;color:#d1bbff}
.reading-guide-terms p{font-size:16px;line-height:1.65;margin:12px 0 0;color:#d5dfed}
.ribosome-reading-guide summary:focus-visible{outline:2px solid #75e4ee;outline-offset:5px;border-radius:4px}
@media(max-width:640px){.reading-guide-terms{grid-template-columns:1fr}.ribosome-reading-guide{padding:18px}.ribosome-reading-guide>summary{font-size:20px}.news-list .editorial-color-card{padding:18px 14px}}

/* Compact story cards, matching the native app's title-first lists. */
.news-list > article > div > p,
.news-board > article.news-feature > p,
.news-board .news-columns > article > p { display:none; }
[data-page="home"] .featured .feature-card { grid-template-columns:minmax(0,1fr);min-height:0; }
[data-page="home"] .featured .metric-grid,
[data-page="home"] .featured .feature-visual { display:none; }
[data-page="home"] .featured .feature-copy { padding:22px; }
[data-page="home"] .featured .article-link { margin-top:14px; }

/* News accents are independent of company cyan and never recolour the surface. */
.news-board .editorial-color-card,.news-list .editorial-color-card {
  background:#0c1527 !important;
  border-color:var(--news-accent) !important;
}
.editorial-color-card .tag {
  color:var(--news-accent) !important;
  border-color:var(--news-accent) !important;
  background:transparent !important;
}
.editorial-color-card .news-date {
  border-color:var(--news-accent) !important;
  background:transparent !important;
}
.editorial-color-card .news-date b,.editorial-color-card .news-date span {
  color:var(--news-accent) !important;
}

/* Title-first news rows: no calendar column or unused vertical space. */
.news-list > article.compact-news-card { display:block; padding:18px 20px; margin:0 0 12px; min-height:0; }
.compact-news-card > div { min-width:0; }
.compact-news-card .tag-row { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; margin:0; }
.compact-news-card .tag { font-size:12px; line-height:1.35; padding:0; border:0; letter-spacing:.06em; }
.compact-news-card .ticker { font-size:14px; }
.news-list .compact-news-card .news-date { display:flex; align-items:center; gap:5px; margin:0 0 0 auto; padding:0; border:0 !important; background:none !important; width:auto; min-width:0; }
.news-list .compact-news-card .news-date b,.news-list .compact-news-card .news-date span { font-size:13px; line-height:1.4; font-weight:400; color:#9aabc2 !important; }
.news-list .compact-news-card h3 { font-size:20px; line-height:1.35; margin:12px 0 10px; }
.news-list .compact-news-card > a { display:inline-block; font-size:15px; line-height:1.5; margin:0; padding:0; color:#74dce8; }
@media(max-width:640px) { .news-list > article.compact-news-card { padding:16px; } }

/* News page: about half the former feature-card height, without clipping titles. */
[data-page="news"] .news-board { gap:10px; }
[data-page="news"] .news-board .news-brief-card {
  display:flex;flex-direction:column;gap:6px;min-height:0;height:auto;
  padding:12px 16px;margin:0;border-radius:12px;
}
[data-page="news"] .news-brief-meta { display:flex;align-items:center;gap:10px;min-width:0; }
[data-page="news"] .news-brief-meta .tag {
  font-size:12px;line-height:1.35;letter-spacing:.04em;padding:0;border:0;margin:0;
}
[data-page="news"] .news-company-logo { width:60px;height:20px;object-fit:contain;object-position:right center;margin-left:auto;flex-shrink:0; }
[data-page="news"] .news-brief-card :is(h2,h3) {
  font-size:20px;line-height:1.25;letter-spacing:-.015em;margin:0;font-weight:750;
}
[data-page="news"] .news-brief-card > p { display:none; }
[data-page="news"] .news-brief-footer { display:flex;align-items:center;justify-content:space-between;gap:12px; }
[data-page="news"] .news-brief-footer .byline {font-size:12px;line-height:1.5;margin:0;color:#9aabc2;}
[data-page="news"] .news-brief-footer a {font-size:14px;line-height:1.5;margin:0;padding:0;color:#74dce8;}
@media(max-width:640px){
  [data-page="news"] .news-board .news-brief-card {padding:10px 12px;gap:5px;}
  [data-page="news"] .news-brief-card :is(h2,h3) {font-size:18px;line-height:1.25;}
}

/* Groups of three keep the news list easy to scan. Cyan always identifies tickers. */
[data-page="news"] .news-board > .news-group-start { margin-top:32px; }
[data-page="news"] .news-brief-meta .tag { font-size:14px;line-height:1.5; }
[data-page="news"] .news-brief-meta .news-ticker { color:#74dce8 !important;font-size:20px;font-weight:800;letter-spacing:.02em;display:inline-block;line-height:1.4; }
@media(max-width:640px){
 [data-page="news"] .news-board > .news-group-start {margin-top:24px;}
 [data-page="news"] .news-brief-meta .news-ticker {font-size:18px;}
}

/* Compact news rows retain complete titles and large cyan tickers. */
[data-page="news"] .news-board .news-brief-card {padding:7px 14px;gap:3px;}
[data-page="news"] .news-brief-meta .tag {line-height:1.25;}
[data-page="news"] .news-brief-card :is(h2,h3) {line-height:1.2;}
[data-page="news"] .news-board > .news-group-start {margin-top:64px;}
@media(min-width:760px){
 [data-page="news"] .news-board .news-brief-card {display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:16px;row-gap:3px;}
 [data-page="news"] .news-brief-meta {grid-column:1;grid-row:1;}
 [data-page="news"] .news-brief-card :is(h2,h3) {grid-column:1;grid-row:2;}
 [data-page="news"] .news-brief-footer {display:contents;}
 [data-page="news"] .news-brief-footer .byline {grid-column:2;grid-row:1;align-self:center;white-space:nowrap;}
 [data-page="news"] .news-brief-footer a {grid-column:2;grid-row:2;align-self:center;white-space:nowrap;}
}
.news-article-preview {position:fixed;z-index:1100;width:min(350px,calc(100vw - 24px));padding:15px 17px;border:1px solid #74dce8;border-radius:12px;background:#242220;color:#f5f1ec;box-shadow:0 12px 32px #0008;font-size:15px;line-height:1.5;}
.news-article-preview[hidden] {display:none;}
@media(max-width:640px){
 [data-page="news"] .news-board .news-brief-card {padding:6px 12px;gap:3px;}
 [data-page="news"] .news-board > .news-group-start {margin-top:48px;}
}
