/* ==========================================================================
   Senior Fraud Guide — global stylesheet
   1. Design tokens and resets
   2. Typography and shared elements
   3. Buttons, forms and utilities
   4. Header and navigation
   5. Hero and summary blocks
   6. Article layout, table of contents and share bar
   7. Content components (cards, steps, callouts, tables, FAQ)
   8. Interactive tools (checklist, quiz, accordions)
   9. Footer
   10. Cookie banner and preferences dialog
   11. Motion, print and responsive rules
   ========================================================================== */

/* 1. Design tokens and resets
   ========================================================================== */
:root {
  --ink: #1c2937;
  --ink-soft: #34424f;
  --muted: #56636f;
  --sage: #3d6759;
  --sage-dark: #2c4f43;
  --sage-tint: #e9f1ed;
  --sand: #fbf7ef;
  --sand-deep: #f2ebdd;
  --terracotta: #a8552f;
  --terracotta-tint: #fbeee6;
  --line: #e2dbcc;
  --line-strong: #cfc6b4;
  --white: #ffffff;
  --focus: #1f5fa8;
  --shadow-sm: 0 1px 2px rgba(28, 41, 55, 0.06), 0 2px 8px rgba(28, 41, 55, 0.05);
  --shadow-md: 0 2px 6px rgba(28, 41, 55, 0.07), 0 14px 34px rgba(28, 41, 55, 0.08);
  --shadow-lg: 0 4px 12px rgba(28, 41, 55, 0.08), 0 26px 60px rgba(28, 41, 55, 0.12);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1128px;
  --container-narrow: 760px;
  --font-body: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-heading: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --header-h: 78px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 1.1875rem;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.has-overlay {
  overflow: hidden;
}

img,
svg,
video {
  max-width: 100%;
}

/* Author display rules would otherwise beat the UA rule for [hidden]. */
[hidden] {
  display: none !important;
}

img {
  height: auto;
  display: block;
  border-radius: var(--radius);
}

figure {
  margin: 0;
}

a {
  color: var(--sage-dark);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

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

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

::selection {
  background: #cfe3d9;
  color: var(--ink);
}

/* 2. Typography and shared elements
   ========================================================================== */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--ink);
  line-height: 1.16;
  font-weight: 700;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.2rem, 1.55rem + 2.2vw, 3.15rem);
}

h2 {
  font-size: clamp(1.7rem, 1.35rem + 1.3vw, 2.3rem);
  margin-top: 0;
}

h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.55vw, 1.5rem);
}

h4 {
  font-family: var(--font-body);
  font-size: 1.08rem;
  letter-spacing: 0.01em;
  font-weight: 700;
  margin-bottom: 0.35em;
}

p {
  margin: 0 0 1.15em;
}

p:last-child,
ul:last-child,
ol:last-child {
  margin-bottom: 0;
}

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

ul,
ol {
  margin: 0 0 1.15em;
  padding-left: 1.25em;
}

li {
  margin-bottom: 0.45em;
}

li::marker {
  color: var(--sage);
}

.lede {
  font-size: 1.28rem;
  line-height: 1.62;
  color: var(--ink-soft);
}

.section-intro {
  font-size: 1.16rem;
  color: var(--muted);
  max-width: 68ch;
}

.eyebrow {
  display: flex;
  align-items: flex-start;
  gap: 0.55em;
  font-family: var(--font-body);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 0.9em;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 26px;
  height: 2px;
  margin-top: 0.62em;
  background: currentColor;
  border-radius: 2px;
}

.small {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 0;
  color: var(--white);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: clamp(48px, 6vw, 82px);
}

.section--tight {
  padding-block: clamp(38px, 4vw, 56px);
}

.section--sand {
  background: var(--sand);
}

.section--white {
  background: var(--white);
}

.section--deep {
  background: var(--sage-dark);
  color: #e7efeb;
}

.section--deep h2,
.section--deep h3 {
  color: var(--white);
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  background: var(--sage-tint);
  color: var(--sage-dark);
  border-radius: 999px;
  padding: 0.32em 0.85em;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: currentColor;
}

