:root {
  color-scheme: light;
  --ink: #172033;
  --ink-soft: #334155;
  --muted: #5b687a;
  --paper: #ffffff;
  --surface: #ffffff;
  --soft: #eef5ff;
  --soft-strong: #dceafe;
  --line: #dde5ef;
  --line-strong: #cbd8e8;
  --line-blue: #bed7fb;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-deep: #1e40af;
  --focus: #b45309;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 5px 16px rgba(15, 23, 42, 0.045);
  --shadow-hover: 0 18px 38px rgba(29, 78, 216, 0.12);
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --max: 1080px;
  --page-title-size: clamp(1.75rem, 3.3vw, 2.5rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--primary-dark);
}

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

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

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: inherit;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  max-width: 920px;
  font-size: clamp(2.3rem, 5.7vw, 4.1rem);
}

.article-hero h1 {
  max-width: 880px;
  font-size: var(--page-title-size);
}

h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
}

h3 {
  font-size: 1.14rem;
  letter-spacing: -0.02em;
}

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-150%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(221, 229, 239, 0.94);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.nav-shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 13px 0 10px;
}

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

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.brand-mark img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.site-nav {
  display: flex;
  gap: 5px;
  margin: 12px -16px 0;
  padding: 0 16px 3px;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  position: relative;
  display: block;
  padding: 6px 9px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 0.87rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

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

.wrap {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.narrow {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.wrap .narrow {
  width: 100%;
  max-width: var(--max);
}

.section {
  padding: 50px 0;
}

.section-tight {
  padding: 32px 0;
}

.section-soft {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.eyebrow,
.section-label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin-bottom: 10px;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: var(--soft);
  color: var(--primary-deep);
  font-size: 0.77rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading {
  display: grid;
  gap: 10px;
  max-width: 780px;
  margin-bottom: 20px;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.04rem;
}

.section-heading > .section-label,
.answer-box > .section-label,
.cta-band > .section-label {
  margin-bottom: 0;
}

.section-heading > .section-label {
  color: var(--primary-deep);
  font-size: 0.77rem;
}

.home-hero {
  position: relative;
  display: flex;
  min-height: 550px;
  align-items: center;
  overflow: hidden;
  padding: 50px 0 40px;
  color: #fff;
  background:
    linear-gradient(125deg, rgba(29, 78, 216, 0.96) 0%, rgba(30, 64, 175, 0.92) 48%, rgba(30, 58, 138, 0.86) 100%),
    image-set(
      url("/assets/welisen-search-hero.webp") type("image/webp"),
      url("/assets/welisen-search-hero.jpg") type("image/jpeg")
    ) center 55% / cover no-repeat,
    #1e40af;
}

.home-hero::before {
  position: absolute;
  top: -220px;
  right: -160px;
  width: 540px;
  height: 540px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.035), 0 0 0 140px rgba(255, 255, 255, 0.025);
  content: "";
  pointer-events: none;
}

.home-hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15, 23, 42, 0.16) 100%);
  content: "";
  pointer-events: none;
}

.hero-search-shell {
  position: relative;
  z-index: 1;
  text-align: center;
}

.home-hero .eyebrow {
  margin-bottom: 11px;
  background: rgba(255, 255, 255, 0.13);
  color: #e6f0ff;
}

.home-hero h1 {
  max-width: 940px;
  margin: 0 auto;
  color: #fff;
  font-size: clamp(2.1rem, 4.4vw, 3.55rem);
}

.hero-intro {
  max-width: 790px;
  margin: 16px auto 12px;
  color: #eff6ff;
  font-size: clamp(1.02rem, 2vw, 1.18rem);
}

.trust-note {
  max-width: 910px;
  margin: 0 auto 18px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(30, 58, 138, 0.46);
  color: #eff6ff;
  font-size: 0.82rem;
  backdrop-filter: blur(8px);
}

