:root {
  color-scheme: dark;
  --app-height: 100dvh;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --mobile-nav-height: 74px;
  --ink: #070b13;
  --ink-deep: #03060b;
  --paper: #f4efe5;
  --muted: #aab4c0;
  --muted-low: #7b8796;
  --gold: #d9ad59;
  --gold-bright: #f3d58c;
  --blue: #57b8ed;
  --line: rgba(203, 216, 229, 0.18);
  --panel: rgba(5, 9, 16, 0.82);
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.58);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  font: inherit;
}

a,
button,
select,
input[type="radio"],
input[type="checkbox"] {
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

/*
 * Route changes move focus to the new screen or heading so assistive
 * technology announces the updated content. These are reading targets rather
 * than controls, so they should not inherit the bright interactive focus ring.
 */
.screen[tabindex="-1"]:focus,
.math-step h3[tabindex="-1"]:focus,
[data-sign-state] h2[tabindex="-1"]:focus {
  outline: none;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: 6px;
  background: white;
  color: black;
  padding: 9px 13px;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.world,
.world-shade,
.world-grain {
  position: fixed;
  inset: 0;
}

.world {
  background-image: url("/assets/generated/gothic-cathedral-background.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.015);
}

.world-shade {
  background:
    linear-gradient(90deg, rgba(2, 5, 10, 0.76) 0%, rgba(2, 5, 10, 0.44) 39%, rgba(2, 5, 10, 0.06) 70%),
    linear-gradient(180deg, rgba(2, 4, 8, 0.7) 0%, transparent 20%, transparent 72%, rgba(2, 4, 8, 0.82) 100%);
}

.world-grain {
  opacity: 0.13;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 5px 5px;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.app-shell {
  position: relative;
  z-index: 2;
  display: grid;
  width: 100%;
  height: var(--app-height);
  grid-template-rows: 96px minmax(0, 1fr) 36px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(2, 5, 10, 0.92), rgba(2, 5, 10, 0.52));
  padding: 4px clamp(22px, 4vw, 68px);
}

.wordmark {
  display: block;
  min-width: 230px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-lockup {
  display: block;
  width: auto;
  height: 54px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.62));
}

.tab-rail {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(4px, 1.2vw, 18px);
}

.tab-link {
  position: relative;
  display: grid;
  min-width: 72px;
  height: 82px;
  place-items: center;
  align-content: center;
  color: #aab3bf;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease, transform 160ms ease;
}

.tab-link img {
  width: 47px;
  height: 47px;
  object-fit: contain;
  opacity: 0.7;
  filter: saturate(0.7) brightness(0.82);
  transition: opacity 160ms ease, filter 160ms ease, transform 160ms ease;
}

.tab-link span {
  margin-top: -3px;
}

.tab-link::after {
  content: "";
  position: absolute;
  right: 20%;
  bottom: -8px;
  left: 20%;
  height: 1px;
  transform: scaleX(0);
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  box-shadow: 0 0 10px rgba(243, 213, 140, 0.55);
  transition: transform 160ms ease;
}

.tab-link:hover,
.tab-link.is-active {
  color: var(--gold-bright);
  transform: translateY(-1px);
}

.tab-link:hover img,
.tab-link.is-active img {
  opacity: 1;
  filter: saturate(1) brightness(1.05);
  transform: scale(1.08);
}

.tab-link.is-active::after {
  transform: scaleX(1);
}

.screen-stage {
  display: grid;
  min-height: 0;
  align-items: center;
  justify-items: center;
  touch-action: pan-y;
  padding: 18px clamp(20px, 4vw, 68px);
}

.content-frame {
  position: relative;
  width: min(780px, 90vw);
  height: 100%;
  min-height: 0;
  isolation: isolate;
}

.screen {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-items: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.screen.is-active {
  opacity: 1;
  transform: translateY(0);
}

.screen-inner {
  width: 100%;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(217, 173, 89, 0.45) transparent;
  padding: 8px;
  text-shadow: 0 2px 9px rgba(0, 0, 0, 0.82);
}

.screen-inner::-webkit-scrollbar {
  width: 5px;
}

.screen-inner::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: rgba(217, 173, 89, 0.45);
}

.kicker {
  margin: 0 0 14px;
  color: var(--gold-bright);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.kicker:not(#survey-progress) {
  display: none;
}

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

.display-heading {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 176px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 7px 10px rgba(0, 0, 0, 0.64));
}

.display-heading-home {
  max-height: 196px;
}

.display-heading-compact {
  max-height: 138px;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.7rem, 5.25vw, 6.15rem);
}

h1 span {
  background: linear-gradient(90deg, #f7e4ac, var(--gold), #b88039);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  max-width: 650px;
  font-size: clamp(2.3rem, 3.55vw, 4rem);
}

.lede {
  max-width: 560px;
  margin: 24px 0 0;
  color: #c6ced8;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.58;
}

.signature-count {
  display: grid;
  width: max-content;
  margin-top: 22px;
}

.signature-count strong {
  color: var(--gold-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 4.6vw, 5.1rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.9;
  text-shadow: 0 0 28px rgba(217, 173, 89, 0.2);
}

.signature-count span {
  margin-top: 8px;
  color: #edf1f5;
  font-size: 0.71rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.signature-count small {
  margin-top: 4px;
  color: var(--muted-low);
  font-size: 0.66rem;
}

.section-copy {
  max-width: 620px;
  margin: 20px 0 0;
  color: #b9c3cf;
  font-size: 0.92rem;
  line-height: 1.62;
}

.home-screen {
  padding-block: 20px;
  text-align: center;
}

.home-screen .display-heading,
.home-screen .lede,
.home-screen .signature-count,
.home-screen .quiet-note {
  margin-inline: auto;
}

.home-screen .display-heading {
  object-position: center;
}

.home-screen .primary-actions {
  display: block;
  margin-top: 20px;
}

.home-screen .petition-image-button {
  margin-inline: auto;
}

.home-ask-link {
  display: block;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: color 160ms ease, text-decoration-color 160ms ease, text-shadow 160ms ease;
}

.home-ask-link:hover,
.home-ask-link:focus-visible {
  color: #fff0be;
  text-decoration-color: rgba(243, 213, 140, 0.7);
  text-shadow: 0 0 16px rgba(243, 213, 140, 0.22);
}

.primary-actions,
.single-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  margin-top: 28px;
}

.single-action {
  margin-top: 22px;
}

.ornate-button {
  position: relative;
  display: inline-flex;
  min-width: 0;
  min-height: 0;
  align-items: center;
  justify-content: flex-start;
  appearance: none;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--gold-bright);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  padding: 10px 0;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease, transform 160ms ease, text-shadow 160ms ease;
}

.ornate-button::before {
  content: none;
}

.ornate-button span {
  position: relative;
  z-index: 1;
}

.ornate-button span::before,
.ornate-button span::after {
  content: none;
}

.ornate-button:hover {
  transform: translateX(4px);
  color: white;
  text-shadow: 0 0 12px rgba(243, 213, 140, 0.58);
}

.ornate-button:disabled {
  cursor: wait;
  opacity: 0.52;
  transform: none;
}

.ornate-button-gold {
  background: transparent;
  color: #fff3ca;
}

.petition-image-button {
  display: block;
  width: clamp(250px, 26vw, 430px);
  max-width: 100%;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  filter: drop-shadow(0 9px 13px rgba(0, 0, 0, 0.72));
  text-decoration: none;
  transition: filter 160ms ease, transform 160ms ease;
}

.petition-button-art {
  display: block;
  width: 100%;
  height: auto;
}

.petition-image-button:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.015);
  filter:
    drop-shadow(0 11px 15px rgba(0, 0, 0, 0.76))
    drop-shadow(0 0 11px rgba(243, 213, 140, 0.32));
}

