:root {
  --ink: #1d2830;
  --muted: #5f6f78;
  --surface: #ffffff;
  --surface-soft: #f7faf9;
  --line: #dbe5e1;
  --teal: #16766f;
  --teal-dark: #0e514c;
  --blue: #215a90;
  --gold: #b86712;
  --red: #b63c36;
  --green: #2f7a4c;
  --purple: #6950a1;
  --shadow: 0 20px 55px rgba(25, 44, 52, 0.14);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: #fbfaf6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 96px;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: #fbfaf6;
  line-height: 1.5;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid rgba(219, 229, 225, 0.88);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 10px 16px;
  border-radius: 10px;
  background: #0f5b46;
  text-decoration: none;
  transition: background 0.15s ease;
}

.brand:hover,
.brand:focus-visible {
  background: #16766f;
  outline: none;
}

.brand:focus-visible {
  outline: 2px solid #f4d35e;
  outline-offset: 2px;
}

.brand .brand-line-1 {
  color: #ffffff;
}

.brand .brand-line-2 {
  color: #f4d35e;
}

.brand-mark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: Georgia, "Source Serif Pro", "Lora", "Times New Roman", serif;
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.005em;
}

.brand-line-1 {
  color: var(--ink);
  font-size: 1.15rem;
}

.brand-line-2 {
  color: var(--teal-dark);
  font-size: 1.15rem;
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
}

nav a,
nav button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 9px;
  border: 0;
  border-radius: 8px;
  color: #314149;
  background: transparent;
  font-size: 0.94rem;
  font-weight: 750;
  white-space: nowrap;
}

nav a:hover,
nav a:focus-visible,
nav button:hover,
nav button:focus-visible {
  color: var(--teal-dark);
  background: #e8f3f0;
  outline: none;
}

nav a[aria-current="page"] {
  color: #ffffff;
  background: var(--teal);
}

.brand[aria-current="page"] {
  color: var(--teal-dark);
}

.hero {
  position: relative;
  background: #fbfaf6;
  border-bottom: 1px solid var(--line);
}

.hero-overlay {
  display: block;
  padding: clamp(18px, 3vw, 36px) clamp(18px, 5vw, 64px) clamp(52px, 7vw, 92px);
}

.hero-copy {
  max-width: 850px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 15ch;
  margin-bottom: 18px;
  color: #172228;
  font-size: clamp(2.35rem, 5vw, 4.45rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  line-height: 1.2;
}

.hero-copy p:last-child {
  max-width: 720px;
  color: #34444b;
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
}

.checker {
  width: 100%;
  margin-top: 28px;
}

.checker-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  grid-template-areas:
    "scenario scenario"
    "follow flags"
    "risk flags";
  gap: 12px;
  align-items: start;
}

.checker-side {
  display: grid;
  grid-area: flags;
  gap: 12px;
  min-width: 0;
}

.scenario-picker {
  grid-area: scenario;
  box-shadow: var(--shadow);
}

.follow-up-section {
  grid-area: follow;
}

.risk-panel {
  grid-area: risk;
}

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

legend {
  margin-bottom: 12px;
  color: #1f333a;
  font-size: 1.08rem;
  font-weight: 850;
}

.checker-help {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 0.94rem;
}

.checker-pane,
.risk-panel {
  padding: 16px;
  border: 1px solid #dbe7e3;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(28, 46, 53, 0.05);
}

.follow-up-section {
  background: #f8fbfa;
}

.general-red-flags {
  background: #fffaf3;
  border-color: #ecd9bf;
}

.url-checker {
  background: #f5f9ff;
  border-color: #d6e3f2;
}

.url-tool {
  width: 100%;
  margin-top: 12px;
  box-shadow: var(--shadow);
}

.url-section {
  background: #fbfaf6;
  border-bottom: 1px solid var(--line);
}

.url-section .url-tool {
  margin-top: 0;
}

.general-red-flags h3,
.url-checker h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.2;
}

.general-red-flags h3 {
  color: #7b460d;
}

.url-checker h3 {
  color: var(--blue);
}

