:root {
  color-scheme: light;
  --guide-ink: #172033;
  --guide-muted: #58657a;
  --guide-blue: #075baa;
  --guide-blue-dark: #064780;
  --guide-blue-soft: #eaf4ff;
  --guide-teal: #08796d;
  --guide-amber: #9a5b05;
  --guide-red: #a43b30;
  --guide-line: #dbe4ef;
  --guide-surface: #ffffff;
  --guide-soft: #f4f7fb;
  --guide-shadow: 0 18px 48px rgba(20, 40, 74, 0.09);
  --guide-content: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--guide-ink);
  background: #f7f9fc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: var(--guide-blue-dark);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--guide-blue);
}

img {
  max-width: 100%;
}

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

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

.guide-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(219, 228, 239, 0.94);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 28px rgba(20, 40, 74, 0.05);
  backdrop-filter: blur(16px);
}

.guide-header-inner {
  width: min(var(--guide-content), calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.guide-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--guide-ink);
  font-weight: 850;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.guide-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.guide-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.94rem;
  font-weight: 750;
}

.guide-nav a {
  color: #33425b;
  text-decoration: none;
}

.guide-nav a[aria-current="page"] {
  color: var(--guide-blue);
}

.guide-nav .guide-nav-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 17px;
  border-radius: 8px;
  color: #fff;
  background: var(--guide-blue);
  box-shadow: 0 10px 24px rgba(7, 91, 170, 0.18);
}

.guide-nav .guide-nav-cta:hover {
  color: #fff;
  background: var(--guide-blue-dark);
}

.guide-main {
  min-height: calc(100vh - 230px);
}

.guide-breadcrumbs {
  width: min(var(--guide-content), calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 0;
  color: var(--guide-muted);
  font-size: 0.88rem;
}

.guide-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-breadcrumbs li:not(:last-child)::after {
  margin-left: 8px;
  color: #8b98aa;
  content: "/";
}

.guide-hero,
.guide-hub-hero {
  width: min(var(--guide-content), calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 42px;
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 48px;
  align-items: end;
}

.guide-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 0 16px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--guide-blue-dark);
  background: var(--guide-blue-soft);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-hero h1,
.guide-hub-hero h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(2.35rem, 5.8vw, 4.85rem);
  line-height: 0.99;
  letter-spacing: -0.055em;
}

.guide-hero-lede,
.guide-hub-hero > p {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--guide-muted);
  font-size: clamp(1.03rem, 2vw, 1.24rem);
  line-height: 1.55;
}

.guide-hero-meta {
  padding: 20px;
  border: 1px solid var(--guide-line);
  border-radius: 14px;
  background: var(--guide-surface);
  box-shadow: var(--guide-shadow);
}

.guide-hero-meta dl {
  margin: 0;
}

.guide-hero-meta div {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #e8edf4;
}

.guide-hero-meta div:last-child {
  border-bottom: 0;
}

.guide-hero-meta dt {
  color: var(--guide-muted);
  font-size: 0.83rem;
  font-weight: 700;
}

.guide-hero-meta dd {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 780;
}

.guide-layout {
  width: min(var(--guide-content), calc(100% - 40px));
  margin: 0 auto 72px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.guide-toc {
  position: sticky;
  top: 100px;
  padding: 18px;
  border: 1px solid var(--guide-line);
  border-radius: 12px;
  background: var(--guide-surface);
}

.guide-toc strong {
  display: block;
  margin-bottom: 10px;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.guide-toc ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: guide-toc;
}

.guide-toc li {
  counter-increment: guide-toc;
}

.guide-toc a {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 7px;
  color: #435168;
  font-size: 0.86rem;
  line-height: 1.35;
  text-decoration: none;
}

.guide-toc a::before {
  color: #8794a6;
  content: counter(guide-toc, decimal-leading-zero);
  font-size: 0.72rem;
  font-weight: 800;
}

.guide-article {
  min-width: 0;
  padding: clamp(26px, 5vw, 58px);
  border: 1px solid var(--guide-line);
  border-radius: 16px;
  background: var(--guide-surface);
  box-shadow: var(--guide-shadow);
}

.guide-article > section {
  scroll-margin-top: 104px;
}

.guide-article > section + section {
  margin-top: 54px;
  padding-top: 46px;
  border-top: 1px solid var(--guide-line);
}

.guide-article h2 {
  margin: 0 0 16px;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  line-height: 1.14;
  letter-spacing: -0.035em;
}

.guide-article h3 {
  margin: 30px 0 10px;
  font-size: 1.14rem;
  line-height: 1.3;
}

.guide-article p {
  margin: 0 0 17px;
}

.guide-article ul,
.guide-article ol {
  margin: 15px 0 20px;
  padding-left: 1.35rem;
}

.guide-article li + li {
  margin-top: 9px;
}

.guide-article strong {
  color: #111b2c;
}

.guide-callout {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--guide-blue);
  border-radius: 0 10px 10px 0;
  background: var(--guide-blue-soft);
}

.guide-callout.warning {
  border-left-color: var(--guide-amber);
  background: #fff7e7;
}

.guide-callout.success {
  border-left-color: var(--guide-teal);
  background: #eaf8f4;
}

.guide-callout.danger {
  border-left-color: var(--guide-red);
  background: #fff0ee;
}

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

.guide-steps {
  padding: 0 !important;
  list-style: none;
  counter-reset: guide-step;
}

.guide-steps > li {
  position: relative;
  min-height: 54px;
  padding-left: 70px;
  counter-increment: guide-step;
}

.guide-steps > li + li {
  margin-top: 24px;
}

