:root {
  --bg: #f7f8fb;
  --bg-2: #eef7f5;
  --surface: #ffffff;
  --ink: #121417;
  --muted: #59616b;
  --line: #dce3e8;
  --teal: #087f8c;
  --teal-dark: #075b63;
  --coral: #d94f2b;
  --amber: #f0b429;
  --mint: #dff6ef;
  --charcoal: #20242a;
  --focus: rgba(8, 127, 140, 0.42);
  --shadow: 0 18px 42px rgba(18, 20, 23, 0.11);
  --shadow-soft: 0 10px 26px rgba(18, 20, 23, 0.08);
  --radius: 8px;
  --wrap: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

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

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

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

.skip-link:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  background: var(--surface);
  border: 1px solid var(--line);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 248, 251, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.top-safety {
  background: var(--charcoal);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.top-safety__inner {
  min-height: 34px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.top-safety span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-safety span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--amber);
}

.header-grid {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(210px, auto) 1fr auto;
  gap: 16px;
  align-items: center;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}

.brand-logo {
  max-width: 178px;
  max-height: 58px;
  object-fit: contain;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--teal-dark), var(--coral));
  color: #fff;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: var(--shadow-soft);
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 18px;
}

.brand-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.primary-nav {
  justify-self: center;
  min-width: 0;
  max-width: 100%;
}

.primary-nav ul,
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.primary-nav .menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex-wrap: wrap;
}

.primary-nav a {
  display: block;
  padding: 8px 9px;
  border-radius: var(--radius);
  color: #28313a;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.primary-nav a:hover {
  background: var(--mint);
  color: var(--teal-dark);
}

.header-cta,
.button,
.search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.header-cta,
.button--primary,
.search-form button {
  background: var(--coral);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.button--soft {
  background: #fff;
  color: var(--teal-dark);
  border-color: rgba(8, 127, 140, 0.28);
}

.header-cta:hover,
.button:hover,
.search-form button:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}

.menu-toggle__bar,
.menu-toggle__bar::before,
.menu-toggle__bar::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  content: "";
}

.menu-toggle__bar::before {
  transform: translateY(-6px);
}

.menu-toggle__bar::after {
  transform: translateY(4px);
}

.hero-console {
  padding: 64px 0 38px;
  background:
    linear-gradient(110deg, rgba(8, 127, 140, 0.11), rgba(217, 79, 43, 0.08) 46%, rgba(240, 180, 41, 0.13)),
    var(--bg);
}

.hero-console__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 34px;
  align-items: center;
}

.hero-copy h1,
.page-hero h1,
.archive-hero h1,
.not-found h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.06;
  letter-spacing: 0;
}

.hero-copy p,
.page-hero p,
.archive-hero p,
.not-found p {
  color: var(--muted);
  font-size: 18px;
}

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

.hero-actions,
.page-hero__actions,
.final-cta__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.hero-signals,
.footer-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.hero-signals span,
.footer-badges span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid rgba(8, 127, 140, 0.24);
  border-radius: var(--radius);
  background: #fff;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
}

.hero-panel {
  position: relative;
  min-height: 420px;
  border: 1px solid rgba(8, 127, 140, 0.18);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.hero-panel__card {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(320px, calc(100% - 36px));
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.hero-panel__card strong {
  display: block;
  margin-bottom: 8px;
}

.hero-panel__card ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
}

.risk-rail {
  background: var(--charcoal);
  color: #fff;
}

.risk-rail__grid {
  min-height: 70px;
  display: grid;
  grid-template-columns: auto 1fr 1fr auto;
  gap: 16px;
  align-items: center;
}

.risk-rail strong {
  color: var(--amber);
}

.risk-rail span {
  font-size: 14px;
}

.risk-rail a {
  color: #fff;
  font-weight: 900;
}

.section {
  padding: 70px 0;
}

.section-head {
  margin-bottom: 26px;
}

.section-head h2,
.process-grid h2,
.split-feature h2,
.responsibility h2,
.guide-source h2,
.faq-grid h2,
.final-cta h2,
.module-card h2,
.site-footer h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.16;
  letter-spacing: 0;
}

.section-head--split,
.archive-hero__grid {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
}