.icon--stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 3. Buttons, forms and utilities
   ========================================================================== */
.btn {
  flex-wrap: nowrap;
  --btn-bg: var(--sage);
  --btn-fg: var(--white);
  --btn-border: var(--sage);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 14px 26px;
  border: 2px solid var(--btn-border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 1.03rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease,
    color 0.16s ease, border-color 0.16s ease;
}

.btn:hover {
  color: var(--btn-fg);
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn .icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
}

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--sage-dark);
  --btn-border: var(--line-strong);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--sage-dark);
  border-color: var(--sage);
}

.btn--ink {
  --btn-bg: var(--ink);
  --btn-fg: var(--white);
  --btn-border: var(--ink);
}

.btn--ink:hover {
  background: #0f1a24;
  border-color: #0f1a24;
  color: var(--white);
}

.btn--light {
  --btn-bg: var(--white);
  --btn-fg: var(--sage-dark);
  --btn-border: var(--white);
}

.btn--light:hover {
  background: var(--sand-deep);
  border-color: var(--sand-deep);
  color: var(--sage-dark);
}

.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  --btn-border: rgba(255, 255, 255, 0.45);
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
  color: var(--white);
}

.btn--sm {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 0.95rem;
}

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 700;
  color: var(--sage-dark);
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}

.link-arrow:hover {
  color: var(--terracotta);
}

.link-arrow .icon {
  width: 0.95em;
  height: 0.95em;
  transition: transform 0.16s ease;
}

.link-arrow:hover .icon {
  transform: translateX(3px);
}

.field {
  display: block;
  margin-bottom: 18px;
}

.field > label,
.field-label {
  display: block;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 7px;
  font-size: 0.98rem;
}

.field .hint {
  display: block;
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 3px;
}

input[type="text"],
input[type="email"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 13px 15px;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
  cursor: pointer;
}

.check input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--sage);
  cursor: pointer;
}

.form-status {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  line-height: 1.5;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status--ok {
  background: var(--sage-tint);
  border: 1px solid #b9d3c6;
  color: var(--sage-dark);
}

.form-status--error {
  background: var(--terracotta-tint);
  border: 1px solid #e6c3b0;
  color: #7d3a1c;
}

/* 4. Header and navigation
   ========================================================================== */
.reading-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 120;
  background: transparent;
  pointer-events: none;
}

.reading-progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--sage), #6f9a88);
  transition: width 0.12s linear;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 160;
  background: rgba(251, 247, 239, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: var(--header-h);
  padding-block: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}

.brand__mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--sage);
  display: grid;
  place-items: center;
  color: var(--white);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

.brand__mark .icon {
  width: 26px;
  height: 26px;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-family: var(--font-heading);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand__tagline {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  margin-top: 4px;
}

.site-nav {
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__list li {
  margin: 0;
}

.site-nav__link {
  display: inline-block;
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.site-nav__link:hover,
.site-nav__link[aria-current="page"] {
  background: var(--sand-deep);
  color: var(--ink);
}

.site-nav__link[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--sage);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

.header-phone:hover {
  border-color: var(--sage);
  color: var(--sage-dark);
}

.header-phone .icon {
  width: 18px;
  height: 18px;
  color: var(--sage);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 8px 15px;
  border: 2px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.nav-toggle .icon {
  width: 20px;
  height: 20px;
}

.nav-toggle__close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
  display: block;
}

/* 5. Hero and summary blocks
   ========================================================================== */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 88% -10%, #eaf2ee 0%, rgba(234, 242, 238, 0) 62%),
    linear-gradient(180deg, var(--sand) 0%, #fdfaf3 100%);
  padding-block: clamp(38px, 5vw, 64px) clamp(34px, 4vw, 54px);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(30px, 4.4vw, 62px);
  align-items: center;
}

.hero__copy {
  max-width: 620px;
}

.hero h1 {
  margin-bottom: 0.42em;
}

.hero__lede {
  font-size: 1.24rem;
  line-height: 1.62;
  color: var(--ink-soft);
  margin-bottom: 1.5em;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.93rem;
  color: var(--muted);
}

.hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__meta-item .icon {
  width: 17px;
  height: 17px;
  color: var(--sage);
}

.hero__figure {
  position: relative;
}

.hero__figure img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.hero__badge {
  position: absolute;
  left: -18px;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 275px;
  padding: 13px 17px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.hero__badge .badge-icon {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: var(--sage-tint);
  color: var(--sage-dark);
  display: grid;
  place-items: center;
}

.hero__badge .badge-icon .icon {
  width: 20px;
  height: 20px;
}

.hero__badge strong {
  display: block;
  font-size: 0.98rem;
}

.hero__figure figcaption {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: right;
  padding-right: 4px;
}

.answer {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--sage);
  border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 32px);
  box-shadow: var(--shadow-sm);
}

.answer__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 10px;
}

.answer p {
  font-size: 1.12rem;
  line-height: 1.62;
  color: var(--ink-soft);
}

.answer p:last-child {
  margin-bottom: 0;
}

.takeaways {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.takeaway {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 22px;
  box-shadow: var(--shadow-sm);
}

.takeaway__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--sage-tint);
  color: var(--sage-dark);
  display: grid;
  place-items: center;
  margin-bottom: 13px;
}

