:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172336;
  background: #f4f7f8;
  line-height: 1.55;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: #075f69; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
summary:focus-visible, [tabindex="0"]:focus-visible { outline: 3px solid #ec9f2e; outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: #fff;
  color: #073f47;
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.site-header {
  min-height: 4rem;
  padding: 0.85rem max(1.25rem, calc((100% - 70rem) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #0d3942;
  color: #fff;
}

.brand { color: #fff; font-weight: 700; text-decoration: none; }
.account { display: flex; align-items: center; gap: 1rem; }
.account form { margin: 0; }
.narrow { width: min(100% - 2rem, 52rem); margin: 3rem auto; }
.page-shell { width: min(100% - 2rem, 72rem); margin: 2.5rem auto 4rem; }
.lookup-panel { width: min(100%, 52rem); margin-inline: auto; }
.page-heading { max-width: 52rem; }
.hero { padding: 2rem 0; }
.hero h1 { max-width: 15ch; font-size: clamp(2.1rem, 7vw, 4.2rem); line-height: 1.05; }
.lede { max-width: 45rem; font-size: 1.2rem; }
.eyebrow { color: #5c465f; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.boundary, .card { border: 1px solid #b7c7ca; border-radius: 0.4rem; background: #fff; padding: 1.25rem; margin: 1.5rem 0; }
.boundary { border-left: 0.4rem solid #b96920; }
.button, button {
  display: inline-block;
  border: 0;
  border-radius: 0.3rem;
  padding: 0.7rem 1rem;
  background: #08717d;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
button:disabled { background: #64777b; cursor: not-allowed; }
.link-button { padding: 0; background: transparent; color: #fff; text-decoration: underline; }
.alert { border-left: 0.35rem solid #a84614; padding: 0.7rem 0.8rem; background: #fff4ec; }
.success-banner { border-left: 0.35rem solid #287044; padding: 0.7rem 0.8rem; background: #eef9f1; }
.lookup-form { border: 1px solid #b7c7ca; border-radius: 0.4rem; background: #fff; padding: 1.25rem; }
.lookup-form fieldset { border: 0; padding: 0; margin: 1.5rem 0; min-width: 0; }
.lookup-form legend { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.75rem; }
.card fieldset { border: 1px solid #ccd7d9; border-radius: 0.35rem; padding: 1rem; margin: 1.5rem 0; min-width: 0; }
.card legend { padding: 0 0.35rem; font-weight: 700; }
.form-field { margin-bottom: 1.25rem; }
.form-field label { display: block; font-weight: 700; margin-bottom: 0.3rem; }
.form-field input, .form-field select, .lookup-form > .form-field select, .card .form-field input {
  width: 100%; max-width: 38rem; border: 1px solid #71868a; border-radius: 0.25rem; padding: 0.65rem; font: inherit;
}
.form-field [aria-invalid="true"] { border: 2px solid #8a260f; }
.field-help { margin: 0.35rem 0 0; color: #4d5b61; }
.field-error { margin: 0.35rem 0 0; color: #8a260f; font-weight: 700; }
.lookup-status { margin-top: 1rem; font-weight: 700; }
.result-card { overflow-wrap: anywhere; }
.result-shell { margin-top: 3.5rem; overflow-wrap: anywhere; }
.result-header { border-bottom: 3px solid #0d3942; margin-bottom: 1.5rem; }
.result-header h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-top: 0; }
.result-alerts:empty { display: none; }
.outcome-banner { border-left: 0.35rem solid #b96920; padding: 0.6rem 0.75rem 0.6rem 1rem; margin: 1rem 0; background: #fff8ef; }
.outcome-banner.prominent { border-width: 0.5rem; }
.outcome-banner.stale { border-left-color: #74569b; background: #f7f2fc; }
.outcome-banner h3, .alert h3 { margin-top: 0; }
.identity { display: grid; gap: 0.65rem; }
.identity div { display: grid; grid-template-columns: minmax(9rem, 1fr) 2fr; gap: 1rem; }
.identity dt { font-weight: 700; }
.identity dd { margin: 0; }
.status-list div { border-bottom: 1px solid #d7e0e2; padding: 0.65rem 0; }
.status-list dt { font-weight: 700; }
.status-list dd { margin: 0.25rem 0 0; }
.small { font-size: 0.9rem; color: #4d5b61; }
.dev-banner { padding: 0.65rem 1rem; text-align: center; background: #ffe8a9; color: #3d2b00; font-weight: 700; }
.site-footer { padding: 2rem; text-align: center; }
.site-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5rem; }

.generated-summary { border-left: 0.45rem solid #5c465f; }
.generated-summary summary { cursor: pointer; font-size: 1.15rem; font-weight: 700; }
.generated-summary-content { padding-top: 1rem; }
.statement-list, .evidence-list, .publication-list { padding-left: 1.25rem; }
.statement-list li, .evidence-list li, .publication-list li { margin-bottom: 1rem; }
.evidence-list li { border-bottom: 1px solid #d7e0e2; padding-bottom: 0.75rem; }
.evidence-list p { margin: 0.35rem 0; }
.evidence-ids { display: block; margin-top: 0.3rem; color: #4d5b61; font-size: 0.9rem; }
.status-chip { display: inline-block; padding: 0.1rem 0.45rem; border: 1px solid #71868a; border-radius: 1rem; font-size: 0.82rem; font-weight: 700; }
.publication-list h4 { margin-bottom: 0.25rem; }
.publication-list p { margin-top: 0.35rem; }
.retraction-warning { color: #8a260f; }
.educational-notice { margin-top: 2rem; }
.result-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; margin: 2rem 0; }

.table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid #b7c7ca; border-radius: 0.3rem; }
table { width: 100%; border-collapse: collapse; background: #fff; }
caption { padding: 0.7rem; text-align: left; font-weight: 700; }
th, td { padding: 0.65rem; border-top: 1px solid #c7d3d5; text-align: left; vertical-align: top; }
thead th { background: #eaf1f2; border-top: 0; }
tbody th { font-weight: 700; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.75rem; margin: 1rem 0 1.5rem; }
.stat-card { display: flex; flex-direction: column; min-height: 6rem; justify-content: center; padding: 1rem; background: #eef4f5; border: 1px solid #b7c7ca; border-radius: 0.35rem; }
.stat-value { display: block; font-size: 1.65rem; font-weight: 800; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1.25rem; }
.runtime-status { margin: 1.5rem 0; }
.compact-list { margin: 0; padding-left: 1.1rem; columns: 2; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 0 1rem; }
.checkbox-field { display: flex; align-items: flex-start; gap: 0.6rem; margin: 0.65rem 0; }
.checkbox-field input { width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; }
.checkbox-field label { font-weight: 700; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (max-width: 38rem) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .account { align-items: flex-start; flex-direction: column; }
  .identity div { grid-template-columns: 1fr; gap: 0.1rem; }
  .page-shell { margin-top: 1.5rem; }
  .compact-list { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