.url-check-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.url-check-row label {
  grid-column: 1 / -1;
  color: #40545c;
  font-size: 0.92rem;
  font-weight: 850;
}

.url-check-row input {
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #cfdcd7;
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
}

.url-check-row input:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(33, 90, 144, 0.18);
}

.url-check-row button {
  min-height: 48px;
  padding: 10px 16px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: var(--blue);
  font-weight: 850;
}

.url-result {
  margin-top: 14px;
  padding: 14px;
  border-radius: 8px;
  background: #ffffff;
}

.url-result strong {
  display: block;
  margin-top: 2px;
  font-size: 1.45rem;
  line-height: 1.1;
}

.url-result p {
  margin: 8px 0 10px;
  color: #31444b;
}

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

.flag-list li {
  position: relative;
  padding-left: 24px;
  color: #3f4f57;
  font-size: 0.98rem;
}

.flag-list li::before {
  position: absolute;
  left: 0;
  top: 0.15rem;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--gold);
  content: "!";
  font-size: 0.68rem;
  font-weight: 900;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.checker .scenario-card {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: start;
  min-height: 50px;
  padding: 10px;
  border: 1px solid #dbe7e3;
  border-radius: 8px;
  color: #263940;
  background: #fbfdfc;
  font-size: 0.92rem;
  font-weight: 750;
}

.checker .scenario-card:hover,
.checker .scenario-card:focus-within {
  border-color: var(--teal);
  background: #eef7f3;
}

.checker .scenario-card:has(input:checked) {
  border-color: var(--teal);
  background: #e3f3ef;
  box-shadow: inset 0 0 0 1px rgba(22, 118, 111, 0.22);
}

.checker .adaptive-questions label {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  min-height: 46px;
  padding: 10px 0;
  color: #2f4149;
  font-size: 1.02rem;
  border-top: 1px solid #edf2f0;
}

.checker input[type="checkbox"],
.checker input[type="radio"] {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: var(--teal);
}

.adaptive-questions {
  max-height: 300px;
  overflow: auto;
  padding-right: 4px;
}

.adaptive-question-group {
  margin-top: 10px;
}

.adaptive-question-group:first-child {
  margin-top: 0;
}

.adaptive-question-group h4 {
  margin: 0;
  color: var(--teal-dark);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.more-warning-group {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #dfe9e5;
}

.extra-warning-details[hidden] {
  display: none;
}

.warning-info-group {
  padding: 12px 0 2px;
}

.inline-flag-list {
  margin-top: 4px;
}

.risk-panel {
  background: #eef7f3;
  border-color: #bcded5;
}

.risk-label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

#riskLevel {
  display: block;
  margin-top: 2px;
  color: var(--green);
  font-size: 1.65rem;
  line-height: 1.1;
}

.risk-panel p {
  margin: 6px 0 12px;
  color: #31444b;
}

.risk-reasons {
  display: none;
  margin: 0 0 12px;
  padding-left: 20px;
  color: #31444b;
  font-size: 0.96rem;
}

.risk-reasons.has-reasons {
  display: block;
}

.risk-reasons li {
  margin: 4px 0;
}

.risk-meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #d2ddd8;
}

.risk-meter span {
  display: block;
  width: 12%;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 180ms ease, background 180ms ease;
}

.section {
  padding: clamp(20px, 3vw, 40px) clamp(18px, 5vw, 64px) clamp(58px, 8vw, 104px);
}

.section-heading {
  max-width: 850px;
  margin-bottom: 30px;
}

.section-heading h1 {
  max-width: 850px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.04;
}

.section-heading p:last-child {
  margin-top: 12px;
  margin-bottom: 0;
  color: #4d6068;
  font-size: 1.05rem;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.topic-card,
.scenario,
.score-board,
.report-grid a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(28, 46, 53, 0.06);
}

.topic-card {
  padding: 22px;
}

.topic-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 900;
}

.icon-red {
  background: var(--red);
}

.icon-gold {
  background: var(--gold);
}

.icon-blue {
  background: var(--blue);
}

.icon-teal {
  background: var(--teal);
}

.icon-purple {
  background: var(--purple);
}