.takeaway__icon .icon {
  width: 22px;
  height: 22px;
}

.takeaway h3 {
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.35;
  margin-bottom: 0.35em;
}

.takeaway p {
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
  color: var(--muted);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  margin: 30px 0 0;
}

.stat {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat__value {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--sage-dark);
  line-height: 1.1;
}

.stat__label {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
}

/* 6. Article layout, table of contents and share bar
   ========================================================================== */
.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: clamp(34px, 4vw, 58px);
  align-items: start;
}

.article-body {
  max-width: 72ch;
  font-size: 1.16rem;
  line-height: 1.72;
}

.article-body > section {
  padding-block: 34px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 22px);
}

.article-body > section:first-of-type {
  padding-top: 6px;
}

.article-body > section:last-of-type {
  border-bottom: 0;
  padding-bottom: 8px;
}

.article-body h2 {
  margin-bottom: 0.55em;
}

.article-body h3 {
  margin-top: 1.5em;
  margin-bottom: 0.45em;
}

.article-body h4 {
  margin-top: 1.4em;
}

.article-body p + h3,
.article-body ul + h3,
.article-body ol + h3 {
  margin-top: 1.6em;
}

.article-body figure {
  margin: 30px 0;
}

.article-body figure img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.article-body figcaption {
  margin-top: 10px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--muted);
}

.article-body ul,
.article-body ol {
  padding-left: 1.15em;
}

.article-body li > ul,
.article-body li > ol {
  margin-top: 0.45em;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 22px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-sm);
}

.toc__title {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

.toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}

.toc__list li {
  counter-increment: toc;
  margin: 0;
}

.toc__list a {
  display: flex;
  gap: 10px;
  padding: 8px 9px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.toc__list a::before {
  content: counter(toc);
  flex: none;
  width: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sage);
  padding-top: 1px;
}

.toc__list a:hover {
  background: var(--sand-deep);
  color: var(--ink);
}

.toc__list a.is-active {
  background: var(--sage-tint);
  color: var(--sage-dark);
  font-weight: 700;
}

.toc__list a.is-active::before {
  color: var(--sage-dark);
}

.toc__cta {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.toc__cta p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 12px;
}

.toc__cta .btn {
  font-size: 0.9rem;
  padding: 11px 18px;
  min-height: 46px;
}

.share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 34px 0 0;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.share-bar__label {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.98rem;
  margin-right: 4px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.share-btn:hover {
  background: var(--sand-deep);
  border-color: var(--sage);
  color: var(--ink);
  transform: translateY(-1px);
}

.share-btn .icon {
  width: 17px;
  height: 17px;
  color: var(--sage);
}

.author-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 22px;
  background: var(--sand-deep);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.author-card__mark {
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 50%;
  background: var(--sage);
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
}

.author-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 0;
}

