.guide-page {
  --guide-ink: #0d1726;
  --guide-muted: #5a687b;
  --guide-line: #dfe7ef;
  --guide-soft: #f5f8fb;
  --guide-green: #16b95f;
  --guide-green-dark: #08783d;
  --guide-navy: #0d1b2a;
}

.guide-page .skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 10px;
  background: #ffffff;
  color: var(--guide-ink);
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2);
}

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

.guide-page .toplinks [aria-current="page"] {
  color: var(--guide-green-dark);
}

.guide-page main.guide-shell {
  width: min(1160px, calc(100% - 32px));
  max-width: 1160px !important;
  margin: 42px auto 72px !important;
  padding: 0 !important;
  border: 0;
  border-radius: 28px;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.guide-page .guide-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(34px, 6vw, 74px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 15%, rgba(22, 185, 95, 0.34), transparent 28%),
    radial-gradient(circle at 8% 100%, rgba(39, 109, 245, 0.18), transparent 32%),
    var(--guide-navy);
  color: #ffffff;
  box-shadow: 0 28px 75px rgba(13, 27, 42, 0.22);
}

.guide-page .guide-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -95px;
  z-index: -1;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 30px rgba(255, 255, 255, 0.025),
    0 0 0 65px rgba(255, 255, 255, 0.018);
}

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

.guide-page .breadcrumbs li {
  color: rgba(255, 255, 255, 0.67);
  font-size: 0.82rem;
  line-height: 1.4;
}

.guide-page .breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.36);
}

.guide-page .breadcrumbs a {
  color: #ffffff !important;
  text-decoration: none;
}

.guide-page .guide-kicker,
.guide-page .section-label {
  margin: 0 0 10px;
  color: var(--guide-green-dark);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.guide-page .guide-kicker {
  color: #6ee7a0;
}

.guide-page .guide-hero h1 {
  max-width: 850px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.55rem, 6.8vw, 5.8rem);
  font-weight: 780;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
}

.guide-page .guide-lede {
  max-width: 760px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.65;
}

.guide-page .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 30px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.84rem;
  line-height: 1.5;
}

.guide-page .article-meta a {
  color: #ffffff !important;
  font-weight: 700;
}

.guide-page .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.guide-page .guide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 0.92rem;
  font-weight: 780;
  line-height: 1;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.guide-page .guide-button:hover {
  transform: translateY(-1px);
}

.guide-page .guide-button:focus-visible,
.guide-page .guide-toc a:focus-visible,
.guide-page .faq-list summary:focus-visible,
.guide-page a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.32);
  outline-offset: 3px;
}

.guide-page .guide-button-primary {
  background: var(--guide-green);
  color: #07180f !important;
  box-shadow: 0 12px 28px rgba(22, 185, 95, 0.22);
}

.guide-page .guide-button-primary:hover {
  background: #32d779;
}

.guide-page .guide-button-secondary {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff !important;
}

.guide-page .guide-button-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.guide-page .responsible-use {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  margin: 20px 0 0;
  padding: 18px 22px;
  border: 1px solid #f2d391;
  border-radius: 18px;
  background: #fff9e9;
  color: #5e491b;
  font-size: 0.94rem;
  line-height: 1.65;
  box-shadow: 0 10px 26px rgba(101, 76, 22, 0.06);
}

.guide-page .responsible-use strong {
  color: #3e2e0d;
}

.guide-page .guide-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: start;
  margin-top: 56px;
}

