:root {
  --guide-ink: #102a43;
  --guide-blue: #0868c9;
  --guide-teal: #087f76;
  --guide-mist: #f2f7fa;
  --guide-amber: #a85200;
  --guide-white: #ffffff;
  --guide-line: #cddce7;
  --guide-muted: #526b7f;
  --guide-shadow: 0 18px 48px rgba(16, 42, 67, 0.09);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--guide-ink);
  color: var(--guide-white);
  transform: translateY(-180%);
}

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

.guide-page {
  margin: 0;
  background: var(--guide-mist);
  color: var(--guide-ink);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

.guide-page a:focus-visible,
.guide-page button:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

.guide-main {
  padding-bottom: 72px;
}

.guide-shell {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

.guide-breadcrumb {
  padding-block: 18px;
  color: var(--guide-muted);
  font-size: 0.88rem;
}

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

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

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

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(34px, 6vw, 72px);
  border: 1px solid var(--guide-line);
  border-top: 6px solid var(--guide-blue);
  border-radius: 18px;
  background: var(--guide-white);
  box-shadow: var(--guide-shadow);
}

.guide-kicker,
.guide-label,
.guide-card-label {
  margin: 0 0 12px;
  color: var(--guide-teal);
  font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guide-hero h1,
.guide-index-hero h1 {
  max-width: 18ch;
  margin: 0;
  color: var(--guide-ink);
  font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
  font-size: clamp(2.35rem, 6vw, 4.8rem);
  font-stretch: condensed;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.guide-deck {
  max-width: 68ch;
  margin: 24px 0 0;
  color: #334e68;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 24px 0 0;
  padding: 0;
  color: var(--guide-muted);
  font-size: 0.88rem;
  list-style: none;
}

.guide-hero-aside {
  position: relative;
  min-width: 0;
}

.guide-hero-figure {
  display: grid;
  place-items: center;
  min-height: 240px;
  margin: 0;
  padding: 22px;
  border: 1px solid #d8e6ee;
  border-radius: 14px;
  background: #f8fcfd;
}

.guide-hero-figure img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
}

.guide-answer {
  position: relative;
  z-index: 1;
  margin: -24px 14px 0;
  padding: 20px;
  border-left: 5px solid var(--guide-teal);
  border-radius: 10px;
  background: var(--guide-ink);
  color: var(--guide-white);
  box-shadow: 0 12px 26px rgba(16, 42, 67, 0.2);
}

.guide-answer .guide-card-label {
  color: #78e1d5;
}

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

.guide-flow {
  margin-block: 26px 54px;
  padding: 0;
}

.guide-flow ol {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-flow ol::before {
  content: "";
  position: absolute;
  top: 17px;
  right: 15%;
  left: 15%;
  height: 3px;
  border-radius: 99px;
  background: var(--guide-line);
}

.guide-flow li {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--guide-line);
  border-radius: 12px;
  background: var(--guide-white);
}

.guide-flow-number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 4px solid var(--guide-white);
  border-radius: 50%;
  background: var(--guide-blue);
  color: var(--guide-white);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.82rem;
  font-weight: 700;
}

.guide-flow strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.95rem;
}

.guide-flow span:last-child {
  color: var(--guide-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.guide-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 780px);
  gap: clamp(30px, 6vw, 74px);
  justify-content: center;
  align-items: start;
}

.guide-toc {
  position: sticky;
  top: 22px;
  padding: 20px;
  border: 1px solid var(--guide-line);
  border-radius: 12px;
  background: var(--guide-white);
}