.hero-search {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  max-width: 1040px;
  margin: 0 auto;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.32);
}

.hero-search:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.hero-search-icon {
  position: relative;
  display: block;
  align-self: center;
  width: 24px;
  height: 24px;
  margin-left: 12px;
  color: #64748b;
}

.hero-search-icon::before {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 14px;
  height: 14px;
  border: 3px solid currentColor;
  border-radius: 50%;
  content: "";
}

.hero-search-icon::after {
  position: absolute;
  right: 1px;
  bottom: 2px;
  width: 10px;
  height: 3px;
  border-radius: 3px;
  background: currentColor;
  content: "";
  transform: rotate(45deg);
  transform-origin: center;
}

.hero-search input {
  min-width: 0;
  min-height: 62px;
  padding: 0 14px 0 2px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
}

.hero-search input::placeholder {
  color: #64748b;
}

.hero-search input:focus-visible {
  outline: 0;
}

.hero-search button {
  min-height: 62px;
  padding: 0 32px;
  border-color: var(--primary);
  border-radius: var(--radius-sm);
  background: var(--primary);
  font-size: 1rem;
}

.hero-search button:hover {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
}

.hero-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 17px;
  justify-content: center;
  margin: 11px auto 0;
  color: #dbeafe;
  font-size: 0.86rem;
}

.hero-suggestions a {
  color: #fff;
  font-weight: 700;
}

.home-hero .external-note {
  max-width: 740px;
  margin: 6px auto 0;
  color: #dbeafe;
  font-size: 0.79rem;
}

.search-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 970px;
  margin: 22px auto 0;
}

.search-steps::before {
  position: absolute;
  top: 15px;
  right: 16%;
  left: 16%;
  height: 2px;
  background: rgba(255, 255, 255, 0.45);
  content: "";
}

.search-step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.search-step-dot {
  display: grid;
  width: 30px;
  height: 30px;
  margin: 0 auto 10px;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.13);
  font-size: 0.75rem;
  font-weight: 900;
}

.search-step h2 {
  margin-bottom: 5px;
  color: #fff;
  font-size: 0.96rem;
  letter-spacing: 0;
}

.search-step p {
  max-width: 270px;
  margin: 0 auto;
  color: #dbeafe;
  font-size: 0.82rem;
  line-height: 1.5;
}

.hero-actions {
  justify-content: center;
  margin-top: 16px;
}

.home-hero .button {
  min-height: 43px;
  padding: 10px 16px;
  border-color: rgba(255, 255, 255, 0.75);
  background: #fff;
  color: var(--primary-deep);
  font-size: 0.84rem;
}

.home-hero .button:hover {
  border-color: #fff;
  background: #eff6ff;
  color: var(--primary-deep);
}

.home-hero .button-hero-secondary {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(30, 58, 138, 0.44);
  color: #fff;
  backdrop-filter: blur(8px);
}

.home-hero .button-quiet {
  border-color: transparent;
  background: transparent;
  color: #fff;
}

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

.button,
button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.16);
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, color 150ms ease, transform 150ms ease;
}

.button:hover,
button:hover {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
  color: #fff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.2);
  transform: translateY(-1px);
}

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

.button-secondary:hover {
  border-color: var(--line-blue);
  background: var(--soft);
  color: var(--primary-deep);
}

.button-quiet {
  border-color: transparent;
  background: transparent;
  color: var(--primary-deep);
  box-shadow: none;
}

.search-form {
  display: grid;
  gap: 10px;
}