.guide-steps > li::before {
  position: absolute;
  top: -2px;
  left: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--guide-blue);
  box-shadow: 0 8px 18px rgba(7, 91, 170, 0.2);
  content: counter(guide-step);
  font-weight: 850;
}

.guide-steps strong:first-child {
  display: block;
  margin-bottom: 3px;
}

.guide-comparison {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  font-size: 0.91rem;
}

.guide-comparison th,
.guide-comparison td {
  padding: 13px 14px;
  border: 1px solid var(--guide-line);
  text-align: left;
  vertical-align: top;
}

.guide-comparison th {
  background: var(--guide-soft);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.guide-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px;
  padding: 0 !important;
  list-style: none;
}

.guide-chip-list li {
  margin: 0 !important;
  padding: 7px 11px;
  border: 1px solid var(--guide-line);
  border-radius: 999px;
  color: #435168;
  background: var(--guide-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.guide-cta {
  margin-top: 44px;
  padding: 26px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #064780, #08796d);
}

.guide-cta h2,
.guide-cta h3,
.guide-cta strong {
  color: #fff;
}

.guide-cta h2,
.guide-cta h3 {
  margin-top: 0;
}

.guide-cta p {
  color: #e6f1fb;
}

.guide-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  color: var(--guide-blue-dark);
  background: #fff;
  font-weight: 850;
  text-decoration: none;
}

.guide-button:hover {
  color: var(--guide-blue);
}

.guide-related {
  margin-top: 34px;
}

.guide-related h2 {
  font-size: 1.25rem;
}

.guide-related-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.guide-related-links a {
  padding: 14px 16px;
  border: 1px solid var(--guide-line);
  border-radius: 10px;
  color: #26354d;
  background: var(--guide-soft);
  font-weight: 750;
  text-decoration: none;
}

.guide-hub-hero {
  padding-bottom: 30px;
}

.guide-hub-hero h1 {
  max-width: 950px;
}

.guide-hub {
  width: min(var(--guide-content), calc(100% - 40px));
  margin: 0 auto 76px;
}

.guide-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 26px;
  margin: 12px 0 42px;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #064780 0%, #075baa 54%, #08796d 100%);
  box-shadow: 0 24px 54px rgba(7, 71, 128, 0.2);
}

.guide-featured h2 {
  margin: 5px 0 14px;
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.guide-featured p {
  margin: 0;
  color: #e9f4ff;
}

.guide-featured-label {
  color: #bfe2ff;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guide-featured-actions {
  align-self: end;
}

.guide-featured-actions p {
  margin-bottom: 18px;
  font-size: 0.91rem;
}

.guide-section-heading {
  margin: 0 0 22px;
}

.guide-section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  letter-spacing: -0.035em;
}

.guide-section-heading p {
  margin: 0;
  color: var(--guide-muted);
}

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

.guide-card {
  min-height: 238px;
  display: flex;
  flex-direction: column;
  padding: 25px;
  border: 1px solid var(--guide-line);
  border-radius: 14px;
  background: var(--guide-surface);
  box-shadow: 0 12px 30px rgba(20, 40, 74, 0.05);
}

.guide-card-category {
  color: var(--guide-blue);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-card h3 {
  margin: 10px 0 11px;
  font-size: 1.32rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.guide-card p {
  margin: 0;
  color: var(--guide-muted);
}

.guide-card a {
  margin-top: auto;
  padding-top: 20px;
  font-weight: 850;
  text-decoration: none;
}

.guide-card a::after {
  margin-left: 7px;
  content: "→";
}

.guide-path-note {
  margin-top: 40px;
  padding: 24px;
  border: 1px solid var(--guide-line);
  border-radius: 14px;
  background: var(--guide-soft);
}

.guide-path-note h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.guide-path-note p {
  margin: 0;
  color: var(--guide-muted);
}

.guide-footer {
  border-top: 1px solid var(--guide-line);
  background: #eef3f8;
}

.guide-footer-inner {
  width: min(var(--guide-content), calc(100% - 40px));
  min-height: 126px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: var(--guide-muted);
  font-size: 0.88rem;
}

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

.guide-footer a {
  color: #34445d;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 900px) {
  .guide-header-inner {
    min-height: 68px;
  }

  .guide-nav a:not(.guide-nav-cta):not([aria-current="page"]) {
    display: none;
  }

  .guide-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .guide-hero-meta {
    max-width: 520px;
  }

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

  .guide-toc {
    position: static;
  }

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

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

@media (max-width: 640px) {
  .guide-header-inner,
  .guide-breadcrumbs,
  .guide-hero,
  .guide-hub-hero,
  .guide-layout,
  .guide-hub,
  .guide-footer-inner {
    width: min(100% - 26px, var(--guide-content));
  }

  .guide-brand span {
    display: none;
  }

  .guide-nav {
    gap: 12px;
  }

  .guide-nav .guide-nav-cta {
    min-height: 39px;
    padding: 0 12px;
    font-size: 0.84rem;
  }

  .guide-hero,
  .guide-hub-hero {
    padding-top: 38px;
  }

  .guide-hero h1,
  .guide-hub-hero h1 {
    font-size: clamp(2.3rem, 12vw, 3.55rem);
  }

  .guide-toc ol,
  .guide-card-grid,
  .guide-related-links {
    grid-template-columns: 1fr;
  }

  .guide-article {
    padding: 24px 19px;
    border-radius: 12px;
  }

  .guide-steps > li {
    padding-left: 55px;
  }

  .guide-steps > li::before {
    width: 36px;
    height: 36px;
  }

  .guide-comparison {
    display: block;
    overflow-x: auto;
  }

  .guide-footer-inner {
    padding: 28px 0;
    align-items: flex-start;
    flex-direction: column;
  }
}

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