.guide-toc h2 {
  margin: 0 0 12px;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.guide-toc a {
  display: block;
  padding-left: 12px;
  border-left: 2px solid var(--guide-line);
  color: #334e68;
  font-size: 0.9rem;
  line-height: 1.35;
  text-decoration: none;
}

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

.guide-article {
  min-width: 0;
  color: #243b53;
  font-size: 1.02rem;
  line-height: 1.78;
}

.guide-article > section,
.guide-article > aside {
  scroll-margin-top: 24px;
}

.guide-article h2 {
  margin: 64px 0 18px;
  color: var(--guide-ink);
  font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.guide-article h3 {
  margin: 34px 0 10px;
  color: var(--guide-ink);
  font-size: 1.18rem;
  line-height: 1.35;
}

.guide-article p,
.guide-article ul,
.guide-article ol {
  margin-top: 0;
  margin-bottom: 20px;
}

.guide-article a {
  color: #075dab;
  text-underline-offset: 3px;
}

.guide-lead {
  margin: 0 0 30px;
  padding: 24px;
  border-left: 5px solid var(--guide-blue);
  background: var(--guide-white);
  box-shadow: 0 8px 28px rgba(16, 42, 67, 0.06);
  font-size: 1.12rem;
}

.guide-note,
.guide-warning,
.guide-source-note {
  margin: 28px 0;
  padding: 20px 22px;
  border-radius: 10px;
}

.guide-note {
  border: 1px solid #acd9d3;
  background: #eaf8f6;
}

.guide-warning {
  border: 1px solid #edc69f;
  border-left: 5px solid var(--guide-amber);
  background: #fff7ed;
}

.guide-source-note {
  border: 1px solid #b9d3e7;
  background: #eef7ff;
}

.guide-note strong,
.guide-warning strong,
.guide-source-note strong {
  color: var(--guide-ink);
}

.guide-statline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.guide-statline li {
  padding: 8px 11px;
  border: 1px solid var(--guide-line);
  border-radius: 7px;
  background: var(--guide-white);
  color: var(--guide-ink);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.82rem;
}

.guide-table-wrap {
  overflow-x: auto;
  margin: 28px 0;
  border: 1px solid var(--guide-line);
  border-radius: 12px;
  background: var(--guide-white);
}

.guide-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.guide-table th,
.guide-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #dfebf2;
  text-align: left;
  vertical-align: top;
}

.guide-table th {
  background: #eaf2f7;
  color: var(--guide-ink);
  font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

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

.guide-checklist {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.guide-checklist li {
  position: relative;
  padding: 16px 18px 16px 48px;
  border: 1px solid var(--guide-line);
  border-radius: 10px;
  background: var(--guide-white);
}

.guide-checklist li::before {
  content: "✓";
  position: absolute;
  top: 15px;
  left: 17px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--guide-teal);
  color: var(--guide-white);
  font-size: 0.75rem;
  font-weight: 900;
}

.guide-steps {
  display: grid;
  gap: 16px;
  margin: 24px 0;
  padding: 0;
  counter-reset: guide-step;
  list-style: none;
}

.guide-steps li {
  position: relative;
  min-height: 64px;
  padding: 16px 18px 16px 76px;
  border-left: 3px solid var(--guide-blue);
  background: var(--guide-white);
  counter-increment: guide-step;
}

.guide-steps li::before {
  content: counter(guide-step, decimal-leading-zero);
  position: absolute;
  top: 16px;
  left: 18px;
  color: var(--guide-blue);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-weight: 800;
}

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

.guide-product-pair figure {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--guide-line);
  border-radius: 12px;
  background: var(--guide-white);
  text-align: center;
}

.guide-product-pair img {
  width: auto;
  max-width: 100%;
  height: 210px;
  object-fit: contain;
}

.guide-product-pair figcaption {
  margin-top: 12px;
  color: var(--guide-muted);
  font-size: 0.86rem;
}

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

.guide-faq details {
  border: 1px solid var(--guide-line);
  border-radius: 10px;
  background: var(--guide-white);
}

.guide-faq summary {
  cursor: pointer;
  padding: 17px 20px;
  color: var(--guide-ink);
  font-weight: 700;
}

.guide-faq details p {
  margin: 0;
  padding: 0 20px 20px;
}

.guide-sources {
  padding-left: 20px;
  color: var(--guide-muted);
  font-size: 0.91rem;
}

.guide-author {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  margin-top: 44px;
  padding: 20px;
  border-top: 3px solid var(--guide-teal);
  background: var(--guide-white);
}

.guide-author-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--guide-ink);
  color: var(--guide-white);
  font-family: Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 800;
}