.text-link {
  color: var(--teal-dark);
  font-weight: 900;
  text-decoration: none;
  border-bottom: 2px solid rgba(8, 127, 140, 0.22);
}

.route-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 18px;
}

.route-card,
.map-panel,
.module-card,
.post-card,
.empty-panel,
.article-sidebar,
.archive-note,
.recovery-links {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.route-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  text-decoration: none;
}

.route-card span,
.route-card em {
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
}

.route-card strong {
  font-size: 22px;
  line-height: 1.22;
}

.route-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}

.route-card__thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.process-section {
  background: var(--bg-2);
}

.trust-section {
  background: #fff;
}

.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(300px, 1fr);
  gap: 26px;
  align-items: start;
}

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

.trust-list li {
  position: relative;
  padding: 14px 16px 14px 44px;
  border: 1px solid rgba(8, 127, 140, 0.18);
  border-radius: var(--radius);
  background: var(--bg-2);
  color: var(--ink);
}

.trust-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 19px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--teal);
}

.process-grid,
.split-feature__grid,
.responsibility__grid,
.guide-source__grid,
.faq-grid,
.page-hero__grid,
.page-modules__grid,
.not-found__grid,
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  gap: 28px;
  align-items: start;
}

.process-list {
  counter-reset: step;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  position: relative;
  padding: 18px 18px 18px 70px;
  border: 1px solid rgba(8, 127, 140, 0.18);
  border-radius: var(--radius);
  background: #fff;
}

.process-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: var(--teal);
  color: #fff;
  font-weight: 900;
}

.process-list strong,
.process-list span {
  display: block;
}

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

.split-feature__media,
.responsibility__media,
.page-hero__media {
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.module-image,
.page-hero__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.mini-table {
  display: grid;
  gap: 8px;
  margin: 20px 0;
}

.mini-table div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.mini-table strong {
  color: var(--teal-dark);
}

.mini-table span {
  color: var(--muted);
}

.product-map {
  background: #fff;
}

.map-layout {
  display: grid;
  grid-template-columns: 1.18fr 0.91fr 0.91fr;
  gap: 18px;
}

.map-panel {
  display: flex;
  min-height: 420px;
  flex-direction: column;
  padding: 16px;
}

.map-panel--bonus {
  background: #fff8ee;
  border-color: rgba(240, 180, 41, 0.42);
}

.map-panel__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 14px;
}

.map-panel h3,
.post-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.2;
}

.map-panel p,
.post-card p,
.module-card p,
.guide-source p,
.responsibility p,
.split-feature p,
.site-footer p {
  color: var(--muted);
}

.map-panel a {
  margin-top: auto;
  color: var(--teal-dark);
  font-weight: 900;
  text-decoration: none;
}

.responsibility {
  background: linear-gradient(180deg, var(--charcoal), #30343a);
  color: #fff;
}

.responsibility .eyebrow,
.responsibility p {
  color: #d7f5ef;
}

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

.check-list li {
  position: relative;
  padding-left: 26px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--amber);
}

.guide-source {
  background: var(--bg-2);
}

.guide-source__grid {
  grid-template-columns: 310px minmax(0, 1fr);
}

.guide-source__aside {
  position: sticky;
  top: 130px;
  align-self: start;
  padding: 18px;
  border: 1px solid rgba(8, 127, 140, 0.18);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.aside-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  margin-top: 16px;
}

.guide-source__content,
.page-article-content {
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.wp-content h2,
.wp-content h3 {
  line-height: 1.2;
  letter-spacing: 0;
}

.wp-content h2 {
  margin-top: 0;
  font-size: 30px;
}

.wp-content h3 {
  font-size: 22px;
}

.wp-content a {
  color: var(--teal-dark);
  font-weight: 800;
}

.wp-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.wp-content th,
.wp-content td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.wp-content th {
  background: var(--bg-2);
}

.latest-guides {
  background: #fff;
}

.search-form {
  display: flex;
  gap: 8px;
  align-items: center;
  max-width: 100%;
}

.search-field {
  width: min(280px, 100%);
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}

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

.post-card {
  overflow: hidden;
}

.post-card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.post-card__body {
  padding: 18px;
}

.post-card h3 a {
  text-decoration: none;
}

.faq-section {
  background: var(--bg);
}

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

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.faq-list summary {
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 900;
}

.faq-list p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
}

