@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: light;
  --bg: #e7f1ee;
  --surface: #f5fffd;
  --surface-2: #eef8f4;
  --surface-3: #e4f3ee;
  --line: #d4e8e1;
  --line-strong: #a9d3c6;
  --text: #063a2e;
  --muted: #3f6b5f;
  --forest: #034638;
  --lime: #034638;
  --lime-dim: #1f7d5c;
  --accent: #57c6a3;
  --danger: #a23f35;
  --warning: #845919;
  --radius: 0;
  --page-padding: 48px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 16px;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
a {
  color: var(--forest);
  text-decoration: none;
}
a:hover {
  color: var(--lime-dim);
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.passage:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  background: var(--forest);
  color: var(--surface);
  padding: 12px 18px;
  z-index: 30;
}
.skip-link:focus {
  top: 8px;
}

/* One shared shell keeps every route in the same reading environment. */
.site-header {
  min-height: 80px;
  display: flex;
  align-items: stretch;
  max-width: 1600px;
  margin: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 19px 28px;
  margin-right: auto;
  font:
    700 20px/1.05 Manrope,
    sans-serif;
  letter-spacing: -0.03em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  background: var(--forest);
  color: var(--surface);
  font:
    800 21px/1 Manrope,
    sans-serif;
}
.brand-subtitle {
  display: block;
  color: var(--muted);
  font:
    500 8px/1 "DM Sans",
    sans-serif;
  letter-spacing: 3px;
  margin-top: 7px;
}
.header-actions {
  display: flex;
  align-items: stretch;
}
.header-note {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 22px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.header-note span {
  color: var(--lime-dim);
}
.header-actions .button {
  border-top: 0;
  border-bottom: 0;
  border-right: 0;
  display: flex;
  align-items: center;
}
.header-actions .primary {
  color: var(--surface);
}
.header-actions .menu-toggle {
  display: none;
}
.app-shell {
  display: flex;
  align-items: stretch;
  max-width: 1600px;
  min-height: calc(100vh - 143px);
  margin: auto;
  background: var(--surface);
  border-inline: 1px solid var(--line);
}
.sidebar {
  width: 252px;
  flex: 0 0 252px;
  padding: 28px 0 22px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
}
.main-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.nav-group + .nav-group {
  margin-top: 28px;
}
.nav-label {
  margin: 0 0 10px;
  padding: 0 22px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.main-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 19px;
  border-left: 3px solid transparent;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--text);
}
.main-nav a:hover {
  background: var(--surface-3);
}
.main-nav a[aria-current="page"] {
  border-left-color: var(--forest);
  background: #dff4eb;
  color: var(--forest);
  font-weight: 700;
}
.nav-icon {
  flex: 0 0 17px;
  text-align: center;
  color: var(--lime-dim);
  font-size: 15px;
}
.sidebar-collection {
  margin-top: auto;
  padding: 22px 22px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  overflow-wrap: anywhere;
  font-size: 12px;
}
.sidebar-collection .eyebrow {
  margin-bottom: 9px;
}
.sidebar-collection p:last-child {
  margin: 0;
}
main {
  flex: 1;
  min-width: 0;
  padding: 0 var(--page-padding) 48px;
}
#app {
  min-width: 0;
}
.site-footer {
  max-width: 1600px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 21px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.site-footer > span:first-child {
  font-weight: 600;
  color: var(--forest);
}

h1,
h2,
h3,
h4 {
  font-family: Manrope, system-ui, sans-serif;
  line-height: 1.25;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}
h1 {
  font-size: clamp(36px, 3.7vw, 52px);
  font-weight: 500;
  line-height: 1.08;
  margin: 20px 0 16px;
  white-space: pre-line;
  letter-spacing: -0.035em;
  text-wrap: pretty;
}
h2 {
  font-size: 24px;
  font-weight: 600;
}
h3 {
  font-size: 17px;
  font-weight: 600;
}
h4 {
  font-size: 14px;
  margin: 20px 0 9px;
}
p {
  margin: 0 0 15px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--lime-dim);
  line-height: 1.5;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
  line-height: 1.65;
}
.lede {
  max-width: 600px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-width: 0;
}
.section-heading h2 {
  font-size: 17px;
  margin: 0 0 12px;
}
.section-heading > * {
  min-width: 0;
}

