/* Article rows: date, title, tags, arrow. Same 24px above and below.
   The date and arrow share the title's first line. Title size stays put
   so a long title wraps instead of shrinking. */

.news-list,
.rel-list {
  --article-title: 22px;
  --article-line: calc(var(--article-title) * 1.35);
  height: auto;
  aspect-ratio: auto;
  grid-template-rows: none;
  align-content: start;
}

/* Beat the homepage feature layout if it locks every row to an equal fraction. */
.home-news:has(.home-news-feature) .news-list {
  height: auto;
  aspect-ratio: auto;
  grid-template-rows: none;
  align-content: start;
}

.news-list > a.row,
.rel-list > a.row,
.home-news:has(.home-news-feature) .news-list > a.row {
  height: auto;
  min-height: 0;
  overflow: visible;
  align-items: start;
  padding: 24px 0;
}

.news-list > a.row .d-s,
.rel-list > a.row .d-s {
  font-size: var(--article-title);
  line-height: var(--article-line);
  letter-spacing: -0.005em;
  text-wrap: pretty;
}

.news-list > a.row > span:first-child,
.rel-list > a.row > span:first-child,
.news-list > a.row > .ar,
.rel-list > a.row > .ar {
  align-self: start;
  font-size: 13px;
  line-height: var(--article-line);
}

.news-list > a.row .body-s,
.rel-list > a.row .body-s {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.4;
}

@media (max-width: 767px) {
  .news-list,
  .rel-list {
    --article-title: 20px;
    grid-template-columns: 88px minmax(0, 1fr) 16px;
    column-gap: 12px;
  }
}

/* Insights search, topic chips, and the mobile filter sheet. */

.ins-tools { margin-top: 22px; }
.ins-search { position: relative; max-width: 560px; margin: 0 0 16px; }
.ins-search-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ins-search input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .95rem;
}
.ins-search input:focus {
  outline: 2px solid var(--meadow);
  outline-offset: 2px;
  border-color: var(--meadow);
}
.ins-results {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(16, 20, 16, .08);
  max-height: 340px;
  overflow: auto;
}
.ins-results ul { margin: 0; padding: 0; list-style: none; }
.ins-results a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 2px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.ins-results li:last-child a { border-bottom: 0; }
.ins-results a:hover { background: var(--paper, #f6f3ee); }
.ins-results .k {
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--meadow);
}
.ins-results .t {
  min-width: 0;
  font-size: .95rem;
  line-height: 1.3;
  color: var(--ink);
}
.ins-results .m {
  grid-column: 2;
  font-size: 12.5px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ins-results .ins-none { margin: 0; padding: 14px 16px; color: var(--ink-3); font-size: .9rem; }
.ins-controls { display: flex; align-items: center; gap: 8px; }
.ins-scroll {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 8px;
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.ins-scroll::-webkit-scrollbar { display: none; }
.ins-scroll .pill { flex: none; }
.ins-filter-btn {
  flex: none;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--meadow);
  background: var(--meadow);
  color: #fff;
  font: inherit;
  font-size: .86rem;
  cursor: pointer;
}
.ins-filter-btn:focus-visible { outline: 2px solid var(--meadow); outline-offset: 2px; }
.ins-active { margin: 8px 0 0; font-size: 13px; color: var(--ink-2); }
.ins-refine {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.ins-country {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ins-country select,
.ins-sheet select {
  height: 44px;
  border-radius: 999px;
  border: 1px solid #858b81;
  padding: 0 14px;
  background: #fff;
  color: var(--ink-2);
  font: inherit;
  font-size: .86rem;
  text-transform: none;
  letter-spacing: 0;
}
.ins-empty { margin: 18px 0 8px; color: var(--ink-3); font-size: .98rem; }
.ins-sheet {
  border: 0;
  padding: 0;
  width: min(100%, 460px);
  max-height: min(78vh, 640px);
  margin: auto auto 0;
  border-radius: 18px 18px 0 0;
  background: #2f4e0b;
  color: #fff;
}
.ins-sheet::backdrop { background: rgba(16, 20, 16, .46); }
.ins-sheet-form { display: flex; flex-direction: column; max-height: min(78vh, 640px); }
.ins-sheet-head, .ins-sheet-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
}
.ins-sheet-head { border-bottom: 1px solid rgba(255, 255, 255, .16); }
.ins-sheet-foot { border-top: 1px solid rgba(255, 255, 255, .16); }
.ins-sheet h3 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-weight: 460;
  font-size: 1.35rem;
  letter-spacing: 0;
}
.ins-sheet-head button {
  width: 44px;
  height: 44px;
  margin-right: -8px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.ins-sheet-body { overflow: auto; padding: 14px 18px 18px; }
.ins-sheet-k {
  margin: 14px 0 8px;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #dfe6d4;
}
.ins-sheet-body .ins-sheet-k:first-child { margin-top: 0; }
.ins-sheet-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ins-sheet .pill {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .38);
}
.ins-sheet .pill[aria-pressed="true"] {
  background: #f6f3ee;
  color: #2f4e0b;
  border-color: #f6f3ee;
}
.ins-sheet select {
  width: 100%;
  margin-top: 4px;
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .4);
}
.ins-sheet select option { color: #101410; }
.ins-sheet-foot #ins-clear {
  height: 44px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: .9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.ins-apply {
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #f6f3ee;
  color: #2f4e0b;
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
}
.ins-sheet button:focus-visible,
.ins-sheet select:focus-visible { outline: 2px solid #f6f3ee; outline-offset: 2px; }

@media (min-width: 1024px) {
  .ins-scroll { flex-wrap: wrap; overflow: visible; }
  .ins-filter-btn, .ins-active { display: none; }
  .ins-refine { display: flex; }
}
@media (max-width: 1023px) {
  .ins-refine { display: none; }
}
