/*
 * RateMyRenewal
 * The interface is a renewal notice pulled out of its envelope: answers are
 * typed onto the paper, results are written on it in red pen. Everything
 * else stays quiet.
 */

@font-face {
  font-family: "Overpass";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/assets/fonts/overpass-latin-wght-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Kalam";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/kalam-latin-700-normal.woff2") format("woff2");
}

:root {
  --ink: #14213d;
  --ink-soft: #46536e;
  --desk: #e9eef6;
  --paper: #ffffff;
  --rule: #c5cfdf;
  --rule-strong: #8b98b0;
  --envelope: #2f55a4;
  --envelope-deep: #223f7e;
  --pen: #cf2b38;
  --marker: #ffe566;
  --ok: #1b7a50;
  --focus: #f59e0b;

  --font: "Overpass", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --hand: "Kalam", "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;

  --wrap: 70rem;
  --gutter: clamp(1.1rem, 4vw, 2rem);
  --gap-section: clamp(3.25rem, 8vw, 5.5rem);

  --tint: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Crect width='14' height='14' fill='%232f55a4'/%3E%3Cpath d='M-1 1l2-2M0 14L14 0M13 15l2-2' stroke='%237c9ad6' stroke-width='1.1'/%3E%3Cpath d='M-1 13l2 2M0 0l14 14M13-1l2 2' stroke='%237c9ad6' stroke-width='1.1' opacity='.5'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.55;
  font-weight: 400;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 5.6vw, 3.75rem);
  line-height: 1.03;
  letter-spacing: -0.022em;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
}

h3,
h4 {
  font-size: 1.3rem;
  line-height: 1.2;
}

h4,
h5 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.012em;
}

h5 {
  font-size: 1.05rem;
  line-height: 1.3;
}

p {
  margin: 0;
}