/* The soft hero wash is decorative and never sits over the form. */
.question-area {
  position: relative;
  isolation: isolate;
  padding-top: 58px;
  max-width: 900px;
}
.question-area::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  top: 0;
  right: calc(-1 * var(--page-padding));
  left: calc(-1 * var(--page-padding));
  height: 420px;
  background:
    radial-gradient(650px 330px at 75% -10%, #c9f2e3, transparent 72%),
    radial-gradient(380px 230px at 100% 10%, #f0b06766, transparent 72%);
}
.intro .lede {
  margin-bottom: 32px;
}
.question-form {
  margin-top: 30px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}
.question-form:focus-within {
  border-color: var(--forest);
  box-shadow: 0 0 0 1px var(--forest);
}
textarea {
  display: block;
  width: 100%;
  min-height: 114px;
  max-height: 300px;
  resize: vertical;
  padding: 21px 23px 15px;
  border: 0;
  background: transparent;
  color: var(--text);
  font:
    400 19px/1.55 Manrope,
    sans-serif;
}
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
.question-form textarea:focus-visible {
  outline-offset: -4px;
}
.form-bottom {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}
.form-bottom > .small {
  align-self: center;
  padding: 13px 22px;
  font-size: 11px;
}
.form-actions {
  display: flex;
  flex: none;
  align-items: stretch;
  gap: 0;
}
.form-actions .button {
  border-top: 0;
  border-bottom: 0;
  border-right: 0;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 11px 17px;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.5;
  transition: background 0.15s;
}
.primary {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--surface);
}
.primary:hover {
  background: #02392d;
  color: var(--surface);
}
.secondary {
  background: var(--surface-2);
  color: var(--forest);
}
.secondary:hover {
  background: var(--surface-3);
}
.button-icon {
  align-self: stretch;
  display: grid;
  place-items: center;
  border-left: 1px solid currentColor;
  margin: -11px -17px -11px 7px;
  padding: 11px 15px;
  font-size: 17px;
}
.question-examples {
  margin-top: 38px;
}
.question-examples .section-heading {
  margin-bottom: 14px;
}
.question-examples .section-heading p {
  margin-bottom: 0;
}
.example-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.example-question {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  text-align: left;
  font-size: 14px;
  line-height: 1.55;
  padding: 19px 20px;
  color: var(--text);
  background: var(--surface);
  border: 0;
  border-radius: 0;
}
.example-question:hover {
  background: var(--surface-2);
}
.example-tag {
  color: var(--lime-dim);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.example-text {
  font-weight: 500;
}
.text-button {
  display: inline-block;
  background: none;
  border: 0;
  color: var(--lime-dim);
  font-size: 12px;
  padding: 2px 0;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.text-button:hover {
  color: var(--forest);
}
.question-area > .text-button {
  margin-top: 22px;
}
.question-library {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.question-option {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.question-option .text-button {
  display: block;
  font-size: 14px;
  margin: 12px 0;
}
.question-area.has-run {
  max-width: none;
  padding-top: 28px;
}
.question-area.has-run::before {
  display: none;
}
.question-area.has-run .intro,
.question-area.has-run .question-examples,
.question-area.has-run > .text-button,
.question-area.has-run .question-library {
  display: none;
}
.question-area.has-run .question-form {
  margin-top: 0;
}
.question-area.has-run textarea {
  min-height: 80px;
  font-size: 16px;
}

/* Answer facts, dates and their sources retain equal visual prominence. */
.run-output:empty,
.answer-slot:empty {
  display: none;
}
.run-output {
  margin-top: 34px;
}
.question-heading {
  padding-top: 8px;
  margin-bottom: 26px;
}
.question-heading h2 {
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.25;
  max-width: 960px;
  font-weight: 500;
  margin: 13px 0 0;
  text-wrap: pretty;
}
.answer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 1fr);
  gap: 26px;
  align-items: start;
}
.answer-main,
.sources-pane {
  min-width: 0;
}
.answer-card {
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--forest);
  background: var(--surface);
  padding: 24px;
}
.answer-header {
  margin: 0 0 18px;
}
.answer-heading {
  margin-bottom: 14px;
}
.answer-heading .eyebrow {
  margin-bottom: 6px;
}
.answer-heading h2 {
  font-size: 18px;
  margin: 0;
}
.answer-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.answer-header .answer-meta {
  margin-bottom: 0;
}
.answer-date-note {
  display: block;
  flex-basis: 100%;
  font-size: 11px;
  color: var(--muted);
}
.answer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.answer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.export-notice {
  width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.badge.success {
  background: #dff4eb;
  color: var(--forest);
  border-color: var(--line-strong);
}
.badge.warning {
  background: #fbf4e8;
  color: var(--warning);
  border-color: #e6d3b4;
}
.badge.danger {
  color: var(--danger);
  border-color: #e9c3b9;
  background: #fff1ed;
}
.answer-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: #f7fcfa;
  margin-bottom: 22px;
}
.answer-stat {
  min-width: 0;
  padding: 11px 12px;
  border-right: 1px solid var(--line);
}
.answer-stat:last-child {
  border-right: 0;
}
.answer-stat strong {
  display: block;
  font:
    500 22px/1.3 Manrope,
    sans-serif;
  color: var(--forest);
}
.answer-stat span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.answer-prose {
  font-family: Manrope, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.85;
  overflow-wrap: anywhere;
  color: #0b2f26;
}
.answer-prose p {
  white-space: pre-line;
}
.answer-prose p + p {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 20px;
}
.answer-prose p:last-child {
  margin-bottom: 0;
}
.citation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: baseline;
  min-width: 24px;
  min-height: 24px;
  border: 1px solid var(--line-strong);
  background: #dff4eb;
  color: var(--forest);
  font:
    600 12px/1 "DM Sans",
    sans-serif;
  margin: 0 3px;
  padding: 4px;
}
.citation:hover {
  background: var(--forest);
  color: var(--surface);
}
.answer-footnote {
  margin: 24px -24px -24px;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  background: #f7fcfa;
  font-size: 10px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.sources-pane > .section-heading {
  margin-bottom: 8px;
}
.sources-pane > .section-heading h2 {
  margin: 0;
  font-size: 16px;
}
.sources-pane > .small {
  font-size: 11px;
  margin-bottom: 18px;
}
.source-list {
  display: grid;
  gap: 14px;
}
.source-card {
  background: #f7fcfa;
  border: 1px solid var(--line);
  border-left: 3px solid var(--forest);
  padding: 17px;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}
.source-list .source-card {
  margin-bottom: 0;
}
.source-card.authority-2 {
  border-left-color: #568879;
}
.source-card.authority-3 {
  border-left-color: #b88c4c;
}
.source-heading {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 12px;
}
.source-icon {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  background: #e4f3ee;
  color: var(--forest);
  font-size: 8px;
  letter-spacing: 0.5px;
  font-weight: 700;
}
.source-identity {
  min-width: 0;
}
.source-card h3 {
  margin: 0 0 9px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}
.source-heading h3 {
  margin-bottom: 0;
}
.source-publisher {
  font-size: 11px;
  color: var(--lime-dim);
  margin-bottom: 8px;
}
.source-dates {
  display: flex;
  flex-direction: column;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  margin-bottom: 13px;
}
.passage {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
  scroll-margin-top: 24px;
  transition:
    background 0.2s,
    box-shadow 0.2s;
}
.passage.highlighted {
  background: #dff4eb;
  box-shadow: 0 0 0 8px #dff4eb;
}
.citation-number {
  color: var(--forest);
  background: #dff4eb;
  border-color: var(--line-strong);
  min-width: 24px;
  justify-content: center;
  margin-bottom: 10px;
}
blockquote {
  border-left: 2px solid var(--line-strong);
  padding: 0 0 0 12px;
  margin: 0 0 12px;
  color: var(--muted);
  white-space: pre-line;
  font-size: 12px;
  line-height: 1.8;
}
.source-url {
  display: block;
  font-size: 11px;
  line-height: 1.7;
  color: var(--lime-dim);
  margin-top: 13px;
  overflow-wrap: anywhere;
}
.passage-link {
  display: inline-block;
  color: var(--lime-dim);
  font-size: 11px;
  margin: 0 0 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.source-meta {
  margin: 8px 0 0;
  font-size: 10px;
}

.disclosure {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0 18px;
  margin: 14px 0;
  overflow-wrap: anywhere;
}
.disclosure > summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  padding: 16px 0;
  line-height: 1.6;
  color: var(--text);
}
.disclosure > summary::marker {
  color: var(--lime-dim);
}
.disclosure[open] > summary {
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.disclosure[open] {
  padding-bottom: 16px;
}
.disclosure p {
  margin-bottom: 12px;
}
.disclosure-heading {
  margin-right: 12px;
}
.trust-summary-meter {
  display: inline-block;
  width: 85px;
  height: 6px;
  margin: 0 10px 2px 0;
  vertical-align: middle;
}
.disclosure-count {
  display: inline-block;
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.passage .disclosure {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
}
.passage .disclosure summary {
  padding: 7px 0;
  font-size: 11px;
  color: var(--muted);
}
.trust-components {
  display: grid;
  gap: 15px;
}
.trust-row strong {
  font-size: 12px;
  text-transform: capitalize;
}
.trust-row .section-heading > span {
  font-size: 12px;
  color: var(--forest);
}
meter {
  display: block;
  width: 100%;
  height: 7px;
  margin: 10px 0;
  accent-color: var(--lime-dim);
}
meter::-webkit-meter-bar {
  background: var(--surface-3);
  border: 0;
  border-radius: 0;
}
meter::-webkit-meter-optimum-value {
  background: var(--lime-dim);
  border-radius: 0;
}
meter::-moz-meter-bar {
  background: var(--lime-dim);
}
.limits {
  font-size: 12px;
  color: var(--muted);
  padding-left: 18px;
  line-height: 1.8;
}
.check {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.check:last-child {
  border: 0;
}
.check strong {
  font-size: 12px;
  margin-left: 9px;
}
.check p {
  margin: 7px 0 0;
}
.research {
  margin: 0;
  background: #f7fcfa;
  border-color: var(--line-strong);
}
.research > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.research-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.research-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--forest);
  background: #dff4eb;
}
.research-note {
  font-size: 11px;
}
.elapsed {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  white-space: nowrap;
}
.timeline {
  padding-left: 12px;
  border-left: 1px solid var(--line-strong);
  margin: 18px 0 4px 5px;
}
.timeline-step {
  padding: 12px 0 12px 14px;
  font-size: 12px;
  position: relative;
}
.timeline-step::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--line-strong);
  position: absolute;
  left: -16px;
  top: 20px;
}
.timeline-step.active::before {
  background: var(--lime-dim);
  animation: pulse 1.5s infinite;
}
.timeline-step .section-heading > span:first-child {
  font-weight: 600;
}
.timeline-step p {
  margin: 6px 0 0;
}
.timeline-index {
  color: var(--muted);
  font-size: 10px;
  margin-right: 7px;
}
.search-results {
  margin: 8px 0 12px 14px;
  border: 1px solid var(--line);
  padding: 12px;
  background: var(--surface);
}
.search-results > .small {
  margin: 9px 0 0;
}
.found-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.found-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.5;
  min-width: 0;
  overflow-wrap: anywhere;
}
.found-row:last-child {
  border-bottom: 0;
}
.found-row a {
  color: var(--forest);
}
.found-row .small {
  font-size: 10px;
}
.answer-slot + .research {
  margin-top: 22px;
}

