body.public-guide-page {
  min-height: 100%;
  height: auto;
  overflow: auto;
  background: var(--bg);
}

.public-guide-page .primary-btn,
.public-guide-page .secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.guide-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px max(20px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.05);
}

.guide-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.guide-brand span:last-child,
.guide-brand strong,
.guide-brand small {
  display: block;
}

.guide-brand small {
  margin-top: 2px;
  color: var(--muted);
}

.guide-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.guide-nav > a:not(.primary-btn) {
  color: var(--accent);
  font-weight: 750;
  text-decoration: none;
}

.guide-main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr);
  align-items: center;
  gap: 28px;
  padding: clamp(26px, 5vw, 52px);
  border: 1px solid #173746;
  border-radius: 12px;
  color: #f8fbff;
  background: linear-gradient(135deg, #101f2b 0%, #153b48 68%, #0d6b75 100%);
  box-shadow: var(--shadow);
}

.guide-hero .eyebrow {
  color: #d7fc70;
}

.guide-hero h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1.08;
}

.guide-hero p:not(.eyebrow) {
  color: #dce9ee;
  font-size: 17px;
  line-height: 1.6;
}

.guide-hero-actions {
  display: grid;
  gap: 9px;
}

.guide-hero-actions .primary-btn {
  min-height: 48px;
  color: #10242e;
  border-color: #d7fc70;
  background: #d7fc70;
}

.guide-hero-actions span {
  color: #c9dbe3;
  font-size: 13px;
  line-height: 1.45;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 24px;
  align-items: start;
  margin-top: 22px;
}

.guide-content {
  min-width: 0;
}

.guide-section,
.guide-terms,
.guide-questions,
.guide-related,
.guide-sidebar-card {
  margin-bottom: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.guide-section h2,
.guide-terms h2,
.guide-questions h2,
.guide-related h2 {
  margin: 0 0 12px;
}

.guide-section p,
.guide-section li,
.guide-term dd,
.guide-question p,
.guide-sidebar-card p {
  line-height: 1.6;
}

.guide-section ul {
  display: grid;
  gap: 7px;
  margin-bottom: 0;
}

.guide-sidebar {
  position: sticky;
  top: 86px;
}

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

.guide-domain-links {
  display: grid;
  gap: 8px;
}

.guide-domain-links a {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #294256;
  background: #fbfcfe;
  text-decoration: none;
}

.guide-domain-links a:hover,
.guide-domain-links a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

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

.guide-term {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.guide-term dt {
  color: var(--accent);
  font-weight: 850;
}

.guide-term dd {
  margin: 6px 0 0;
}

.guide-question {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.guide-question h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.guide-question details {
  margin-top: 10px;
}

.guide-question summary {
  color: var(--accent);
  cursor: pointer;
  font-weight: 800;
}

.guide-related-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.guide-related-links a {
  display: block;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent);
  background: #f7fbfc;
  font-weight: 800;
  text-decoration: none;
}

.guide-final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
  padding: 24px;
  border: 1px solid #173746;
  border-radius: 10px;
  color: #f8fbff;
  background: #101f2b;
}

.guide-final-cta h2,
.guide-final-cta p {
  margin: 0;
}

.guide-final-cta p {
  margin-top: 7px;
  color: #c9dbe3;
}

.guide-final-cta .primary-btn {
  color: #10242e;
  border-color: #d7fc70;
  background: #d7fc70;
}

.guide-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.guide-footer p {
  margin: 0;
}

.guide-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.guide-footer a {
  color: var(--accent);
}

@media (max-width: 880px) {
  .guide-hero,
  .guide-layout,
  .guide-final-cta {
    grid-template-columns: 1fr;
  }

  .guide-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .guide-header,
  .guide-nav,
  .guide-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .guide-header {
    position: static;
    padding: 12px 16px;
  }

  .guide-nav .primary-btn {
    width: 100%;
  }

  .guide-main,
  .guide-footer {
    width: min(100% - 24px, 1120px);
  }

  .guide-main {
    padding-top: 14px;
  }

  .guide-hero,
  .guide-section,
  .guide-terms,
  .guide-questions,
  .guide-related,
  .guide-sidebar-card,
  .guide-final-cta {
    padding: 18px;
  }

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