:root {
  --surface: #ffffff;
  --ink: #182033;
  --muted: #606a7c;
  --line: #e2e6ec;
  --brand: #ff6b00;
  --brand-dark: #b94300;
  --brand-soft: #fff1e7;
  --gold: #ffb326;
  --shadow-sm: 0 10px 28px rgba(24, 32, 51, 0.055);
  --shadow-brand: 0 12px 28px rgba(255, 107, 0, 0.2);
  --radius: 22px;
  --radius-sm: 16px;
  --radius-pill: 999px;
  --max: 1120px;
  --page-gutter: 1rem;
  --reading-width: 68ch;
  --section-y: clamp(2.2rem, 4vw, 3.4rem);
  --section-y-compact: 1.35rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #9f3500;
}

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

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

h1,
h2,
h3 {
  margin: 0 0 0.65em;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 17ch;
  font-size: clamp(2.35rem, 5.6vw, 4.35rem);
}

h2 {
  font-size: clamp(1.55rem, 2.7vw, 2.25rem);
}

h3 {
  font-size: 1.28rem;
  letter-spacing: -0.015em;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  transform: translateY(-180%);
  border-radius: 8px;
  color: #fff;
  background: var(--brand-dark);
}

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

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

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(24, 32, 51, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 24px rgba(24, 32, 51, 0.045);
  backdrop-filter: blur(16px);
}

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

.wordmark {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.65rem;
  align-items: center;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-decoration: none;
}

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

.logo-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #ff8a1f, var(--brand));
  box-shadow: var(--shadow-brand);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  transform: none;
}

.logo-mark span {
  transform: none;
}

.site-nav {
  display: flex;
  gap: 0.2rem;
  align-items: center;
  justify-content: flex-end;
  font-size: 0.86rem;
  font-weight: 700;
}

.site-nav a {
  padding: 0.5rem 0.62rem;
  border-radius: var(--radius-pill);
  color: #3b4558;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.4rem, 4.4vw, 3.75rem) 0 2.25rem;
}

.hero::after {
  position: absolute;
  z-index: -1;
  right: -9rem;
  bottom: -7rem;
  width: 30rem;
  height: 30rem;
  border: 1px solid rgba(31, 90, 67, 0.18);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4rem rgba(31, 90, 67, 0.025), inset 0 0 0 8rem rgba(31, 90, 67, 0.025);
  content: "";
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
}