.author-card strong {
  display: block;
  font-size: 1rem;
}

/* 7. Content components
   ========================================================================== */
.callout {
  position: relative;
  margin: 28px 0;
  padding: 22px 24px 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-size: 1.05rem;
  line-height: 1.62;
}

.callout__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}

.callout__title .icon {
  width: 20px;
  height: 20px;
  flex: none;
}

.callout p:last-child,
.callout ul:last-child {
  margin-bottom: 0;
}

.callout ul {
  padding-left: 1.1em;
}

.callout--tip {
  background: var(--sage-tint);
  border-color: #c8ddd2;
}

.callout--tip .callout__title .icon {
  color: var(--sage-dark);
}

.callout--warn {
  background: var(--terracotta-tint);
  border-color: #edd2c2;
}

.article-body .js-cookie-settings {
  display: inline;
  font: inherit;
  color: var(--sage-dark);
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.article-body .js-cookie-settings:hover {
  color: var(--terracotta);
}

.callout--warn .callout__title .icon {
  color: var(--terracotta);
}

.callout--quote {
  background: var(--ink);
  border-color: var(--ink);
  color: #e7edf2;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  line-height: 1.45;
  padding: 30px 32px;
}

.callout--quote p {
  margin: 0;
}

.callout--quote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-style: normal;
  color: #b8c6d1;
}

.big-quote {
  margin: 30px 0;
  padding: 26px 30px;
  border-left: 5px solid var(--sage);
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--ink);
}

.big-quote p {
  margin: 0;
}

.flag-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 26px 0 6px;
  padding: 0;
  list-style: none;
}

.flag {
  position: relative;
  padding: 20px 20px 20px 58px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.flag__num {
  position: absolute;
  left: 18px;
  top: 19px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--terracotta-tint);
  color: var(--terracotta);
  font-size: 0.85rem;
  font-weight: 700;
}

.flag h3 {
  font-family: var(--font-body);
  font-size: 1.03rem;
  line-height: 1.35;
  margin-bottom: 0.3em;
}

.flag p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

.steps {
  counter-reset: step;
  list-style: none;
  margin: 26px 0;
  padding: 0;
}

.step {
  position: relative;
  counter-increment: step;
  padding: 0 0 26px 64px;
}

.step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sage);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
}

.step::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 48px;
  bottom: 4px;
  width: 2px;
  background: var(--line);
}

.step:last-child {
  padding-bottom: 0;
}

.step:last-child::after {
  display: none;
}

.step h3 {
  font-family: var(--font-body);
  font-size: 1.08rem;
  margin: 0 0 0.35em;
  padding-top: 6px;
}

.step p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.7em;
  color: var(--ink-soft);
}

.step p:last-child {
  margin-bottom: 0;
}

.step .small {
  font-size: 0.88rem;
}

.step__tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sage-dark);
  background: var(--sage-tint);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 8px;
}

.scenario {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 22px 24px;
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
}

.scenario__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.scenario__header h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  margin: 0;
}

.scenario dl {
  margin: 0;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 10px 16px;
  font-size: 0.98rem;
  line-height: 1.55;
}

.scenario dt {
  font-weight: 700;
  color: var(--ink);
}

.scenario dd {
  margin: 0;
  color: var(--ink-soft);
}

.scenario dd:last-child {
  color: var(--sage-dark);
  font-weight: 600;
}

.table-wrap {
  margin: 26px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
  min-width: 520px;
}

caption {
  caption-side: bottom;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: left;
}

th,
td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.5;
}

