:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #202c26;
  background: #f6f5ef;
  line-height: 1.55;
}
body { margin: 0; }
:focus-visible, #agent-app :focus-visible {
  outline: 3px solid #245044;
  outline-offset: 2px;
}
.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  transform: translateY(calc(-100% - 1.25rem));
  background: #fff;
  color: #245044;
  border: 1px solid #d5d9cf;
  border-radius: .6rem;
  padding: .45rem .65rem;
}
.skip-link:focus { transform: none; }
#agent-app .ns-header, #agent-app .ns-consent-actions { flex-wrap: wrap; }
.masthead, main {
  width: min(68rem, calc(100% - 2rem));
  margin: auto;
}
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  border-bottom: 1px solid #d5d9cf;
}
.masthead nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.brand { font-weight: 750; text-decoration: none; }
main { padding: 2rem 0 3rem; }
h1 { font: 500 clamp(2.5rem, 6vw, 4.5rem)/1.05 Georgia, serif; margin: 0; }
.lede { margin-bottom: 2rem; }
.panel {
  background: #fff;
  border: 1px solid #d5d9cf;
  border-radius: .6rem;
  margin: 1rem 0;
  padding: 1.25rem;
}
.panel h2 { margin: 0 0 .75rem; }
#sources > summary { font-size: 1.3rem; font-weight: 700; cursor: pointer; }
#sources form { margin-top: 1rem; }
#sources li { margin: .4rem 0; }
#sources li button { text-align: left; }
#evidence-detail { border-top: 1px solid #d5d9cf; }
a { color: #245044; }
#comparison-form, #evidence-form { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
#comparison-form button, #sources button, #sources input, #metric {
  font: inherit;
  padding: .45rem .65rem;
  border-radius: .3rem;
  border: 1px solid #7a8d80;
}
#comparison-form button, #sources button[type="submit"] { background: #245044; color: #fff; }
#comparison-form button:disabled { opacity: .55; }
#sources li button { background: #f6f5ef; color: #245044; }
.table-wrap { overflow-x: auto; }
#comparison table { width: 100%; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; }
#comparison th, #comparison td { padding: .6rem; border-bottom: 1px solid #d5d9cf; vertical-align: top; }
#comparison thead { background: #edf2ed; }

#comparison .table-wrap + .table-wrap { margin-top: 1.25rem; }
caption { text-align: left; font-weight: 700; padding-block: .45rem; }
.claim-list, .evidence-list { display: grid; gap: .6rem; }
.evidence-list { padding-inline-start: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.evidence-list li { padding: .7rem; border: 1px solid #d8e4de; border-radius: .4rem; }
.evidence-list span, .growth-citations { display: block; font-size: .85rem; }
button.evidence-link { background: none; border: 0; color: #245044; text-decoration: underline; padding: 0; text-align: left; }
button.evidence-link:hover { background: transparent; color: #102d24; }
#evidence-drawer { max-width: min(38rem, calc(100% - 2rem)); border: 1px solid #d8e4de; border-radius: .5rem; padding: 1.5rem; }
#evidence-drawer::backdrop { background: rgb(17 34 28 / 58%); }
#evidence-drawer form { display: flex; justify-content: flex-end; }
.chat-controls { display: flex; gap: .55rem; align-items: center; flex-wrap: wrap; }
#settings { margin-block: 1rem; padding: 1rem; border: 1px solid #d8e4de; border-radius: .5rem; }
footer { width: min(100% - 2rem, 72rem); margin: 0 auto 2rem; }
footer nav { display: flex; gap: .7rem 1.25rem; flex-wrap: wrap; }