.home-hero {
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(circle at 78% 24%, rgba(255, 178, 67, 0.35), transparent 22rem),
    radial-gradient(circle at 96% 110%, rgba(255, 107, 0, 0.52), transparent 30rem),
    linear-gradient(112deg, #191b20 0%, #3e2f26 52%, #7c3e13 100%);
}

.home-hero::before {
  position: absolute;
  z-index: 0;
  top: -10rem;
  right: 5%;
  width: 34rem;
  height: 42rem;
  border-radius: 42% 58% 52% 48%;
  background: linear-gradient(160deg, rgba(255, 214, 158, 0.2), rgba(255, 107, 0, 0.03));
  filter: blur(16px);
  content: "";
  transform: rotate(25deg);
}

.home-hero::after {
  z-index: 0;
  right: -7rem;
  bottom: -12rem;
  border-color: rgba(255, 172, 88, 0.22);
  box-shadow: inset 0 0 0 4rem rgba(255, 255, 255, 0.025), inset 0 0 0 8rem rgba(255, 255, 255, 0.025);
}

.home-hero .shell {
  position: relative;
  z-index: 1;
}

.home-hero .hero-copy {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  max-width: none;
}

.home-hero h1 {
  max-width: 17ch;
  color: #fff;
  font-size: clamp(2.25rem, 4.1vw, 3.55rem);
  font-weight: 850;
}

.hero-accent {
  display: block;
  color: #ffb326;
}

.home-hero .eyebrow {
  color: #ffd078;
}

.home-hero .lede {
  max-width: var(--reading-width);
  color: rgba(255, 255, 255, 0.82);
}

.home-hero .trust-note {
  max-width: 78ch;
  margin-top: 0.7rem;
  border-color: #ffb326;
  color: rgba(255, 255, 255, 0.74);
  background: rgba(19, 20, 24, 0.26);
}

.hero-search-panel {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  max-width: none;
  margin-top: 0;
}

.search-kicker {
  margin-bottom: 0.65rem;
  color: #ffd29e;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-search-form {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  min-height: 68px;
  padding: 0.3rem 0.36rem 0.3rem 1.2rem;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  background: #fff;
  box-shadow: 0 24px 52px rgba(15, 17, 21, 0.3);
}

.hero-search-form:focus-within {
  outline: 3px solid #ffc247;
  outline-offset: 3px;
}

.hero-search-icon {
  display: inline-flex;
  flex: 0 0 auto;
  color: #7b8981;
}

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

.hero-search-form input::placeholder {
  color: #98a39d;
}

.source-hints {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.3rem;
  align-items: center;
  margin-right: 0.35rem;
}

.source-hints span {
  display: grid;
  min-width: 1.9rem;
  height: 1.9rem;
  padding-inline: 0.4rem;
  place-items: center;
  border-radius: var(--radius-pill);
  color: #7f8998;
  background: #edf0f4;
  font-size: 0.66rem;
  font-weight: 900;
}

.hero-search-form button {
  display: inline-flex;
  min-height: 52px;
  flex: 0 0 auto;
  gap: 0.55rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.6rem;
  border: 0;
  border-radius: var(--radius-pill);
  color: #fff;
  background: var(--brand-dark);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.hero-search-form button:hover {
  background: #9f3500;
  transform: translateY(-1px);
}

.quick-searches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-top: 0.7rem;
}

.quick-searches > span {
  margin-right: 0.15rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-searches a {
  padding: 0.42rem 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-pill);
  color: #fff;
  font-size: 0.83rem;
  font-weight: 800;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease;
}

.quick-searches a:hover {
  border-color: #ffb326;
  color: #fff;
  background: rgba(255, 179, 38, 0.17);
}

.hero-search-note {
  margin: 0.7rem 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
}

.eyebrow {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 0.8rem;
  color: var(--brand-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.8rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.lede {
  max-width: 62ch;
  color: #495466;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.1rem;
}

.button {
  display: inline-flex;
  min-height: 46px;
  gap: 0.55rem;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  color: #fff;
  background: linear-gradient(135deg, #ff7614, var(--brand-dark));
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: var(--shadow-brand);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  color: #fff;
  background: linear-gradient(135deg, #e95d00, #9f3500);
  box-shadow: 0 14px 30px rgba(255, 107, 0, 0.24);
  transform: translateY(-1px);
}

.button.secondary {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
  box-shadow: none;
}

.button.secondary:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: var(--brand-soft);
  box-shadow: none;
}

.external-note,
.fine-print {
  color: var(--muted);
  font-size: 0.82rem;
}

.trust-note {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--gold);
  color: #4f596b;
  background: rgba(255, 253, 248, 0.65);
  font-size: 0.88rem;
}

.search-strip {
  margin-bottom: 1.3rem;
}

.search-shell {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 0.9rem 1.5rem;
  align-items: center;
  padding: 1.2rem;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ff7614, var(--brand-dark));
  color: #fff;
  box-shadow: 0 18px 40px rgba(255, 107, 0, 0.2);
}

.search-shell h2 {
  margin-bottom: 0.25rem;
  color: #fff;
  font-size: 1.28rem;
}

.search-shell p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.86rem;
}

.search-form {
  display: flex;
  gap: 0.55rem;
}

.search-form input {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-pill);
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.search-form button {
  min-height: 50px;
  padding: 0.75rem 1.1rem;
  border: 0;
  border-radius: var(--radius-pill);
  color: var(--brand-dark);
  background: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.search-form button:hover {
  color: #fff;
  background: var(--ink);
}

.section {
  padding: var(--section-y) 0;
  background: var(--surface);
}

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

.section.tinted {
  border-block: 1px solid rgba(24, 32, 51, 0.06);
  background: var(--surface);
}

.section-head {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.4rem 3rem;
  align-items: end;
  margin-bottom: 1.1rem;
}

.section-head p {
  max-width: 62ch;
  margin-bottom: 0.35rem;
  color: var(--muted);
}

.quick-answer {
  position: relative;
  padding: clamp(1.1rem, 2.4vw, 1.55rem);
  border: 1px solid #ffcda8;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.quick-answer::before {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--brand);
  content: "Quick answer";
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

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

.category-showcase {
  position: relative;
  overflow: hidden;
  border-block: 1px solid rgba(24, 32, 51, 0.06);
  background: var(--surface);
}

.category-showcase::before {
  position: absolute;
  top: -18rem;
  left: -12rem;
  width: 32rem;
  height: 32rem;
  border: 1px solid rgba(255, 107, 0, 0.09);
  border-radius: 50%;
  box-shadow: inset 0 0 0 5rem rgba(255, 255, 255, 0.08);
  content: "";
}

.category-showcase .shell {
  position: relative;
  z-index: 1;
}

.category-heading {
  width: 100%;
  max-width: none;
  margin: 0 auto 1.2rem;
  text-align: center;
}

.category-heading .eyebrow {
  justify-content: center;
  color: var(--brand-dark);
}

.category-heading h2 {
  margin-bottom: 0.35rem;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.8rem, 3.7vw, 2.85rem);
  font-weight: 900;
  letter-spacing: -0.045em;
}

.category-heading p {
  max-width: 62ch;
  margin-inline: auto;
  margin-bottom: 0;
  color: #59635e;
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 650;
}

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

.directory-card {
  display: flex;
  min-width: 0;
  min-height: 174px;
  flex-direction: column;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  text-align: center;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.directory-card:hover {
  border-color: var(--brand);
  color: var(--ink);
  box-shadow: 0 18px 36px rgba(255, 107, 0, 0.15);
  transform: translateY(-4px);
}

.directory-icon {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border-radius: 20px;
  color: #9aa4b1;
  background: linear-gradient(145deg, #f8f9fb, #edf0f4);
  box-shadow: inset 0 0 0 1px rgba(23, 32, 51, 0.04), 0 10px 24px rgba(23, 32, 51, 0.07);
}

.directory-icon svg {
  width: 46px;
  height: 46px;
}

.directory-card:hover .directory-icon,
.directory-card:focus-visible .directory-icon {
  color: var(--brand);
  background: linear-gradient(145deg, #fff7f0, #ffe7d4);
}

.directory-card strong {
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.2;
}

.directory-card small {
  overflow: hidden;
  max-width: 100%;
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.3;
  text-overflow: initial;
  white-space: normal;
}

.directory-external-note {
  margin: 1.25rem 0 0;
  color: #5e665f;
  text-align: center;
}

.category-check-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 1.2rem;
  padding: 0.85rem;
  border: 1px solid #ffd2b1;
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.category-check-strip p {
  margin: 0;
  color: #4e5953;
  font-size: 0.79rem;
  line-height: 1.5;
}

.category-check-strip strong {
  color: var(--brand-dark);
}

.category-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.category-card:hover {
  border-color: #ffb47d;
  box-shadow: 0 14px 30px rgba(255, 107, 0, 0.1);
  transform: translateY(-2px);
}

.category-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 14px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.category-icon svg {
  width: 2rem;
  height: 2rem;
}

.category-card:nth-child(3n + 2) .category-icon {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.category-card:nth-child(3n) .category-icon {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.category-card h3 {
  margin-bottom: 0.3rem;
}

.category-card p {
  margin-bottom: 0.65rem;
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.55;
}

.category-card a {
  font-size: 0.86rem;
  font-weight: 800;
}

.step-grid,
.card-grid,
.link-grid,
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.info-card,
.step-card,
.link-card,
.example-card {
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.step-number {
  display: inline-flex;
  width: 2.2rem;
  height: 2.2rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #ff8a20, var(--brand));
  box-shadow: 0 7px 16px rgba(255, 107, 0, 0.2);
  font-weight: 900;
}

.info-card p,
.step-card p,
.link-card p,
.example-card p {
  color: var(--muted);
}

.info-card h3,
.step-card h3,
.link-card h3,
.example-card h3,
.category-card h3,
.faq-item h2 {
  color: var(--ink);
  letter-spacing: -0.02em;
}

.info-card p:last-child,
.step-card p:last-child,
.link-card p:last-child,
.example-card p:last-child {
  margin-bottom: 0;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.65fr);
  gap: 1.5rem 3rem;
  align-items: start;
}

.prose {
  width: 100%;
  max-width: none;
}

.prose h2 {
  margin-top: 1.5em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 1.3em;
}

.prose p,
.prose li {
  color: #495466;
}

.prose a {
  font-weight: 700;
}

.prose h2[id] {
  scroll-margin-top: 1.5rem;
}

.article-comparison {
  margin-block: 1.2rem;
}

.article-comparison ul {
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.article-toc {
  display: grid;
  gap: 0.15rem;
  margin-bottom: 1.1rem;
}

.article-toc a {
  padding: 0.46rem 0.55rem;
  border-radius: 10px;
  color: #495466;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
}

.article-toc a:hover {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.article-note {
  margin-top: 0.8rem;
  padding: 0.85rem;
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  background: var(--surface);
}

.article-note strong {
  color: var(--brand-dark);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.article-note p {
  margin: 0.3rem 0 0;
  color: #4e5953;
  font-size: 0.83rem;
}

.article-callout {
  margin-top: 1rem;
}

.side-note,
.callout {
  padding: 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.side-note {
  position: sticky;
  top: 5.5rem;
  border-top: 3px solid var(--brand);
}

.side-note h2,
.side-note h3,
.callout h2,
.callout h3 {
  font-size: 1.12rem;
}

.side-note ul {
  margin: 0;
  padding-left: 1.1rem;
}

.side-note li + li {
  margin-top: 0.45rem;
}

.check-list,
.plain-list {
  display: grid;
  gap: 0.7rem;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 0.75rem 0.9rem 0.75rem 2.8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 6px 18px rgba(24, 32, 51, 0.035);
}

.check-list li::before {
  position: absolute;
  top: 0.8rem;
  left: 0.9rem;
  display: grid;
  width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  border: 1.5px solid var(--brand);
  border-radius: 4px;
  color: var(--brand);
  content: "✓";
  font-size: 0.75rem;
  font-weight: 900;
}

.plain-list li {
  padding-left: 1.2rem;
  border-left: 2px solid var(--gold);
}

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

.score {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.score strong {
  display: block;
  color: var(--brand-dark);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.35rem;
}

.example-card.good {
  border-top: 4px solid var(--brand);
}

.example-card.weak {
  border-top: 4px solid var(--brand-dark);
}

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

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
}

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

th {
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.breadcrumb {
  padding: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.breadcrumb a {
  color: var(--brand-dark);
  font-weight: 700;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li:not(:last-child)::after {
  margin-left: 0.35rem;
  color: #9ba39e;
  content: "/";
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.15rem, 3.8vw, 3.1rem) 0 1.55rem;
  border-bottom: 1px solid rgba(24, 32, 51, 0.06);
  background: var(--surface);
}

.page-hero::after {
  position: absolute;
  right: -8rem;
  bottom: -14rem;
  width: 25rem;
  height: 25rem;
  border: 1px solid rgba(255, 107, 0, 0.1);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4rem rgba(255, 107, 0, 0.025);
  content: "";
  pointer-events: none;
}

.page-hero .shell {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 22ch;
  font-size: clamp(1.72rem, 3.15vw, 2.7rem);
}

.page-hero .lede {
  max-width: 68ch;
}

.article-meta {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.article-meta a {
  color: var(--brand-dark);
  font-weight: 800;
}

.faq-list {
  display: grid;
  gap: 0.65rem;
}

.faq-item {
  padding: 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.faq-item h2 {
  margin-bottom: 0.45rem;
  font-size: 1.18rem;
}

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

.cta-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.cta-panel h2 {
  color: var(--ink);
  font-size: clamp(1.55rem, 2.5vw, 2.05rem);
}

.cta-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.cta-panel .button-row {
  justify-content: flex-end;
  margin: 0;
}

.cta-panel .button {
  color: #fff;
  background: linear-gradient(135deg, #ff7614, var(--brand-dark));
  box-shadow: var(--shadow-brand);
}

.cta-panel .button:hover {
  color: #fff;
  background: linear-gradient(135deg, #e95d00, #9f3500);
  box-shadow: 0 14px 30px rgba(255, 107, 0, 0.24);
}

.cta-panel .button + .button {
  border-color: #ffcda8;
  color: var(--brand-dark);
  background: var(--surface);
  box-shadow: none;
}

.cta-panel .button + .button:hover {
  color: var(--brand-dark);
  background: var(--brand-soft);
  box-shadow: none;
}

.site-footer {
  margin-top: 0;
  padding: 2.15rem 0 1.25rem;
  border-top: 3px solid var(--brand);
  color: #fff;
  background: linear-gradient(135deg, #171d2d, #242c3d);
}

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

.site-footer .logo-mark {
  box-shadow: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1.2rem 3rem;
}

.footer-intro p {
  max-width: 48ch;
  color: #b8c0cd;
  font-size: 0.88rem;
}

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

.footer-links a {
  color: #d6dbe3;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffbd71;
}

.footer-bottom {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9fa9b8;
  font-size: 0.78rem;
}

@media (max-width: 900px) {
  .header-inner {
    display: block;
    padding: 0.9rem 0;
  }

  .site-nav {
    justify-content: flex-start;
    margin-top: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
  }

  .hero-grid,
  .content-grid,
  .section-head,
  .footer-grid,
  .cta-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-hero .hero-copy,
  .hero-search-panel {
    grid-column: 1;
    grid-row: auto;
    min-width: 0;
  }

  .home-hero .hero-copy {
    order: 1;
  }

  .hero-search-panel {
    order: 2;
    margin-top: -0.25rem;
  }

  .hero {
    padding-top: 2.8rem;
  }

  .side-note {
    position: static;
  }

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

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

  .cta-panel .button-row {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  :root {
    --page-gutter: 0.625rem;
  }

  body {
    font-size: 15.5px;
  }

  .shell {
    width: min(calc(100% - (var(--page-gutter) * 2)), var(--max));
  }

  .site-nav {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.2rem;
  }

  .site-nav a {
    display: flex;
    min-height: 42px;
    padding: 0.42rem 0.25rem;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
    text-align: center;
  }

  .home-hero h1 {
    width: 100%;
    max-width: none;
    font-size: 1.9rem;
  }

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

  .search-shell {
    grid-template-columns: 1fr;
  }

  .search-form {
    display: grid;
  }

  .hero-search-form {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 0;
    padding: 0.5rem;
    border-width: 3px;
    border-radius: 22px;
  }

  .hero-search-form input {
    width: 100%;
    font-size: 0.95rem;
  }

  .source-hints {
    display: none;
  }

  .hero-search-form button {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 46px;
    margin-top: 0.15rem;
  }

  .quick-searches {
    gap: 0.42rem;
  }

  .quick-searches a {
    padding: 0.36rem 0.62rem;
    font-size: 0.77rem;
  }

  .category-grid,
  .card-grid,
  .step-grid,
  .link-grid,
  .comparison-grid,
  .score-grid {
    grid-template-columns: 1fr;
  }

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

  .directory-card {
    min-height: 142px;
    padding: 0.72rem 0.4rem;
  }

  .directory-icon {
    width: 64px;
    height: 60px;
  }

  .directory-icon svg {
    width: 42px;
    height: 42px;
  }

  .category-check-strip {
    grid-template-columns: 1fr;
  }

  .category-card {
    grid-template-columns: 2.7rem 1fr;
    padding: 0.85rem;
  }

  .category-icon {
    width: 2.7rem;
    height: 2.7rem;
  }

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

  .footer-bottom {
    display: block;
  }
}

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

@media print {
  .site-header,
  .site-footer,
  .search-strip,
  .button-row {
    display: none;
  }

  body {
    background: #fff;
  }

  .section {
    padding: 1.5rem 0;
  }
}