.guide-page .guide-toc {
  position: sticky;
  top: 106px;
  padding: 18px;
  border: 1px solid var(--guide-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(12px);
}

.guide-page .guide-toc > p {
  margin: 0 0 12px;
  color: var(--guide-ink);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.guide-page .guide-toc li {
  margin: 0;
  line-height: 1.35;
}

.guide-page .guide-toc a {
  display: block;
  padding: 7px 8px;
  border-radius: 9px;
  color: var(--guide-muted) !important;
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}

.guide-page .guide-toc a:hover {
  background: #eef8f2;
  color: var(--guide-green-dark) !important;
}

.guide-page .guide-body {
  min-width: 0;
}

.guide-page .guide-body > section {
  scroll-margin-top: 112px;
  margin: 0 0 82px;
}

.guide-page .guide-body > section + section {
  padding-top: 12px;
}

.guide-page .guide-body h2 {
  max-width: 760px;
  margin: 0 0 20px;
  color: var(--guide-ink);
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  font-weight: 780;
  letter-spacing: -0.04em;
  line-height: 1.08;
  text-wrap: balance;
}

.guide-page .guide-body h3 {
  margin: 28px 0 10px;
  color: var(--guide-ink);
  font-size: 1.2rem;
  font-weight: 780;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.guide-page .guide-body h4 {
  margin: 0 0 8px;
  color: var(--guide-ink);
  font-size: 1rem;
  font-weight: 780;
}

.guide-page .guide-body p,
.guide-page .guide-body li {
  color: #253449;
  font-size: 1.02rem;
  line-height: 1.78;
}

.guide-page .guide-body p {
  margin: 0 0 18px;
}

.guide-page .guide-body a:not(.guide-button) {
  color: #075ebc !important;
  text-decoration-color: rgba(7, 94, 188, 0.32);
  text-underline-offset: 3px;
}

.guide-page .guide-body code {
  border: 1px solid #dce6f0;
  border-radius: 7px;
  background: #f3f7fb;
  color: #b4235a;
  padding: 0.1rem 0.34rem;
  font-size: 0.92em;
}

.guide-page .key-point {
  margin: 28px 0 0;
  padding: 22px 24px;
  border-left: 4px solid var(--guide-green);
  border-radius: 4px 16px 16px 4px;
  background: #f0faf4;
}

.guide-page .key-point-label {
  display: block;
  margin-bottom: 7px;
  color: var(--guide-green-dark);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guide-page .key-point p {
  margin: 0;
  color: #183d2a;
}

.guide-page .use-case-grid,
.guide-page .limit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.guide-page .use-case-grid article,
.guide-page .limit-grid article {
  padding: 22px;
  border: 1px solid var(--guide-line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.045);
}

.guide-page .use-case-grid article > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 28px;
  border-radius: 9px;
  background: #eaf8ef;
  color: var(--guide-green-dark);
  font-size: 0.72rem;
  font-weight: 850;
}

.guide-page .use-case-grid h3,
.guide-page .limit-grid h3 {
  margin-top: 16px;
  font-size: 1.02rem;
}

.guide-page .use-case-grid p,
.guide-page .limit-grid p {
  margin: 0;
  color: var(--guide-muted);
  font-size: 0.91rem;
  line-height: 1.65;
}

.guide-page .method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 38px;
}

.guide-page .method-card {
  padding: 24px;
  border: 1px solid var(--guide-line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.guide-page .method-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.guide-page .method-heading h3 {
  margin: 0;
}

.guide-page .method-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(22, 185, 95, 0.1);
}

.guide-page .method-dot-passive {
  background: var(--guide-green);
}

.guide-page .method-dot-active {
  background: #f59e0b;
  box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.12);
}

.guide-page .method-card > p {
  margin-top: 16px;
  color: var(--guide-muted);
  font-size: 0.93rem;
  line-height: 1.65;
}

.guide-page .method-card ul {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding-left: 20px;
}

.guide-page .method-card li {
  color: #344256;
  font-size: 0.9rem;
  line-height: 1.5;
}

.guide-page .method-card .method-tradeoff {
  margin-bottom: 0;
  padding-top: 15px;
  border-top: 1px solid var(--guide-line);
  color: #344256;
  font-size: 0.86rem;
}

.guide-page .signal-list {
  display: grid;
  gap: 0;
  margin-top: 18px;
  border-top: 1px solid var(--guide-line);
}

.guide-page .signal-list article {
  display: grid;
  grid-template-columns: minmax(150px, 0.38fr) minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--guide-line);
}

.guide-page .signal-list p {
  margin: 0;
  color: var(--guide-muted);
  font-size: 0.93rem;
  line-height: 1.7;
}

.guide-page .workflow-steps {
  display: grid;
  gap: 0;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.guide-page .workflow-steps > li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--guide-line);
}

.guide-page .workflow-steps > li:first-child {
  border-top: 1px solid var(--guide-line);
}

.guide-page .workflow-steps > li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--guide-navy);
  color: #ffffff;
  font-size: 0.83rem;
  font-weight: 850;
}

