:root {
  --news-red: #bd3a2d;
  --news-orange: #d96d1f;
  --news-green: #2d7551;
  --news-blue: #276a94;
  --news-yellow: #d6a11c;
  --news-dark: #17211c;
}

.news-body {
  min-height: 100%;
  height: auto;
  background: #eef1ef;
}

.news-page,
.news-detail-page {
  width: min(1260px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 72px;
}

.news-intro {
  max-width: 850px;
  padding: 64px 0 36px;
}

.news-kicker,
.detail-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--news-red);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.news-intro h2,
.news-detail-hero h2 {
  margin: 0;
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: 0;
}

.news-intro p {
  max-width: 760px;
  margin: 20px 0 0;
  color: #4f5a54;
  font-size: 17px;
  line-height: 1.6;
}

.news-filter {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 210px 170px auto;
  gap: 8px;
  padding: 12px;
  border: 1px solid #ccd3ce;
  background: white;
}

.news-filter label,
.news-filter button {
  min-width: 0;
  min-height: 42px;
}

.news-filter input,
.news-filter select {
  width: 100%;
  height: 42px;
  border: 1px solid #c8d0cb;
  border-radius: 4px;
  background: #f8faf8;
  color: var(--news-dark);
  font: inherit;
  padding: 0 12px;
}

.news-search { position: relative; }
.news-search svg {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 12px;
  width: 18px;
  height: 18px;
  color: #66716b;
}
.news-search input { padding-left: 40px; }

.news-filter-submit,
.news-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 4px;
  color: white;
  background: var(--news-dark);
  font-weight: 750;
  cursor: pointer;
}
.news-filter-submit:hover,
.news-more:hover { background: #2d3a33; }
.news-filter-submit svg,
.news-more svg { width: 17px; height: 17px; }

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 30px;
  align-items: start;
  margin-top: 34px;
}

.news-stream-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  min-height: 54px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--news-dark);
}
.news-stream-header > div { display: grid; gap: 4px; }
.news-stream-header span { color: #68736d; font-size: 11px; text-transform: uppercase; font-weight: 750; }
.news-stream-header strong { font-size: 18px; }
.source-state {
  padding: 5px 7px;
  border: 1px solid #bfc8c2;
  border-radius: 3px;
  background: white;
}
.source-state.is-error { color: #9b2f25; border-color: #d8aaa5; }

.news-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 30px 0 8px;
}
.news-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 8px;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: #9aa69f;
}

.news-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  width: calc(50% - 30px);
  min-height: 390px;
  margin: 0;
  border: 1px solid #cbd2ce;
  border-radius: 6px;
  overflow: visible;
  background: white;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
.news-card:nth-of-type(odd) { align-self: flex-start; }
.news-card:nth-of-type(even) { align-self: flex-end; }
.news-card::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 31px;
  width: 30px;
  height: 2px;
  background: #9aa69f;
}
.news-card:nth-of-type(odd)::after { right: -30px; }
.news-card:nth-of-type(even)::after { left: -30px; }
.news-card:hover,
.news-card:focus-within {
  border-color: #647069;
  box-shadow: 0 12px 30px rgba(23, 33, 28, .13);
  transform: translateY(-2px);
}
.news-card::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 28px;
  width: 12px;
  height: 12px;
  border: 3px solid #eef1ef;
  border-radius: 50%;
  background: #738078;
  box-shadow: 0 0 0 2px #738078;
}
.news-card:nth-of-type(odd)::before { right: -39px; }
.news-card:nth-of-type(even)::before { left: -39px; }
.news-card[data-alert="Orange"]::before { background: var(--news-orange); box-shadow: 0 0 0 2px var(--news-orange); }
.news-card[data-alert="Red"]::before { background: var(--news-red); box-shadow: 0 0 0 2px var(--news-red); }
.news-card.is-active { border-color: #647069; box-shadow: 0 10px 28px rgba(23, 33, 28, .11); }

.news-timeline-label {
  position: absolute;
  top: 18px;
  width: calc(100% - 4px);
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #36423b;
  pointer-events: none;
}
.news-card:nth-of-type(odd) .news-timeline-label {
  left: calc(100% + 60px);
  align-items: flex-start;
  text-align: left;
}
.news-card:nth-of-type(even) .news-timeline-label {
  right: calc(100% + 60px);
  align-items: flex-end;
  text-align: right;
}
.news-timeline-label span {
  color: var(--news-red);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}
.news-timeline-label time {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
}

.news-card-media {
  position: relative;
  min-height: 170px;
  height: 170px;
  overflow: hidden;
  border-radius: 5px 5px 0 0;
  background: #18231e;
  color: white;
}
.news-card-media img {
  width: 100%;
  height: 100%;
  min-height: 170px;
  display: block;
  object-fit: cover;
}
.news-card-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(10, 18, 14, .68));
  pointer-events: none;
}
.news-card-visual {
  height: 100%;
  min-height: 170px;
  display: grid;
  place-items: center;
  padding: 22px;
  background-color: #22312a;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 28px 28px;
}