.petition-image-button:focus-visible {
  border-radius: 10px;
  outline: 2px solid var(--blue);
  outline-offset: 5px;
}

.petition-image-button:disabled {
  cursor: wait;
  filter: grayscale(0.18) drop-shadow(0 7px 10px rgba(0, 0, 0, 0.62));
  opacity: 0.5;
  transform: none;
}

.quiet-note {
  margin: 20px 0 0;
  color: var(--muted-low);
  font-size: 0.69rem;
}

.compact-list {
  display: grid;
  gap: 0;
  margin: 23px 0 0;
  list-style: none;
  padding: 0;
}

.compact-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  border-top: 1px solid var(--line);
  color: #d5dce4;
  font-size: 0.84rem;
  padding: 10px 4px;
}

.compact-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.compact-list span {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 0.72rem;
}

.fact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 28px;
  border-block: 1px solid var(--line);
}

.fact-grid > div {
  min-height: 105px;
  padding: 19px 22px 17px 0;
}

.fact-grid > div:nth-child(even) {
  border-left: 1px solid var(--line);
  padding-left: 26px;
}

.fact-grid > div:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}

.fact-grid strong,
.fact-grid span {
  display: block;
}

.fact-grid strong {
  color: var(--gold-bright);
  font-family: Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.12;
}

.fact-grid span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.72rem;
}

.math-screen {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  padding-block: 2px;
}

.math-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.math-header .kicker {
  margin-bottom: 6px;
}

.display-heading-math {
  max-height: 82px;
}

.math-scenario {
  display: flex;
  flex-shrink: 0;
  gap: 7px;
  padding-top: 7px;
}

.math-scenario span {
  border: 1px solid rgba(217, 173, 89, 0.32);
  border-radius: 999px;
  background: rgba(4, 9, 16, 0.56);
  color: var(--muted);
  font-size: 0.61rem;
  padding: 5px 9px;
  white-space: nowrap;
}

.math-scenario strong {
  color: var(--gold-bright);
  font-weight: 900;
}