.guide-page .workflow-steps h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.guide-page .workflow-steps p {
  margin: 0;
  color: var(--guide-muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

.guide-page .inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 30px;
  padding: 24px;
  border: 1px solid #cdebd9;
  border-radius: 20px;
  background: #effaf3;
}

.guide-page .inline-cta h3 {
  margin: 0;
  font-size: 1.2rem;
}

.guide-page .inline-cta .section-label {
  margin-bottom: 6px;
}

.guide-page .guide-table-wrap {
  width: 100%;
  margin-top: 28px;
  overflow-x: auto;
  border: 1px solid var(--guide-line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.guide-page .guide-table-wrap:focus {
  outline: 3px solid rgba(37, 99, 235, 0.2);
  outline-offset: 3px;
}

.guide-page .guide-table {
  width: 100%;
  min-width: 690px;
  margin: 0;
  border-collapse: collapse;
  color: var(--guide-ink);
  font-size: 0.9rem;
}

.guide-page .guide-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.guide-page .guide-table th,
.guide-page .guide-table td {
  padding: 16px 17px;
  border-bottom: 1px solid var(--guide-line);
  vertical-align: top;
  text-align: left;
  line-height: 1.55;
}

.guide-page .guide-table thead th {
  background: #f3f7fa;
  color: #3d4b5e;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.guide-page .guide-table tbody th {
  width: 18%;
  color: var(--guide-ink);
  font-weight: 780;
}

.guide-page .guide-table tbody td {
  color: #47566a;
}

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

.guide-page .example-row {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--guide-line);
  border-radius: 18px;
  background: var(--guide-soft);
}

.guide-page .example-code {
  display: grid;
  grid-template-columns: 1.25fr 1.25fr 0.65fr 1fr;
  gap: 1px;
  overflow: hidden;
  margin: 14px 0 18px;
  border: 1px solid #d3deea;
  border-radius: 12px;
  background: #d3deea;
}

.guide-page .example-code span {
  min-width: 0;
  padding: 11px 12px;
  overflow-wrap: anywhere;
  background: #ffffff;
  color: #223247;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem;
  line-height: 1.35;
}

.guide-page .example-row > p:last-child {
  margin-bottom: 0;
  color: var(--guide-muted);
  font-size: 0.92rem;
}

.guide-page .comparison-table tbody th {
  width: 25%;
}

.guide-page .faq-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.guide-page .faq-list details {
  overflow: hidden;
  border: 1px solid var(--guide-line);
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.035);
}

.guide-page .faq-list summary {
  position: relative;
  padding: 18px 52px 18px 20px;
  color: var(--guide-ink);
  font-size: 0.98rem;
  font-weight: 760;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}

.guide-page .faq-list summary::-webkit-details-marker {
  display: none;
}

.guide-page .faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 19px;
  transform: translateY(-50%);
  color: var(--guide-green-dark);
  font-size: 1.35rem;
  font-weight: 500;
}

.guide-page .faq-list details[open] summary::after {
  content: "−";
}

.guide-page .faq-list details[open] summary {
  border-bottom: 1px solid var(--guide-line);
}

.guide-page .faq-list p {
  margin: 0;
  padding: 17px 20px 20px;
  color: var(--guide-muted);
  font-size: 0.93rem;
  line-height: 1.7;
}

.guide-page .sources ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.guide-page .sources li {
  margin: 0;
}

.guide-page .sources a {
  display: block;
  padding: 15px 17px;
  border: 1px solid var(--guide-line);
  border-radius: 12px;
  background: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.guide-page .sources a:hover {
  border-color: #b7ddc6;
  background: #f5fbf7;
}

.guide-page .article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 10px;
  padding: clamp(26px, 5vw, 42px);
  border-radius: 24px;
  background: var(--guide-navy);
  color: #ffffff;
  box-shadow: 0 22px 56px rgba(13, 27, 42, 0.18);
}

.guide-page .article-footer h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: clamp(1.65rem, 4vw, 2.5rem);
}

.guide-page .article-footer p {
  max-width: 580px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.94rem;
  line-height: 1.6;
}

.guide-page .article-footer .section-label {
  margin-bottom: 8px;
  color: #6ee7a0;
}

.guide-page .guide-site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  color: var(--guide-muted);
  font-size: 0.86rem;
}

.guide-page .guide-site-footer > span {
  color: var(--guide-ink);
  font-weight: 780;
}

.guide-page .guide-site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.guide-page .guide-site-footer a {
  color: var(--guide-muted);
  font-weight: 650;
  text-decoration: none;
}

.guide-page .guide-site-footer a:hover {
  color: var(--guide-ink);
}

@media (max-width: 900px) {
  .guide-page .guide-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .guide-page .guide-toc {
    position: static;
  }

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

@media (max-width: 700px) {
  .guide-page main.guide-shell {
    width: calc(100% - 20px);
    margin-top: 26px !important;
  }

  .guide-page .guide-hero {
    padding: 30px 22px;
    border-radius: 22px;
  }

  .guide-page .guide-hero h1 {
    font-size: clamp(2.25rem, 12.5vw, 3.8rem);
  }

  .guide-page .breadcrumbs ol {
    margin-bottom: 25px;
  }

  .guide-page .article-meta {
    display: grid;
    gap: 4px;
  }

  .guide-page .hero-actions,
  .guide-page .hero-actions .guide-button {
    width: 100%;
  }

  .guide-page .responsible-use {
    grid-template-columns: 1fr;
    padding: 17px 18px;
  }

  .guide-page .guide-layout {
    margin-top: 36px;
  }

  .guide-page .guide-toc {
    padding: 15px;
  }

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

  .guide-page .guide-body > section {
    margin-bottom: 64px;
    scroll-margin-top: 20px;
  }

  .guide-page .use-case-grid,
  .guide-page .limit-grid,
  .guide-page .method-grid {
    grid-template-columns: 1fr;
  }

  .guide-page .signal-list article {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .guide-page .inline-cta,
  .guide-page .article-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .guide-page .inline-cta .guide-button,
  .guide-page .article-footer .guide-button {
    width: 100%;
  }

  .guide-page .example-code {
    grid-template-columns: 1fr;
  }

  .guide-page .guide-site-footer {
    align-items: flex-start;
    flex-direction: column;
    width: calc(100% - 24px);
  }
}

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