/* gateway-v2/assets/newswire-segment.css — the "Company news · Stockertim Newswire" segment (15 Nov 2026).
   Markup: includes/newswire/nwr-segment.php. Variants: strip (cards in a grid), rail (side column), company (stock pages),
   compact (market lists, Lite). Self-contained: design tokens with fixed fallbacks, so it reads the same on the editorial
   pages, the quote pages and Lite. Gold accent; the light theme only through :root[data-theme="light"]. No fixed heights
   that depend on data arriving later: the block is complete in the HTML, so nothing shifts. */
.nwseg { --nw-ink: var(--st-ink, #f3f5fb); --nw-ink-2: var(--st-ink-2, rgba(243,245,251,.8)); --nw-ink-3: var(--st-ink-3, rgba(243,245,251,.62));
  --nw-rule: var(--st-rule, rgba(238,242,255,.1)); --nw-gold: #ffcf5e; --nw-card: var(--st-card, #0d1322); --nw-ui: var(--st-ui, Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  display: block; margin: 40px 0 0; min-width: 0; color: var(--nw-ink); font-family: var(--nw-ui); text-align: left; }
:root[data-theme="light"] .nwseg { --nw-ink: var(--st-ink, #10131c); --nw-ink-2: var(--st-ink-2, #1f2430); --nw-ink-3: var(--st-ink-3, #3a3f4a); --nw-rule: var(--st-rule, rgba(13,20,48,.14)); --nw-gold: #7a5600; --nw-card: var(--st-card, #fff); }

/* header: rule, label, order chips, links */
.nwseg-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 12px; margin: 0 0 14px; border-top: 2px solid var(--nw-gold); }
.nwseg-title { margin: 0; font: 700 13px/1.3 var(--nw-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--nw-ink); }
.nwseg-by { font-weight: 600; letter-spacing: .04em; text-transform: none; color: var(--nw-ink-3); white-space: nowrap; }
.nwseg-links { display: inline-flex; align-items: center; gap: 14px; margin-left: auto; }
.nwseg a.nwseg-all, .nwseg a.nwseg-rss { color: var(--nw-gold); font: 650 13px/1.2 var(--nw-ui); text-decoration: none; white-space: nowrap; }
.nwseg-all:hover, .nwseg-rss:hover, .nwseg-note a:hover { text-decoration: underline; text-underline-offset: 3px; }
.nwseg-rss { padding: 3px 8px; border: 1px solid var(--nw-rule); border-radius: 6px; font-size: 11.5px; letter-spacing: .06em; }
.nwseg-chips { display: inline-flex; gap: 6px; }
.nwseg-chips[hidden] { display: none; }
.nwseg-chip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--nw-rule); background: transparent; color: var(--nw-ink-2); font: 600 12.5px/1 var(--nw-ui); cursor: pointer; }
.nwseg-chip:hover { color: var(--nw-ink); border-color: var(--nw-gold); }
.nwseg-chip.is-on { color: var(--nw-ink); border-color: var(--nw-gold); background: rgba(255,207,94,.14); }
:root[data-theme="light"] .nwseg-chip.is-on { background: rgba(122,86,0,.1); }

/* the list */
.nwseg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.nwseg-it { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 12px 0; border-top: 1px solid var(--nw-rule); }
.nwseg-it:first-child { border-top: 0; padding-top: 2px; }
.nwseg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; font: 600 12.5px/1.3 var(--nw-ui); color: var(--nw-ink-2); }
.nwseg-co { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.nwseg .st-tkq { display: inline-flex; align-items: center; gap: 6px; padding: 1px 8px; border-radius: 999px; border: 1px solid rgba(255,207,94,.35); font: 600 11.5px/1.6 var(--nw-ui); color: var(--nw-ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.nwseg .st-tkq b { font-weight: 700; color: var(--nw-gold); }
.nwseg .st-tkq-c:empty { display: none; }
.nwseg .st-tkq.is-up .st-tkq-c { color: #2fd17e; }
.nwseg .st-tkq.is-down .st-tkq-c { color: #ff6b6b; }
:root[data-theme="light"] .nwseg .st-tkq { border-color: rgba(122,86,0,.45); color: #10131c; }
:root[data-theme="light"] .nwseg .st-tkq.is-up .st-tkq-c { color: #137333; }
:root[data-theme="light"] .nwseg .st-tkq.is-down .st-tkq-c { color: #a50e0e; }
.nwseg a.nwseg-t { color: var(--nw-ink); font: 650 15.5px/1.35 var(--st-serif, Georgia, "Times New Roman", serif); text-decoration: none; overflow-wrap: anywhere; }
.nwseg-t::after { content: ""; position: absolute; inset: 0; }   /* the whole card is the target; the link text stays the headline */
.nwseg-it:hover .nwseg-t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--nw-gold); }
.nwseg-t:focus-visible { outline: none; }
.nwseg-t:focus-visible::after { outline: 2px solid var(--nw-gold); outline-offset: 2px; border-radius: 8px; }
.nwseg-all:focus-visible, .nwseg-rss:focus-visible, .nwseg-chip:focus-visible, .nwseg-note a:focus-visible { outline: 2px solid var(--nw-gold); outline-offset: 2px; border-radius: 6px; }
.nwseg-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font: 500 12px/1.3 var(--nw-ui); color: var(--nw-ink-3); }
.nwseg-tag { padding: 2px 7px; border-radius: 4px; background: rgba(255,207,94,.12); color: var(--nw-gold); font-weight: 650; letter-spacing: .02em; white-space: nowrap; }
:root[data-theme="light"] .nwseg-tag { background: rgba(122,86,0,.1); }
.nwseg-time { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--nw-ink-3); }
.nwseg-note { margin: 12px 0 0; font: 500 12px/1.5 var(--nw-ui); color: var(--nw-ink-3); }
.nwseg .nwseg-note a { color: var(--nw-ink-2); text-decoration: underline; text-decoration-color: var(--nw-rule); text-underline-offset: 3px; }

/* strip: cards in a grid (four across on a desktop, two on a tablet, a list on a phone) */
.nwseg--strip .nwseg-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.nwseg--strip .nwseg-it, .nwseg--strip .nwseg-it:first-child { padding: 14px; border: 1px solid var(--nw-rule); border-radius: 10px; background: var(--nw-card); }
.nwseg--strip .nwseg-it:hover { border-color: rgba(255,207,94,.45); }
.nwseg--strip .nwseg-foot { margin-top: auto; padding-top: 4px; }
@media (max-width: 1100px) { .nwseg--strip .nwseg-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .nwseg--strip .nwseg-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* rail: a narrow side column */
.nwseg--rail { margin: 0; }
.nwseg--rail .nwseg-links { margin-left: 0; width: 100%; justify-content: space-between; }
.nwseg--rail a.nwseg-t { font-size: 15px; }
.nwseg--rail .nwseg-by { display: block; margin-top: 3px; }
.nwseg--rail .nwseg-by > span { display: none; }

/* company: one company's stories on its stock page */
.nwseg--company { margin: 0 0 28px; }
.nwseg--company a.nwseg-t { font-size: 16px; }
.nwseg--company .nwseg-it { flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.nwseg--company .nwseg-t { flex: 1 1 320px; }

/* compact: two columns of short rows on a desktop, one on a phone */
.nwseg--compact { margin: 24px 0; }
.nwseg--compact .nwseg-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.nwseg--compact .nwseg-it:nth-child(2) { border-top: 0; padding-top: 2px; }
.nwseg--compact a.nwseg-t { font-size: 15px; }
.nwseg--lite { margin: 18px 0; padding: 0 14px; }

/* phones: one column, rows at least 44 px tall, comfortable targets for the header links */
@media (max-width: 640px) {
  .nwseg { margin-top: 28px; }
  .nwseg--strip .nwseg-list, .nwseg--compact .nwseg-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .nwseg--strip .nwseg-it, .nwseg--strip .nwseg-it:first-child { padding: 12px 0; border: 0; border-top: 1px solid var(--nw-rule); border-radius: 0; background: transparent; }
  .nwseg--strip .nwseg-it:first-child { border-top: 0; }
  .nwseg--compact .nwseg-it:nth-child(2) { border-top: 1px solid var(--nw-rule); padding-top: 12px; }
  .nwseg-it { min-height: 44px; }
  .nwseg-links { margin-left: 0; width: 100%; justify-content: space-between; }
  .nwseg-all, .nwseg-rss, .nwseg-chip { min-height: 44px; display: inline-flex; align-items: center; }
  .nwseg-rss { padding: 0 12px; }
  .nwseg-chip { height: 44px; padding: 0 16px; }
  .nwseg .nwseg-note a { display: inline-flex; align-items: center; min-height: 44px; }
  .nwseg-note { margin-top: 0; }
  .nwseg--strip .nwseg-it:nth-child(n+7) { display: none; }   /* six on a phone: the rest are one tap away under "All company news" */
}
@media (prefers-reduced-motion: no-preference) { .nwseg--strip .nwseg-it { transition: border-color .15s ease; } }