thead th {
  background: var(--sand-deep);
  color: var(--ink);
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

tbody th {
  font-weight: 700;
  color: var(--ink);
  width: 38%;
}

.checklist {
  counter-reset: check;
  list-style: none;
  margin: 26px 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.checklist li {
  counter-increment: check;
  position: relative;
  padding: 15px 20px 15px 56px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
  box-shadow: var(--shadow-sm);
}

.checklist li::before {
  content: counter(check);
  position: absolute;
  left: 18px;
  top: 15px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--sage-tint);
  color: var(--sage-dark);
  font-size: 0.82rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.checklist--compact li {
  padding: 11px 18px 11px 50px;
  font-size: 0.97rem;
}

.checklist--compact li::before {
  top: 11px;
  left: 14px;
  width: 24px;
  height: 24px;
}

.accordion {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  margin: 26px 0;
  box-shadow: var(--shadow-sm);
}

.accordion details {
  border-bottom: 1px solid var(--line);
}

.accordion details:last-child {
  border-bottom: 0;
}

.accordion summary {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 22px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
  list-style: none;
}

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

.accordion summary::after {
  content: "+";
  margin-left: auto;
  flex: none;
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 400;
  color: var(--sage);
  transition: transform 0.2s ease;
}

.accordion details[open] summary::after {
  content: "\2013";
}

.accordion summary:hover {
  background: var(--sand);
}

.accordion .accordion__panel {
  padding: 0 22px 20px 22px;
  font-size: 1rem;
  line-height: 1.62;
  color: var(--ink-soft);
}

.accordion .accordion__panel p:last-child {
  margin-bottom: 0;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 26px 0;
  padding: 0;
  list-style: none;
}

.report-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--sage);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}

.report-card h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 0.3em;
}

.report-card p {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 0.8em;
}

.report-card a {
  font-size: 0.94rem;
  font-weight: 700;
}

.timeline {
  list-style: none;
  margin: 26px 0;
  padding: 0;
  counter-reset: tl;
}

.timeline li {
  counter-increment: tl;
  position: relative;
  padding: 0 0 22px 52px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.timeline li::before {
  content: counter(tl);
  position: absolute;
  left: 0;
  top: 2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--terracotta-tint);
  color: var(--terracotta);
  font-weight: 700;
  font-size: 0.9rem;
}

.timeline li::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 38px;
  bottom: 2px;
  width: 2px;
  background: var(--line);
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li:last-child::after {
  display: none;
}

.timeline strong {
  display: block;
  color: var(--ink);
}

.quiz {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow-md);
  margin: 30px 0;
}

.quiz__progress {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.quiz__bar {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: var(--sand-deep);
  overflow: hidden;
}

.quiz__bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--sage);
  transition: width 0.25s ease;
}

.quiz__question {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 18px;
}

.quiz__answers {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.quiz__answer {
  flex: 1 1 180px;
  min-height: 52px;
  padding: 13px 22px;
  border: 2px solid var(--line-strong);
  border-radius: 999px;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.quiz__answer:hover {
  border-color: var(--sage);
  background: var(--sage-tint);
}

.quiz__answer.is-correct {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--white);
}

.quiz__answer.is-wrong {
  background: var(--terracotta-tint);
  border-color: var(--terracotta);
  color: #7d3a1c;
}

.quiz__answer:disabled {
  cursor: default;
  opacity: 0.92;
}

.quiz__feedback {
  margin-top: 16px;
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  background: var(--sand-deep);
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink-soft);
  display: none;
}

.quiz__feedback.is-visible {
  display: block;
}

.quiz__feedback strong {
  color: var(--ink);
}

.quiz__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.quiz__score {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
}

.quiz__score strong {
  color: var(--sage-dark);
}

.quiz__result {
  margin-top: 18px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--sage-tint);
  border: 1px solid #c8ddd2;
  display: none;
}

.quiz__result.is-visible {
  display: block;
}

.quiz__result h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  margin-bottom: 0.35em;
}

.quiz__result .quiz__result-label {
  margin-bottom: 0.2em;
}

.quiz__question:focus {
  outline: none;
}

.quiz__result p {
  font-size: 0.98rem;
  line-height: 1.55;
  margin-bottom: 0;
}

.tool-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(24px, 3vw, 38px);
  margin-top: -6px;
}

.tool-panel__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}

.tool-panel__head h3 {
  margin: 0;
}

.tool-panel__count {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--sage-dark);
  background: var(--sage-tint);
  border-radius: 999px;
  padding: 6px 14px;
}