/* Dense, bordered records share the same system on Corpus, Costs and Evaluation. */
.explore-page {
  padding-top: 44px;
}
.explore-page h1 {
  font-size: clamp(32px, 3.4vw, 44px);
}
.explore-page > .lede {
  max-width: 730px;
  margin-bottom: 30px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #f7fcfa;
  border: 1px solid var(--line);
  margin: 25px 0 30px;
}
.metric {
  min-width: 0;
}
.metrics > .metric {
  padding: 19px 20px;
  border-right: 1px solid var(--line);
}
.metrics > .metric:last-child {
  border-right: 0;
}
.metric .eyebrow {
  display: block;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1.25px;
}
.metric strong {
  display: block;
  font-size: 26px;
  font-family: Manrope, sans-serif;
  font-weight: 500;
  margin: 9px 0 5px;
  overflow-wrap: anywhere;
  line-height: 1.4;
}
.metric small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.receipt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 9px 0;
}
.receipt-grid .metric strong {
  font-size: 19px;
}
.corpus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}
.document-card {
  background: #f7fcfa;
  border: 1px solid var(--line);
  padding: 21px;
  overflow-wrap: anywhere;
}
.document-card h3 {
  line-height: 1.5;
  font-size: 15px;
  margin: 13px 0 10px;
}
.document-card > .small {
  font-size: 11px;
  margin-bottom: 4px;
}
.document-card .answer-meta {
  margin-bottom: 12px;
}
.document-excerpt {
  white-space: pre-line;
  font-size: 12px;
  line-height: 1.8;
}
.empty-state {
  border: 1px dashed var(--line-strong);
  background: #f7fcfa;
  padding: 28px;
  margin: 26px 0;
}
.empty-state h3 {
  font-size: 18px;
  margin-top: 0;
}
.empty-state p {
  font-size: 13px;
  max-width: 750px;
  margin-bottom: 0;
}
select,
input {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 10px 12px;
  font-size: 12px;
  max-width: 100%;
  min-width: 0;
}
input[type="checkbox"] {
  accent-color: var(--forest);
}
.operator-form {
  display: grid;
  gap: 10px;
  max-width: 540px;
}
.operator-form label {
  font-size: 12px;
}
.operator-form button {
  justify-self: start;
  margin-top: 9px;
}
.view-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.view-controls label {
  font-size: 12px;
  color: var(--muted);
}
.evaluation-list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}
.evaluation-card {
  border: 1px solid var(--line);
  background: #f7fcfa;
  padding: 22px;
}
.evaluation-card h3 {
  font-size: 17px;
  line-height: 1.55;
  margin: 8px 0 12px;
}
.difficulty-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.75;
}
.evaluation-card > .disclosure {
  background: var(--surface);
  margin-bottom: 0;
}
.comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  font-size: 13px;
  line-height: 1.9;
  white-space: pre-line;
}
.comparison > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.comparison > div + div {
  border-left: 1px solid var(--line);
  padding-left: 22px;
}
.evaluation-card .answer-layout {
  grid-template-columns: 1fr;
  gap: 22px;
}
.evaluation-card .answer-prose {
  font-size: 15px;
}
.model-cost-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.model-cost-row:last-child {
  border-bottom: 0;
}
.cost-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}
.cost-run {
  border: 1px solid var(--line);
  background: #f7fcfa;
  padding: 22px;
}
.cost-run h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}
.cost-run .section-heading {
  align-items: flex-start;
  margin-bottom: 9px;
}
.cost-amount {
  color: var(--forest);
  font:
    600 18px/1.6 Manrope,
    sans-serif;
  white-space: nowrap;
}
.cost-run > .disclosure {
  background: var(--surface);
}
.attempts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.attempt {
  font-size: 11px;
  border: 1px solid var(--line);
  padding: 13px;
  overflow-wrap: anywhere;
}
.attempt p {
  margin: 9px 0;
}
.collection-event {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.collection-event > a {
  display: block;
  font-size: 12px;
  margin: 9px 0;
}
.collection-event p {
  margin-bottom: 5px;
}
.notice {
  padding: 15px 17px;
  border: 1px solid #e6d3b4;
  background: #fbf4e8;
  color: var(--warning);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.error-panel {
  border: 1px solid #e9c3b9;
  border-left: 3px solid var(--danger);
  background: #fff1ed;
  padding: 24px;
  overflow-wrap: anywhere;
}
.error-panel h3 {
  color: var(--danger);
  margin-top: 0;
}
.error-panel p {
  font-size: 13px;
}
.error-text {
  color: var(--danger);
}

.updates-page {
  max-width: 1180px;
  margin: 0 auto;
}
.update-panel,
.update-source,
.update-job {
  border: 1px solid var(--line);
  background: #f7fcfa;
  padding: 22px;
  margin: 16px 0;
  overflow-wrap: anywhere;
}
.update-sources {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.update-source {
  margin: 0;
}
.update-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
  font-size: 13px;
}
.update-field input,
.update-field select {
  width: 100%;
  max-width: 400px;
  padding: 11px 12px;
  font-size: 13px;
}
.update-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  font-size: 13px;
}
.update-check input {
  width: 18px;
  height: 18px;
  flex: none;
}
.update-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.update-result {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.update-history {
  margin-top: 36px;
}
.updates-page .metric strong {
  font-size: 22px;
}
.update-job.failed,
.update-job.interrupted {
  border-left: 3px solid var(--danger);
}
.update-job.running {
  border-left: 3px solid var(--lime-dim);
}

@keyframes pulse {
  50% {
    opacity: 0.45;
  }
}
@media (min-width: 1450px) {
  .corpus-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1200px) {
  :root {
    --page-padding: 32px;
  }
  .header-note {
    padding-inline: 16px;
  }
  .answer-layout {
    grid-template-columns: minmax(0, 1.3fr) minmax(270px, 1fr);
    gap: 20px;
  }
  .answer-prose {
    font-size: 16px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metrics > .metric {
    border-bottom: 1px solid var(--line);
  }
  .metrics > .metric:nth-child(even) {
    border-right: 0;
  }
  .metrics > .metric:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}
@media (max-width: 1100px) {
  .answer-layout {
    grid-template-columns: 1fr;
  }
  .source-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
  .header-note {
    display: none;
  }
  .question-examples .section-heading {
    flex-wrap: wrap;
    gap: 6px;
  }
  .update-sources {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 800px) {
  :root {
    --page-padding: 24px;
  }
  .site-header {
    min-height: 72px;
  }
  .brand {
    padding: 17px 22px;
    font-size: 19px;
  }
  .header-actions > .button {
    display: none;
  }
  .header-actions .menu-toggle,
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-left: 1px solid var(--line);
    background: var(--surface);
    color: var(--forest);
    font-size: 13px;
    font-weight: 600;
    padding: 15px 20px;
  }
  .app-shell {
    display: block;
    min-height: calc(100vh - 158px);
  }
  .sidebar {
    display: none;
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 22px 0;
  }
  .sidebar.is-open {
    display: flex;
  }
  .main-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 0;
  }
  .nav-group + .nav-group {
    margin-top: 0;
  }
  .sidebar-collection {
    margin: 20px 22px 0;
    padding: 18px 0 0;
  }
  main {
    padding-bottom: 36px;
  }
  .question-area {
    padding-top: 38px;
  }
  h1 {
    font-size: 40px;
  }
  .explore-page {
    padding-top: 34px;
  }
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 20px 24px;
  }
}
@media (max-width: 600px) {
  :root {
    --page-padding: 20px;
  }
  h1 {
    font-size: 36px;
    line-height: 1.12;
  }
  .lede {
    font-size: 14px;
  }
  .brand {
    padding-left: 20px;
    font-size: 18px;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
  }
  .brand-subtitle {
    letter-spacing: 2.5px;
  }
  .header-actions .menu-toggle {
    padding-inline: 16px;
  }
  .question-form textarea {
    font-size: 16px;
    padding: 18px;
    min-height: 110px;
  }
  .form-bottom {
    flex-direction: column;
  }
  .form-bottom > .small {
    align-self: stretch;
    padding: 12px 18px;
  }
  .form-actions {
    width: 100%;
    border-top: 1px solid var(--line);
  }
  .form-actions .button {
    flex: 1;
    min-height: 46px;
  }
  .form-actions .button:first-child {
    border-left: 0;
  }
  .example-list,
  .question-library,
  .corpus-grid,
  .source-list,
  .comparison,
  .attempts {
    grid-template-columns: 1fr;
  }
  .question-examples {
    margin-top: 30px;
  }
  .example-question {
    padding: 17px 18px;
  }
  .question-heading h2 {
    font-size: 25px;
  }
  .answer-card {
    padding: 18px;
  }
  .answer-header {
    margin-bottom: 16px;
  }
  .answer-footnote {
    margin: 22px -18px -18px;
    padding: 13px 18px;
  }
  .answer-prose {
    font-size: 16px;
  }
  .answer-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .answer-stat {
    border-bottom: 1px solid var(--line);
  }
  .answer-stat:nth-child(even) {
    border-right: 0;
  }
  .answer-stat:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
  .source-card {
    padding: 16px;
  }
  .disclosure {
    padding-inline: 14px;
  }
  .disclosure-heading {
    margin-right: 7px;
  }
  .research > summary {
    flex-wrap: wrap;
    gap: 7px;
  }
  .search-results {
    margin-left: 0;
    padding: 10px;
  }
  .timeline-step {
    padding-left: 8px;
  }
  .metrics > .metric {
    padding: 16px 14px;
  }
  .metric strong {
    font-size: 22px;
  }
  .metric .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .receipt-grid {
    gap: 15px;
  }
  .receipt-grid .metric strong {
    font-size: 17px;
  }
  .evaluation-card,
  .cost-run,
  .update-panel,
  .update-source,
  .update-job {
    padding: 17px;
  }
  .evaluation-card h3 {
    font-size: 16px;
  }
  .comparison > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
  }
  .view-controls {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }
  .cost-run .section-heading {
    flex-wrap: wrap;
    gap: 6px 14px;
  }
  .model-cost-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 12px;
  }
  .model-cost-row > .muted {
    grid-column: 1;
    grid-row: 2;
  }
  .model-cost-row > span:last-child {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .empty-state {
    padding: 20px;
  }
  .update-actions .button {
    width: 100%;
  }
  .section-heading {
    flex-wrap: wrap;
  }
}
@media (max-width: 360px) {
  :root {
    --page-padding: 16px;
  }
  .brand {
    padding-left: 16px;
    gap: 9px;
  }
  .brand-subtitle {
    letter-spacing: 1.8px;
  }
  .header-actions .menu-toggle {
    padding-inline: 12px;
  }
  h1 {
    font-size: 32px;
  }
  .main-nav {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Keep navigation and answer actions reachable while inspecting long evidence. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
}
.answer-toolbar,
.passage {
  scroll-margin-top: 100px;
}
.export-notice:empty {
  display: none;
}
.nav-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}
.sidebar-collection .nav-label {
  padding: 0;
}
@media (min-width: 801px) {
  .sidebar .main-nav {
    position: sticky;
    top: 108px;
  }
}

