@font-face {
  font-display: swap;
  font-family: Newsreader;
  src: url("/financial-safety/fonts/newsreader-latin-opsz-normal.woff2")
    format("woff2");
}

:root {
  color-scheme: light;
  --paper: #fbf9f4;
  --ink: #22271f;
  --muted: #535b4f;
  --rule: #d9dcd3;
  --green: #254638;
  background: var(--paper);
  color: var(--ink);
  font:
    1rem / 1.55 system-ui,
    sans-serif;
}

* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
a {
  color: var(--green);
  text-underline-offset: 3px;
}
.site {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 5vw, 4rem);
  border-block-end: 1px solid var(--rule);
}
footer.site {
  border-block-start: 1px solid var(--rule);
  border-block-end: 0;
}
main {
  width: min(100% - 2rem, 51rem);
  margin: clamp(2.5rem, 8vw, 6rem) auto;
}
.kicker {
  color: var(--green);
  font-weight: 650;
}
h1,
h2,
legend {
  font-family: Newsreader, Georgia, serif;
  font-weight: 500;
  line-height: 1.12;
}
h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  max-width: 14ch;
  margin: 0.25em 0;
}
h2,
legend {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  margin: 0;
}
h3,
h4,
p {
  margin: 0.4rem 0 0.8rem;
}
h3,
h4 {
  font-size: 1rem;
}
.lede {
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  max-width: 53ch;
}
.privacy,
.status,
#result-status {
  color: var(--muted);
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-inline-size: 0;
}
fieldset.nested {
  margin: 1.2rem 0 0 1.2rem;
}
fieldset.nested legend {
  font: inherit;
  font-weight: 600;
}
.choice {
  align-items: center;
  border: 1px solid var(--rule);
  cursor: pointer;
  display: flex;
  gap: 0.8rem;
  margin: 0.45rem 0;
  min-height: 46px;
  padding: 0.6rem 0.85rem;
}
legend + .choice {
  margin-top: 1rem;
}
.choice:has(input:checked) {
  border-color: var(--green);
  background: #e9eee6;
}
.choice input {
  accent-color: var(--green);
  margin: 0;
}
.actions,
.email-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}
button,
.button {
  display: inline-block;
  background: var(--green);
  color: white;
  border: 1px solid var(--green);
  padding: 0.65rem 1rem;
  min-height: 44px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
}
button.secondary {
  color: var(--green);
  background: transparent;
}
button:disabled {
  opacity: 0.65;
  cursor: wait;
}
:focus-visible {
  outline: 2px solid #517849;
  outline-offset: 3px;
}
#start,
.actions {
  margin-top: 0.8rem;
}
.status:empty {
  display: none;
}
#report {
  border-block-start: 1px solid var(--rule);
  margin-top: 3rem;
  padding-top: 2rem;
}
#report-email {
  background: white;
  border: 1px solid var(--muted);
  font: inherit;
  width: min(100%, 22rem);
  min-height: 44px;
  padding: 0.6rem 0.75rem;
}
.email-row {
  margin-top: 0.25rem;
}
.trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.answer {
  border-block-start: 1px solid var(--rule);
  padding: 1rem 0;
}
.answer > div:first-child > p {
  font-size: 1.15rem;
  margin-bottom: 0;
}
.comparison {
  display: grid;
  gap: 1rem;
  margin-top: 0.85rem;
}
.comparison p {
  font-size: 0.9rem;
  color: var(--muted);
}
.distribution {
  list-style: none;
  margin: 0;
  padding: 0;
}
.distribution li {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 0.4rem;
  margin-bottom: 0.35rem;
}
.distribution meter {
  grid-column: 1 / -1;
  width: 100%;
  height: 0.6rem;
  accent-color: var(--green);
}
.distribution span:last-of-type {
  font-variant-numeric: tabular-nums;
}
@media (min-width: 40rem) {
  .comparison {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
