:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #172032;
  background: #f5f7fb;
}

* { box-sizing: border-box; }
body { margin: 0; }
.bar {
  align-items: center;
  background: #172032;
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 1.5rem max(1.25rem, calc((100% - 1120px) / 2));
}
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(1.65rem, 4vw, 2.25rem); margin-bottom: 0; }
.eyebrow { color: #9ee7d2; font-size: .75rem; font-weight: 800; letter-spacing: .12em; margin-bottom: .35rem; }
button {
  background: #9ee7d2; border: 0; border-radius: .4rem; color: #10231f; cursor: pointer;
  font: inherit; font-weight: 750; padding: .75rem 1rem;
}
button:disabled { cursor: wait; opacity: .65; }
.domain-menu {
  background: #fff; border-bottom: 1px solid #e1e6ef; display: flex; gap: .5rem;
  overflow-x: auto; padding: .75rem max(1.25rem, calc((100% - 1120px) / 2)); position: sticky; top: 0; z-index: 1;
}
.domain-menu a {
  border: 1px solid #cbd3e1; border-radius: 999px; color: #33415c; font-size: .88rem;
  font-weight: 700; padding: .45rem .75rem; text-decoration: none; white-space: nowrap;
}
.domain-menu a:hover, .domain-menu a:focus { background: #e5faf4; border-color: #087e62; color: #075f4b; }
main { margin: 0 auto; max-width: 1120px; padding: 2rem 1.25rem 3rem; }
.top-news { background: #172032; border-radius: .75rem; color: #fff; margin-bottom: 2rem; padding: 1.5rem; }
.top-heading { align-items: start; display: flex; gap: 1rem; justify-content: space-between; }
.top-heading .eyebrow { margin-bottom: .35rem; }
.top-heading h2 { font-size: 1.45rem; margin-bottom: 0; }
.top-explanation { color: #cbd3e1; font-size: .84rem; line-height: 1.45; margin: 0; max-width: 20rem; }
.top-list { display: grid; gap: .5rem; list-style: none; margin: 1.25rem 0 0; padding: 0; }
.top-item { align-items: start; background: #24314a; border-radius: .45rem; display: grid; gap: .75rem; grid-template-columns: 2rem 1fr; padding: .8rem; }
.rank { color: #9ee7d2; font-size: 1.1rem; font-weight: 800; text-align: center; }
.top-link { color: #fff; font-weight: 700; text-decoration: none; }
.top-link:hover, .top-link:focus { text-decoration: underline; }
.top-meta, .top-empty { color: #cbd3e1; font-size: .78rem; line-height: 1.4; margin: .35rem 0 0; }
.controls { display: flex; flex-wrap: wrap; gap: 1rem; }
label { display: grid; font-size: .85rem; font-weight: 700; gap: .4rem; }
input, select { background: #fff; border: 1px solid #cbd3e1; border-radius: .4rem; font: inherit; min-height: 2.6rem; padding: .55rem .7rem; }
input { min-width: min(100%, 320px); }
.status { color: #4d5a71; font-size: .9rem; margin: 1.75rem 0 1rem; }
.articles { display: grid; gap: 2rem; }
.domain-section { min-width: 0; scroll-margin-top: 4rem; }
.domain-title { border-bottom: 2px solid #9ee7d2; font-size: 1.35rem; margin-bottom: 1rem; padding-bottom: .45rem; }
.domain-articles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.article { background: #fff; border: 1px solid #e1e6ef; border-radius: .65rem; display: flex; flex-direction: column; padding: 1.25rem; }
.article-meta { align-items: center; color: #62708a; display: flex; font-size: .77rem; font-weight: 650; gap: .65rem; justify-content: space-between; }
.source-name { color: #087e62; }
h2 { font-size: 1.15rem; line-height: 1.35; margin: .85rem 0 .65rem; }
h2 a { color: inherit; text-decoration: none; }
h2 a:hover, h2 a:focus { text-decoration: underline; }
.summary { color: #4d5a71; font-size: .92rem; line-height: 1.5; }
.read-more { color: #087e62; font-size: .9rem; font-weight: 750; margin-top: auto; text-decoration: none; }
.empty { color: #4d5a71; grid-column: 1 / -1; }
@media (max-width: 520px) {
  .bar { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .article-meta { align-items: flex-start; flex-direction: column; gap: .2rem; }
  .top-heading { flex-direction: column; }
}