.icon-green {
  background: var(--green);
}

.topic-card p {
  color: #51636c;
}

.topic-card strong {
  color: #22343c;
}

.best-practices-section {
  background: #fbfaf6;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.best-practice-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.best-practice-card {
  position: relative;
  overflow: hidden;
}

.best-practice-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--teal), var(--blue), var(--gold));
}

.best-practice-card strong {
  display: block;
  margin-top: 14px;
}

.practice-section {
  background: #fbfaf6;
}

.quiz-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 18px;
}

.scenario,
.score-board {
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(28, 46, 53, 0.05);
}

.scenario {
  min-height: 380px;
  padding: clamp(22px, 4vw, 38px);
}

.scenario-count {
  color: var(--teal-dark);
  font-weight: 850;
}

#questionText {
  min-height: 96px;
  margin-bottom: 24px;
  font-size: clamp(1.45rem, 2.8vw, 2.35rem);
}

.answer-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.answer-button,
.secondary-button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  font-weight: 850;
}

.answer-button {
  padding: 12px 16px;
  color: #ffffff;
  background: var(--teal);
}

.answer-button:nth-child(2) {
  background: var(--blue);
}

.answer-button:hover,
.answer-button:focus-visible,
.secondary-button:hover,
.secondary-button:focus-visible {
  filter: brightness(0.94);
  outline: 3px solid rgba(22, 118, 111, 0.25);
  outline-offset: 2px;
}

.answer-button:disabled {
  cursor: default;
  opacity: 0.72;
}

.answer-button.is-correct {
  outline: 4px solid rgba(47, 122, 76, 0.34);
}

.answer-button.is-wrong {
  outline: 4px solid rgba(182, 60, 54, 0.34);
}

.feedback-status {
  margin-right: 4px;
  font-weight: 850;
  letter-spacing: 0.01em;
}

.feedback.feedback-correct {
  background: #eaf6ee;
  border-left-color: var(--green);
}

.feedback.feedback-correct .feedback-status {
  color: var(--green);
}

.feedback.feedback-wrong {
  background: #fbeceb;
  border-left-color: var(--red);
}

.feedback.feedback-wrong .feedback-status {
  color: var(--red);
}

/* Action-format scenarios reuse the two .answer-button elements,
   but the labels are full sentences so they always stack vertically and wrap. */
.answer-row.answer-row-action {
  grid-template-columns: 1fr;
}

.answer-button.answer-button-action {
  white-space: normal;
  text-align: left;
  line-height: 1.4;
  padding: 14px 18px;
  font-size: 0.98rem;
  min-height: 0;
}

.feedback {
  min-height: 58px;
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 4px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #3c4d54;
  transition: background 0.18s ease, border-color 0.18s ease;
  font-size: 1.05rem;
  font-weight: 650;
}

.secondary-button {
  padding: 12px 18px;
  color: var(--teal-dark);
  background: #e8f3f0;
}

.score-board {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 240px;
  padding: 26px;
}

.score-board span,
.risk-label {
  color: var(--muted);
  font-weight: 850;
  text-transform: uppercase;
}

.score-board strong {
  display: block;
  margin: 4px 0 14px;
  font-size: 3rem;
}

.score-board p {
  margin-bottom: 0;
  color: #4f626b;
}

.trend-section {
  background: #fbfaf6;
}

.device-section {
  background: #fbfaf6;
}

.device-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.device-picker {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f6faf8;
  box-shadow: 0 8px 24px rgba(28, 46, 53, 0.05);
}

.device-tab {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #30434b;
  background: transparent;
  text-align: left;
  font-weight: 850;
}

.device-tab:hover,
.device-tab:focus-visible {
  border-color: #bddbd3;
  background: #eaf5f1;
  outline: none;
}

.device-tab.is-active {
  color: #ffffff;
  background: var(--teal);
}

.device-guidance {
  min-width: 0;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f9fcfb;
  box-shadow: 0 8px 24px rgba(28, 46, 53, 0.06);
}

