[hidden] { display: none !important; }

.ar17-home {
  margin: 0;
  background: #fff;
  color: var(--ar17-ink);
  font-family: var(--ar17-ui);
  -webkit-font-smoothing: antialiased;
}
.ar17-home *,
.ar17-home *::after,
.ar17-home *::before { box-sizing: border-box; }
.ar17-home button, .ar17-home input { font: inherit; }
.ar17-home button { cursor: pointer; }
.ar17-home a:focus-visible, .ar17-home button:focus-visible, .ar17-home input:focus-visible {
  outline: 2px solid var(--ar17-lime);
  outline-offset: 3px;
}

.ar17-feed {
  margin-top: 16px;
  padding: 18px 26px 14px;
  border: 1px solid var(--ar17-line);
  border-radius: 16px;
  background: white;
  scroll-margin-top: 144px;
}
.feed-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.feed-heading h1 {
  margin: 0;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 750;
  letter-spacing: -.055em;
}
[data-current-category="blocks"] .feed-heading h1 { color: var(--ar17-blocks); }
.search-box {
  width: min(285px, 52%);
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 35px;
  padding: 0 9px;
  border-radius: 8px;
  background: #f3f5f7;
  border: 1px solid var(--ar17-line);
  color: var(--ar17-muted);
}
.search-box:focus-within { border-color: var(--ar17-lime); }
.search-box svg { flex: none; }
.search-box input {
  min-width: 0;
  width: 100%;
  background: transparent;
  border: 0;
  font-size: 13px;
  color: var(--ar17-ink);
  padding-block: 7px;
}
.search-box input:focus-visible { outline: none; }
.search-box input::placeholder { color: var(--ar17-muted); }

.region-picker { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.region-picker button {
  padding: 6px 11px;
  min-height: 33px;
  border: 1px solid var(--ar17-line);
  border-radius: 999px;
  background: #fff;
  color: var(--ar17-muted);
  font-size: 13px;
}
.region-picker button[aria-pressed="true"] {
  color: #81340f;
  border-color: #f5d4be;
  background: #fff0e6;
  font-weight: 680;
}

.results-status {
  min-height: 10px;
  color: var(--ar17-muted);
  font-size: 12px;
  margin: 8px 0 0;
}
.results-status:empty { margin: 0; min-height: 0; }

.news-list { margin: 6px 0 0; padding: 0; list-style: none; }
.news-row + .news-row { border-top: 1px solid var(--ar17-line); }
.news-row-link {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) 14px;
  gap: 11px;
  align-items: start;
  padding: 8px 0;
  color: var(--ar17-ink);
  text-decoration: none;
}
.news-row-link:hover .headline { color: var(--ar17-lime); }
.news-row-link:focus-visible { border-radius: 4px; }
.news-row-content { min-width: 0; }
.source-mark {
  display: grid;
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 50%;
  background: #e5edf9;
  color: #203f6a;
  font-size: 10px;
  font-weight: 790;
  line-height: 1;
}
.source-mark[data-tint="1"] { background: #ede8f8; color: #553479; }
.source-mark[data-tint="2"] { background: #e0f1e9; color: #235f50; }
.source-mark[data-tint="3"] { background: #f7e8dc; color: #823f20; }
.source-mark[data-tint="4"] { background: #f6e7ed; color: #893c60; }
.source-mark[data-tint="5"] { background: #e8eaef; color: #383f56; }
.source-mark.has-source-icon {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--ar17-line);
}
.source-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.headline {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(15px, 2.1vw, 18px);
  font-weight: 590;
  line-height: 1.3;
  letter-spacing: -.018em;
}
.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 3px;
  color: var(--ar17-muted);
  font-size: 11px;
  line-height: 1.15;
}
.article-meta time::before,
.article-region::before {
  content: "·";
  margin-right: 6px;
}
.article-region { color: var(--ar17-blocks); }
.read-arrow {
  color: #657183;
  font-size: 21px;
  text-align: center;
  line-height: 22px;
}

.more-row { text-align: center; margin-top: 8px; }
.more-row:has(button[hidden]) { margin: 0; }
.ar17-button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 13px;
  border: 1px solid #dde5e9;
  border-radius: 7px;
  background: #f4f6f8;
  color: var(--ar17-ink);
  font-size: 13px;
  font-weight: 650;
}
.ar17-button:hover { background: #e7f1ee; border-color: #b1c8c0; }
.empty-state { padding: 16px 0; }
.empty-state h2 { margin: 0; font-size: 18px; }
.empty-state p { margin: 6px 0 12px; color: var(--ar17-muted); font-size: 14px; }

@media (max-width: 580px) {
  .ar17-feed {
    width: 100%;
    margin-top: 8px;
    padding: 12px 14px 10px;
    border-right: 0;
    border-left: 0;
    border-radius: 12px 12px 0 0;
  }
  .feed-heading { gap: 8px; }
  .feed-heading h1 { font-size: 22px; }
  .search-box { min-height: 33px; }
  .search-box input { font-size: 12px; }
  .news-row-link { grid-template-columns: 21px minmax(0, 1fr) 11px; gap: 8px; padding-block: 8px; }
  .source-mark { width: 21px; height: 21px; font-size: 9px; }
  .article-meta { font-size: 10px; margin-top: 3px; }
  .read-arrow { line-height: 19px; font-size: 19px; }
}

@media (max-width: 350px) {
  .feed-heading h1 { font-size: 20px; }
  .search-box { padding-inline: 6px; }
  .search-box svg { width: 14px; }
}
