:root {
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #263b4c;
  background: #f4f5f4;
  line-height: 1.6;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header,
footer {
  max-width: 1400px;
  padding: 25px 36px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
}
header {
  border-bottom: 1px solid #d5dfe2;
}
.brand {
  font-weight: 800;
  font-size: 0.94rem;
  letter-spacing: 0.075em;
  text-decoration: none;
}
.brand span {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: #667c88;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 23px;
  font-size: 0.87rem;
}
nav a {
  text-decoration: none;
}
nav a[aria-current="page"] {
  font-weight: 750;
}
a {
  color: #29536c;
}
main {
  max-width: 1400px;
  margin: auto;
  padding: 0 36px 60px;
}
.hero {
  max-width: 880px;
  padding: 45px 0 20px;
}
.eyebrow {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  color: #7c5a41;
}
h1 {
  font-family: Georgia, serif;
  font-size: clamp(3rem, 6vw, 4.65rem);
  font-weight: 450;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 16px 0 23px;
}
h1 em {
  color: #647f8c;
}
.hero > p:not(.eyebrow):not(.notice) {
  font-size: 1.08rem;
  max-width: 750px;
  color: #526c7a;
}
h2 {
  font-size: 1.4rem;
  letter-spacing: -0.025em;
  margin: 5px 0 16px;
}
h3 {
  font-size: 1rem;
  margin: 25px 0 10px;
}
p {
  margin: 8px 0 17px;
}
.card {
  background: #fff;
  border: 1px solid #d5dfe2;
  border-radius: 16px;
  padding: 27px;
  min-width: 0;
}
.sources {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 10px 0 25px;
}
.sources h3 {
  margin-top: 0;
}
.sources dt {
  font-size: 0.88rem;
  font-weight: 700;
}
.sources dd {
  margin: 3px 0 13px;
  font-size: 0.86rem;
  color: #526c7a;
}
.source-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}
.source-links a {
  background: #f1f4f4;
  border: 1px solid #c8d6dc;
  border-radius: 7px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.notice {
  padding: 15px 17px;
  background: #edf2f3;
  border: 1px solid #cedbe1;
  border-radius: 9px;
  font-size: 0.87rem;
}
.help,
small {
  font-size: 0.8rem;
  color: #617785;
  font-weight: 400;
}
small {
  display: block;
  margin-top: 6px;
}
label {
  font-size: 0.86rem;
  font-weight: 650;
  display: block;
  margin: 17px 0;
}
label > span {
  font-weight: 400;
  color: #617785;
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  font: inherit;
  color: inherit;
  border: 1px solid #afc1ca;
  background: #fff;
  padding: 11px 12px;
  border-radius: 7px;
  margin-top: 6px;
}
textarea {
  resize: vertical;
  min-height: 80px;
}
button {
  font: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  min-height: 44px;
  background: #284d63;
  color: #fff;
  border: 1px solid #284d63;
  border-radius: 7px;
  padding: 11px 17px;
  cursor: pointer;
}
button.secondary {
  background: #f1f4f4;
  color: #284d63;
  border-color: #c1cfd6;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button:not(:disabled):hover {
  filter: brightness(0.94);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #ba804b;
  outline-offset: 3px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
hr {
  border: 0;
  border-top: 1px solid #dce4e6;
  margin: 28px 0;
}
.report-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 25px 0 12px;
}
details {
  padding: 16px;
  border-radius: 9px;
  background: #f0f4f4;
  font-size: 0.87rem;
}
.import-box {
  margin-top: 25px;
}
summary {
  font-weight: 650;
  cursor: pointer;
}
.check-row {
  padding: 13px 0;
  border-bottom: 1px solid #dce5e8;
}
.check-row strong {
  font-size: 0.83rem;
}
.check-row p {
  font-size: 0.87rem;
  margin: 5px 0;
}
.check-row[data-state="fail"] {
  border-left: 3px solid #a7523a;
  padding-left: 12px;
}
.check-row[data-state="unknown"] {
  border-left: 3px solid #af9167;
  padding-left: 12px;
}
.check-row[data-state="pass"] {
  border-left: 3px solid #718897;
  padding-left: 12px;
}
.preserve {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#context-summary p,
#provenance p {
  overflow-wrap: anywhere;
  font-size: 0.85rem;
}
#context-notes {
  padding-left: 21px;
  font-size: 0.88rem;
}
#context-notes li {
  margin: 11px 0;
}
#status {
  padding: 13px 17px;
  border: 1px solid #cbd7dd;
  border-radius: 9px;
  background: #eaf0f3;
}
#status.error {
  background: #fff0e7;
  border-color: #d5a17e;
}
footer {
  border-top: 1px solid #d5dfe2;
  font-size: 0.82rem;
  color: #617785;
}
.skip {
  position: absolute;
  top: -100px;
  left: 15px;
  padding: 12px;
  background: #fff;
}
.skip:focus {
  top: 10px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1000px) {
  .workspace {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  header,
  footer {
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
  }
  main {
    padding: 0 17px 40px;
  }
  nav {
    gap: 16px;
  }
  .hero {
    padding-top: 30px;
  }
  .sources,
  .row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .card {
    padding: 20px;
  }
  h1 {
    font-size: 3.1rem;
  }
  .source-links {
    margin-bottom: 24px;
  }
}
@media print {
  header,
  footer,
  .hero,
  .sources,
  #status,
  .editor,
  .report-actions,
  .skip {
    display: none !important;
  }
  body,
  main {
    background: #fff;
    padding: 0;
  }
  .workspace {
    display: block;
  }
  .report {
    border: 0;
    padding: 0;
  }
  .check-row {
    break-inside: avoid;
  }
  details,
  details > * {
    display: block !important;
  }
  h3 {
    break-after: avoid;
  }
}