.device-guidance h3 {
  margin-top: 4px;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.device-guidance > p {
  max-width: 800px;
  color: #40535c;
}

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

.recommendation-card {
  display: flex;
  flex-direction: column;
  min-height: 222px;
  padding: 18px;
  border: 1px solid #dce7e3;
  border-radius: var(--radius);
  background: #ffffff;
}

.recommendation-rank {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--blue);
  font-weight: 900;
}

.recommendation-card h4 {
  margin: 0 0 8px;
  color: #20333a;
  font-size: 1.12rem;
  line-height: 1.2;
}

.recommendation-card p {
  margin-bottom: 0;
  color: #4d6068;
}

.recommendation-fit {
  margin-top: auto;
  padding-top: 14px;
  color: var(--teal-dark);
  font-size: 0.9rem;
  font-weight: 850;
}

.source-note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid #dce7e3;
  color: #5a6b73;
  font-size: 0.92rem;
}

.report-section {
  background: #fbfaf6;
}

.checklist-section {
  background: #fbfaf6;
}

.checklist-shell {
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid var(--line);
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.report-grid a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 156px;
  min-width: 0;
  padding: 22px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.report-grid a:hover,
.report-grid a:focus-visible {
  transform: translateY(-2px);
  outline: 3px solid rgba(22, 118, 111, 0.22);
}

.report-grid strong {
  color: var(--teal-dark);
  font-size: 1.14rem;
}

.report-grid span {
  color: #53666f;
}

footer {
  padding: 28px clamp(18px, 5vw, 64px);
  color: #52646c;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
}

.handout-modal[hidden] {
  display: none;
}

.handout-modal {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 31, 36, 0.64);
}

body.modal-open {
  overflow: hidden;
}

.handout-shell {
  width: min(980px, 100%);
  max-height: min(92vh, 980px);
  overflow: auto;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

/* Standalone checklist page (not inside a modal) should grow with content
   so the bottom "Print this checklist" button stays reachable on the page. */
.checklist-shell {
  max-height: none;
  overflow: visible;
  margin: 0 auto;
}

.handout-header,
.handout-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.handout-header h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.icon-button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: #24343b;
  font-size: 1.15rem;
  font-weight: 900;
}

.print-handout {
  margin: 0 auto;
  padding: 30px;
  background: #ffffff;
}

.handout-kicker {
  margin: 0 0 14px;
}

.handout-kicker .brand-line-1,
.handout-kicker .brand-line-2 {
  font-size: 1.55rem;
}

.print-handout h3 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.02;
}

.handout-intro,
.handout-reminder {
  max-width: 780px;
  color: #40515a;
  font-size: 1.08rem;
}

.handout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.handout-grid section {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7faf9;
}

.handout-grid h4 {
  margin: 0 0 10px;
  color: #1f333a;
  font-size: 1.08rem;
}

.handout-grid ul,
.handout-grid ol {
  margin: 0;
  padding-left: 21px;
}

.handout-grid li {
  margin: 7px 0;
  color: #40535b;
}

.trusted-lines p {
  margin: 10px 0 0;
  color: #40535b;
  font-weight: 700;
}

.handout-reminder {
  margin-bottom: 0;
  padding: 16px;
  border-left: 5px solid var(--teal);
  background: #e8f3f0;
  font-weight: 750;
}

.handout-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.handout-actions button {
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  border-radius: 8px;
  font-weight: 850;
}

#printHandoutButton {
  color: #ffffff;
  background: var(--teal);
}