.check-items {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.check-item {
  margin: 0;
}

.check-item label {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.5;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.check-item label:hover {
  border-color: var(--sage);
  background: #f6faf8;
}

.check-item input {
  width: 24px;
  height: 24px;
  margin: 0;
  flex: none;
  accent-color: var(--sage);
  cursor: pointer;
}

.check-item input:checked + span {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: var(--line-strong);
}

.check-item__text strong {
  display: block;
}

.check-item__text small {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 2px;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.tool-actions .small {
  margin-left: auto;
  text-align: right;
}

.tool-note {
  margin: 16px 0 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--muted);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow-md);
}

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

.contact-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 0;
}

.contact-list .icon {
  width: 22px;
  height: 22px;
  margin-top: 4px;
  color: var(--sage);
}

.contact-list h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin: 0 0 2px;
  color: var(--ink);
}

.contact-list p,
.contact-list a {
  font-size: 0.97rem;
  line-height: 1.55;
  margin: 0;
  color: var(--ink-soft);
}

.contact-list a {
  font-weight: 600;
}

.emergency-note {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--terracotta-tint);
  border: 1px solid #edd2c2;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #7d3a1c;
}

.emergency-note strong {
  display: block;
  color: #7d3a1c;
  margin-bottom: 2px;
}

/* 8. Print and download callout
   ========================================================================== */
.download {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  background: var(--sage-dark);
  color: #e7efeb;
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.4vw, 42px);
  box-shadow: var(--shadow-lg);
}

.download h2,
.download h3 {
  color: var(--white);
  margin-bottom: 0.3em;
}

.download p {
  color: #cfded6;
  font-size: 1.02rem;
  line-height: 1.6;
  margin: 0;
  max-width: 52ch;
}

.download__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 228px;
}

.download__actions .small {
  color: #b8ccc1;
  font-size: 0.82rem;
  text-align: center;
  margin: 4px 0 0;
}

/* 9. Footer
   ========================================================================== */
.site-footer {
  background: #16222d;
  color: #c3d0d9;
  padding-block: clamp(44px, 5vw, 64px) 0;
  font-size: 0.97rem;
  line-height: 1.6;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.2fr);
  gap: 34px;
  padding-bottom: 38px;
}

.footer-brand .brand {
  color: var(--white);
  margin-bottom: 14px;
}

.footer-brand .brand__mark {
  background: #2f5547;
}

.footer-brand .brand__name {
  color: var(--white);
}

.footer-brand .brand__tagline {
  color: #9fbdb1;
}

.footer-brand p {
  color: #a9bcc7;
  font-size: 0.94rem;
  line-height: 1.62;
  margin-bottom: 0;
  max-width: 34ch;
}

.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8fa6b4;
  margin: 0 0 14px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.footer-col li {
  margin: 0;
}

.footer-col a {
  color: #d3dee5;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-contact {
  font-style: normal;
  color: #bccbd4;
  font-size: 0.94rem;
  line-height: 1.7;
}

.footer-contact a {
  color: #e2ebf0;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-contact div + div {
  margin-top: 10px;
}

.footer-disclosure {
  border-top: 1px solid #2b3b47;
  padding-block: 24px;
  font-size: 0.86rem;
  line-height: 1.62;
  color: #93a7b3;
}

.footer-disclosure p {
  margin: 0 0 0.7em;
  max-width: 92ch;
}

.footer-disclosure p:last-child {
  margin-bottom: 0;
}

.footer-disclosure strong,
.site-footer strong {
  color: #e6eef3;
}

.footer-bottom {
  border-top: 1px solid #2b3b47;
  padding-block: 20px 46px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.87rem;
  color: #8fa6b4;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-legal li {
  margin: 0;
}