.news-card-visual,
.news-card-visual svg {
  color: #fff;
  stroke: #fff;
}
.news-card-visual svg { width: 66px; height: 66px; stroke-width: 1.4; }
.news-card-coordinates {
  position: absolute;
  z-index: 1;
  bottom: 12px;
  left: 14px;
  font-size: 10px;
  font-weight: 750;
}
.media-attribution {
  position: absolute;
  z-index: 1;
  right: 9px;
  bottom: 9px;
  padding: 3px 5px;
  background: rgba(255,255,255,.9);
  color: var(--news-dark);
  font-size: 9px;
  font-weight: 750;
  max-width: calc(100% - 18px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-card-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  border-radius: 0 0 5px 5px;
  background: white;
  padding: 20px;
}
.news-card-meta,
.news-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: #5d6962;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}
.news-alert {
  padding: 4px 6px;
  border-radius: 3px;
  color: #194630;
  background: #dcece3;
}
.news-alert[data-alert="Orange"] { color: #79390d; background: #f6dfcc; }
.news-alert[data-alert="Red"] { color: #7f241d; background: #f2d3cf; }
.news-card-copy h3 {
  margin: 13px 0 9px;
  font-size: 23px;
  line-height: 1.18;
}
.news-card-copy > p {
  margin: 0;
  color: #4e5953;
  line-height: 1.5;
}
.news-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}
.news-card-actions button,
.news-card-actions a,
.detail-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--news-dark);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.news-card-actions svg,
.detail-action svg { width: 15px; height: 15px; }

.news-map-panel {
  position: sticky;
  top: 84px;
  overflow: hidden;
  border: 1px solid #c8d0cb;
  border-radius: 6px;
  background: white;
}
.news-map-panel > header,
.news-map-panel > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}
.news-map-panel > header div { display: grid; gap: 3px; min-width: 0; }
.news-map-panel > header span,
.news-map-panel > footer { color: #647069; font-size: 10px; }
.news-map-panel > header strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-map-panel a { color: var(--news-blue); font-size: 10px; font-weight: 750; }
#news-map { height: 440px; background: #dfe6e1; }
.news-map-panel > footer a { text-decoration: none; border-bottom: 1px solid currentColor; }
.news-map-marker {
  width: 30px !important;
  height: 30px !important;
  display: grid !important;
  place-items: center;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--news-dark);
  color: white;
  box-shadow: 0 2px 9px rgba(0,0,0,.3);
}
.news-map-marker svg { width: 15px; height: 15px; }