@media (max-width: 1060px) {
  .site-header {
    align-items: flex-start;
  }

  nav {
    width: 100%;
    flex: 0 0 auto;
    min-width: 0;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  nav a,
  nav button {
    flex: 0 0 auto;
  }

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

  .quiz-layout,
  .device-layout,
  .checker-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "scenario"
      "follow"
      "risk"
      "flags";
  }

  .device-picker {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  [id] {
    scroll-margin-top: 124px;
  }

  .site-header {
    gap: 10px;
    min-height: 0;
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
  }

  nav a,
  nav button {
    min-height: 34px;
    padding: 6px 9px;
    font-size: 0.86rem;
  }

  nav {
    flex-basis: 100%;
    justify-content: flex-start;
    width: 100%;
  }

  .hero {
    min-height: auto;
  }

  .hero-overlay {
    min-height: 0;
    padding: 24px 18px 34px;
    background: #f7faf9;
  }

  h1 {
    max-width: 14ch;
  }

  .topic-grid,
  .report-grid,
  .recommendation-grid,
  .device-picker,
  .scenario-grid,
  .url-check-row,
  .answer-row {
    grid-template-columns: 1fr;
  }

  .handout-modal {
    align-items: stretch;
    padding: 12px;
  }

  .handout-header,
  .handout-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .icon-button {
    align-self: flex-end;
  }

  .handout-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  @page {
    size: letter;
    margin: 0.4in;
  }

  body.print-checklist > :not(.handout-modal):not(.print-root) {
    display: none !important;
  }

  body.print-checklist .no-print {
    display: none !important;
  }

  body.print-checklist,
  body.print-checklist .print-root,
  body.print-checklist .checklist-section,
  body.print-checklist .handout-modal,
  body.print-checklist .handout-shell,
  body.print-checklist .print-handout {
    display: block !important;
    position: static !important;
    width: auto !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    color: #111111;
    background: #ffffff !important;
  }

  body.print-checklist .handout-shell,
  body.print-checklist .print-handout,
  body.print-checklist .handout-grid section {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body.print-checklist .no-print {
    display: none !important;
  }

  body.print-checklist .handout-kicker {
    margin: 0 0 6pt;
  }

  body.print-checklist .handout-kicker .brand-line-1,
  body.print-checklist .handout-kicker .brand-line-2 {
    font-size: 14pt;
  }

  body.print-checklist .print-handout h3 {
    margin: 0 0 4pt;
    font-size: 22pt;
    line-height: 1.05;
    letter-spacing: -0.01em;
  }

  body.print-checklist .handout-intro,
  body.print-checklist .handout-reminder {
    max-width: none;
    font-size: 9.5pt;
    line-height: 1.32;
  }

  body.print-checklist .handout-intro {
    margin: 0 0 7pt;
  }

  body.print-checklist .handout-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7pt;
    margin: 0 0 7pt;
  }

  body.print-checklist .handout-grid section {
    padding: 6pt 9pt 7pt;
    background: #f4f8f6 !important;
    outline: 1px solid #d4e1dc;
    border-radius: 3pt;
    break-inside: avoid;
  }

  body.print-checklist .handout-grid h4 {
    margin: 0 0 4pt;
    color: #0e514c;
    font-size: 10.5pt;
    line-height: 1.15;
  }

  body.print-checklist .handout-grid ul,
  body.print-checklist .handout-grid ol {
    margin: 0;
    padding-left: 14pt;
  }

  body.print-checklist .handout-grid li {
    margin: 2pt 0;
    font-size: 9pt;
    line-height: 1.25;
  }

  body.print-checklist .handout-grid .trusted-lines {
    grid-column: 1 / -1;
  }

  body.print-checklist .trusted-lines p {
    display: inline-block;
    margin: 3pt 16pt 0 0;
    font-size: 9pt;
  }

  body.print-checklist .handout-reminder {
    margin: 0;
    padding: 6pt 9pt;
    border-left: 3pt solid #16766f;
    background: #eef7f3 !important;
    border-radius: 0 3pt 3pt 0;
  }

  body.print-checklist .print-footer-attribution {
    display: block;
    margin-top: 7pt;
    padding-top: 5pt;
    border-top: 0.6pt solid #cdd9d4;
    color: #4f5a5e;
    font-size: 8pt;
    letter-spacing: 0.02em;
    text-align: center;
  }
}

.print-only {
  display: none;
}

.share-section {
  text-align: center;
}

.share-section .section-heading {
  max-width: 640px;
  margin: 0 auto 28px;
}

.share-section .eyebrow {
  margin-bottom: 8px;
}

.share-section h2 {
  max-width: none;
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.15;
}

.share-section .section-heading p:last-child {
  margin-top: 6px;
  font-size: 1rem;
  line-height: 1.5;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(25, 44, 52, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.share-button:hover,
.share-button:focus-visible {
  transform: translateY(-1px);
  background: var(--surface-soft);
  box-shadow: 0 10px 22px rgba(25, 44, 52, 0.12);
  outline: none;
}

.share-button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.share-button[data-share="native"] {
  background: var(--teal);
  color: #ffffff;
  border-color: var(--teal-dark);
}

.share-button[data-share="native"]:hover,
.share-button[data-share="native"]:focus-visible {
  background: var(--teal-dark);
}

.lang-toggle {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: #5e6b73;
}

.lang-toggle a {
  color: var(--teal-dark);
  text-decoration: underline;
}

.lang-toggle a:hover,
.lang-toggle a:focus-visible {
  color: var(--teal);
}

.lang-toggle strong {
  color: var(--ink);
  font-weight: 700;
}

.lang-toggle span {
  margin: 0 6px;
  color: #b3c0bd;
}

.checklist-top-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.primary-print-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: 0;
  border-radius: 10px;
  background: var(--teal);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 24px rgba(14, 81, 76, 0.22);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.primary-print-button:hover,
.primary-print-button:focus-visible {
  background: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(14, 81, 76, 0.3);
  outline: none;
}

.primary-print-button:focus-visible {
  outline: 2px solid var(--teal-dark);
  outline-offset: 3px;
}

.print-tip {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-meta a {
  color: var(--teal-dark);
  text-decoration: underline;
}

.footer-meta a:hover,
.footer-meta a:focus-visible {
  color: var(--ink);
}

.risk-share {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.risk-share-prompt {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.risk-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.risk-share-actions .share-button {
  padding: 9px 16px;
  font-size: 0.95rem;
}

.quiz-summary {
  margin-top: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f0fbf6 0%, #ffffff 100%);
  box-shadow: 0 10px 26px rgba(25, 44, 52, 0.06);
}

.quiz-summary h4 {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-size: 1.4rem;
}

.quiz-summary-score {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.quiz-summary-score strong {
  color: var(--teal-dark);
  font-size: 1.4rem;
}

.quiz-summary-message {
  margin: 0 0 16px;
  color: var(--ink);
  line-height: 1.5;
}

.quiz-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.about-grid {
  margin-top: 24px;
}

.about-sources,
.about-contact {
  max-width: 880px;
  margin: 36px auto 0;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.about-sources h2,
.about-contact h2 {
  margin: 0 0 12px;
  color: var(--teal-dark);
}

.about-sources ul {
  margin: 14px 0 14px 22px;
  padding: 0;
}

.about-sources li {
  margin: 8px 0;
}

.about-sources a,
.about-contact a {
  color: var(--teal-dark);
  text-decoration: underline;
}

.about-sources a:hover,
.about-contact a:hover {
  color: var(--ink);
}

.about-disclosure {
  margin: 14px 0 0;
  padding: 12px 16px;
  border-left: 4px solid var(--teal);
  background: #eef7f3;
  font-size: 0.96rem;
}

.report-subhead {
  margin: 44px 0 18px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.report-subhead:first-of-type {
  margin-top: 8px;
  padding-top: 0;
  border-top: 0;
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 48px;
  height: 48px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.nav-toggle:hover {
  background: var(--surface-soft);
  border-color: var(--teal);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.18s ease, opacity 0.15s ease;
}

.site-header.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.site-header.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

@media (max-width: 720px) {
  .site-header {
    position: sticky;
    flex-direction: row;
    flex-wrap: nowrap !important;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header > nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 76px);
    flex-direction: column;
    align-items: stretch;
    flex-basis: auto !important;
    padding: 10px 16px 16px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 36px rgba(25, 44, 52, 0.16);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
  }

  .site-header.nav-open > nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-header > nav a {
    display: block;
    margin: 2px 0;
    padding: 12px 14px;
    min-height: 48px;
    border-radius: 8px;
    font-size: 1.05rem;
  }

  .site-header > nav a[aria-current="page"] {
    background: var(--teal);
    color: #ffffff;
  }
}
