/* News wire, story, sources and MDL pages. Tokens only (see docs/DESIGN-SYSTEM.md). */
.ih-page .nw-hero { padding: 8px 0 22px; border-bottom: 1px solid var(--ih-border); margin-bottom: 22px; max-width: 860px; }
.ih-page .nw-hero h1 { margin-bottom: 10px; }
.nw-h { font-size: 13px !important; letter-spacing: .08em !important; text-transform: uppercase; color: var(--ih-muted); font-weight: 600 !important; margin: 0 0 12px !important; }
.nw-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--ih-muted); margin: 14px 0 0; }
.nw-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ih-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ih-accent) 20%, transparent); }
.nw-dot.warn { background: var(--ih-amber); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ih-amber) 20%, transparent); }

.nw-events { margin: 0 0 22px; }
.nw-events ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.nw-events a { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid var(--ih-border); border-radius: 10px; background: var(--ih-surface); text-decoration: none; color: var(--ih-text); height: 100%; }
.nw-events a:hover { border-color: var(--ih-accent); }
.nw-events span { color: var(--ih-muted); font-size: 13px; }
.nw-live { align-self: flex-start; margin-top: 4px; font-style: normal; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ih-accent); border: 1px solid color-mix(in srgb, var(--ih-accent) 45%, transparent); border-radius: 4px; padding: 1px 6px; }

.nw-filters { display: grid; grid-template-columns: 2fr repeat(4, minmax(0, 1fr)) auto; gap: 10px; align-items: end; margin: 0 0 14px; }
.nw-field { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--ih-muted); min-width: 0; }
.nw-field .ih-input { width: 100%; min-height: 42px; }
.nw-filters .ih-button { min-height: 42px; align-self: end; margin: 0; }
.nw-filter-box { margin: 0 0 14px; }
.nw-filter-box > summary { display: none; }
.nw-topics { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 26px; }
.nw-topic { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--ih-border); color: var(--ih-muted); font-size: 12px; text-decoration: none; line-height: 1.6; }
.ih-page a.nw-topic { text-decoration: none; }
.nw-topic:hover, .nw-topic.on { color: var(--ih-text); border-color: var(--ih-muted); }
.nw-topic.on { background: var(--ih-panel); }

.nw-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.nw-list { min-width: 0; }
.nw-card { padding: 18px 0 20px; border-bottom: 1px solid var(--ih-border); min-width: 0; }
.nw-card:first-of-type { padding-top: 4px; }
.nw-card h3 { font-size: 19px; line-height: 1.35; letter-spacing: -.01em; font-weight: 600; margin: 6px 0 8px; overflow-wrap: anywhere; }
.ih-page .nw-card h3 a { color: var(--ih-text); text-decoration: none; }
.ih-page .nw-card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.nw-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 12.5px; color: var(--ih-muted); margin: 0; }
.nw-kind { font: 600 10.5px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--ih-blue); }
.nw-kind-recall, .nw-kind-safety_notice { color: var(--ih-amber); }
.nw-kind-verdict, .nw-kind-settlement, .nw-kind-filing, .nw-kind-ruling { color: var(--ih-accent); }
.nw-excerpt { color: var(--ih-muted); font-size: 14.5px; line-height: 1.6; margin: 0 0 10px; overflow-wrap: anywhere; }
.nw-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.nw-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 9px; border: 1px solid var(--ih-border); border-radius: 6px; background: var(--ih-surface); color: var(--ih-text); font-size: 12.5px; line-height: 1.5; text-decoration: none; overflow-wrap: anywhere; }
.ih-page a.nw-chip { text-decoration: none; }
.nw-chip:hover { border-color: var(--ih-muted); }
.nw-chip.accent { border-color: color-mix(in srgb, var(--ih-accent) 40%, var(--ih-border)); background: color-mix(in srgb, var(--ih-accent) 8%, var(--ih-surface)); }
.nw-chip.muted { color: var(--ih-muted); border-style: dashed; }
.nw-chip-kind { font: 600 9.5px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--ih-muted); }
.nw-chip q { color: var(--ih-muted); font-size: 11.5px; }
.nw-source { margin: 0; font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.nw-more { color: var(--ih-muted); }
.nw-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px 0 0; }