.news-sentinel { height: 1px; }
.news-more { width: 100%; min-height: 44px; margin-top: 10px; }
.news-empty,
.news-error {
  margin: 24px 0;
  padding: 30px;
  border: 1px solid #c8d0cb;
  background: white;
  color: #59645e;
  text-align: center;
}
.news-method-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 15px;
  margin-top: 52px;
  padding: 24px 0;
  border-top: 3px solid var(--news-dark);
  border-bottom: 1px solid #c8d0cb;
}
.news-method-note > svg { width: 26px; height: 26px; color: var(--news-green); }
.news-method-note strong { font-size: 14px; }
.news-method-note p { max-width: 820px; margin: 6px 0 0; color: #56615b; line-height: 1.55; }

.news-detail-page { padding-top: 38px; }
.news-detail-loading { min-height: 50vh; display: grid; place-items: center; align-content: center; gap: 14px; color: #5d6962; }
.loading-pulse { width: 18px; height: 18px; border-radius: 50%; background: var(--news-red); animation: pulse 1s ease infinite alternate; }
@keyframes pulse { to { opacity: .25; transform: scale(.72); } }
.detail-back { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 38px; font-size: 11px; font-weight: 800; text-decoration: none; }
.detail-back svg { width: 16px; height: 16px; }
.news-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 50px;
  align-items: center;
  padding-bottom: 44px;
  border-bottom: 3px solid var(--news-dark);
}
.news-detail-hero h2 { font-size: 48px; }
.news-detail-lead { max-width: 720px; margin: 20px 0 0; color: #4d5952; font-size: 17px; line-height: 1.6; }
.news-detail-meta { margin-bottom: 14px; }
.news-detail-actions { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 26px; }
.news-detail-visual {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background: #22312a;
}
.news-detail-visual img { width: 100%; height: 320px; display: block; object-fit: cover; }
.news-detail-visual .news-card-visual { min-height: 320px; }
.news-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 38px;
  margin-top: 38px;
}
.news-detail-section { padding: 30px 0; border-bottom: 1px solid #c9d0cc; }
.news-detail-section:first-child { padding-top: 0; }
.news-detail-section > span { color: var(--news-red); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.news-detail-section h3 { margin: 8px 0 18px; font-size: 25px; }
.news-facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 3px solid var(--news-dark); border-bottom: 1px solid #c8d0cb; }
.news-fact { min-width: 0; padding: 18px; border-right: 1px solid #d4dad6; background: white; }
.news-fact:last-child { border-right: 0; }
.news-fact span { display: block; color: #68736d; font-size: 9px; text-transform: uppercase; }
.news-fact strong { display: block; margin-top: 8px; font-size: 18px; overflow-wrap: anywhere; }
.news-impact-section { margin-top: 26px; }
.news-impact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid #c8d0cb; background: white; }
.news-impact-grid article { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 11px; padding: 18px; }
.news-impact-grid article + article { border-left: 1px solid #d7ddd9; }
.news-impact-grid svg { width: 22px; height: 22px; color: var(--news-red); stroke-width: 1.8; }
.news-impact-grid h4 { margin: 1px 0 7px; font-size: 13px; }
.news-impact-grid p { margin: 0; color: #56615b; font-size: 11px; line-height: 1.55; }
.news-coverage-list { margin: 0; padding: 0; list-style: none; border: 1px solid #c8d0cb; background: white; }
.news-coverage-list li + li { border-top: 1px solid #d8dedb; }
.news-coverage-list a { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 16px; color: var(--news-dark); text-decoration: none; }
.news-coverage-list a:hover strong { color: var(--news-blue); text-decoration: underline; }
.news-coverage-list span { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.news-coverage-list small { color: #68736d; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.news-coverage-list strong { font-size: 12px; line-height: 1.35; }
.news-coverage-list svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--news-blue); }
.coverage-policy { margin: 9px 0 0; color: #68736d; font-size: 10px; line-height: 1.45; }
#news-detail-map { height: 390px; background: #dfe6e1; }
.news-detail-aside { position: sticky; top: 84px; align-self: start; }
.news-source-box { padding: 20px; border: 1px solid #c8d0cb; background: white; }
.news-source-box h3 { margin: 0 0 14px; font-size: 16px; }
.news-source-name { display: block; margin-bottom: 8px; font-size: 13px; }
.news-source-box p { color: #56615b; line-height: 1.5; }
.news-source-box a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid #d9dfdb; color: var(--news-blue); font-size: 11px; font-weight: 750; text-decoration: none; }
.news-source-box a svg { width: 15px; height: 15px; }
.media-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.media-item { position: relative; min-height: 190px; overflow: hidden; background: #1d2923; color: white; text-decoration: none; }
.media-item img { width: 100%; height: 190px; display: block; object-fit: cover; transition: transform 180ms ease; }
.media-item:hover img { transform: scale(1.02); }
.media-item span { position: absolute; inset: auto 12px 10px; z-index: 1; display: flex; flex-direction: column; gap: 3px; font-size: 10px; font-weight: 800; text-shadow: 0 1px 4px #000; }
.media-item span strong { font-size: 11px; }
.media-item span small { font-size: 9px; font-weight: 650; }
.media-item::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.72)); }
.media-credits { margin: 10px 0 0; padding: 0; list-style: none; border-top: 1px solid #d6dcd8; }
.media-credits li { display: flex; flex-wrap: wrap; gap: 8px 13px; align-items: center; padding: 10px 0; color: #59645e; font-size: 10px; }
.media-credits li span { margin-right: auto; font-weight: 700; }
.media-credits a { color: var(--news-blue); font-weight: 750; }
.media-empty { padding: 24px; border: 1px solid #c8d0cb; background: white; color: #59645e; line-height: 1.5; }
.original-copy { padding-left: 14px; border-left: 3px solid #c8d0cb; color: #58635d; line-height: 1.55; }
.source-disclaimer { padding: 15px; background: #f4ead1; color: #65501d; font-size: 11px; line-height: 1.5; }

@media (max-width: 1040px) {
  .news-layout,
  .news-detail-grid { grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; }
  .news-card { width: calc(50% - 25px); }
  .news-card::after { width: 25px; }
  .news-card:nth-of-type(odd)::after { right: -25px; }
  .news-card:nth-of-type(even)::after { left: -25px; }
  .news-card:nth-of-type(odd)::before { right: -34px; }
  .news-card:nth-of-type(even)::before { left: -34px; }
  .news-card:nth-of-type(odd) .news-timeline-label { left: calc(100% + 50px); }
  .news-card:nth-of-type(even) .news-timeline-label { right: calc(100% + 50px); }
  .news-detail-hero { grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; }
}

@media (max-width: 820px) {
  .news-page,
  .news-detail-page { width: min(100% - 24px, 680px); }
  .news-intro { padding-top: 42px; }
  .news-intro h2,
  .news-detail-hero h2 { font-size: 36px; }
  .news-filter { grid-template-columns: 1fr 1fr; }
  .news-search { grid-column: 1 / -1; }
  .news-layout,
  .news-detail-grid,
  .news-detail-hero { grid-template-columns: 1fr; }
  .news-map-panel { position: static; order: -1; }
  #news-map { height: 300px; }
  .news-detail-aside { position: static; }
  .news-detail-visual { grid-row: 1; }
  .news-impact-grid { grid-template-columns: 1fr; }
  .news-impact-grid article + article { border-top: 1px solid #d7ddd9; border-left: 0; }
}

@media (max-width: 560px) {
  .news-page,
  .news-detail-page { width: calc(100% - 20px); padding-bottom: 44px; }
  .news-intro h2,
  .news-detail-hero h2 { font-size: 31px; }
  .news-intro p,
  .news-detail-lead { font-size: 15px; }
  .news-filter { grid-template-columns: 1fr; }
  .news-search { grid-column: auto; }
  .news-layout { margin-top: 22px; }
  .news-timeline { gap: 24px; padding: 24px 0 0 22px; }
  .news-timeline::before { left: 5px; transform: none; }
  .news-card,
  .news-card:nth-of-type(odd),
  .news-card:nth-of-type(even) { width: 100%; align-self: stretch; }
  .news-card::after,
  .news-card:nth-of-type(odd)::after,
  .news-card:nth-of-type(even)::after { left: -17px; right: auto; width: 17px; }
  .news-card::before,
  .news-card:nth-of-type(odd)::before,
  .news-card:nth-of-type(even)::before { left: -24px; right: auto; }
  .news-timeline-label,
  .news-card:nth-of-type(odd) .news-timeline-label,
  .news-card:nth-of-type(even) .news-timeline-label {
    position: static;
    width: 100%;
    min-height: 52px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #d8dedb;
    background: #f7f9f8;
    text-align: left;
  }
  .news-timeline-label time { font-size: 14px; }
  .news-card-media,
  .news-card-media img,
  .news-card-visual { min-height: 180px; height: 180px; }
  .news-card-copy { min-height: 230px; padding: 17px; }
  .news-card-copy h3 { font-size: 21px; }
  .news-card-actions { align-items: end; }
  .news-map-panel > header { align-items: start; }
  .news-facts { grid-template-columns: 1fr; }
  .news-fact { border-right: 0; border-bottom: 1px solid #d4dad6; }
  .news-fact:last-child { border-bottom: 0; }
  .media-gallery { grid-template-columns: 1fr; }
  .news-detail-visual,
  .news-detail-visual img,
  .news-detail-visual .news-card-visual { min-height: 240px; height: 240px; }
}
