.news-page {
  --news-panel: #edf3f8;
  --news-border: #b8cad9;
  --news-deep: #223b53;
  --news-strong: #254e70;
  --news-meta: #465e73;
  --news-teal: #acd9dc;
  --news-radius: 8px;
}

.news-page [hidden] { display: none !important; }
.news-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.news-main { padding-block: clamp(35px, 4.5vw, 66px) clamp(56px, 8vw, 110px); }
.news-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px 30px;
  padding-bottom: clamp(25px, 3.6vw, 41px);
  border-bottom: 1px solid var(--news-border);
}
.news-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--news-strong);
}
.news-kicker::before { content: ""; width: 28px; border-top: 2px solid #638cab; }
.news-intro h1 {
  margin: 0 0 11px;
  font-size: clamp(2.4rem, 5.5vw, 4.3rem);
  font-weight: 680;
  letter-spacing: -.06em;
  line-height: 1.1;
}
.news-lead { margin: 0; max-width: 40rem; color: var(--news-meta); }
.news-updated { margin: 0; color: var(--news-meta); font-size: .875rem; line-height: 1.45; }
.news-updated time { font-weight: 650; margin-inline: 8px; }
.news-updated span { white-space: nowrap; }

.news-featured { margin-top: 26px; }
.news-section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -.03em;
}
.news-section-title::before { content: ""; display: block; width: 4px; height: 1em; background: #476f8e; }
.news-featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.43fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(min-content, 1fr));
  gap: 14px;
}
.news-featured-grid[data-count="1"] { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
.news-featured-grid[data-count="2"] { grid-template-rows: auto; }
.news-card { overflow-wrap: anywhere; position: relative; min-width: 0; }
.news-featured-card {
  display: grid;
  grid-template-columns: minmax(0, .87fr) minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--news-border);
  border-radius: var(--news-radius);
  background: var(--news-panel);
}
.news-featured-lead {
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  color: #f1f7fc;
  background: var(--news-deep);
  border-color: var(--news-deep);
}
.news-featured-grid:not([data-count="3"]) .news-featured-lead { grid-row: auto; }
.news-featured-grid[data-count="2"] .news-featured-card:not(.news-featured-lead) {
  display: flex;
  flex-direction: column;
}
.news-image {
  position: relative;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1.46;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(140deg, #233e54, #496b84);
}
.news-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-image figcaption {
  position: absolute;
  bottom: 9px;
  left: 9px;
  max-width: calc(100% - 18px);
  padding: 2px 8px;
  color: #f1f7fc;
  background: #1c3249ed;
  border-radius: 3px;
  font-size: .75rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.news-featured-card .news-image { height: 100%; aspect-ratio: auto; min-height: 114px; }
.news-featured-lead .news-image, .news-featured-grid[data-count="2"] .news-featured-card .news-image {
  height: auto;
  aspect-ratio: 2.12;
}
.news-featured-grid[data-count="1"] .news-featured-lead .news-image { aspect-ratio: 3.2; }
.news-featured-card:nth-child(2) .news-image[data-fallback] img { object-position: 22% 50%; }
.news-featured-card:nth-child(3) .news-image[data-fallback] img { object-position: 77% 52%; }
.news-featured-card:nth-child(3) .news-image[data-fallback] img { filter: saturate(.77) hue-rotate(7deg); }
.news-card-content { min-width: 0; padding: clamp(15px, 2vw, 24px); }
.news-featured-card .news-card-content { align-self: center; }
.news-featured-lead .news-card-content { width: 100%; flex: 1; }
.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0 0 7px;
  font-size: .875rem;
  color: var(--news-meta);
  line-height: 1.45;
}
.news-meta > * { min-width: 0; }
.news-type {
  background: #dce9f3;
  color: #284c6b;
  border-radius: 3px;
  padding: 2px 7px;
  font-weight: 650;
  white-space: nowrap;
}
.news-featured-lead .news-type { color: #e6f6f8; background: #37586d; }
.news-featured-lead .news-meta { color: #d6e8f4; }
.news-featured-lead .news-meta time { color: var(--news-teal); }
.news-review-label { color: #226052; font-weight: 650; }
.news-featured-lead .news-review-label { color: var(--news-teal); }
.news-card h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: clamp(1rem, 1.65vw, 1.24rem);
  font-weight: 650;
  line-height: 1.37;
  letter-spacing: -.018em;
}
.news-featured-lead h3 { font-size: clamp(1.4rem, 3.05vw, 2.36rem); line-height: 1.2; }
.news-card-link { text-underline-offset: .18em; }
.news-card-link::after { content: ""; position: absolute; z-index: 1; inset: 0; }
.news-card:has(.news-card-link:focus-visible) { outline: 3px solid var(--news-strong); outline-offset: 4px; }
.news-card-link:focus-visible { outline: none; text-decoration: underline; }
.news-card-link:hover { text-decoration: underline; }
.news-card-link:hover::after { background: #496b8409; }
.news-original {
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 2;
  min-height: 26px;
  margin-top: 5px;
  color: var(--news-strong);
  font-size: .875rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.news-original:hover { text-decoration-thickness: 2px; }
.news-featured-lead .news-original { color: var(--news-teal); }
.news-featured-lead .news-original:focus-visible { outline-color: var(--news-teal); }
.news-card-summary {
  display: -webkit-box;
  margin: 8px 0 0;
  max-width: 78ch;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--news-meta);
  line-height: 1.65;
}
.news-featured-lead .news-card-summary { color: #e0ebf4; }

.news-feed { margin-top: clamp(32px, 5vw, 62px); }
.news-filters {
  background: var(--news-panel);
  border: 1px solid var(--news-border);
  border-radius: var(--news-radius);
  padding: clamp(14px, 2.4vw, 24px);
}
.news-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  border: 0;
  padding: 0 0 12px;
  margin: 0 0 5px;
  min-inline-size: 0;
  border-bottom: 1px solid var(--news-border);
}
.news-topics label {
  padding: 5px 13px;
  color: var(--news-deep);
  background: #f7fafd;
  border: 1px solid var(--news-border);
  border-radius: 30px;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.news-topics label:hover { border-color: var(--news-strong); }
.news-topics input:checked + label { background: var(--news-deep); color: #fff; border-color: var(--news-deep); }
.news-topics input:focus-visible + label { outline: 3px solid var(--news-strong); outline-offset: 3px; }
.news-advanced-filters > summary {
  width: fit-content;
  min-height: 44px;
  padding-block: 9px;
  color: var(--news-deep);
  font-size: .875rem;
  font-weight: 650;
  cursor: pointer;
}
.news-advanced-filters > summary:focus-visible { outline: 3px solid var(--news-strong); outline-offset: 3px; }
.news-filter-controls { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); gap: 10px 14px; }
.news-filter-controls label, .news-date-fields label { display: grid; min-width: 0; align-content: start; gap: 4px; }
.news-filter-controls label > span, .news-dates legend { font-size: .875rem; font-weight: 650; color: var(--news-deep); padding: 0; }
.news-filters input:not([type="radio"]), .news-filters select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 6px 10px;
  background: #fbfdff;
  border: 1px solid #a8bfce;
  border-radius: 5px;
  color: var(--news-deep);
  font-family: inherit;
  font-size: 1rem;
}
.news-filters input::placeholder { color: #52677a; font-size: .875rem; }
.news-filters select:focus-visible { outline: 3px solid var(--news-strong); outline-offset: 3px; }
.news-filter-end { display: flex; flex-wrap: wrap; align-items: end; gap: 15px 23px; margin-top: 11px; }
.news-dates { border: 0; padding: 0; margin: 0; min-inline-size: 0; flex: 1 1 20rem; max-width: 22rem; }
.news-date-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}
.news-date-fields label > span { color: var(--news-meta); font-size: .875rem; }
.news-dates small { font-size: .875rem; font-weight: 400; }
.news-filter-actions { display: flex; gap: 8px; margin-inline-start: auto; }
.news-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 7px 14px;
  border: 1px solid #a8bfce;
  border-radius: 5px;
  background: #f8fbfd;
  color: var(--news-deep);
  font: 650 .875rem/1.35 var(--sans);
  text-align: center;
  cursor: pointer;
}
.news-btn:hover { background: #e0edf5; }
.news-btn:disabled { cursor: default; opacity: .5; }
.news-btn-muted { background: transparent; }
.news-btn-primary { color: #fff; background: var(--news-deep); border-color: var(--news-deep); }
.news-btn-primary:hover { background: var(--news-strong); }
.news-filter-error { color: #952e32; margin: 8px 0 0; font-weight: 650; }
.news-result-count { min-height: 1.7em; margin: 13px 0 7px; color: var(--news-meta); font-size: .875rem; }
.news-state { border-block: 1px solid var(--news-border); padding: 20px 0; color: var(--news-meta); }
.news-state p { margin: 0; }
.news-state .news-btn { margin-top: 12px; }
.news-list { border-top: 1px solid var(--news-border); }
.news-list:empty { border: 0; }
.news-row {
  display: grid;
  grid-template-columns: minmax(7rem, .22fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px 12px;
  border-bottom: 1px solid var(--news-border);
}
.news-row .news-card-content { padding: 0; }
.news-row h3 { font-size: clamp(1.08rem, 2vw, 1.38rem); -webkit-line-clamp: unset; }
.news-row-date { color: var(--news-meta); font-size: .875rem; }
.news-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 25px; color: var(--news-meta); font-size: .875rem; }

.news-dialog {
  width: min(680px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  padding: 0;
  border: 1px solid var(--news-border);
  border-radius: var(--news-radius);
  background: #f2f7fb;
  color: var(--news-deep);
  box-shadow: 0 24px 80px #152b4552;
  overscroll-behavior: contain;
}
.news-dialog::backdrop { background: #132b46a8; }
.news-page:has(.news-dialog[open]) { overflow: hidden; }
.news-detail { padding: clamp(15px, 3vw, 30px); overflow-wrap: anywhere; }
.news-detail-bar { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin: 0 0 18px; }
.news-detail-bar form { flex: none; }
.news-detail h2 { min-width: 0; margin: 0; font-size: clamp(1.45rem, 4vw, 2rem); font-weight: 650; line-height: 1.25; letter-spacing: -.02em; }
.news-detail .news-image { margin: 15px 0; aspect-ratio: 2.2; border-radius: 5px; }
.news-detail .news-meta, .news-detail-summary { margin-bottom: 15px; }
.news-check-time { margin: 0 0 8px; color: var(--news-meta); font-size: .875rem; }
.news-check-time time { white-space: nowrap; }
.news-evidence { padding-top: 14px; margin-top: 16px; border-top: 1px solid var(--news-border); }
.news-evidence h3 { margin: 0 0 7px; font-size: 1rem; font-weight: 650; }
.news-evidence p { margin: 0 0 9px; }
.news-source-title { line-height: 1.5; }
.news-original-summary { margin-bottom: 10px; color: var(--news-meta); }
.news-original-summary summary { width: fit-content; color: var(--news-strong); cursor: pointer; }
.news-source-links { display: flex; flex-wrap: wrap; gap: 8px; }
.news-coverage-links { list-style: disc; margin: 0 0 9px; padding-inline-start: 1.4em; }
.news-coverage-links a { color: var(--news-strong); text-decoration: underline; text-underline-offset: .18em; }

@media (max-width: 1000px) {
  .news-featured-card:not(.news-featured-lead) { grid-template-columns: minmax(0, .68fr) minmax(0, 1fr); }
  .news-featured-card .news-card-content { padding: 12px 14px; }
  .news-featured-lead .news-card-content { padding: 16px 18px; }
}

@media (max-width: 800px) {
  .news-featured-grid, .news-featured-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; gap: 10px; }
  .news-featured-grid .news-featured-lead, .news-featured-grid[data-count="2"] .news-featured-lead { grid-column: 1 / -1; grid-row: auto; }
  .news-featured-grid[data-count] .news-featured-card:not(.news-featured-lead) { display: block; }
  .news-featured-grid[data-count="2"] .news-featured-card:not(.news-featured-lead) { grid-column: 1 / -1; }
  .news-featured-lead .news-image { aspect-ratio: 1.8; }
  .news-featured-grid[data-count] .news-featured-card:not(.news-featured-lead) .news-image {
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
  }
  .news-featured-card:not(.news-featured-lead) .news-image img {
    position: static;
    display: block;
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .news-featured-card h3 { display: block; overflow: visible; }
  .news-filter-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .news-search { grid-column: 1 / -1; }
}

@media (max-width: 500px) {
  .news-intro { padding-bottom: 21px; }
  .news-featured-grid[data-count="3"] { grid-template-columns: minmax(0, 1fr); }
  .news-featured-grid[data-count="1"] .news-featured-lead .news-image { aspect-ratio: 1.85; }
  .news-filter-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-dates { flex-basis: 100%; max-width: none; }
  .news-date-fields { grid-template-columns: minmax(0, 1fr); }
  .news-filter-actions { width: 100%; justify-content: end; }
  .news-row { grid-template-columns: minmax(0, 1fr); gap: 4px; padding-inline: 5px; }
}
