:root {
  --ink: #1d292e;
  --muted: #5b686d;
  --forest: #26363c;
  --forest-deep: #142126;
  --mint: #ffc514;
  --mint-light: #fff4c7;
  --paper: #fff8e7;
  --paper-light: #fffdf7;
  --white: #ffffff;
  --coral: #ff7a00;
  --coral-ink: #b94c00;
  --gold: #ffbf00;
  --line: #e9dfca;
  --line-dark: rgba(255, 255, 255, 0.22);
  --surface: #ffffff;
  --surface-soft: #fffaf0;
  --brand-border: #edce64;
  --shadow-sm: 0 8px 22px rgba(77, 58, 5, 0.06);
  --shadow: 0 16px 38px rgba(77, 58, 5, 0.09);
  --shadow-hover: 0 20px 42px rgba(113, 72, 0, 0.13);
  --radius-sm: 0.8rem;
  --radius: 1.15rem;
  --radius-lg: 1.55rem;
  --control-radius: 999px;
  --ease: 180ms ease;
  --shell: 1220px;
  --reading: 780px;
  --space-section: clamp(2.05rem, 3.6vw, 3.4rem);
  --space-content: clamp(1.75rem, 3.2vw, 2.8rem);
  --space-panel: clamp(1.25rem, 2.4vw, 1.9rem);
  --space-heading: clamp(0.9rem, 1.5vw, 1.25rem);
  --space-layout-gap: clamp(1.2rem, 3vw, 2.75rem);
  --title-section: clamp(1.55rem, 2.3vw, 2.05rem);
  --title-section-featured: clamp(1.7rem, 2.8vw, 2.35rem);
  --title-section-compact: clamp(1.4rem, 2.1vw, 1.75rem);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, var(--paper-light) 0%, #fffaf0 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--forest);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

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

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

h1,
h2,
h3 {
  line-height: 1.08;
  text-wrap: balance;
}

h1,
h2 {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 880;
  letter-spacing: -0.05em;
}

h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.45rem, 5.5vw, 4.8rem);
}

h2 {
  margin-bottom: 1rem;
  font-size: var(--title-section);
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.08rem;
  font-weight: 750;
  letter-spacing: -0.015em;
}

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

.shell {
  width: min(calc(100% - 2rem), var(--shell));
  margin-inline: auto;
}

.content-shell {
  padding-block: var(--space-content);
}

.content-shell > .section,
.content-shell > .quick-answer {
  width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--forest);
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
  transition: transform 150ms ease;
}

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