.math-progress {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  color: #b6c0ca;
  font-size: 0.61rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.math-progress-track {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 5px;
}

.math-progress-track i {
  height: 2px;
  background: rgba(203, 216, 229, 0.17);
  transition: background 160ms ease, box-shadow 160ms ease;
}

.math-progress-track i.is-complete {
  background: rgba(217, 173, 89, 0.62);
}

.math-progress-track i.is-current {
  background: var(--gold-bright);
  box-shadow: 0 0 8px rgba(243, 213, 140, 0.6);
}

.math-step-stage {
  display: grid;
  min-height: 0;
  flex: 0 0 auto;
  align-items: start;
  margin-top: clamp(22px, 3.2vh, 34px);
}

.math-step {
  min-width: 0;
  animation: math-step-in 180ms ease both;
}

@keyframes math-step-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.evidence-tag {
  display: inline-flex;
  align-items: center;
  border-left: 2px solid var(--gold);
  color: var(--gold-bright);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  padding-left: 8px;
  text-transform: uppercase;
}

.evidence-tag.official {
  border-color: var(--blue);
  color: #9edcff;
}

.evidence-tag.proposal {
  border-color: #c899ec;
  color: #dfc1f5;
}

.evidence-tag.measured {
  border-color: var(--blue);
  color: #9edcff;
}

.evidence-tag.result-label {
  border-color: #f3d58c;
  color: #fff1c4;
}

.math-step h3 {
  max-width: 690px;
  margin: 8px 0 0;
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 2.4vw, 2.55rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.math-intro {
  max-width: 680px;
  margin: 10px 0 0;
  color: #b9c3cf;
  font-size: 0.78rem;
  line-height: 1.55;
}

.choice-row {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  border: 0;
  margin: 0;
  padding: 0;
}

.choice-row-two {
  grid-template-columns: repeat(2, 1fr);
}

.choice-row legend {
  grid-column: 1 / -1;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.choice-row label {
  position: relative;
  cursor: pointer;
}

.choice-row input {
  position: absolute;
  opacity: 0;
}

.choice-row span {
  display: flex;
  min-height: 52px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(4, 9, 16, 0.58);
  color: #b7c0cb;
  font-size: 0.82rem;
  font-weight: 850;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.choice-row span small {
  margin-top: 2px;
  color: var(--muted-low);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.choice-row input:checked + span {
  border-color: rgba(217, 173, 89, 0.68);
  background: rgba(163, 111, 45, 0.18);
  color: var(--gold-bright);
}

.choice-row input:checked + span small {
  color: #cdbb96;
}

.choice-row input:focus-visible + span {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.math-audience-options,
.math-nonsubscriber-options {
  margin-top: 18px;
}

.subscriber-split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.subscriber-split > div {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 112px;
  flex-direction: column;
  justify-content: center;
  border-block: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(8, 15, 25, 0.76), rgba(8, 15, 25, 0.2));
  padding: 13px 14px;
}

.subscriber-split span {
  color: #b7c1cc;
  font-size: 0.64rem;
  font-weight: 780;
  letter-spacing: 0.025em;
}

.subscriber-split strong {
  margin-top: 4px;
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 600;
  line-height: 1;
}

.subscriber-split small {
  margin-top: 6px;
  color: var(--muted-low);
  font-size: 0.57rem;
  line-height: 1.35;
}

.subscriber-split .subscriber-split-result {
  border-color: rgba(217, 173, 89, 0.4);
  background: linear-gradient(135deg, rgba(163, 111, 45, 0.2), rgba(8, 15, 25, 0.34));
}

.subscriber-split-result strong {
  color: var(--gold-bright);
}

.split-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.split-panel > div {
  display: grid;
  min-width: 0;
  border-block: 1px solid rgba(217, 173, 89, 0.32);
  background: linear-gradient(135deg, rgba(163, 111, 45, 0.18), rgba(8, 15, 25, 0.34));
  padding: 16px;
}

.split-panel span {
  color: #b7c1cc;
  font-size: 0.65rem;
  font-weight: 780;
}

.split-panel strong {
  margin-top: 5px;
  color: var(--gold-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  font-weight: 600;
}

.split-panel small {
  margin-top: 7px;
  color: var(--muted-low);
  font-size: 0.59rem;
  line-height: 1.42;
}

.formula-stack {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 26px;
  margin-top: 18px;
}

.formula-block {
  display: grid;
  margin-top: 18px;
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(8, 15, 25, 0.68), rgba(8, 15, 25, 0.12));
  padding: 15px 16px;
}

.formula-stack .formula-block {
  margin-top: 0;
}

.formula-block span {
  color: #aeb9c5;
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.03em;
}

.formula-block strong {
  margin-top: 5px;
  color: var(--gold-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.1vw, 2rem);
  font-weight: 600;
  line-height: 1.08;
}

.formula-block small {
  margin-top: 3px;
  color: var(--muted-low);
  font-size: 0.61rem;
}

.formula-result {
  border-color: rgba(217, 173, 89, 0.38);
}

.math-footnote {
  max-width: 700px;
  margin: 11px 0 0;
  color: #84909e;
  font-size: 0.62rem;
  line-height: 1.5;
}

.math-footnote a {
  color: #a9dbf7;
  text-underline-offset: 3px;
}

.annual-result-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 10px;
  margin-top: 12px;
}

.party-result {
  border-top: 1px solid rgba(217, 173, 89, 0.48);
  background: linear-gradient(110deg, rgba(7, 14, 23, 0.78), rgba(14, 24, 34, 0.38));
  padding: 13px 15px 11px;
}

.party-result-ascension {
  border-top-color: rgba(126, 209, 240, 0.5);
}

.party-result-single {
  width: min(100%, 680px);
  margin-top: 14px;
  padding: 18px 20px 15px;
}

.party-result-label,
.party-result > small {
  display: block;
}

.party-result-label {
  color: var(--gold-bright);
  font-size: 0.61rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.party-result-total {
  display: block;
  margin-top: 2px;
  color: #fff5d9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  font-weight: 700;
  line-height: 1;
}

.party-result > small {
  margin-top: 3px;
  color: #aeb8c4;
  font-size: 0.59rem;
}

.result-breakdown {
  margin: 9px 0 0;
}

.result-breakdown div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  border-bottom: 1px solid rgba(203, 216, 229, 0.11);
  padding: 5px 0;
}

.result-breakdown dt {
  color: #aeb8c4;
  font-size: 0.56rem;
}

.result-breakdown dd {
  margin: 0;
  color: #f2f4f7;
  font-size: 0.62rem;
  font-weight: 800;
  white-space: nowrap;
}

.combined-result {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
  border-block: 1px solid rgba(217, 173, 89, 0.34);
  background: rgba(13, 21, 30, 0.48);
  padding: 7px 14px;
}

.combined-result span {
  color: #d7dee6;
  font-size: 0.63rem;
  font-weight: 760;
}

.combined-result strong {
  color: var(--gold-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  white-space: nowrap;
}

.combined-result-hero {
  align-items: center;
  margin-top: 18px;
  padding: 17px 18px;
}

.combined-result-hero span {
  max-width: 310px;
  font-size: 0.75rem;
}

.combined-result-hero strong {
  font-size: clamp(2rem, 4.2vw, 3rem);
}

.result-summary-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.result-summary-row > div {
  display: grid;
  gap: 4px;
  border-top: 1px solid rgba(203, 216, 229, 0.2);
  background: rgba(6, 12, 20, 0.54);
  padding: 12px 14px;
}

.result-summary-row span {
  color: #aeb8c4;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.result-summary-row strong {
  color: #fff1c4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  line-height: 1;
}

.result-signing-case {
  margin: 8px 0 0;
  color: #e8edf2;
  font-size: 0.68rem;
  line-height: 1.42;
}

.result-intro strong {
  color: #fff1c5;
}

.result-footnote {
  margin-top: 5px;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--gold-bright);
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  padding: 10px 0 5px;
  text-decoration: underline;
  text-decoration-color: rgba(217, 173, 89, 0.38);
  text-underline-offset: 4px;
  text-transform: uppercase;
}

.math-navigation,
.flow-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: clamp(20px, 3vh, 30px);
  border-top: 1px solid rgba(203, 216, 229, 0.12);
  padding-top: 5px;
}

.math-navigation > *,
.flow-navigation > * {
  min-width: 0;
}

.math-next,
.flow-next {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: #fff1c4;
  text-align: right;
  text-decoration: none;
}

.math-next b,
.flow-next b {
  font-size: 1rem;
}

.flow-navigation {
  margin-top: 24px;
}

.sign-screen h2 {
  font-size: clamp(2.1rem, 3.25vw, 3.55rem);
}

.sign-screen {
  overflow: hidden;
}

.sign-screen .sign-state,
.sign-screen form,
.sign-screen .field-row > label {
  min-width: 0;
  max-width: 100%;
}

.sign-copy {
  margin-top: 14px;
  font-size: 0.8rem;
}

.privacy-assurance {
  margin-top: 11px;
  color: #c7d1dc;
  font-size: 0.69rem;
  line-height: 1.45;
}

.privacy-assurance > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gold-bright);
  font-size: 0.61rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.privacy-assurance > span::before {
  width: 7px;
  height: 7px;
  border: 1px solid var(--blue);
  content: "";
  transform: rotate(45deg);
  box-shadow: 0 0 9px rgba(87, 184, 237, 0.34);
}

.privacy-assurance p {
  margin: 4px 0 0;
}

.privacy-assurance a {
  color: #fff0be;
  text-decoration-color: rgba(217, 173, 89, 0.45);
  text-underline-offset: 3px;
}

#signature-form {
  margin-top: 13px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

#signature-form label > span,
.country-field > span {
  display: block;
  margin-bottom: 5px;
  color: #aeb8c4;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  height: 42px;
  border: 1px solid rgba(203, 216, 229, 0.23);
  border-radius: 2px;
  background: rgba(5, 10, 17, 0.82);
  color: white;
  padding: 0 11px;
}

.country-field {
  display: block;
  margin-top: 11px;
}

.country-picker {
  position: relative;
}

.country-trigger {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(203, 216, 229, 0.28);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(15, 25, 38, 0.88), rgba(3, 8, 15, 0.84));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 34px rgba(0, 0, 0, 0.24);
  color: #dce4ec;
  padding: 0 15px;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.country-trigger:hover,
.country-picker.is-open .country-trigger {
  border-color: rgba(217, 173, 89, 0.68);
  background:
    linear-gradient(135deg, rgba(20, 31, 45, 0.94), rgba(5, 11, 19, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(87, 184, 237, 0.12),
    0 15px 38px rgba(0, 0, 0, 0.32);
}

.country-trigger[aria-invalid="true"] {
  border-color: #e5a75c;
  box-shadow: 0 0 0 3px rgba(229, 167, 92, 0.16);
}

.country-trigger.has-value #country-value {
  color: white;
}

#country-value {
  margin: 0;
  color: #aab5c2;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.country-chevron {
  width: 9px;
  height: 9px;
  transform: rotate(45deg) translateY(-2px);
  border-right: 2px solid var(--gold-bright);
  border-bottom: 2px solid var(--gold-bright);
  transition: transform 160ms ease;
}

.country-picker.is-open .country-chevron {
  transform: rotate(225deg) translate(-2px, -1px);
}

.country-menu {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  display: flex;
  width: min(calc(100vw - 24px), 440px);
  max-height: 386px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(217, 173, 89, 0.4);
  border-radius: 18px;
  background:
    radial-gradient(circle at 85% 0%, rgba(87, 184, 237, 0.16), transparent 42%),
    linear-gradient(145deg, rgba(17, 27, 40, 0.93), rgba(3, 7, 13, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 70px rgba(0, 0, 0, 0.62),
    0 0 42px rgba(87, 184, 237, 0.08);
  -webkit-backdrop-filter: blur(26px) saturate(1.3);
  backdrop-filter: blur(26px) saturate(1.3);
}

.country-menu[hidden] {
  display: none;
}

.country-menu-header {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(203, 216, 229, 0.13);
  color: var(--gold-bright);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  padding: 0 10px 0 17px;
  text-transform: uppercase;
}

.country-menu-close {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(203, 216, 229, 0.16);
  border-radius: 50%;
  background: rgba(2, 6, 11, 0.42);
  color: #d9e2eb;
  font-size: 1.25rem;
  line-height: 1;
}

.country-menu-close:hover {
  border-color: rgba(217, 173, 89, 0.58);
  color: white;
}

.country-options {
  display: grid;
  min-height: 0;
  flex: 1;
  gap: 5px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 9px;
  scrollbar-color: rgba(217, 173, 89, 0.7) rgba(2, 6, 11, 0.45);
  scrollbar-width: thin;
}

.country-options [role="option"] {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #c9d2dc;
  font-size: 0.83rem;
  font-weight: 650;
  padding: 10px 14px 10px 39px;
  text-align: left;
}

.country-options [role="option"]::before {
  position: absolute;
  left: 16px;
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  border: 1px solid rgba(217, 173, 89, 0.58);
  background: rgba(4, 9, 16, 0.76);
  box-shadow: 0 0 8px transparent;
  content: "";
}

.country-options [role="option"]:hover,
.country-options [role="option"]:focus-visible {
  border-color: rgba(87, 184, 237, 0.25);
  outline: none;
  background: linear-gradient(90deg, rgba(87, 184, 237, 0.14), rgba(217, 173, 89, 0.07));
  color: white;
}

.country-options [role="option"][aria-selected="true"] {
  border-color: rgba(217, 173, 89, 0.42);
  background:
    linear-gradient(90deg, rgba(217, 173, 89, 0.2), rgba(87, 184, 237, 0.14));
  color: #fff4d2;
  box-shadow: inset 0 0 24px rgba(217, 173, 89, 0.05);
}

.country-options [role="option"][aria-selected="true"]::before {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: 0 0 12px rgba(87, 184, 237, 0.62);
}

.authorization {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 9px;
  margin: 13px 0 14px;
  color: #929daa;
  font-size: 0.63rem;
  line-height: 1.4;
}

.authorization input {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: var(--gold);
}

.authorization > span {
  margin: 0 !important;
  color: inherit !important;
  font-size: inherit !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.authorization a {
  color: var(--gold-bright);
}

.honeypot {
  position: fixed !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-status {
  min-height: 1.4em;
  margin: 6px 0 0;
  color: #f0c887;
  font-size: 0.65rem;
}

.sign-form-back {
  display: block;
  margin: 1px auto 0;
}

#signature-form .petition-image-button {
  width: min(100%, 470px, 48svh);
  margin-inline: auto;
}

.sign-message {
  display: flex;
  width: 100%;
  max-width: 590px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  margin-inline: auto;
  padding-block: 24px;
  text-align: center;
}

.sign-message .kicker {
  margin-bottom: 18px;
  text-align: center;
}

.sign-message h2 {
  max-width: 570px;
  margin-inline: auto;
}

.sign-message p {
  max-width: 520px;
  margin: 15px auto 0;
  color: var(--muted);
  font-size: 0.83rem;
}

.sign-message .primary-actions,
.sign-message > .ornate-button {
  align-items: center;
  justify-content: center;
  margin-top: 26px;
}

.message-back {
  display: block;
  margin: 18px auto 0;
}

.success-sigil {
  display: block;
  width: auto;
  height: auto;
  margin: 0 auto 24px;
  transform: none;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: transparent;
}

.success-sigil::after {
  content: "✓";
  display: block;
  transform: none;
  color: var(--gold-bright);
  font-size: 1.75rem;
  line-height: 1;
  text-shadow: 0 0 18px rgba(243, 213, 140, 0.34);
}

.loading-sigil {
  width: 30px;
  height: 30px;
  margin: 0 auto 24px;
  animation: sigil-spin 900ms linear infinite;
  border: 2px solid rgba(243, 213, 140, 0.2);
  border-top-color: var(--gold-bright);
  border-radius: 50%;
}

@keyframes sigil-spin {
  to {
    transform: rotate(360deg);
  }
}

.survey-help {
  margin: 14px 0 0;
  color: var(--muted-low);
  font-size: 0.73rem;
}

.survey-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}

.survey-option {
  position: relative;
}

.survey-option input {
  position: absolute;
  opacity: 0;
}

.survey-option span {
  display: grid;
  min-height: 45px;
  place-items: center start;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: #b8c2cd;
  font-size: 0.71rem;
  padding: 8px 11px;
}

.survey-option input:checked + span {
  border-color: rgba(217, 173, 89, 0.72);
  background: rgba(155, 103, 40, 0.18);
  color: #fff0c2;
}

.survey-option input:focus-visible + span {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.survey-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}

.survey-actions .ornate-button {
  min-width: 0;
  min-height: 0;
}

.statusbar {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(2, 5, 9, 0.84);
  color: #737e8b;
  font-size: 0.56rem;
  letter-spacing: 0.055em;
  padding: 0 clamp(22px, 4vw, 68px);
  text-transform: uppercase;
}

.statusbar a {
  color: #8e99a6;
  text-decoration-color: rgba(217, 173, 89, 0.42);
  text-underline-offset: 3px;
}

.statusbar a:hover {
  color: var(--gold-bright);
}

.status-separator {
  width: 3px;
  height: 3px;
  transform: rotate(45deg);
  background: var(--gold);
}

.status-spacer {
  flex: 1;
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-rows: 78px minmax(0, 1fr) calc(var(--mobile-nav-height) + var(--safe-bottom));
  }

  .topbar {
    padding-block: 4px;
    padding-inline: 20px;
  }

  .wordmark {
    min-width: 205px;
  }

  .brand-lockup {
    height: 46px;
  }

  .tab-rail {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    height: calc(var(--mobile-nav-height) + var(--safe-bottom));
    justify-content: center;
    gap: clamp(2px, 4vw, 26px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(3, 7, 12, 0.94);
    backdrop-filter: blur(16px);
    padding-bottom: var(--safe-bottom);
  }

  .tab-link {
    width: 62px;
    min-width: 58px;
    height: 70px;
  }

  .tab-link img {
    width: 40px;
    height: 40px;
  }

  .tab-link::after {
    top: 0;
    bottom: auto;
  }

  .screen-stage {
    justify-items: center;
    padding: 8px 16px;
  }

  .content-frame {
    width: min(780px, 90vw);
    height: 100%;
    min-height: 0;
  }

  .statusbar {
    display: none;
  }

  .world {
    background-position: 64% center;
  }
}

@media (max-width: 680px) {
  .app-shell {
    --mobile-nav-height: 72px;
    grid-template-rows: calc(64px + var(--safe-top)) minmax(0, 1fr) calc(var(--mobile-nav-height) + var(--safe-bottom));
  }

  .topbar {
    justify-content: center;
    padding-top: calc(3px + var(--safe-top));
    padding-bottom: 3px;
  }

  .wordmark {
    min-width: 0;
  }

  .brand-lockup {
    height: 38px;
  }

  .screen-stage {
    justify-items: center;
    padding: 4px 6px;
  }

  .content-frame {
    width: min(90vw, 640px);
    height: 100%;
    min-height: 0;
  }

  .screen {
    inset: 0;
  }

  .screen-inner {
    overflow-y: hidden;
    padding: 4px;
  }

  .display-heading {
    max-height: 140px;
  }

  .display-heading-home {
    max-height: 162px;
  }

  .display-heading-compact {
    max-height: 84px;
  }

  .sign-screen .kicker {
    margin-bottom: 6px;
    font-size: 0.57rem;
  }

  .sign-copy {
    margin-top: 7px;
    font-size: 0.68rem;
    line-height: 1.35;
  }

  .privacy-assurance {
    margin-top: 6px;
    font-size: 0.6rem;
    line-height: 1.3;
  }

  .privacy-assurance > span {
    gap: 6px;
    font-size: 0.53rem;
  }

  .privacy-assurance p {
    margin-top: 2px;
  }

  #signature-form {
    margin-top: 7px;
  }

  .lede {
    margin-top: 18px;
    font-size: 0.94rem;
  }

  .section-copy {
    margin-top: 14px;
    font-size: 0.78rem;
  }

  .primary-actions {
    align-items: stretch;
    flex-direction: column;
    margin-top: 22px;
  }

  .ornate-button {
    width: auto;
    min-width: 0;
    min-height: 0;
  }

  .compact-list {
    margin-top: 16px;
  }

  .compact-list li {
    padding-block: 8px;
    font-size: 0.72rem;
  }

  .fact-grid {
    margin-top: 18px;
  }

  .fact-grid > div {
    min-height: 85px;
    padding: 13px 12px 12px 0;
  }

  .fact-grid > div:nth-child(even) {
    padding-left: 15px;
  }

  .fact-grid strong {
    font-size: 1.15rem;
  }

  .fact-grid span {
    font-size: 0.62rem;
  }

  .math-header {
    display: block;
  }

  .display-heading-math {
    max-height: 62px;
  }

  .math-header .kicker {
    margin-bottom: 3px;
  }

  .math-scenario {
    padding-top: 4px;
  }

  .math-progress {
    gap: 9px;
    margin-top: 5px;
  }

  .math-step-stage {
    min-height: 0;
    margin-top: 16px;
  }

  .math-step h3 {
    margin-top: 6px;
    font-size: clamp(1.45rem, 7vw, 1.9rem);
  }

  .math-intro {
    margin-top: 7px;
    font-size: 0.7rem;
    line-height: 1.45;
  }

  .math-audience-options,
  .math-nonsubscriber-options,
  .formula-block,
  .formula-stack {
    margin-top: 10px;
  }

  .choice-row {
    gap: 5px;
  }

  .choice-row span {
    min-height: 49px;
    font-size: 0.75rem;
  }

  .choice-row span small {
    font-size: 0.5rem;
  }

  .formula-stack {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .formula-block {
    padding: 10px 11px;
  }

  .formula-block strong {
    font-size: 1.15rem;
  }

  .math-footnote {
    margin-top: 7px;
    font-size: 0.56rem;
  }

  .annual-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
  }

  .party-result {
    padding: 9px 11px 8px;
  }

  .party-result-single {
    margin-top: 8px;
  }

  .party-result-total {
    font-size: 1.45rem;
  }

  .party-result > small,
  .result-breakdown dt {
    font-size: 0.52rem;
  }

  .result-breakdown {
    margin-top: 5px;
  }

  .result-breakdown div {
    padding: 3px 0;
  }

  .combined-result {
    margin-top: 6px;
    padding: 6px 10px;
  }

  .combined-result strong {
    font-size: 1.05rem;
  }

  .combined-result-hero {
    margin-top: 9px;
    padding: 10px 11px;
  }

  .combined-result-hero span {
    font-size: 0.58rem;
  }

  .combined-result-hero strong {
    font-size: 1.5rem;
  }

  .result-summary-row {
    gap: 5px;
    margin-top: 6px;
  }

  .result-summary-row > div {
    padding: 8px 9px;
  }

  .result-summary-row span {
    font-size: 0.49rem;
  }

  .result-summary-row strong {
    font-size: 1.05rem;
  }

  .result-signing-case {
    margin-top: 6px;
    font-size: 0.59rem;
  }

  .math-navigation {
    gap: 8px;
    margin-top: 16px;
    padding-top: 2px;
  }

  .math-back {
    flex: 0 0 auto;
  }

  .math-next {
    max-width: 70%;
  }

  .subscriber-split {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin-top: 10px;
  }

  .subscriber-split > div {
    min-height: 102px;
    justify-content: flex-start;
    padding: 8px 7px;
  }

  .subscriber-split span {
    font-size: 0.54rem;
    line-height: 1.22;
  }

  .subscriber-split strong {
    font-size: clamp(1rem, 4.8vw, 1.25rem);
  }

  .subscriber-split small {
    margin-top: 3px;
    font-size: 0.48rem;
    line-height: 1.23;
  }

  .split-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    margin-top: 10px;
  }

  .split-panel > div {
    padding: 9px 10px;
  }

  .split-panel strong {
    font-size: 1.25rem;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  #signature-form label > span,
  .country-field > span {
    margin-bottom: 3px;
    font-size: 0.55rem;
  }

  input[type="text"],
  input[type="email"] {
    height: 38px;
    padding-inline: 9px;
    font-size: 0.78rem;
  }

  .country-field {
    margin-top: 6px;
  }

  .country-trigger {
    min-height: 44px;
    border-radius: 9px;
    padding-inline: 13px;
  }

  #country-value {
    font-size: 0.82rem;
  }

  .country-menu {
    max-width: none;
    border-radius: 20px;
  }

  .country-options {
    padding: 10px;
  }

  .country-options [role="option"] {
    min-height: 52px;
    border-radius: 12px;
    font-size: 0.91rem;
  }

  .authorization {
    gap: 7px;
    margin-block: 6px 7px;
    font-size: 0.56rem;
    line-height: 1.3;
  }

  .authorization input {
    width: 15px;
    height: 15px;
  }

  #signature-form .petition-image-button {
    width: min(100%, 320px, 46svh);
    margin-inline: auto;
  }

  .form-status {
    min-height: 1em;
    margin-top: 2px;
    font-size: 0.55rem;
  }

  .survey-options {
    gap: 6px;
    margin-top: 13px;
  }

  .survey-option span {
    min-height: 41px;
    font-size: 0.65rem;
    padding: 6px 8px;
  }

  .tab-link {
    width: auto;
    min-width: 0;
  }

  .tab-link img {
    width: 36px;
    height: 36px;
  }

  .tab-link span {
    font-size: 0.53rem;
  }

  .tab-rail {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    padding-inline: 4px;
  }
}

@media (max-width: 680px) and (max-height: 720px) {
  .app-shell {
    --mobile-nav-height: 60px;
    grid-template-rows: 0 minmax(0, 1fr) calc(var(--mobile-nav-height) + var(--safe-bottom));
  }

  .topbar {
    height: 0;
    overflow: hidden;
    border: 0;
    padding: 0;
  }

  .wordmark {
    display: none;
  }

  .tab-rail {
    height: calc(var(--mobile-nav-height) + var(--safe-bottom));
  }

  .tab-link {
    height: 58px;
  }

  .tab-link img {
    width: 31px;
    height: 31px;
  }

  .screen-stage {
    padding: 4px 6px;
  }

  .content-frame {
    width: min(94vw, 640px);
    height: 100%;
  }

  .screen-inner {
    padding: 2px;
  }

  .display-heading-math {
    max-height: 44px;
  }

  .math-scenario {
    gap: 4px;
    padding-top: 2px;
  }

  .math-scenario span {
    font-size: 0.5rem;
    padding: 3px 6px;
  }

  .math-progress {
    gap: 7px;
    margin-top: 3px;
    font-size: 0.54rem;
  }

  .math-step-stage {
    margin-top: 7px;
  }

  .evidence-tag {
    font-size: 0.48rem;
  }

  .math-step h3 {
    margin-top: 3px;
    font-size: 1.28rem;
    line-height: 0.98;
  }

  .math-intro {
    margin-top: 4px;
    font-size: 0.61rem;
    line-height: 1.28;
  }

  .choice-row legend {
    margin-bottom: 2px;
    font-size: 0.49rem;
  }

  .choice-row span {
    min-height: 38px;
    font-size: 0.65rem;
  }

  .choice-row span small {
    font-size: 0.44rem;
  }

  .math-audience-options,
  .math-nonsubscriber-options,
  .subscriber-split,
  .split-panel,
  .formula-block,
  .formula-stack {
    margin-top: 6px;
  }

  .subscriber-split > div {
    min-height: 86px;
    padding: 6px 5px;
  }

  .subscriber-split span {
    font-size: 0.49rem;
  }

  .subscriber-split strong {
    font-size: 1rem;
  }

  .subscriber-split small {
    font-size: 0.43rem;
  }

  .formula-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .formula-block {
    padding: 7px 8px;
  }

  .formula-block span {
    font-size: 0.54rem;
    line-height: 1.25;
  }

  .formula-block strong {
    font-size: 1rem;
  }

  .formula-block small,
  .split-panel small,
  .math-footnote {
    font-size: 0.46rem;
    line-height: 1.25;
  }

  .split-panel > div {
    padding: 7px 8px;
  }

  .split-panel span {
    font-size: 0.54rem;
  }

  .split-panel strong {
    font-size: 1.05rem;
  }

  .party-result {
    padding: 7px 8px;
  }

  .party-result-label {
    font-size: 0.51rem;
  }

  .party-result-total {
    font-size: 1.2rem;
  }

  .party-result > small,
  .result-breakdown dt,
  .result-breakdown dd {
    font-size: 0.46rem;
    line-height: 1.18;
  }

  .result-breakdown {
    margin-top: 4px;
  }

  .result-breakdown div {
    display: grid;
    gap: 1px;
    padding: 2px 0;
  }

  .combined-result {
    margin-top: 4px;
    padding: 4px 7px;
  }

  .combined-result span {
    font-size: 0.5rem;
  }

  .combined-result strong {
    font-size: 0.9rem;
  }

  .result-signing-case {
    margin-top: 4px;
    font-size: 0.51rem;
    line-height: 1.28;
  }

  .math-footnote {
    margin-top: 4px;
  }

  .math-navigation {
    margin-top: 6px;
  }

  .text-button {
    font-size: 0.54rem;
    padding-top: 3px;
  }
}

@media (max-height: 720px) and (min-width: 681px) {
  .app-shell {
    grid-template-rows: 78px minmax(0, 1fr) 28px;
  }

  .topbar {
    padding-block: 3px;
  }

  .tab-link {
    height: 70px;
  }

  .tab-link img {
    width: 39px;
    height: 39px;
  }

  .content-frame {
    height: 100%;
    min-height: 0;
  }

  .display-heading {
    max-height: 138px;
  }

  .display-heading-home {
    max-height: 154px;
  }

  .display-heading-compact {
    max-height: 104px;
  }

  .display-heading-math {
    max-height: 62px;
  }

  .math-step-stage {
    min-height: 0;
    margin-top: 16px;
  }

  .math-step h3 {
    font-size: 1.75rem;
  }

  .math-intro {
    margin-top: 7px;
  }

  .formula-block,
  .formula-stack,
  .math-audience-options,
  .math-nonsubscriber-options {
    margin-top: 10px;
  }

  .screen-inner {
    padding-block: 2px;
  }
}

@media (max-height: 720px) and (min-width: 681px) and (max-width: 980px) {
  .app-shell {
    --mobile-nav-height: 60px;
    grid-template-rows: 0 minmax(0, 1fr) calc(var(--mobile-nav-height) + var(--safe-bottom));
  }

  .topbar {
    height: 0;
    border: 0;
    padding: 0;
  }

  .wordmark {
    display: none;
  }

  .tab-rail {
    height: calc(var(--mobile-nav-height) + var(--safe-bottom));
  }

  .tab-link {
    height: 58px;
  }

  .tab-link img {
    width: 32px;
    height: 32px;
  }

  .screen-stage {
    padding-block: 6px;
  }

  .content-frame {
    height: 100%;
  }

  .math-header .kicker {
    margin-bottom: 2px;
    font-size: 0.55rem;
  }

  .display-heading-math {
    max-height: 52px;
  }

  .math-progress {
    margin-top: 3px;
  }

  .math-step-stage {
    margin-top: 9px;
  }

  .evidence-tag {
    font-size: 0.51rem;
  }

  .math-step h3 {
    margin-top: 4px;
    font-size: 1.5rem;
  }

  .math-intro {
    margin-top: 4px;
    font-size: 0.66rem;
    line-height: 1.35;
  }

  .math-audience-options,
  .math-nonsubscriber-options,
  .formula-block,
  .formula-stack,
  .subscriber-split,
  .split-panel {
    margin-top: 7px;
  }

  .choice-row legend {
    margin-bottom: 3px;
    font-size: 0.55rem;
  }

  .choice-row span {
    min-height: 42px;
    font-size: 0.7rem;
  }

  .subscriber-split > div {
    min-height: 72px;
    padding: 7px 9px;
  }

  .subscriber-split span {
    font-size: 0.56rem;
  }

  .subscriber-split strong {
    font-size: 1.18rem;
  }

  .subscriber-split small,
  .math-footnote {
    font-size: 0.5rem;
  }

  .math-footnote {
    margin-top: 5px;
  }

  .math-navigation {
    margin-top: 8px;
  }

  .split-panel strong {
    font-size: 1.25rem;
  }

  .split-panel small {
    font-size: 0.55rem;
    line-height: 1.4;
  }

  .text-button {
    font-size: 0.58rem;
    padding-top: 4px;
  }
}

@media (max-height: 720px) {
  .sign-screen .kicker {
    margin-bottom: 5px;
    font-size: 0.56rem;
  }

  .sign-screen .display-heading-compact {
    max-height: 78px;
  }

  .sign-copy {
    margin-top: 5px;
    font-size: 0.65rem;
  }

  .privacy-assurance {
    margin-top: 5px;
    font-size: 0.58rem;
  }

  #signature-form {
    margin-top: 6px;
  }

  input[type="text"],
  input[type="email"] {
    height: 36px;
  }

  .country-field {
    margin-top: 5px;
  }

  .country-trigger {
    min-height: 40px;
  }

  .authorization {
    margin-block: 5px 6px;
    font-size: 0.54rem;
  }
}