.search-form label {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.search-field {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.search-field input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.external-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.answer-box {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.answer-box h2 {
  font-size: 1.4rem;
}

.answer-box p {
  color: var(--ink-soft);
}

.answer-box > .section-label {
  color: var(--primary-deep);
  font-size: 0.77rem;
}

.category-grid,
.card-grid,
.link-grid {
  display: grid;
  gap: 14px;
}

.category-card,
.info-card,
.link-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.info-card {
  height: 100%;
}

.info-card h3 {
  margin-bottom: 8px;
}

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

.category-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  scroll-margin-top: 92px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.category-card:hover,
.category-card:focus-within {
  transform: translateY(-3px);
  border-color: var(--line-blue);
  box-shadow: var(--shadow-hover);
}

.category-icon {
  display: grid;
  width: 60px;
  height: 60px;
  margin-bottom: 14px;
  place-items: center;
  border: 1px solid var(--line-blue);
  border-radius: var(--radius);
  background: var(--soft);
}

.category-icon img {
  display: block;
  width: 32px;
  height: 32px;
}

.category-card--featured {
  border-color: #93c5fd;
  background: var(--surface);
}

.category-card--featured .category-icon {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
}

.category-card--featured .category-icon img {
  filter: brightness(0) invert(1);
}

.category-card h3 {
  margin-bottom: 8px;
}

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

.category-card .check {
  margin-bottom: 14px;
  color: var(--ink-soft);
}

.category-card a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: auto;
  color: var(--primary-deep);
  font-weight: 800;
  text-decoration: none;
}

.category-card a:hover {
  color: var(--primary-dark);
}

.directory-card {
  min-height: 250px;
  padding: 18px 15px;
  text-align: center;
}

.directory-card .category-icon {
  margin-inline: auto;
}

.directory-card h3 {
  font-size: 1.04rem;
}

.directory-card p {
  margin-bottom: 14px;
  font-size: 0.84rem;
  line-height: 1.58;
}

.directory-card a {
  font-size: 0.85rem;
}

.directory-note {
  max-width: 820px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: center;
}

.category-section-intro {
  max-width: 760px;
  margin: 10px 0 18px;
  color: var(--muted);
}

.step-grid {
  display: grid;
  gap: 14px;
  counter-reset: steps;
}

.step {
  position: relative;
  padding: 21px 20px 19px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--primary);
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  counter-increment: steps;
}

.step::before {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 10px;
  background: var(--soft-strong);
  color: var(--primary-deep);
  content: counter(steps);
  font-weight: 900;
}

.step h3 {
  margin-bottom: 8px;
}

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

.tick-list,
.checklist {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.tick-list li,
.checklist li {
  position: relative;
  padding-left: 30px;
}

.tick-list li::before {
  position: absolute;
  top: 2px;
  left: 0;
  width: 21px;
  height: 21px;
  border-radius: 7px;
  background: var(--soft-strong);
  color: var(--primary-deep);
  content: "✓";
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 21px;
  text-align: center;
}

.checklist li::before {
  position: absolute;
  top: 2px;
  left: 0;
  width: 18px;
  height: 18px;
  border: 2px solid #93c5fd;
  border-radius: 5px;
  content: "";
}

.two-col {
  display: grid;
  gap: 20px;
}

.split-panel {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.split-panel.good {
  border-top: 4px solid var(--primary);
}

.split-panel.weak {
  border-top: 4px solid #f59e0b;
}

.search-ideas {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.search-ideas li {
  padding: 7px 11px;
  border: 1px solid var(--line-blue);
  border-radius: var(--radius-pill);
  background: var(--soft);
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.link-card {
  position: relative;
  display: block;
  padding-right: 46px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.link-card::after {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 8px;
  background: var(--soft);
  color: var(--primary-deep);
  content: "→";
  font-weight: 900;
}

.link-card strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
}

.link-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.link-card:hover {
  border-color: var(--line-blue);
  box-shadow: var(--shadow-hover);
  color: var(--ink);
  transform: translateY(-2px);
}

.link-card:focus-visible {
  border-color: var(--line-blue);
  box-shadow: var(--shadow-hover);
}

.cta-band {
  padding: 26px;
  border: 1px solid var(--line-blue);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}

.cta-band h2 {
  max-width: 780px;
  margin-bottom: 11px;
  color: var(--ink);
}

.cta-band p {
  max-width: 780px;
  color: var(--muted);
}

.cta-band .section-label {
  background: var(--soft);
  color: var(--primary-deep);
}

.cta-band .button {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.cta-band .button-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.cta-band .button:hover {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
  color: #fff;
}

.cta-band .button-secondary:hover {
  border-color: var(--line-blue);
  background: var(--soft);
  color: var(--primary-deep);
}

.article-hero {
  padding: 42px 0 32px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  color: var(--muted);
  font-size: 0.85rem;
  list-style: none;
}

.breadcrumb a {
  color: var(--primary-deep);
}

.breadcrumb li + li::before {
  margin-right: 8px;
  color: #94a3b8;
  content: "/";
}

.article-intro {
  max-width: 770px;
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.article-meta a {
  color: var(--primary-deep);
  font-weight: 750;
}

.article-body {
  padding: 34px 0 50px;
  background: #fff;
}

.prose {
  color: var(--ink-soft);
}

.prose > section,
.prose > .answer-box,
.prose > .two-col,
.prose > .cta-band {
  margin-top: 28px;
}

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

.prose h2 {
  margin-bottom: 10px;
}

.prose h3 {
  margin: 20px 0 7px;
}

.prose p,
.prose ul,
.prose ol {
  max-width: 820px;
}

.prose .wide {
  max-width: none;
}

.prose li + li {
  margin-top: 7px;
}

.callout {
  padding: 20px 22px;
  border: 1px solid var(--line-blue);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.warning {
  border-color: #fed7aa;
  border-left-color: #f59e0b;
  background: var(--surface);
}

.score-grid {
  display: grid;
  gap: 10px;
}

.score {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.score strong {
  min-width: 54px;
  color: var(--primary-deep);
}

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

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: var(--surface);
}

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

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

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

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

summary {
  position: relative;
  padding: 16px 50px 16px 18px;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

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

summary::after {
  position: absolute;
  top: 50%;
  right: 18px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  background: var(--soft);
  color: var(--primary-deep);
  content: "+";
  font-size: 1.18rem;
  line-height: 1;
  transform: translateY(-50%);
}

details[open] summary::after {
  content: "−";
}

details[open] {
  border-color: var(--line-blue);
}

summary:hover {
  color: var(--primary-deep);
}

details p {
  max-width: none;
  padding: 0 18px 16px;
  color: var(--ink-soft);
}

.legal-copy h2 {
  margin-top: 24px;
  font-size: 1.45rem;
}

.site-footer {
  padding: 34px 0 20px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
}

.footer-grid {
  display: grid;
  gap: 24px;
}

.footer-brand .wordmark {
  margin-bottom: 11px;
  color: var(--ink);
}

.footer-brand p {
  max-width: 640px;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.footer-links a {
  padding: 2px 0;
  color: var(--primary-deep);
  font-size: 0.87rem;
}

.footer-links a:hover {
  color: var(--primary-dark);
}

.footer-bottom {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

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

#welisen-whatsapp-float:hover,
#welisen-whatsapp-float:focus-visible {
  color: #fff;
  box-shadow: 0 16px 36px rgba(9, 46, 28, 0.38);
  transform: translateY(-2px) scale(1.04);
}

#welisen-whatsapp-float:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

#welisen-whatsapp-float img {
  display: block;
  width: 32px;
  height: 32px;
}

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

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

.category-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.category-jump a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid var(--line-blue);
  border-radius: var(--radius-pill);
  background: var(--soft);
  color: var(--primary-deep);
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}

.category-jump a:hover {
  border-color: var(--primary);
  background: var(--soft-strong);
}

.error-page {
  display: grid;
  min-height: 62vh;
  place-items: center;
  padding: 48px 0;
  text-align: center;
}

.error-code {
  margin: 0;
  color: var(--primary);
  font-size: clamp(5rem, 20vw, 10rem);
  font-weight: 900;
  line-height: 0.8;
}

.error-page h1 {
  margin: 22px auto 14px;
  font-size: var(--page-title-size);
}

.error-page p {
  max-width: 620px;
  margin-inline: auto;
  color: var(--muted);
}

@media (min-width: 640px) {
  .search-field {
    grid-template-columns: 1fr auto;
  }

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

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

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

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

@media (min-width: 900px) {
  .nav-shell {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
  }

  .site-nav {
    gap: 3px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .site-nav a {
    font-size: 0.85rem;
  }

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

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

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

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

  .footer-grid {
    grid-template-columns: 1.25fr 1fr;
    align-items: start;
  }
}

@media (min-width: 1120px) {
  .directory-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
    margin: 10px 0 0;
    padding: 0;
    overflow: visible;
  }

  .site-nav a,
  .footer-links a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }

  .site-nav a {
    padding-inline: 7px;
    font-size: 0.82rem;
  }

  .home-hero {
    min-height: auto;
    padding: 36px 0 30px;
    background-position: 30% center;
  }

  .home-hero h1 {
    font-size: clamp(1.95rem, 9vw, 2.7rem);
  }

  .hero-intro {
    margin-top: 13px;
    font-size: 1rem;
  }

  .trust-note {
    margin-bottom: 16px;
    padding: 9px 12px;
    backdrop-filter: none;
  }

  .hero-search {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 6px;
    border-radius: var(--radius);
  }

  .hero-search-icon {
    margin-left: 8px;
  }

  .hero-search input {
    min-height: 54px;
    padding-right: 6px;
    font-size: 0.92rem;
  }

  .hero-search button {
    grid-column: 1 / -1;
    min-height: 52px;
    border-radius: 9px;
  }

  .hero-suggestions {
    gap: 6px 14px;
  }

  .search-steps {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 16px;
  }

  .search-steps::before {
    display: none;
  }

  .search-step {
    display: grid;
    grid-template-areas:
      "dot title"
      "dot copy";
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 2px 10px;
    align-items: start;
    padding: 11px 13px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-sm);
    background: rgba(30, 58, 138, 0.44);
    text-align: left;
    backdrop-filter: none;
  }

  .search-step-dot {
    grid-area: dot;
    margin: 1px 0 0;
  }

  .search-step h2 {
    grid-area: title;
  }

  .search-step p {
    grid-area: copy;
    max-width: none;
    margin: 0;
  }

  .hero-actions {
    margin-top: 16px;
  }

  .article-hero {
    padding: 32px 0 24px;
  }

  .article-body {
    padding: 30px 0 40px;
  }

  .category-jump a {
    min-height: 44px;
  }

  .category-card {
    scroll-margin-top: 180px;
  }
}

@media (max-width: 1231px) {
  #welisen-whatsapp-float {
    position: static;
    width: max-content;
    min-width: 220px;
    height: 52px;
    gap: 10px;
    margin: 18px auto calc(18px + env(safe-area-inset-bottom));
    padding: 0 18px;
    border-radius: var(--radius-pill);
  }

  #welisen-whatsapp-float .whatsapp-float-label {
    position: static;
    width: auto;
    max-width: none;
    padding: 0;
    background: transparent;
    font-size: 0.88rem;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    transform: none;
  }

  #welisen-whatsapp-float:hover,
  #welisen-whatsapp-float:focus-visible {
    transform: none;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 38px 0;
  }

  .section-tight {
    padding: 26px 0;
  }

  .answer-box,
  .category-card,
  .info-card,
  .split-panel,
  .cta-band {
    padding: 20px;
  }

  .category-card,
  .directory-card {
    min-height: 0;
  }

  .section-heading {
    margin-bottom: 16px;
  }

  .eyebrow,
  .section-label {
    letter-spacing: 0.11em;
  }

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

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

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

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