:root {
  font-family: "DM Sans", system-ui, sans-serif;
  color: #173540;
  background: #f3f6f5;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  background: #0c2c35;
  color: white;
  padding: 26px max(5vw, 20px) 46px;
}
nav {
  display: flex;
  justify-content: space-between;
  letter-spacing: 0.12em;
  font-size: 13px;
  border-bottom: 1px solid #ffffff26;
  padding-bottom: 22px;
}
nav span {
  color: #a9c3c8;
  font-size: 10px;
}
.hero {
  max-width: 1080px;
  margin: 44px auto 0;
}
.eyebrow,
.step {
  font-size: 10px;
  letter-spacing: 0.17em;
  font-weight: 700;
  color: #377c79;
}
.eyebrow {
  color: #8ad6be;
}
h1 {
  font:
    800 clamp(34px, 5vw, 58px) / 1.1 "Manrope",
    sans-serif;
  letter-spacing: -0.04em;
  margin: 16px 0;
}
em {
  font-style: normal;
  color: #99dfc6;
}
.hero > p:not(.eyebrow) {
  color: #c7d9dd;
  font-size: 16px;
}
.tags {
  display: flex;
  gap: 10px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.tags span {
  border: 1px solid #ffffff33;
  padding: 7px 12px;
  border-radius: 20px;
  font-size: 11px;
}
main {
  max-width: 1180px;
  margin: 28px auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  padding: 0 20px;
}
.card {
  background: white;
  border: 1px solid #dce6e3;
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 6px 20px #143c3b04;
}
aside {
  align-self: start;
}
h2 {
  font:
    700 23px "Manrope",
    sans-serif;
  letter-spacing: -0.03em;
  margin: 12px 0 22px;
}
h3 {
  font-size: 15px;
}
label {
  font-size: 12px;
  display: block;
  margin-bottom: 9px;
}
input {
  width: 100%;
  font-size: 11px;
  margin-top: 15px;
}
.upload {
  border: 1px dashed #96b7ae;
  border-radius: 10px;
  padding: 20px 12px;
  background: #f6faf8;
}
button {
  font:
    600 12px "DM Sans",
    sans-serif;
  background: #14645d;
  color: white;
  border: 0;
  border-radius: 8px;
  padding: 13px 17px;
  cursor: pointer;
}
button:hover {
  filter: brightness(1.1);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
aside button {
  width: 100%;
  margin-top: 10px;
}
.secondary {
  background: #edf4f1;
  color: #245249;
}
p.small,
#indexStatus,
#status {
  font-size: 12px;
  color: #647b80;
  line-height: 1.65;
}
hr {
  border: 0;
  border-top: 1px solid #e5ece9;
  margin: 24px 0;
}
textarea {
  width: 100%;
  min-height: 90px;
  resize: vertical;
  border: 1px solid #baccce;
  border-radius: 9px;
  padding: 14px;
  font:
    14px/1.5 system-ui,
    sans-serif;
  color: #173540;
}
textarea:focus {
  outline: 2px solid #61ad9f;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
#answer {
  padding: 20px;
  background: #f3f8f5;
  border-radius: 10px;
  min-height: 110px;
  white-space: pre-wrap;
  line-height: 1.7;
  font-size: 14px;
}
.evidence {
  margin-top: 20px;
}
#sources {
  font-size: 13px;
  line-height: 1.7;
  color: #48656a;
}
article {
  border-top: 1px solid #e3ece9;
  padding: 16px 0;
}
article strong {
  display: block;
  color: #14645d;
  margin-bottom: 8px;
}
article p {
  white-space: pre-wrap;
  margin: 0;
}
footer {
  text-align: center;
  font-size: 11px;
  color: #688087;
  line-height: 1.8;
  padding: 18px 20px 34px;
}
@media (max-width: 780px) {
  main {
    grid-template-columns: 1fr;
  }
  nav span {
    display: none;
  }
  .hero {
    margin-top: 30px;
  }
  .card {
    padding: 20px;
  }
}
select {
  width: 100%;
  padding: 11px;
  border: 1px solid #baccce;
  border-radius: 8px;
  background: #f6faf8;
  color: #173540;
  margin-bottom: 10px;
  font:
    13px "DM Sans",
    sans-serif;
}
#export {
  margin: 5px 0 12px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin: 20px 0;
}
td {
  padding: 11px;
  border-bottom: 1px solid #dae5e1;
}
tr:first-child {
  font-weight: 700;
  background: #edf4f1;
}
#evaluation {
  font-size: 12px;
  line-height: 1.7;
  margin-top: 16px;
}
#evaluation p {
  color: #48656a;
}
small {
  display: block;
  color: #6c8185;
  font-size: 11px;
  margin: 5px 0;
}
details {
  max-height: 360px;
  overflow: auto;
  border: 1px solid #e1e9e6;
  border-radius: 8px;
  padding: 12px;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
#brief article {
  font-size: 13px;
  line-height: 1.65;
}
#brief p {
  white-space: pre-wrap;
}

nav a {
  color: inherit;
  text-decoration: none;
}
.brand {
  font-weight: 800;
}
.navlinks {
  display: flex;
  gap: 24px;
  letter-spacing: 0;
  font-size: 13px;
}
.navlinks a:hover,
footer a:hover {
  text-decoration: underline;
}
.hero {
  margin-top: 28px;
}
header {
  padding-bottom: 30px;
}
h1 {
  font-size: clamp(32px, 4.2vw, 48px);
}
footer a {
  color: #37665e;
}
.citation {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #0b6557;
  background: #e0efe7;
  border-radius: 4px;
  padding: 0 4px;
  text-decoration: none;
}
.citation:hover,
.citation:focus-visible {
  outline: 2px solid #14645d;
}
.card:focus-within {
  border-color: #b1cbc2;
}
article:focus,
#brief details div:focus {
  outline: 2px solid #65a993;
  outline-offset: 5px;
}
#brief details {
  margin-top: 12px;
}
#brief details div {
  padding: 12px 0;
  border-top: 1px solid #e0e8e4;
}
#saveExport {
  display: inline-block;
  color: #14645d;
  font-weight: 700;
  padding: 8px 0;
}
#answerAuditResult {
  font-size: 13px;
  line-height: 1.65;
  margin-top: 18px;
}
#exportText {
  font-family: ui-monospace, monospace;
  font-size: 12px;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #64a992;
  outline-offset: 3px;
}
@media (max-width: 780px) {
  .navlinks {
    gap: 16px;
  }
  .hero {
    margin-top: 24px;
  }
  header {
    padding-top: 20px;
  }
}