.footer-col button {
  display: inline;
  color: #d3dee5;
  text-decoration: none;
  background-color: transparent;
  background-image: none;
  border: 0 none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.footer-col button:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal a,
.footer-legal button {
  display: inline;
  color: #c3d0d9;
  text-decoration: none;
  background-color: transparent;
  background-image: none;
  border: 0 none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.87rem;
  line-height: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.footer-legal a:hover,
.footer-legal button:hover {
  color: var(--white);
  text-decoration: underline;
}

/* 10. Cookie banner and preferences dialog
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 40px rgba(22, 34, 45, 0.18);
  padding: 20px 0;
  transform: translateY(105%);
  visibility: hidden;
  transition: transform 0.32s ease, visibility 0.32s ease;
}

.cookie-banner.is-open {
  transform: translateY(0);
  visibility: visible;
}

.cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
}

.cookie-banner__text {
  flex: 1 1 420px;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.cookie-banner__text strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.98rem;
  margin-right: 6px;
}

.cookie-banner__text strong .icon {
  width: 19px;
  height: 19px;
  color: var(--sage);
}

.cookie-banner__text a {
  font-weight: 600;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-banner .btn {
  min-height: 46px;
  padding: 11px 20px;
  font-size: 0.93rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: none;
  padding: 20px;
  overflow-y: auto;
}

.modal.is-open {
  display: block;
}

.modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 28, 37, 0.62);
  backdrop-filter: blur(2px);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  margin: 6vh auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(24px, 3vw, 36px);
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--sand);
  color: var(--ink);
  cursor: pointer;
}

.modal__close:hover {
  background: var(--sand-deep);
}

.modal__close .icon {
  width: 18px;
  height: 18px;
}

.modal h2 {
  font-size: 1.65rem;
  padding-right: 46px;
  margin-bottom: 0.35em;
}

.modal__intro {
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 20px;
}

.pref {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.pref input[type="checkbox"] {
  width: 24px;
  height: 24px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--sage);
  cursor: pointer;
}

.pref input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.pref h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  margin: 0 0 2px;
}

.pref p {
  margin: 0;
  font-size: 0.91rem;
  line-height: 1.55;
  color: var(--muted);
}

.pref__state {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage-dark);
}

.modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.modal__actions .btn {
  flex: 1 1 160px;
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--sage-dark);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top .icon {
  width: 20px;
  height: 20px;
}

body.cookie-open .to-top {
  bottom: 132px;
}

/* 11. Motion, print and responsive rules
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 1080px) {
  .site-nav__list {
    gap: 0;
  }

  .site-nav__link {
    padding: 10px 9px;
    font-size: 0.93rem;
  }

  .header-phone {
    padding: 9px 14px;
    font-size: 0.92rem;
  }

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

  .article-shell {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
}

@media (max-width: 940px) {
  :root {
    --header-h: 70px;
  }

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

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    z-index: 150;
    margin: 0;
    padding: 12px 20px 22px;
    background: var(--sand);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .site-nav__link {
    display: block;
    padding: 14px 16px;
    font-size: 1.05rem;
    border-radius: var(--radius-sm);
  }

  .site-nav__link[aria-current="page"] {
    box-shadow: none;
    background: var(--sage-tint);
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .hero__figure {
    order: -1;
    max-width: 620px;
  }

  .hero__figure img {
    aspect-ratio: 16 / 9;
  }

  .hero__badge {
    left: auto;
    right: 14px;
    bottom: 14px;
    max-width: 250px;
    padding: 11px 14px;
    font-size: 0.84rem;
  }

  .hero__copy {
    max-width: 100%;
  }

  .hero {
    padding-block: 26px 34px;
  }

  .hero__figure figcaption {
    display: none;
  }

  .article-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .toc {
    position: static;
    order: -1;
    margin-bottom: 6px;
  }

  .toc__list {
    columns: 2;
    column-gap: 16px;
  }

  .toc__list li {
    break-inside: avoid;
  }

  .article-body {
    max-width: 100%;
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .download__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .download__actions .btn {
    flex: 1 1 200px;
  }

  .download__actions .small {
    flex-basis: 100%;
  }

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

@media (max-width: 720px) {
  body {
    font-size: 1.0625rem;
  }

  .container {
    padding-inline: 18px;
  }

  .article-body {
    font-size: 1.03rem;
  }

  .lede,
  .hero__lede {
    font-size: 1.1rem;
  }

  .stat-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 16px 20px;
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .stat__value {
    font-size: 1.65rem;
  }

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

  .toc__list {
    columns: 1;
  }

  .hero__badge {
    display: none;
  }

  .share-bar {
    padding: 16px;
  }

  .share-bar__label {
    flex-basis: 100%;
    margin-bottom: 4px;
  }

  .author-card {
    flex-direction: column;
    gap: 12px;
  }

  .scenario dl {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px 0;
  }

  .scenario dt {
    margin-top: 8px;
  }

  .brand__tagline {
    display: none;
  }

  .cookie-banner {
    padding: 16px 0;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__actions .btn {
    flex: 1 1 130px;
  }

  .modal__dialog {
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  body.cookie-open .to-top {
    bottom: 190px;
  }
}

@media (max-width: 420px) {
  .header-phone {
    display: none;
  }

  .brand__mark {
    width: 40px;
    height: 40px;
  }

  .brand__name {
    font-size: 1.16rem;
  }

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

  .btn {
    width: 100%;
  }

  .btn-row .btn {
    width: 100%;
  }

  .share-btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}

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

  .container,
  .article-shell,
  .article-body {
    max-width: 100%;
    padding-inline: 0;
    font-size: 10.5pt;
    line-height: 1.45;
  }

  .article-body > section {
    padding-block: 8pt;
  }

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

  .stat-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section-intro,
  .lede {
    font-size: 10pt;
  }

  .callout--quote,
  .big-quote {
    font-size: 11pt;
  }

  .article-body figure img {
    max-height: 3.1in;
    width: auto;
    margin-inline: auto;
  }

  .hero__figure img {
    max-height: 2.1in;
    width: auto;
  }

  .site-header,
  .site-footer,
  .cookie-banner,
  .reading-progress,
  .toc,
  .share-bar,
  .to-top,
  .download__actions,
  .modal,
  .hero__figure,
  .quiz,
  .tool-actions {
    display: none !important;
  }

  .article-shell {
    display: block;
  }

  .section,
  .article-body > section {
    padding-block: 8pt;
  }

  .callout,
  .flag,
  .report-card,
  .accordion,
  .table-wrap,
  .takeaway,
  .scenario,
  .check-item {
    box-shadow: none;
    break-inside: avoid;
  }

  .accordion,
  .table-wrap,
  figure {
    break-inside: avoid;
  }

  h1,
  h2,
  h3 {
    break-after: avoid;
    page-break-after: avoid;
  }

  .accordion details {
    border: 0;
  }

  .accordion .accordion__panel {
    display: block !important;
  }

  a {
    color: #000;
    text-decoration: none;
  }

  .hero {
    background: none;
    padding-block: 0 8pt;
  }

  .hero .btn-row,
  .hero__meta,
  .eyebrow::before {
    display: none !important;
  }

  h1 {
    font-size: 20pt;
  }

  h2 {
    font-size: 14pt;
  }

  .tool-panel,
  .download,
  .callout,
  .table-wrap {
    box-shadow: none;
  }

  .tool-panel {
    border: 0;
    padding: 0;
  }

  .check-items {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3pt;
  }

  .check-item label {
    padding: 5pt 7pt;
    border: 1px solid #cfc6b4;
    font-size: 9pt;
    break-inside: avoid;
  }

  .check-item__text small {
    font-size: 7.6pt;
  }

  .tool-actions .small,
  .callout--quote cite {
    font-size: 8pt;
  }

  .tool-note,
  .form-status,
  .share-bar,
  .author-card,
  .article-body > section#quiz,
  .article-body > section#sources {
    display: none !important;
  }

  .steps .step,
  .timeline li {
    padding-bottom: 10pt;
    break-inside: avoid;
  }

  .step::after,
  .timeline li::after {
    display: none;
  }

  .btn {
    border: 1px solid #1c2937;
    color: #1c2937;
    background: none;
    padding: 4pt 8pt;
    min-height: 0;
    font-size: 9pt;
  }

  .footer-disclosure {
    display: none;
  }
}