.site-header {
  position: relative;
  z-index: 40;
  background: rgba(255, 254, 249, 0.96);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 4.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-size: 1.03rem;
  font-weight: 820;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.wordmark:hover {
  color: var(--forest);
}

.wordmark-mark {
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 0.19rem;
  padding: 0.28rem;
  background: var(--forest);
  border-radius: 0.45rem;
  box-shadow: 0.24rem 0.24rem 0 var(--coral);
}

.wordmark-mark i {
  display: block;
  background: var(--paper-light);
  border-radius: 99px;
}

.wordmark-mark i:nth-child(2) {
  width: 70%;
}

.wordmark-mark i:nth-child(3) {
  width: 86%;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.desktop-nav a {
  padding: 0.55rem 0.66rem;
  color: var(--muted);
  border-radius: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  color: var(--forest);
  background: var(--mint-light);
}

.mobile-nav {
  display: none;
  position: relative;
}

.mobile-nav summary {
  padding: 0.55rem 0.75rem;
  color: var(--forest);
  background: var(--mint-light);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

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

.mobile-nav[open] nav {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  width: min(17rem, calc(100vw - 2rem));
  display: grid;
  padding: 0.65rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.mobile-nav nav a {
  padding: 0.72rem 0.8rem;
  color: var(--ink);
  border-radius: 0.45rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.mobile-nav nav a:hover,
.mobile-nav nav a[aria-current="page"] {
  color: var(--forest);
  background: var(--mint-light);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--forest);
  font-size: 0.72rem;
  line-height: 1.2;
  font-weight: 820;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: var(--mint);
}

.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--ink);
  background: #ffc91b;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #ffc91b 0%, rgba(255, 201, 27, 0.98) 36%, rgba(255, 201, 27, 0.72) 52%, rgba(255, 201, 27, 0) 72%);
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: min(600px, calc(100vh - 4.8rem));
  padding-block: clamp(2.2rem, 3.4vw, 3rem);
}

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

.hero-copy h1 {
  max-width: 13ch;
  margin-bottom: 1rem;
  color: #17312c;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(2.5rem, 4.6vw, 4rem);
  font-weight: 880;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero-copy h1 span {
  color: #d95732;
}

.hero-kicker {
  display: inline-flex;
  margin-bottom: 1rem;
  color: #725015;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-lede {
  max-width: 39rem;
  margin-bottom: 1.4rem;
  color: #5c5a46;
  font-size: clamp(1rem, 1.7vw, 1.15rem);
}

.home-hero-form {
  max-width: 46rem;
}

.hero-search-control {
  display: flex;
  align-items: center;
  min-height: 4.6rem;
  padding: 0.48rem 0.48rem 0.48rem 1.25rem;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(23, 49, 44, 0.08);
  border-radius: 999px;
  box-shadow: 0 18px 50px rgba(139, 84, 0, 0.14);
}

.search-symbol {
  width: 0.8rem;
  height: 0.8rem;
  flex: 0 0 auto;
  margin-right: 0.8rem;
  border: 2px solid #8c928d;
  border-radius: 50%;
}

.search-symbol::after {
  content: "";
  width: 0.42rem;
  height: 2px;
  display: block;
  margin: 0.65rem 0 0 0.62rem;
  background: #8c928d;
  transform: rotate(45deg);
}

.hero-search-control input {
  min-width: 0;
  flex: 1;
  padding: 0 0.7rem 0 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 1rem;
}

.hero-search-control input::placeholder {
  color: #959a96;
}

.hero-search-control button {
  min-width: 9.2rem;
  min-height: 3.65rem;
  padding: 0.75rem 1.25rem;
  color: #192d29;
  background: #ff9b2f;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: transform 150ms ease, background-color 150ms ease;
}

.hero-search-control button:hover {
  background: #ffad45;
  transform: translateY(-1px);
}

.hero-search-control button span {
  margin-right: 0.25rem;
  font-size: 1.2rem;
}

.home-hero-form > p {
  margin: 0.55rem 0 0 1.2rem;
  color: #6c6547;
  font-size: 0.75rem;
}

.hero-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.hero-chip {
  min-height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  color: #28443e;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 760;
  text-decoration: none;
}

.hero-chip:hover {
  color: #17312c;
  background: rgba(255, 255, 255, 0.72);
}

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

.button {
  min-height: 2.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.7rem;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--forest-deep);
  background: var(--mint);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.button-primary:hover {
  color: var(--forest-deep);
  background: #d0eadc;
}

.button-secondary {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
}

.button-secondary:hover {
  color: var(--white);
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.button-ink {
  color: var(--white);
  background: var(--forest);
}

.button-ink:hover {
  color: var(--white);
  background: var(--forest-deep);
}

.trust-line {
  max-width: 43rem;
  margin: 0.9rem 0 0;
  padding-top: 0.75rem;
  color: #6d6242;
  border-top: 1px solid rgba(72, 57, 20, 0.18);
  font-size: 0.72rem;
  line-height: 1.45;
}

.quick-answer {
  position: relative;
  max-width: none;
  margin: 0 0 var(--space-section);
  padding: var(--space-panel);
  background: var(--mint-light);
  border: 1px solid #bfd2c7;
  border-left: 0.35rem solid var(--forest);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.quick-answer::after {
  content: "→";
  position: absolute;
  right: clamp(1rem, 3vw, 2rem);
  top: clamp(1rem, 3vw, 1.7rem);
  color: rgba(18, 60, 54, 0.22);
  font-size: 2rem;
  line-height: 1;
}

.quick-answer h2 {
  margin-bottom: 0.65rem;
  font-size: var(--title-section-compact);
}

.quick-answer p {
  max-width: 50rem;
  color: #314641;
  font-size: 1.03rem;
}

.section {
  padding-block: var(--space-section);
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 52rem;
  margin-bottom: var(--space-heading);
}

.section-heading p {
  max-width: 44rem;
  color: var(--muted);
}

.heading-with-link {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.heading-with-link > div h2 {
  margin-bottom: 0;
}

.heading-with-link > a,
.split-section > a,
.search-copy > a,
.section > a:not(.button) {
  font-weight: 800;
}

.prose {
  max-width: var(--reading);
  color: #354843;
  font-size: 1.02rem;
}

.prose p + p {
  margin-top: 1.2rem;
}

.two-col-copy {
  max-width: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-layout-gap);
}

.two-col-copy p {
  margin: 0;
}

.category-section {
  padding-inline: clamp(1rem, 3vw, 2rem);
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 201, 27, 0.18), transparent 24%),
    linear-gradient(180deg, #fffefb 0%, #fff9e8 100%);
  border: 1px solid #f2dfad;
  border-radius: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 24px 60px rgba(106, 77, 6, 0.07);
}

.category-directory-heading {
  max-width: 48rem;
  margin-inline: auto;
  text-align: center;
}

.category-directory-heading .eyebrow {
  color: #a95012;
}

.category-directory-heading h2 {
  color: var(--forest-deep);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--title-section-featured);
  font-weight: 900;
  letter-spacing: -0.055em;
}

.category-directory-heading p {
  margin: 0.75rem auto 0;
  color: #586865;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 650;
}

.category-icon-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.65rem, 1.4vw, 1rem);
}

.category-icon-card {
  min-width: 0;
  min-height: 11.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.95rem 0.7rem;
  color: var(--forest-deep);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e8e9e2;
  border-radius: 1.15rem;
  box-shadow: 0 10px 25px rgba(48, 54, 39, 0.06);
  text-align: center;
  text-decoration: none;
  transition: border-color 170ms ease, box-shadow 170ms ease, color 170ms ease, transform 170ms ease;
}

.category-icon-card:hover {
  color: var(--forest-deep);
  border-color: #ffc641;
  box-shadow: 0 16px 32px rgba(160, 102, 0, 0.13);
  transform: translateY(-4px);
}

.category-icon-card:focus-visible {
  outline-color: #f09916;
  outline-offset: 4px;
}

.category-icon-tile {
  position: relative;
  width: 6.25rem;
  height: 6.25rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #fff2d7 0%, #ffe0a2 100%);
  border: 1px solid #ffd28b;
  border-radius: 1.15rem;
}

.category-icon-tile::before {
  content: "";
  position: absolute;
  width: 3.2rem;
  height: 3.2rem;
  left: -0.25rem;
  top: -0.25rem;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 50%;
}

.category-icon-tile > span {
  position: relative;
  z-index: 1;
  font-size: 2.7rem;
  line-height: 1;
  filter: drop-shadow(0 5px 5px rgba(104, 63, 6, 0.14));
  transform: translate(0.18rem, 0.12rem);
}

.category-icon-card strong {
  font-size: clamp(0.98rem, 1.5vw, 1.16rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.category-directory-note {
  margin: 1rem 0 0;
  color: #62706d;
  font-size: 0.88rem;
  text-align: center;
}

.category-directory-note a {
  color: #8a480b;
  font-weight: 850;
}

.article-preview-section {
  position: relative;
}

.article-preview-section::before {
  content: "";
  position: absolute;
  width: 8rem;
  height: 0.3rem;
  left: 0;
  top: -1px;
  background: linear-gradient(90deg, #ffc91b, #ff9c2a);
  border-radius: 99px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.article-card {
  position: relative;
  min-height: 18rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.25rem, 2.4vw, 1.7rem);
  overflow: hidden;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #e7dfc9;
  border-radius: 1.15rem;
  box-shadow: 0 12px 28px rgba(57, 52, 32, 0.06);
  text-decoration: none;
  transition: border-color 170ms ease, box-shadow 170ms ease, color 170ms ease, transform 170ms ease;
}

.article-card::after {
  content: "";
  position: absolute;
  width: 6.5rem;
  height: 6.5rem;
  right: -3.7rem;
  bottom: -3.7rem;
  background: #fff1bd;
  border-radius: 50%;
  transition: transform 190ms ease;
}

.article-card:hover {
  color: var(--forest-deep);
  border-color: #ffc641;
  box-shadow: 0 17px 34px rgba(138, 85, 0, 0.12);
  transform: translateY(-3px);
}

.article-card:hover::after {
  transform: scale(1.18);
}

.article-number {
  margin-bottom: 1.2rem;
  color: #bf660c;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.article-topic {
  display: inline-flex;
  margin-bottom: 0.8rem;
  padding: 0.28rem 0.55rem;
  color: #8a480b;
  background: #fff3cc;
  border-radius: 99px;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-card h3 {
  max-width: 19rem;
  margin-bottom: 0.8rem;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.12rem, 1.8vw, 1.4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.article-card p {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.article-time {
  position: relative;
  z-index: 1;
  margin-top: auto;
  color: var(--forest);
  font-size: 0.74rem;
  font-weight: 850;
}

.article-time b {
  color: #c4660f;
  font-size: 1rem;
}

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

.article-library .article-card {
  min-height: 16rem;
}

.article-library .article-card h3 {
  max-width: 28rem;
}

.decision-grid article a {
  display: inline-flex;
  margin-top: 0.6rem;
  color: var(--forest);
  font-size: 0.82rem;
  font-weight: 850;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.category-card {
  position: relative;
  min-height: 17rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.2rem, 2.5vw, 1.7rem);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.category-card:hover {
  border-color: #9bb8aa;
  box-shadow: 0 14px 30px rgba(22, 62, 54, 0.08);
  transform: translateY(-2px);
}

.category-card::after {
  content: "";
  position: absolute;
  width: 8rem;
  height: 8rem;
  right: -4rem;
  bottom: -4rem;
  background: var(--mint-light);
  border-radius: 50%;
  transition: transform 220ms ease;
}

.category-card:hover::after {
  transform: scale(1.15);
}

.category-detail-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: linear-gradient(145deg, #fff2d7, #ffe0a2);
  border: 1px solid #ffd28b;
  border-radius: 0.85rem;
  font-size: 1.7rem;
  line-height: 1;
}

.category-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 500;
}

.category-card p {
  max-width: 34rem;
  margin-bottom: 0.7rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.category-card p strong {
  color: var(--ink);
}

.card-link {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.84rem;
  font-weight: 820;
}

.safe-note {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  color: #52635e;
  background: var(--paper);
  border: 1px dashed #bfc8bf;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps-grid li {
  padding: 1.5rem;
  background: var(--paper);
  border-radius: var(--radius);
}

.steps-grid li > span {
  display: inline-block;
  margin-bottom: 2.4rem;
  color: var(--coral-ink);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.steps-grid p {
  color: var(--muted);
  font-size: 0.92rem;
}

.evidence-section {
  display: grid;
  grid-template-columns: minmax(16rem, 0.7fr) minmax(20rem, 1.3fr);
  gap: var(--space-layout-gap);
}

.evidence-intro {
  align-self: start;
  position: sticky;
  top: 2rem;
}

.evidence-intro p {
  color: var(--muted);
}

.evidence-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.evidence-list li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.evidence-list b {
  color: var(--coral-ink);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.compact-list li {
  grid-template-columns: 4rem 1fr;
}

.compact-list span {
  color: var(--muted);
}

.search-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-layout-gap);
  align-items: center;
}

.search-copy p {
  color: var(--muted);
}

.search-tip-card {
  padding: var(--space-panel);
  background: var(--mint-light);
  border: 1px solid #bfd2c7;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.search-tip-card > span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--coral-ink);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.search-tip-card > strong {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--forest-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 500;
}

.search-tip-card p {
  color: var(--muted);
}

.search-form {
  padding: clamp(1.2rem, 2.6vw, 1.7rem);
  color: var(--white);
  background: var(--forest);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.search-form label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.search-form > div {
  display: flex;
}

.search-form input {
  min-width: 0;
  flex: 1;
  min-height: 3.2rem;
  padding: 0.8rem 0.9rem;
  color: var(--ink);
  background: var(--white);
  border: 0;
  border-radius: 0.65rem 0 0 0.65rem;
  font: inherit;
}

.search-form button {
  min-height: 3.2rem;
  padding: 0.75rem 1rem;
  color: var(--forest-deep);
  background: var(--mint);
  border: 0;
  border-radius: 0 0.65rem 0.65rem 0;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

.search-form p {
  margin: 0.7rem 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.75rem;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.map-grid a {
  min-height: 8.5rem;
  display: flex;
  flex-direction: column;
  padding: 1.2rem;
  color: var(--ink);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.map-grid a:hover {
  color: var(--forest);
  background: var(--mint-light);
}

.map-grid b {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.map-grid span {
  color: var(--muted);
  font-size: 0.8rem;
}

.closing-panel,
.checklist-panel {
  padding: clamp(1.55rem, 3vw, 2.5rem);
  color: var(--white);
  background: var(--forest-deep);
  border-top: 0;
  border-radius: var(--radius-lg);
}

.closing-panel h2,
.checklist-panel h2 {
  max-width: 18ch;
}

.closing-panel p,
.checklist-panel p {
  max-width: 46rem;
  color: rgba(255, 255, 255, 0.7);
}

.page-hero {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 4.5rem 100%,
    linear-gradient(var(--forest-deep), var(--forest));
}

.page-hero .eyebrow {
  color: var(--mint);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(15rem, 0.6fr);
  align-items: end;
  gap: var(--space-layout-gap);
  padding-block: clamp(2.4rem, 4.2vw, 3.6rem);
}

.page-hero h1 {
  max-width: 15ch;
  margin-bottom: 1rem;
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  letter-spacing: -0.045em;
}

.lede {
  max-width: 45rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(1rem, 2vw, 1.13rem);
}

.review-meta {
  width: fit-content;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  align-items: center;
  margin: 1rem 0 0;
  padding: 0.48rem 0.68rem;
  color: #e4ece9;
  background: #142126;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.65rem;
  font-size: 0.74rem;
  line-height: 1.45;
}

.review-meta a {
  color: #ffe47a;
  font-weight: 780;
}

.review-meta a:hover {
  color: #fff2ba;
}

.hero-note {
  padding: 1.15rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}

.hero-note span {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--mint);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-note p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  line-height: 1.55;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 44rem;
  border-collapse: collapse;
  background: var(--white);
}

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

th {
  color: var(--forest);
  background: var(--mint-light);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

td {
  color: var(--muted);
  font-size: 0.88rem;
}

td:first-child {
  color: var(--ink);
  font-weight: 750;
}

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

.source-grid,
.decision-grid,
.weight-grid,
.score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.source-grid article,
.decision-grid article,
.weight-grid article,
.score-grid article {
  min-height: 11.5rem;
  padding: 1.3rem;
  background: var(--paper);
  border-radius: var(--radius);
}

.source-grid p,
.decision-grid p,
.weight-grid p,
.score-grid p {
  color: var(--muted);
  font-size: 0.9rem;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.compare-card {
  padding: var(--space-panel);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.compare-card.good {
  border-top: 0.35rem solid #4d9b78;
}

.compare-card.weak {
  border-top: 0.35rem solid var(--coral);
}

.compare-card > span {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 820;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.compare-card p,
.compare-card li {
  color: var(--muted);
  font-size: 0.9rem;
}

.compare-card ul {
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.compare-card li + li {
  margin-top: 0.5rem;
}

.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-inline: clamp(1.4rem, 4vw, 2.4rem);
  color: var(--white);
  background: var(--forest);
  border-top: 0;
  border-radius: var(--radius-lg);
}

.callout h2 {
  max-width: 18ch;
}

.callout p {
  max-width: 44rem;
  color: rgba(255, 255, 255, 0.7);
}

.callout .button {
  flex: 0 0 auto;
}

.callout.pale {
  color: var(--ink);
  background: var(--mint-light);
  border: 1px solid #bed1c6;
}

.callout.pale p {
  color: var(--muted);
}

.callout.pale .eyebrow {
  color: var(--forest);
}

.related {
  padding-bottom: 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.related-card {
  position: relative;
  min-height: 7.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  gap: 0.2rem 1rem;
  padding: 1.1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.related-card:hover {
  color: var(--forest);
  border-color: #9eb8ac;
}

.related-card strong {
  font-size: 0.92rem;
}

.related-card span {
  max-width: 28rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.related-card b {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--coral-ink);
  font-size: 1.2rem;
}

.term-lines {
  margin-bottom: 1.4rem;
  border-top: 1px solid var(--line);
}

.term-lines p {
  display: grid;
  grid-template-columns: minmax(14rem, 0.45fr) 1fr;
  gap: 1rem;
  margin: 0;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.term-lines b {
  color: var(--forest);
}

.term-lines span {
  color: var(--muted);
}

.checklist-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.checklist-list li {
  display: grid;
  grid-template-columns: 2.1rem 3rem 1fr;
  align-items: center;
  gap: 0.8rem;
  min-height: 4.8rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.checklist-list .box {
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid #8aa69a;
  border-radius: 0.28rem;
}

.checklist-list b {
  color: var(--coral-ink);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.checklist-list p {
  margin: 0;
  font-size: 1rem;
}

.score-grid article strong {
  display: block;
  margin-bottom: 1.6rem;
  color: var(--coral-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  font-weight: 500;
}

.rule-panel {
  padding: clamp(1.65rem, 3.4vw, 2.75rem);
  color: var(--forest-deep);
  background: var(--mint);
  border-top: 0;
  border-radius: var(--radius-lg);
}

.rule-panel span {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.17em;
}

.rule-panel h2 {
  max-width: 24ch;
  margin: 0;
}

.weight-grid article > b {
  display: inline-block;
  margin-bottom: 1.8rem;
  padding: 0.25rem 0.55rem;
  color: var(--forest);
  background: var(--mint);
  border-radius: 99px;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

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

.process-list li > b {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--forest);
  border-radius: 50%;
}

.process-list h3 {
  margin-bottom: 0.35rem;
}

.process-list p {
  max-width: 50rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.disclaimer-strip {
  padding: 1.2rem 1.4rem;
  color: #5d4a23;
  background: #f7ebcf;
  border: 1px solid #e6d09d;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.flag-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.flag-grid p {
  min-height: 6.5rem;
  display: flex;
  align-items: start;
  gap: 0.8rem;
  margin: 0;
  padding: 1.15rem;
  color: var(--muted);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}

.flag-grid b {
  color: var(--coral-ink);
  font-size: 0.7rem;
}

.faq-list {
  border-top: 1px solid var(--line);
}

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

.faq-list summary {
  position: relative;
  padding: 1.15rem 3rem 1.15rem 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 780;
  cursor: pointer;
  list-style: none;
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 1.1rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  color: var(--forest);
  background: var(--mint-light);
  border-radius: 50%;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list details p {
  max-width: 52rem;
  padding: 0 3rem 1.15rem 0;
  color: var(--muted);
}

.contact-card {
  max-width: none;
  margin-inline: 0;
  padding-inline: clamp(1.5rem, 5vw, 3.5rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.contact-card > p {
  max-width: var(--reading);
}

.not-found {
  min-height: 62vh;
  display: grid;
  place-items: center;
  padding-block: 4rem;
  color: var(--white);
  background: var(--forest);
}

.not-found h1 {
  max-width: 12ch;
}

.not-found p {
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer {
  margin-top: clamp(2rem, 3.5vw, 3rem);
  padding-top: clamp(1.8rem, 3vw, 2.75rem);
  color: rgba(255, 255, 255, 0.75);
  background: #0a2824;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(15rem, 0.65fr) minmax(20rem, 1.35fr);
  gap: var(--space-layout-gap);
  padding-bottom: 1.75rem;
}

.footer-wordmark {
  margin-bottom: 1.2rem;
  color: var(--white);
}

.footer-wordmark:hover {
  color: var(--mint);
}

.footer-grid p {
  max-width: 34rem;
  font-size: 0.82rem;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem 1rem;
  align-content: start;
}

.footer-nav a {
  padding: 0.3rem 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--mint);
}

.footer-base {
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
  color: rgba(255, 255, 255, 0.5);
  border-top: 1px solid var(--line-dark);
  font-size: 0.68rem;
}

/* Coordinated warm visual system for the independent editorial guide. */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.93);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 4.55rem;
}

.wordmark-mark {
  color: var(--ink);
  background: var(--mint);
  border: 1px solid var(--brand-border);
  border-radius: 0.65rem;
  box-shadow: 0.2rem 0.2rem 0 var(--coral);
}

.wordmark-mark i {
  background: var(--ink);
}

.desktop-nav a {
  padding: 0.58rem 0.72rem;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: var(--control-radius);
  transition: color var(--ease), background-color var(--ease), border-color var(--ease);
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--mint-light);
  border-color: var(--brand-border);
}

.mobile-nav summary {
  color: var(--ink);
  background: var(--mint-light);
  border-color: var(--brand-border);
  border-radius: var(--control-radius);
}

.mobile-nav[open] nav {
  border-color: var(--line);
  box-shadow: var(--shadow-hover);
}

.mobile-nav nav a:hover,
.mobile-nav nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--mint-light);
}

.eyebrow,
.category-directory-heading .eyebrow {
  color: var(--coral-ink);
  letter-spacing: 0.13em;
}

.button {
  min-height: 3rem;
  padding-inline: 1.15rem;
  border-radius: var(--control-radius);
  box-shadow: none;
  transition: color var(--ease), background-color var(--ease), border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.button-primary {
  color: var(--ink);
  background: linear-gradient(135deg, #ffd43f, var(--mint));
  border-color: var(--brand-border);
  box-shadow: 0 9px 22px rgba(120, 78, 0, 0.14);
}

.button-primary:hover {
  color: var(--ink);
  background: linear-gradient(135deg, #ffe06b, #ffd13a);
  box-shadow: 0 12px 26px rgba(120, 78, 0, 0.18);
}

.button-ink {
  color: #fff;
  background: linear-gradient(145deg, var(--ink), #2d3c42);
  border-color: var(--ink);
}

.button-ink:hover {
  color: #fff;
  background: #34464d;
  border-color: #34464d;
}

.button-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.46);
}

.button-secondary:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.82);
}

.hero-search-control {
  border: 3px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 52px rgba(108, 72, 0, 0.15);
}

.hero-search-control button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  color: var(--ink);
  background: linear-gradient(135deg, #ffb522, #ff971d);
  box-shadow: inset 0 0 0 1px rgba(164, 105, 0, 0.1);
}

.hero-search-control button:hover {
  background: linear-gradient(135deg, #ffc13a, #ffa431);
}

.hero-search-control button .ui-icon {
  margin: 0;
  font-size: inherit;
}

.hero-chip {
  gap: 0.55rem;
  min-height: 2.75rem;
  padding-inline: 1rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.56);
  border-color: rgba(255, 255, 255, 0.92);
  border-radius: var(--control-radius);
  font-size: 0.8rem;
  transition: color var(--ease), background-color var(--ease), transform var(--ease);
}

.hero-chip:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  transform: translateY(-1px);
}

.ui-icon {
  position: relative;
  width: 1.1rem;
  height: 1.1rem;
  display: inline-block;
  flex: 0 0 auto;
  color: currentColor;
}

.ui-icon-search::before {
  content: "";
  position: absolute;
  width: 0.68rem;
  height: 0.68rem;
  left: 0.05rem;
  top: 0.05rem;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.ui-icon-search::after {
  content: "";
  position: absolute;
  width: 0.48rem;
  height: 2px;
  right: 0.03rem;
  bottom: 0.16rem;
  background: currentColor;
  border-radius: 99px;
  transform: rotate(45deg);
}

.ui-icon-grid {
  background:
    linear-gradient(currentColor 0 0) 0 0 / 0.42rem 0.42rem,
    linear-gradient(currentColor 0 0) 100% 0 / 0.42rem 0.42rem,
    linear-gradient(currentColor 0 0) 0 100% / 0.42rem 0.42rem,
    linear-gradient(currentColor 0 0) 100% 100% / 0.42rem 0.42rem;
  background-repeat: no-repeat;
  border-radius: 0.14rem;
}

.ui-icon-check {
  border: 2px solid currentColor;
  border-radius: 0.22rem;
}

.ui-icon-check::before,
.ui-icon-check::after {
  content: "";
  position: absolute;
  height: 2px;
  background: currentColor;
  border-radius: 99px;
}

.ui-icon-check::before {
  width: 0.27rem;
  left: 0.18rem;
  top: 0.51rem;
  transform: rotate(45deg);
}

.ui-icon-check::after {
  width: 0.56rem;
  right: 0.08rem;
  top: 0.42rem;
  transform: rotate(-45deg);
}

.ui-icon-truck::before {
  content: "";
  position: absolute;
  width: 0.68rem;
  height: 0.52rem;
  left: 0;
  top: 0.24rem;
  border: 2px solid currentColor;
  border-radius: 0.15rem 0 0 0.15rem;
}

.ui-icon-truck::after {
  content: "";
  position: absolute;
  width: 0.7rem;
  height: 0.7rem;
  right: 0;
  top: 0.42rem;
  border: 2px solid currentColor;
  border-top-left-radius: 0.28rem;
  box-shadow: -0.58rem 0.34rem 0 -0.23rem currentColor, 0 0.34rem 0 -0.23rem currentColor;
}

.quick-answer {
  padding: var(--space-panel);
  background: linear-gradient(135deg, #fffaf0, var(--mint-light));
  border: 1px solid var(--brand-border);
  border-left-width: 1px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.quick-answer::after {
  color: rgba(255, 122, 0, 0.28);
}

.quick-answer p {
  color: #4e5b60;
}

.section {
  padding-block: var(--space-section);
  border-top-color: var(--line);
}

.section-heading {
  margin-bottom: var(--space-heading);
}

.section-heading h2,
.evidence-intro h2,
.search-copy h2 {
  color: var(--ink);
}

.category-section {
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 122, 0, 0.1), transparent 26%),
    linear-gradient(180deg, #fffefb 0%, #fff7dc 100%);
  border-color: var(--brand-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.category-icon-card,
.article-card,
.category-card,
.related-card,
.compare-card {
  background: var(--surface);
  border-color: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.category-icon-card:hover,
.article-card:hover,
.category-card:hover,
.related-card:hover {
  color: var(--ink);
  border-color: var(--brand-border);
  box-shadow: var(--shadow-hover);
}

.category-icon-card,
.article-card,
.category-card,
.related-card {
  transition: color var(--ease), border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.category-icon-tile,
.category-detail-icon {
  background: linear-gradient(145deg, #fff9e9 0%, #ffe4a9 100%);
  border-color: var(--brand-border);
}

.category-icon-card strong,
.category-card h3,
.article-card h3,
.score-grid article strong {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 880;
}

.article-number {
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  margin-bottom: 1.3rem;
  color: var(--ink);
  background: var(--mint);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
}

.article-topic {
  color: var(--coral-ink);
  background: var(--mint-light);
}

.article-card::after {
  background: #fff0ae;
}

.article-time b,
.related-card b {
  color: var(--coral);
}

.steps-grid li,
.source-grid article,
.decision-grid article,
.weight-grid article,
.score-grid article {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.steps-grid li > span,
.evidence-list b,
.checklist-list b,
.flag-grid b {
  color: var(--coral-ink);
}

.search-tip-card,
.callout.pale {
  background: linear-gradient(135deg, #fffaf0, var(--mint-light));
  border-color: var(--brand-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.search-tip-card > strong {
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 880;
}

.search-form {
  background: linear-gradient(145deg, var(--ink), #2d3d43);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.search-form button {
  color: var(--ink);
  background: linear-gradient(135deg, #ffd43f, var(--mint));
}

.search-form input:focus-visible {
  outline-color: var(--coral);
}

.map-grid {
  gap: 0.75rem;
  border: 0;
}

.map-grid a {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: color var(--ease), background-color var(--ease), border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.map-grid a:hover {
  color: var(--ink);
  background: var(--surface-soft);
  border-color: var(--brand-border);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.page-hero {
  color: var(--ink);
  background:
    radial-gradient(circle at 86% 16%, rgba(255, 255, 255, 0.62), transparent 27%),
    linear-gradient(135deg, #ffe77b 0%, var(--mint) 68%, #ffb319 100%);
  border-bottom: 1px solid var(--brand-border);
}

.page-hero .eyebrow {
  color: var(--coral-ink);
}

.page-hero h1 {
  color: var(--ink);
}

.lede {
  color: #4e5652;
}

.hero-note {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.86);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.hero-note span {
  color: var(--coral-ink);
}

.hero-note p {
  color: #4e5b60;
}

.table-wrap {
  background: var(--surface);
  border-color: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

th {
  color: var(--ink);
  background: var(--mint-light);
}

tbody tr:nth-child(even) td {
  background: var(--surface-soft);
}

.compare-card.good {
  border-top-color: var(--mint);
}

.compare-card.weak {
  border-top-color: var(--coral);
}

.callout {
  color: var(--ink);
  background: linear-gradient(135deg, #ffda50, #ffbc16);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.callout p {
  color: #505a5e;
}

.callout .eyebrow {
  color: var(--coral-ink);
}

.callout .button-primary {
  color: var(--white);
  background: linear-gradient(145deg, var(--ink), #304148);
  border-color: var(--ink);
  box-shadow: 0 10px 24px rgba(29, 41, 46, 0.2);
}

.callout .button-primary:hover {
  color: var(--white);
  background: #34464d;
  border-color: #34464d;
}

.closing-panel,
.checklist-panel {
  background: linear-gradient(145deg, var(--ink), #293a40);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 48px rgba(20, 34, 40, 0.18);
}

.closing-panel .button-primary,
.checklist-panel .button-primary {
  color: var(--ink);
  background: linear-gradient(135deg, #ffd43f, var(--mint));
  border-color: var(--brand-border);
}

.rule-panel {
  color: var(--ink);
  background: linear-gradient(135deg, #fff0a7, #ffc719);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.process-list li > b {
  color: var(--ink);
  background: var(--mint);
  border: 1px solid var(--brand-border);
}

.disclaimer-strip,
.safe-note {
  color: #65420f;
  background: var(--mint-light);
  border-color: var(--brand-border);
  border-radius: var(--radius);
}

.faq-list summary::after {
  color: var(--ink);
  background: var(--mint);
}

.faq-list details,
.evidence-list li,
.term-lines p,
.process-list li {
  border-color: var(--line);
}

.contact-card {
  background: linear-gradient(135deg, var(--surface-soft), var(--mint-light));
  border-color: var(--brand-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.site-footer {
  color: rgba(255, 255, 255, 0.76);
  background: linear-gradient(145deg, #142126, #1d2c31);
}

.footer-wordmark:hover,
.footer-nav a:hover {
  color: #ffd646;
}

/* Keep search modules highlighted; use one white surface everywhere else. */
body {
  background: var(--white);
}

.quick-answer,
.category-section,
.category-icon-card,
.article-card,
.category-card,
.related-card,
.compare-card,
.steps-grid li,
.source-grid article,
.decision-grid article,
.weight-grid article,
.score-grid article,
.map-grid a,
.table-wrap,
.callout,
.callout.pale,
.closing-panel,
.checklist-panel,
.rule-panel,
.disclaimer-strip,
.safe-note,
.contact-card,
.hero-note,
.not-found,
.site-footer {
  background: var(--white);
}

.page-hero {
  color: var(--ink);
  background: var(--white);
  border-bottom-color: var(--line);
}

.page-hero h1 {
  color: var(--ink);
}

.page-hero .eyebrow {
  color: var(--coral-ink);
}

.lede,
.hero-note p {
  color: var(--muted);
}

.hero-note {
  border-color: var(--line);
}

tbody tr:nth-child(even) td {
  background: var(--white);
}

.closing-panel,
.checklist-panel,
.not-found {
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.closing-panel p,
.checklist-panel p,
.not-found p {
  color: var(--muted);
}

.closing-panel .eyebrow,
.checklist-panel .eyebrow,
.not-found .eyebrow {
  color: var(--coral-ink);
}

.closing-panel .button-secondary,
.checklist-panel .button-secondary,
.not-found .button-secondary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.closing-panel .button-secondary:hover,
.checklist-panel .button-secondary:hover,
.not-found .button-secondary:hover {
  color: var(--ink);
  background: var(--surface-soft);
  border-color: var(--brand-border);
}

.site-footer {
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-wordmark {
  color: var(--ink);
}

.footer-grid p,
.footer-nav a {
  color: var(--muted);
}

.footer-base {
  color: var(--muted);
  border-top-color: var(--line);
}

.footer-wordmark:hover,
.footer-nav a:hover {
  color: var(--coral-ink);
}

#codex-whatsapp-float {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 2147483000;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--white);
  background: #25d366;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(9, 46, 28, 0.3);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

#codex-whatsapp-float:hover,
#codex-whatsapp-float:focus-visible {
  color: var(--white);
  outline: 3px solid var(--white);
  outline-offset: 3px;
  box-shadow: 0 16px 36px rgba(9, 46, 28, 0.38);
  transform: translateY(-2px) scale(1.04);
}

#codex-whatsapp-float img {
  width: 32px;
  height: 32px;
}

#codex-whatsapp-float .codex-whatsapp-label {
  position: absolute;
  right: 68px;
  top: 50%;
  width: max-content;
  max-width: 210px;
  padding: 0.55rem 0.7rem;
  color: var(--white);
  background: #17231d;
  border-radius: 9px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity 180ms ease, visibility 180ms ease;
}

#codex-whatsapp-float:hover .codex-whatsapp-label,
#codex-whatsapp-float:focus-visible .codex-whatsapp-label {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 600px) {
  #codex-whatsapp-float {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    width: 54px;
    height: 54px;
  }

  #codex-whatsapp-float .codex-whatsapp-label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #codex-whatsapp-float,
  #codex-whatsapp-float .codex-whatsapp-label {
    transition: none;
  }
}

@media print {
  #codex-whatsapp-float {
    display: none !important;
  }
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .hero-grid,
  .page-hero-grid,
  .evidence-section,
  .search-section,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
  }

  .page-hero-grid {
    align-items: start;
  }

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

  .evidence-intro {
    position: static;
  }

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

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

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

@media (max-width: 720px) {
  body {
    line-height: 1.62;
  }

  h1 {
    font-size: clamp(2.35rem, 11vw, 3.15rem);
  }

  h2 {
    font-size: clamp(1.5rem, 6vw, 1.85rem);
  }

  .shell {
    width: min(calc(100% - 1.25rem), var(--shell));
  }

  .header-inner {
    min-height: 4.15rem;
  }

  .hero-grid {
    gap: 1.6rem;
    padding-block: 2.35rem 2.8rem;
  }

  .home-hero::before {
    background: linear-gradient(180deg, rgba(255, 201, 27, 0.98) 0%, rgba(255, 201, 27, 0.92) 68%, rgba(255, 201, 27, 0.72) 100%);
  }

  .hero-art {
    opacity: 0.2;
    object-position: 68% bottom;
  }

  .hero-copy h1 {
    max-width: 11ch;
    font-size: clamp(2.3rem, 10.5vw, 3.05rem);
  }

  .hero-search-control {
    min-height: 4.2rem;
    padding: 0.4rem 0.4rem 0.4rem 1rem;
  }

  .search-symbol {
    display: none;
  }

  .hero-search-control input {
    padding-left: 0.25rem;
    font-size: 0.9rem;
  }

  .hero-search-control button {
    min-width: 7.2rem;
    min-height: 3.35rem;
    padding-inline: 0.85rem;
    font-size: 0.86rem;
  }

  .home-hero-form > p {
    margin-left: 0.5rem;
  }

  .hero-shortcuts {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-chip:first-child {
    grid-column: 1 / -1;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
  }

  .page-hero-grid {
    gap: 1.2rem;
    padding-block: 2.1rem 2.5rem;
  }

  .page-hero h1 {
    font-size: clamp(1.75rem, 7.2vw, 2.3rem);
  }

  .quick-answer {
    border-radius: 0 var(--radius) var(--radius) 0;
  }

  .heading-with-link,
  .callout {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-section {
    padding-inline: 0.75rem;
  }

  .category-icon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .category-icon-card {
    min-height: 9.2rem;
    gap: 0.55rem;
    padding: 0.7rem 0.35rem;
    border-radius: 0.9rem;
  }

  .category-icon-tile {
    width: 4.8rem;
    height: 4.8rem;
    border-radius: 0.9rem;
  }

  .category-icon-tile::before {
    width: 2.55rem;
    height: 2.55rem;
  }

  .category-icon-tile > span {
    font-size: 2.2rem;
  }

  .article-grid,
  .article-library .article-grid {
    grid-template-columns: 1fr;
  }

  .article-card,
  .article-library .article-card {
    min-height: 15rem;
  }

  .two-col-copy,
  .category-grid,
  .steps-grid,
  .source-grid,
  .decision-grid,
  .weight-grid,
  .score-grid,
  .compare-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 15rem;
  }

  .steps-grid li > span {
    margin-bottom: 1.5rem;
  }

  .map-grid,
  .flag-grid {
    grid-template-columns: 1fr;
  }

  .map-grid a {
    min-height: 7rem;
  }

  .search-form > div {
    display: grid;
  }

  .search-form input,
  .search-form button {
    width: 100%;
    border-radius: 0.65rem;
  }

  .search-form button {
    margin-top: 0.5rem;
  }

  .term-lines p {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .checklist-list li {
    grid-template-columns: 1.8rem 2.2rem 1fr;
    gap: 0.45rem;
  }

  .checklist-list p {
    font-size: 0.9rem;
  }

  .callout .button {
    width: 100%;
  }

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .hero-actions,
  .mobile-nav,
  .search-form,
  .home-hero-form,
  .hero-shortcuts,
  .hero-art {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .home-hero,
  .page-hero,
  .closing-panel,
  .checklist-panel,
  .callout {
    color: #000;
    background: #fff;
    border: 1px solid #bbb;
  }

  a {
    color: #000;
  }
}