.guide-author p {
  margin: 0;
  color: var(--guide-muted);
  font-size: 0.9rem;
}

.guide-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-top: 46px;
  padding: 28px;
  border-radius: 14px;
  background: var(--guide-ink);
  color: var(--guide-white);
}

.guide-cta h2 {
  margin: 0 0 8px;
  color: var(--guide-white);
  font-size: 1.65rem;
}

.guide-cta p {
  margin: 0;
  color: #cbd9e4;
}

.guide-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.guide-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--guide-teal);
  color: var(--guide-white) !important;
  font-weight: 800;
  text-decoration: none;
}

.guide-button-secondary {
  border-color: #708ca1;
  background: transparent;
}

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

.guide-related h2 {
  margin-bottom: 20px;
}

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

.guide-related-card,
.guide-index-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--guide-line);
  border-radius: 12px;
  background: var(--guide-white);
  color: var(--guide-ink);
  text-decoration: none;
}

.guide-related-card:hover,
.guide-index-card:hover {
  border-color: var(--guide-blue);
  box-shadow: 0 10px 26px rgba(16, 42, 67, 0.08);
}

.guide-related-card span,
.guide-index-card .guide-index-tag {
  margin-bottom: 10px;
  color: var(--guide-teal);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-related-card strong,
.guide-index-card h2 {
  margin: 0;
  color: var(--guide-ink);
  font-size: 1.05rem;
  line-height: 1.35;
}

.guide-index-main {
  padding: 34px 0 76px;
}

.guide-index-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 34px;
  padding: clamp(34px, 6vw, 68px);
  border: 1px solid var(--guide-line);
  border-top: 6px solid var(--guide-blue);
  border-radius: 18px;
  background: var(--guide-white);
}

.guide-index-hero h1 {
  max-width: 14ch;
}

.guide-index-hero p {
  margin: 0;
  color: var(--guide-muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

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

.guide-index-card {
  min-height: 210px;
}

.guide-index-card[data-featured="true"] {
  border-top: 5px solid var(--guide-teal);
}

.guide-index-card h2 {
  font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
  font-size: 1.45rem;
}

.guide-index-card p {
  margin: 14px 0 20px;
  color: var(--guide-muted);
  line-height: 1.6;
}

.guide-index-card time {
  margin-top: auto;
  color: #708ca1;
  font-family: Consolas, monospace;
  font-size: 0.78rem;
}

@media (max-width: 900px) {
  .guide-hero,
  .guide-index-hero {
    grid-template-columns: 1fr;
  }

  .guide-hero h1,
  .guide-index-hero h1 {
    max-width: 22ch;
  }

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

  .guide-toc {
    position: static;
  }

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

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

@media (max-width: 680px) {
  .guide-shell {
    width: min(100% - 24px, 1180px);
  }

  .guide-hero {
    padding: 28px 20px;
    border-radius: 12px;
  }

  .guide-hero h1,
  .guide-index-hero h1 {
    font-size: clamp(2.2rem, 12vw, 3.5rem);
  }

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

  .guide-flow ol::before {
    top: 34px;
    right: auto;
    bottom: 34px;
    left: 33px;
    width: 3px;
    height: auto;
  }

  .guide-product-pair,
  .guide-index-grid {
    grid-template-columns: 1fr;
  }

  .guide-article {
    font-size: 1rem;
  }

  .guide-article h2 {
    margin-top: 50px;
  }

  .guide-cta,
  .guide-index-hero {
    padding: 24px 20px;
  }

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

@media (prefers-reduced-motion: reduce) {
  .guide-page *,
  .guide-page *::before,
  .guide-page *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