.knowledge-rail {
  display: none;
  width: 280px;
  flex: 0 0 280px;
  padding: 28px 22px;
  border-left: 1px solid var(--line);
  background: #f7fcfa;
}
.knowledge-rail .metric {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.knowledge-rail .metric strong {
  font-size: 28px;
}
.knowledge-rail .metric small {
  font-size: 11px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.rail-note {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.rail-note p:last-child {
  margin-bottom: 0;
}
@media (min-width: 1280px) {
  .app-shell:has(.question-area:not(.has-run)) .knowledge-rail {
    display: block;
  }
  .app-shell:has(.knowledge-rail) .question-area:not(.has-run) h1 {
    font-size: 48px;
  }
}
@media (max-width: 800px) {
  .sidebar.is-open {
    position: fixed;
    top: 72px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 19;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

.evaluation-table-wrap { overflow-x: auto; border: 1px solid var(--border, #dce2e9); border-radius: 12px; margin: 20px 0 36px; }
.evaluation-table { width: 100%; min-width: 940px; border-collapse: collapse; table-layout: fixed; text-align: left; font-size: 14px; }
.evaluation-table th, .evaluation-table td { padding: 18px; vertical-align: top; border-bottom: 1px solid var(--border, #dce2e9); overflow-wrap: anywhere; }
.evaluation-table th { background: var(--surface, #f4f6f8); font-weight: 700; }
.evaluation-table th:nth-child(1) { width: 23%; }
.evaluation-table th:nth-child(2) { width: 25%; }
.evaluation-table th:nth-child(3) { width: 29%; }
.evaluation-table th:nth-child(4) { width: 23%; }
.evaluation-table p { margin: 10px 0; line-height: 1.6; }
.evaluation-table .evaluation-card { padding: 12px; border: 0; }
.evaluation-table .comparison { display: block; }
.evaluation-table .disclosure { margin: 12px 0; }
.evaluation-failures { margin: 36px 0; }
.evaluation-failure { padding: 16px 20px; margin: 14px 0; border-left: 3px solid #b75238; background: var(--surface, #f7f8fa); border-radius: 0 10px 10px 0; }
.evaluation-failure h3 { font-size: 16px; line-height: 1.5; margin: 0 0 8px; }
.evaluation-failure p { margin: 8px 0; }

/* Editorial findings use the same surfaces as the source collection. */
.findings-intro {
  border-left: 3px solid var(--lime);
  padding: 4px 0 4px 22px;
  margin: 30px 0;
  max-width: 850px;
}
.findings-intro p {
  margin: 6px 0 0;
}
.findings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 32px 0;
}
.finding-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  transition: border-color 0.15s;
}
.finding-card:hover {
  border-color: var(--lime-dim);
  color: var(--text);
}
.finding-card h2 {
  font-size: 24px;
  line-height: 1.35;
  margin: 12px 0;
}
.finding-card .answer-meta {
  flex-wrap: wrap;
}
.finding-open {
  margin-top: auto;
  padding-top: 20px;
  color: var(--lime);
  font-weight: 600;
}
.finding-back {
  display: inline-block;
  color: var(--lime);
  margin-bottom: 28px;
}
.finding-document {
  max-width: 780px;
  margin: 26px 0 36px;
  overflow-wrap: anywhere;
}
.finding-document h2 {
  margin: 36px 0 12px;
  font-size: 23px;
}
.finding-document p,
.finding-document li {
  color: var(--muted);
  line-height: 1.85;
}
.finding-document ul {
  padding-left: 22px;
}
.finding-document li {
  margin: 12px 0;
}
.finding-document a {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 760px) {
  .findings-grid {
    grid-template-columns: 1fr;
  }
  .finding-card {
    padding: 22px;
  }
  .finding-card h2 {
    font-size: 21px;
  }
}

.finding-card {
  border-radius: 0;
}
.findings-page h1 {
  overflow-wrap: anywhere;
}

.evaluation-comparison { min-width: 0; }