@media (max-width: 680px) {
  .sign-screen.layout-compact .display-heading-compact {
    max-height: 70px;
  }

  .sign-screen.layout-compact .sign-copy,
  .sign-screen.layout-compact .privacy-assurance,
  .sign-screen.layout-compact #signature-form {
    margin-top: 4px;
  }

  .sign-screen.layout-compact .authorization {
    margin-block: 4px;
  }

  .sign-screen.layout-compact #signature-form .petition-image-button {
    width: min(100%, 260px, 42vh);
  }

  .sign-screen.layout-compact .form-status {
    min-height: 0;
    margin: 0;
  }

  .sign-screen.layout-compact .sign-form-back {
    padding-top: 1px;
  }

  .sign-screen.layout-tight .display-heading-compact {
    max-height: 62px;
  }

  .sign-screen.layout-tight .sign-copy,
  .sign-screen.layout-tight .privacy-assurance {
    font-size: 0.52rem;
    line-height: 1.24;
  }

  .sign-screen.layout-tight input[type="text"],
  .sign-screen.layout-tight input[type="email"] {
    height: 32px;
  }

  .sign-screen.layout-tight .country-trigger {
    min-height: 34px;
  }

  .sign-screen.layout-tight .authorization {
    font-size: 0.48rem;
    line-height: 1.18;
  }

  .sign-screen.layout-tight #signature-form .petition-image-button {
    width: min(100%, 230px, 38vh);
  }
}

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