a {
  color: var(--envelope-deep);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 0.9rem;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- header ---------- */

.site-header {
  padding-block: 1.1rem;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark svg {
  width: 2rem;
  height: 2rem;
  flex: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 3vw, 1.75rem);
  flex-wrap: wrap;
  font-size: 1rem;
  font-weight: 600;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  padding-block: 0.4rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
}

.site-nav .nav-call {
  padding: 0.5rem 0.85rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  white-space: nowrap;
}

.site-nav .nav-call:hover {
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

@media (max-width: 40rem) {
  .site-header {
    padding-block: 0.8rem;
  }

  .site-header .wrap {
    flex-wrap: nowrap;
  }

  .wordmark {
    font-size: 1.15rem;
  }

  .site-nav a:not(.nav-call) {
    display: none;
  }
}

@media (max-width: 26rem) {
  .nav-call .word {
    display: none;
  }
}

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(1rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 2.5rem);
}

.hero .wrap {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.hero-copy {
  max-width: 34rem;
}

.hero-copy .lead {
  margin-top: 1.25rem;
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.facts {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
  font-weight: 600;
}

.facts li {
  position: relative;
  padding-left: 2rem;
}

.facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.08em;
  width: 1.35rem;
  height: 1.35rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 13.5c2 1.6 3.6 3.4 5 5.5C10.6 12.6 15 7.4 21.5 3.5' fill='none' stroke='%23cf2b38' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* On narrow screens the notice comes straight after the headline. */
@media (max-width: 59.99rem) {
  .hero .wrap {
    gap: 1.5rem;
  }

  .hero-copy {
    display: contents;
  }

  .hero-copy h1 {
    order: 1;
  }

  .hero .envelope {
    order: 2;
  }

  .hero-copy .lead {
    order: 3;
    max-width: 34rem;
    margin-top: 0.5rem;
  }

  .hero-copy .facts {
    order: 4;
    max-width: 34rem;
    margin-top: 0;
  }
}

@media (min-width: 60rem) {
  .hero .wrap {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }

  .hero-copy {
    padding-top: 2.5rem;
    position: sticky;
    top: 1.5rem;
  }
}

/* ---------- envelope and notice ---------- */

.envelope {
  position: relative;
  margin-top: 1.75rem;
  padding: 0 clamp(0.6rem, 2.2vw, 1.1rem) clamp(0.6rem, 2.2vw, 1.1rem);
  background: var(--envelope) var(--tint);
  border-radius: 4px 4px 12px 12px;
  box-shadow: 0 1px 0 var(--envelope-deep), 0 18px 30px -22px rgba(20, 33, 61, 0.55);
}

.notice {
  position: relative;
  top: -1.75rem;
  margin-bottom: -1.75rem;
  background: var(--paper);
  border-radius: 3px;
  padding: clamp(1.15rem, 4vw, 2rem);
  box-shadow: 0 0 0 1px rgba(20, 33, 61, 0.1), 0 10px 18px -14px rgba(20, 33, 61, 0.5);
}

.notice-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  margin-bottom: 1.3rem;
  border-bottom: 3px solid var(--ink);
}

.notice-head h2 {
  font-size: 1.15rem;
  letter-spacing: 0;
}

.notice-step {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.step-title {
  font-size: 1.45rem;
  margin-bottom: 1.2rem;
}

.step-title:focus {
  outline: none;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field {
  margin-bottom: 1.35rem;
}

.field > label,
.field > legend {
  display: block;
  padding: 0;
  margin-bottom: 0.45rem;
  font-weight: 700;
  line-height: 1.3;
}

.hint {
  margin: -0.2rem 0 0.55rem;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.error {
  margin-top: 0.45rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--pen);
}

.money {
  display: flex;
  align-items: stretch;
  max-width: 16rem;
  border: 2px solid var(--rule-strong);
  border-radius: 8px;
  background: var(--paper);
}

.money:focus-within {
  border-color: var(--ink);
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.money span {
  display: grid;
  place-items: center;
  padding-inline: 0.8rem 0.2rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.money input {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.8rem 0.4rem 0.3rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.6rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.money input:focus {
  outline: none;
}

.field[data-invalid] .money,
.field[data-invalid] select {
  border-color: var(--pen);
}

select,
.text-input {
  width: 100%;
  max-width: 28rem;
  min-height: 3.25rem;
  padding: 0.6rem 0.8rem;
  border: 2px solid var(--rule-strong);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chips.stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
}

.chip {
  position: relative;
  display: block;
  cursor: pointer;
}

.chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.chip span {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.1rem;
  padding: 0.55rem 0.95rem 0.45rem;
  border: 2px solid var(--rule-strong);
  border-radius: 8px;
  background: var(--paper);
  font-weight: 600;
  line-height: 1.25;
}

.chip:hover span {
  border-color: var(--ink);
}

.chip input:checked + span {
  border-color: var(--ink);
  background: var(--marker);
}

.chip input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.chip.check span::before {
  content: "";
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
}

.chip.check input:checked + span::before {
  background: var(--ink)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 0.9rem no-repeat;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.35rem;
  padding: 0.75rem 1.4rem 0.62rem;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: #0c152b;
  color: #fff;
}

.btn.quiet {
  background: transparent;
  color: var(--ink);
}

.btn.quiet:hover {
  background: rgba(20, 33, 61, 0.07);
  color: var(--ink);
}

.btn.call {
  border-color: var(--envelope-deep);
  background: var(--envelope-deep);
  font-size: 1.25rem;
  min-height: 3.9rem;
  padding-inline: 1.6rem;
}

.btn.call:hover {
  background: #183064;
}

.btn.small {
  min-height: 2.8rem;
  padding: 0.5rem 1rem 0.4rem;
  font-size: 1rem;
}

.fineprint {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- red pen ---------- */

.pen-note {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 1.1rem;
  margin: 0.35rem 0 0.2rem;
  padding: 0.85rem 1.9rem 0.55rem 1.5rem;
  color: var(--pen);
  font-family: var(--hand);
  font-weight: 700;
  font-size: clamp(1.9rem, 6.5vw, 2.5rem);
  line-height: 1.05;
  transform: rotate(-1.6deg);
  transform-origin: left center;
}

.pen-note svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.pen-note svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.pen-note.is-good {
  color: var(--ok);
}

.pen-note.is-flat {
  color: var(--ink-soft);
}

.pen-note.draw svg {
  animation: pen-draw 0.5s ease-out both;
}

@keyframes pen-draw {
  from {
    clip-path: inset(-20% 100% -20% -5%);
  }
  to {
    clip-path: inset(-20% -5% -20% -5%);
  }
}

.pen-aside {
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--pen);
  transform: rotate(-1deg);
  transform-origin: left center;
}

.pen-aside.is-good {
  color: var(--ok);
}

.pen-aside.is-flat {
  color: var(--ink-soft);
}

.live-note {
  min-height: 6.6rem;
}

/* ---------- result ---------- */

.result:focus {
  outline: none;
}

.result-line {
  font-size: 1.2rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.verdict {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
}

.stamp {
  justify-self: start;
  display: inline-block;
  padding: 0.5rem 0.9rem 0.3rem;
  border: 3px solid currentColor;
  border-radius: 7px;
  color: var(--envelope-deep);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transform: rotate(-2.4deg);
  box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 3px currentColor;
}

.stamp[data-tone="alert"] {
  color: var(--pen);
}

.stamp[data-tone="good"] {
  color: var(--ok);
}

.block {
  margin-top: 1.7rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.block h4 {
  margin-bottom: 0.7rem;
}

.block p + p {
  margin-top: 0.7rem;
}

.source {
  margin-top: 0.8rem;
  font-size: 0.93rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.strip {
  position: relative;
  height: 4.6rem;
  margin: 1.4rem 0 0.4rem;
}

.strip-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 2.9rem;
  height: 2px;
  background: var(--rule);
}

.strip-range {
  position: absolute;
  top: 2.5rem;
  height: 0.9rem;
  left: var(--lo, 0%);
  width: max(3px, calc(var(--hi, 100%) - var(--lo, 0%)));
  background: var(--envelope);
  border-radius: 2px;
}

.strip-overall {
  position: absolute;
  top: 2.05rem;
  left: var(--overall, 50%);
  width: 3px;
  height: 1.8rem;
  margin-left: -1.5px;
  background: var(--ink);
}

.strip-you {
  position: absolute;
  top: 0;
  left: var(--you, 50%);
  transform: translateX(-50%);
  color: var(--pen);
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.strip-you::after {
  content: "";
  display: block;
  width: 3px;
  height: 2.75rem;
  margin: 0.2rem auto 0;
  background: currentColor;
  border-radius: 2px;
}

.strip-you[data-edge="left"] {
  transform: none;
  text-align: left;
}

.strip-you[data-edge="left"]::after {
  margin-left: 0;
}

.strip-you[data-edge="right"] {
  transform: translateX(-100%);
  text-align: right;
}

.strip-you[data-edge="right"]::after {
  margin-right: 0;
}

.legend {
  display: grid;
  gap: 0.3rem;
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.legend li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.legend li::before {
  content: "";
  flex: none;
  align-self: center;
  width: 1.1rem;
  height: 0.7rem;
  border-radius: 2px;
}

.legend .k-range::before {
  background: var(--envelope);
}

.legend .k-overall::before {
  width: 3px;
  height: 1.1rem;
  margin-inline: 0.42rem;
  background: var(--ink);
}

.legend .k-you::before {
  width: 3px;
  height: 1.1rem;
  margin-inline: 0.42rem;
  background: var(--pen);
}

.plain-list,
.ask-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.plain-list li {
  position: relative;
  padding-left: 1.3rem;
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ink);
}

.ask-list li {
  position: relative;
  padding-left: 2.1rem;
}

.ask-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid var(--ink);
  border-radius: 4px;
}

.ask-list strong {
  display: block;
  line-height: 1.3;
}

.ask-list span {
  display: block;
  font-size: 1rem;
  color: var(--ink-soft);
}

.callbox {
  margin-top: 1.9rem;
  padding: 1.25rem clamp(1rem, 3.5vw, 1.5rem) 1.35rem;
  border: 2px solid var(--envelope-deep);
  border-radius: 10px;
  background: #f1f5fc;
}

.callbox h4 {
  margin-bottom: 0.5rem;
}

.callbox .actions {
  margin-top: 1.1rem;
}

.call-status {
  font-weight: 700;
}

.disclosure {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.callsheet {
  margin-top: 1.9rem;
  padding: 1.3rem clamp(1rem, 3.5vw, 1.5rem);
  border: 2px dashed var(--rule-strong);
  border-radius: 6px;
}

.callsheet h4 {
  margin-bottom: 0.3rem;
}

.callsheet h5 {
  margin: 1.2rem 0 0.6rem;
}

.callsheet .ask-list {
  gap: 0.55rem;
}

.callsheet-summary {
  margin: 0.4rem 0 0;
  font-variant-numeric: tabular-nums;
}

.print-only {
  display: none;
}

/* ---------- page sections ---------- */

.section {
  padding-block: var(--gap-section);
}

.section.sheet {
  background: var(--paper);
}

.section > .wrap > h2 {
  max-width: 24ch;
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
}

.intro {
  max-width: 62ch;
  margin: -0.9rem 0 clamp(1.5rem, 4vw, 2.25rem);
  font-size: 1.2rem;
  color: var(--ink-soft);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1.75rem;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.4rem;
  max-width: 30rem;
}

.steps li::before {
  content: counter(step) ".";
  position: absolute;
  left: 0;
  top: -0.45rem;
  color: var(--pen);
  font-family: var(--hand);
  font-weight: 700;
  font-size: 2.9rem;
  line-height: 1;
}

.steps h3 {
  margin-bottom: 0.35rem;
}

.steps p {
  color: var(--ink-soft);
}

@media (min-width: 52rem) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
  }
}

.split {
  display: grid;
  gap: clamp(2.25rem, 5vw, 3.5rem);
}

.split > *,
.hero .wrap > * {
  min-width: 0;
}

.split h3 {
  margin-bottom: 0.7rem;
}

.split p + p {
  margin-top: 0.8rem;
}

@media (min-width: 58rem) {
  .split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .split.even {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.table-scroll {
  margin-top: 1.2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-scroll + p {
  margin-top: 1.1rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

.data-table caption {
  padding-bottom: 0.6rem;
  text-align: left;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.data-table th,
.data-table td {
  padding: 0.7rem 0.9rem 0.6rem 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.data-table thead th {
  border-bottom: 2px solid var(--ink);
  font-size: 0.93rem;
  font-weight: 700;
  white-space: nowrap;
}

.data-table .num {
  text-align: right;
  white-space: nowrap;
}

.data-table th.num {
  padding-right: 0.9rem;
}

.data-table .nowrap {
  white-space: nowrap;
}

.data-table td:last-child,
.data-table th:last-child {
  padding-right: 0;
}

.data-table tbody th {
  font-weight: 700;
  min-width: 10.5rem;
}

.data-table .sub {
  display: block;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--ink-soft);
}

.index-figure {
  margin: 0.4rem 0 1rem;
}

.index-figure b {
  display: block;
  color: var(--pen);
  font-family: var(--hand);
  font-size: 3.4rem;
  line-height: 1;
}

.index-figure span {
  display: block;
  margin-top: 0.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.cancant ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.cancant li {
  padding-left: 1.2rem;
  border-left: 4px solid var(--envelope);
}

.cancant .cant li {
  border-left-color: var(--rule-strong);
}

.callband {
  padding-block: clamp(2.5rem, 6vw, 4rem);
  background: var(--envelope) var(--tint);
}

.callband .inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.4rem, 4vw, 2.25rem);
  background: var(--paper);
  border-radius: 3px;
  box-shadow: 0 12px 22px -16px rgba(20, 33, 61, 0.6);
}

.callband h2 {
  margin-bottom: 0.6rem;
}

.callband .btn.call {
  justify-self: start;
}

@media (min-width: 54rem) {
  .callband .inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2.5rem;
  }

  .callband .btn.call {
    justify-self: end;
  }
}

.faq {
  max-width: 46rem;
}

.faq details {
  border-top: 1px solid var(--rule-strong);
}

.faq details:last-child {
  border-bottom: 1px solid var(--rule-strong);
}

.faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0 0.95rem;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details > div {
  padding: 0 0 1.25rem;
  max-width: 62ch;
  color: var(--ink-soft);
}

.faq details p + p {
  margin-top: 0.7rem;
}

/* ---------- content pages ---------- */

.page {
  padding-block: clamp(1rem, 4vw, 2.5rem) var(--gap-section);
}

.page-head {
  max-width: 46rem;
  margin-bottom: clamp(1.75rem, 5vw, 2.75rem);
}

.page-head .lead {
  margin-top: 1rem;
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.prose {
  max-width: 44rem;
}

.prose h2 {
  margin: 2.6rem 0 0.8rem;
  font-size: 1.6rem;
}

.prose h3 {
  margin: 1.8rem 0 0.5rem;
}

.prose p,
.prose ul,
.prose ol,
.prose dl {
  margin: 0 0 1rem;
}

.prose ul,
.prose ol {
  padding-left: 1.3rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.prose dt {
  font-weight: 700;
}

.prose dd {
  margin: 0.15rem 0 0.9rem;
}

.paper-panel {
  padding: clamp(1.2rem, 4vw, 2rem);
  background: var(--paper);
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(20, 33, 61, 0.08);
}

.note {
  margin: 1.4rem 0;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--envelope);
  background: var(--paper);
}

.state-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}

.state-list li {
  display: grid;
  gap: 0.15rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--rule);
}

.state-list b {
  font-weight: 700;
}

@media (min-width: 44rem) {
  .state-list li {
    grid-template-columns: 11rem minmax(0, 1fr);
    gap: 1rem;
  }
}

/* ---------- footer ---------- */

.site-footer {
  padding-block: 2.75rem 3rem;
  background: var(--ink);
  color: #d5dcea;
  font-size: 0.95rem;
  line-height: 1.5;
}

.site-footer a {
  color: #fff;
}

.site-footer .wrap {
  display: grid;
  gap: 1.5rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  font-weight: 600;
}

.site-footer p {
  max-width: 78ch;
}

/* ---------- self-test ---------- */

.selftest-list {
  margin: 1rem 0;
  padding: 0;
  list-style: none;
  font-size: 0.98rem;
  font-variant-numeric: tabular-nums;
}

.selftest-list li {
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--rule);
  overflow-wrap: anywhere;
}

.selftest-list .pass::before {
  content: "pass  ";
  font-weight: 800;
  color: var(--ok);
}

.selftest-list .fail::before {
  content: "FAIL  ";
  font-weight: 800;
  color: var(--pen);
}

/* ---------- motion and print ---------- */

@media (prefers-reduced-motion: reduce) {
  .pen-note.draw svg {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

@media print {
  body {
    background: #fff;
    font-size: 11pt;
  }

  .site-header,
  .site-footer,
  .hero-copy,
  .section,
  .callband,
  .notice-head,
  #check-form,
  .result > :not(.callsheet),
  .no-print {
    display: none !important;
  }

  .hero,
  .hero .wrap,
  .envelope,
  .notice {
    display: block;
    margin: 0;
    padding: 0;
    top: 0;
    background: none;
    box-shadow: none;
  }

  .callsheet {
    margin: 0;
    padding: 0;
    border: 0;
  }

  .print-only {
    display: block;
  }

  .print-only > p {
    margin-top: 1.5rem;
  }

  a {
    color: inherit;
    text-decoration: none;
  }
}