.nw-aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 84px; }
.nw-aside .ih-panel { padding: 18px; }
.nw-rank { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-direction: column; gap: 2px; }
.nw-rank li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--ih-border); font-size: 14px; }
.nw-rank li:last-child { border-bottom: 0; }
.nw-rank span { color: var(--ih-muted); font-variant-numeric: tabular-nums; }

.nw-story header { max-width: 900px; padding-bottom: 20px; border-bottom: 1px solid var(--ih-border); margin-bottom: 22px; }
.nw-story h1 { font-size: clamp(26px, 3.4vw, 42px) !important; margin: 10px 0 12px; }
.nw-lead-excerpt { margin: 0 0 26px; padding: 4px 0 4px 18px; border-left: 2px solid var(--ih-border); max-width: 820px; color: var(--ih-text); font-size: 16px; line-height: 1.65; }
.nw-lead-excerpt footer { color: var(--ih-muted); font-size: 12.5px; margin-top: 6px; }
.nw-story-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.nw-story-grid section { margin-bottom: 28px; }
.nw-coverage { list-style: none; padding: 0; margin: 0; }
.nw-coverage li { padding: 12px 0; border-bottom: 1px solid var(--ih-border); }
.nw-coverage li p { margin: 0 0 4px; }
.nw-evlist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.nw-evlist li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.nw-evidence { color: var(--ih-muted); font-size: 13px; overflow-wrap: anywhere; }
.nw-evidence q { color: var(--ih-text); }
.nw-method { border-top: 1px solid var(--ih-border); padding-top: 14px; }
.nw-mdl-facts h2 { font-size: 22px; margin-bottom: 6px; }
.nw-facts { margin: 14px 0; display: grid; gap: 10px; }
.nw-facts div { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--ih-border); padding-bottom: 8px; }
.nw-facts dt { color: var(--ih-muted); font-size: 13px; }
.nw-facts dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.nw-related { margin-top: 12px; border-top: 1px solid var(--ih-border); padding-top: 22px; }

.nw-table-wrap { overflow-x: auto; border: 1px solid var(--ih-border); border-radius: 12px; margin-bottom: 26px; }
.nw-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.nw-table th { text-align: left; font-weight: 600; font-size: 12px; color: var(--ih-muted); padding: 11px 14px; border-bottom: 1px solid var(--ih-border); background: var(--ih-surface); white-space: nowrap; }
.nw-table td { padding: 11px 14px; border-bottom: 1px solid var(--ih-border); vertical-align: top; }
.nw-table tr:last-child td { border-bottom: 0; }
.nw-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.nw-ok { color: var(--ih-accent); }
.nw-fail { color: var(--ih-amber); }
.nw-src-group { margin-bottom: 8px; }
.nw-method-panel { margin-bottom: 30px; max-width: 900px; }
.nw-steps { margin: 0 0 12px; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; line-height: 1.6; }

@media (max-width: 1100px) {
  .nw-filters { grid-template-columns: 1fr 1fr 1fr; }
  .nw-filters .nw-q { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nw-layout, .nw-story-grid { grid-template-columns: 1fr; }
  .nw-aside { position: static; }
}
@media (max-width: 640px) {
  .nw-filter-box > summary { display: inline-flex; cursor: pointer; list-style: none; }
  .nw-filter-box > summary::-webkit-details-marker { display: none; }
  .nw-filter-box[open] > summary { margin-bottom: 12px; }
  .nw-topics { flex-wrap: nowrap; overflow-x: auto; padding: 0 0 6px; scrollbar-width: none; }
  .nw-topics::-webkit-scrollbar { display: none; }
  .nw-topic { white-space: nowrap; flex: none; }
  .nw-filters { grid-template-columns: 1fr 1fr; }
  .nw-filters .ih-button { grid-column: 1 / -1; }
  .nw-card h3 { font-size: 17px; }
  .nw-table-wrap { border: 0; overflow: visible; }
  .nw-table thead { display: none; }
  .nw-table, .nw-table tbody, .nw-table tr, .nw-table td { display: block; width: 100%; }
  .nw-table tr { border: 1px solid var(--ih-border); border-radius: 10px; margin-bottom: 10px; padding: 6px 0; background: var(--ih-surface); }
  .nw-table td { border: 0; padding: 6px 14px; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .nw-table td::before { content: attr(data-label); color: var(--ih-muted); font-size: 12px; text-align: left; flex: none; }
  .nw-table td > .nw-v { display: block; text-align: right; min-width: 0; }
  .nw-table td.num { text-align: right; }
}