.final-cta {
  padding: 44px 0;
  background: var(--teal-dark);
  color: #fff;
}

.final-cta__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.final-cta .button--soft {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.page-hero,
.archive-hero,
.not-found {
  padding: 48px 0;
  background:
    linear-gradient(110deg, rgba(223, 246, 239, 0.82), rgba(255, 255, 255, 0.74)),
    var(--bg);
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.breadcrumb a {
  color: var(--teal-dark);
  text-decoration: none;
}

.page-modules {
  padding-bottom: 0;
}

.module-card {
  padding: 22px;
}

.module-card--risk {
  border-color: rgba(217, 79, 43, 0.28);
  background: #fff7f4;
}

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

.article-sidebar {
  position: sticky;
  top: 130px;
  padding: 18px;
}

.archive-links,
.recovery-links {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.archive-links a,
.recovery-links a {
  color: var(--teal-dark);
  font-weight: 900;
  text-decoration: none;
}

.archive-note {
  padding: 18px;
}

.archive-note strong,
.archive-note span {
  display: block;
}

.empty-panel {
  padding: 28px;
}

.not-found {
  min-height: 62vh;
  display: grid;
  align-items: center;
}

.site-footer {
  padding: 56px 0 24px;
  background: #15181d;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.1fr) 0.8fr 1fr 1fr;
  gap: 28px;
}

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

.site-footer .brand-copy small,
.site-footer p,
.site-footer li {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer h2 {
  margin-bottom: 12px;
  font-size: 18px;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.footer-menu,
.footer-contact ul {
  display: grid;
  gap: 8px;
}

.footer-badges span {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius);
  background: var(--teal);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

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

@media (max-width: 1080px) {
  .header-grid {
    grid-template-columns: minmax(180px, auto) auto auto;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    justify-self: end;
  }

  .primary-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    display: none;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }

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

  .primary-nav .menu {
    display: grid;
    justify-content: stretch;
  }

  .primary-nav a {
    padding: 12px;
  }

  .hero-console__grid,
  .trust-grid,
  .process-grid,
  .split-feature__grid,
  .responsibility__grid,
  .page-hero__grid,
  .page-modules__grid,
  .article-layout,
  .not-found__grid {
    grid-template-columns: 1fr;
  }

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

  .guide-source__grid {
    grid-template-columns: 1fr;
  }

  .guide-source__aside,
  .article-sidebar {
    position: static;
  }

  .risk-rail__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(100% - 24px, var(--wrap));
  }

  .top-safety__inner {
    justify-content: flex-start;
    padding: 7px 0;
  }

  .header-grid {
    min-height: 68px;
    grid-template-columns: 1fr auto;
  }

  .header-cta {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 40px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .brand-copy strong {
    font-size: 16px;
  }

  .hero-console {
    padding-top: 38px;
  }

  .hero-copy h1,
  .page-hero h1,
  .archive-hero h1,
  .not-found h1 {
    font-size: 34px;
  }

  .hero-copy p,
  .page-hero p,
  .archive-hero p,
  .not-found p {
    font-size: 16px;
  }

  .hero-panel,
  .hero-image {
    min-height: 0;
    height: auto;
  }

  .hero-image {
    aspect-ratio: 4 / 3;
  }

  .hero-panel__card {
    position: static;
    width: auto;
    margin: 12px;
  }

  .section {
    padding: 48px 0;
  }

  .section-head--split,
  .archive-hero__grid,
  .final-cta__grid {
    display: grid;
    align-items: start;
  }

  .route-grid,
  .map-layout,
  .post-grid,
  .footer-grid,
  .risk-rail__grid,
  .trust-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .route-card,
  .map-panel {
    min-height: 0;
  }

  .mini-table div {
    grid-template-columns: 1fr;
  }

  .guide-source__content,
  .page-article-content {
    padding: 20px;
  }

  .search-form {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .search-field {
    width: 100%;
  }

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

  .back-to-top {
    right: 12px;
    bottom: 12px;
  }
}
