.guide-page {
  --guide-blue: var(--blue, #0033a0);
  --guide-blue-strong: light-dark(#00267a, #76a3ff);
  --guide-blue-soft: light-dark(#edf4ff, #17233b);
  --guide-orange: var(--orange, #ff6600);
  --guide-orange-soft: light-dark(#fff2e8, #3a2418);
  --guide-surface: light-dark(#ffffff, #202124);
  --guide-surface-muted: light-dark(#f6f8fb, #292b2f);
  --guide-border: light-dark(#dce3ec, #42464d);
  --guide-text-muted: var(--secondary_text_color, light-dark(#5b6574, #c0c0c0));
  max-width: 1380px;
  margin: 0 auto;
  padding: 2rem 1.5rem 6rem;
}

.guide-page *, .guide-page *::before, .guide-page *::after { box-sizing: border-box; }
.guide-page a { color: var(--guide-blue-strong); font-weight: 600; }
.guide-page p { line-height: 1.75; }
.guide-page section { scroll-margin-top: 1.5rem; }

.guide-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 3rem;
  align-items: center;
  min-height: 430px;
  padding: clamp(2rem, 5vw, 5rem);
  border-radius: 1.75rem;
  color: #fff;
  background:
    radial-gradient(circle at 88% 5%, rgba(255, 102, 0, .42), transparent 24rem),
    linear-gradient(135deg, #001d61 0%, #0033a0 62%, #0745bd 100%);
  box-shadow: 0 24px 70px rgba(0, 34, 112, .24);
}

.guide-hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -100px;
  bottom: -150px;
  border: 45px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
}

.guide-hero-content, .guide-hero-summary { position: relative; z-index: 1; }
.guide-kicker {
  margin: 0 0 .7rem;
  color: var(--guide-orange);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.guide-hero h1 {
  max-width: 760px;
  margin: 1rem 0;
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.guide-lead { max-width: 670px; margin: 0; color: rgba(255, 255, 255, .82); font-size: 1.12rem; }
.guide-hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.guide-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .65rem;
  min-height: 48px;
  padding: .75rem 1.15rem;
  border: 2px solid transparent;
  border-radius: .75rem;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.guide-button:hover { transform: translateY(-2px); }
.guide-button-primary { color: var(--product-on-accent) !important; background: var(--guide-orange); }
.guide-button-primary:hover { background: #e85d00; }
.guide-button-secondary { color: #fff !important; border-color: rgba(255, 255, 255, .36); background: rgba(255, 255, 255, .1); }
.guide-button-secondary:hover { background: rgba(255, 255, 255, .18); }

.guide-hero-summary {
  padding: 1.4rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 1.2rem;
  background: rgba(0, 16, 59, .4);
  backdrop-filter: blur(12px);
}
.guide-summary-title { margin: 0 0 1rem; color: #fff; font-weight: 700; }
.guide-hero-summary ol { display: grid; gap: .8rem; margin: 0; padding: 0; list-style: none; }
.guide-hero-summary li { display: flex; gap: .8rem; align-items: center; padding: .7rem; border-radius: .8rem; background: rgba(255, 255, 255, .07); }
.guide-hero-summary li > span, .guide-step-number {
  display: grid;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: .55rem;
  color: var(--product-on-accent);
  font-weight: 800;
  background: var(--guide-orange);
}
.guide-hero-summary strong, .guide-hero-summary small { display: block; }
.guide-hero-summary small { margin-top: .15rem; color: rgba(255, 255, 255, .68); line-height: 1.4; }

.guide-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 3rem; margin-top: 3rem; align-items: start; }
.guide-sidebar { position: sticky; top: 5rem; display: grid; gap: 1rem; }
.guide-nav, .guide-support-card { border: 1px solid var(--guide-border); border-radius: 1rem; background: var(--guide-surface); }
.guide-nav { overflow: hidden; padding: .75rem; }
.guide-nav p { margin: .35rem .65rem .55rem; color: var(--guide-text-muted); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.guide-nav a {
  display: flex;
  min-height: 44px;
  gap: .7rem;
  align-items: center;
  padding: .7rem .75rem;
  border-left: 3px solid transparent;
  border-radius: .55rem;
  color: var(--primary_text_color);
  text-decoration: none;
  font-size: .92rem;
}
.guide-nav a:hover { border-left-color: var(--guide-orange); color: var(--guide-blue-strong); background: var(--guide-blue-soft); }
.guide-nav a:focus-visible { outline: 2px solid var(--guide-blue-strong); outline-offset: -2px; }
.guide-nav i { width: 1rem; color: var(--guide-blue-strong); text-align: center; }
.guide-support-card { padding: 1.15rem; border-top: 4px solid var(--guide-orange); }
.guide-support-card > i { margin-bottom: .75rem; color: var(--product-accent-strong); font-size: 1.35rem; }
.guide-support-card strong, .guide-support-card p { display: block; }
.guide-support-card p { margin: .5rem 0; color: var(--guide-text-muted); font-size: .85rem; line-height: 1.55; }
.guide-support-card a { overflow-wrap: anywhere; font-size: .85rem; }

.guide-content { min-width: 0; }
.guide-section {
  padding: 0 0 3.5rem;
  margin-bottom: 3.5rem;
  border-bottom: 1px solid var(--guide-border);
}
.guide-section:last-child { margin-bottom: 0; border-bottom: 0; }
.guide-section-heading { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; margin-bottom: 2rem; }
.guide-section-number { color: var(--product-accent-strong); font-family: "Montserrat", sans-serif; font-size: .85rem; font-weight: 800; letter-spacing: .08em; }
.guide-section-heading h2 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.35rem); letter-spacing: -.025em; }
.guide-section-heading p:last-child { max-width: 760px; margin: .6rem 0 0; color: var(--guide-text-muted); }
.guide-kicker { color: var(--guide-blue-strong); }

.guide-steps { display: grid; gap: .9rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.guide-steps li { display: flex; gap: 1rem; padding: 1.25rem; border: 1px solid var(--guide-border); border-radius: 1rem; background: var(--guide-surface); }
.guide-steps h3, .guide-troubleshooting h3, .guide-feature-grid h3 { margin: 0 0 .35rem; font-size: 1rem; }
.guide-page .guide-steps h3 { text-align: left; }
.guide-steps p, .guide-troubleshooting p, .guide-feature-grid p { margin: 0; color: var(--guide-text-muted); font-size: .93rem; }

.guide-note {
  display: flex;
  gap: .9rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid;
  border-radius: .9rem;
}
.guide-note i { margin-top: .25rem; font-size: 1.15rem; }
.guide-note strong, .guide-note p { display: block; }
.guide-note p { margin: .2rem 0 0; color: var(--guide-text-muted); font-size: .92rem; }
.guide-note-blue { border-color: light-dark(#b7d1ff, #31558d); background: var(--guide-blue-soft); }
.guide-note-blue i { color: var(--guide-blue-strong); }
.guide-note-orange { border-color: light-dark(#ffc79f, #92522b); background: var(--guide-orange-soft); }
.guide-note-orange i { color: var(--guide-orange); }

.guide-checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin: 0; padding: 0; list-style: none; }
.guide-checklist li { display: flex; gap: .85rem; padding: 1rem; border: 1px solid var(--guide-border); border-radius: .8rem; background: var(--guide-surface); }
.guide-checklist i { display: grid; flex: 0 0 1.65rem; width: 1.65rem; height: 1.65rem; place-items: center; border-radius: 50%; color: #fff; background: var(--product-action-bg); font-size: .7rem; }
.guide-checklist strong, .guide-checklist span { display: block; }
.guide-checklist span { margin-top: .25rem; color: var(--guide-text-muted); font-size: .85rem; line-height: 1.5; }

.guide-troubleshooting { display: grid; gap: .75rem; margin-top: 1.25rem; }
.guide-troubleshooting article { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--guide-border); }
.guide-troubleshooting article:last-child { border-bottom: 0; }
.guide-troubleshooting article > span { color: var(--product-accent-strong); font-family: "Montserrat", sans-serif; font-weight: 800; }
.guide-support-wide { display: flex; gap: 1.5rem; justify-content: space-between; align-items: center; margin-top: 1.5rem; padding: 1.5rem; border-radius: 1rem; color: #fff; background: var(--product-action-bg); }
.guide-support-wide h3, .guide-support-wide p { margin: 0; color: #fff; }
.guide-support-wide .guide-kicker { color: light-dark(#ffb27f, #ffd2b3); }
.guide-support-wide p:last-child { max-width: 650px; margin-top: .35rem; color: rgba(255, 255, 255, .9); font-size: .9rem; }
.guide-support-wide .guide-button { flex-shrink: 0; }

.guide-image-spec { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr); gap: 2rem; align-items: center; padding: 1.5rem; border: 1px solid var(--guide-border); border-radius: 1rem; background: var(--guide-surface-muted); }
.guide-ratio-preview { display: grid; aspect-ratio: 16 / 9; padding: 8%; border-radius: .8rem; background: linear-gradient(135deg, var(--guide-blue), #001d61); box-shadow: inset 0 0 0 6px rgba(255, 102, 0, .78); }
.guide-safe-area { display: grid; place-items: center; align-content: center; border: 2px dashed rgba(255, 255, 255, .65); border-radius: .5rem; color: #fff; text-align: center; }
.guide-safe-area i { margin-bottom: .55rem; font-size: 1.7rem; }
.guide-safe-area strong { font-size: .85rem; }
.guide-safe-area span { margin-top: .2rem; color: rgba(255, 255, 255, .72); font-size: .75rem; }
.guide-image-spec h3 { margin: 0; font-size: 1.4rem; }
.guide-image-spec p { color: var(--guide-text-muted); }
.guide-compact-list { display: grid; gap: .55rem; margin: 1rem 0; padding: 0; list-style: none; }
.guide-compact-list li { display: flex; gap: .65rem; align-items: flex-start; }
.guide-compact-list i { margin-top: .25rem; color: var(--product-accent-strong); font-size: .75rem; }
.guide-subheading { margin: 2rem 0 1rem; font-size: 1.15rem; }
.guide-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-bottom: 1.25rem; }
.guide-feature-grid article { padding: 1.15rem; border-left: 4px solid var(--guide-blue); border-radius: .4rem .8rem .8rem .4rem; background: var(--guide-surface-muted); }
.guide-feature-grid article > i { margin-bottom: .75rem; color: var(--product-accent-strong); }

.guide-org-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.guide-org-grid > div { padding: 1.3rem; border: 1px solid var(--guide-border); border-radius: 1rem; background: var(--guide-surface); }
.guide-org-grid h3 { margin-top: 0; font-size: 1.05rem; }
.guide-org-process ol { display: grid; gap: .8rem; margin: 0; padding: 0; list-style: none; }
.guide-org-process li { display: flex; gap: .75rem; align-items: center; }
.guide-org-process span { display: grid; flex: 0 0 1.75rem; width: 1.75rem; height: 1.75rem; place-items: center; border-radius: .45rem; color: #fff; background: var(--product-action-bg); font-weight: 800; }
.guide-org-process p { margin: 0; color: var(--guide-text-muted); font-size: .9rem; }

.guide-faq { border-top: 1px solid var(--guide-border); }
.guide-faq details { border-bottom: 1px solid var(--guide-border); }
.guide-faq summary { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.15rem 0; cursor: pointer; color: var(--primary_text_color); font-weight: 700; list-style: none; }
.guide-faq summary::-webkit-details-marker { display: none; }
.guide-faq summary i { color: var(--product-accent-strong); transition: transform .18s ease; }
.guide-faq details[open] summary i { transform: rotate(45deg); }
.guide-faq details p { max-width: 800px; margin: -.35rem 0 1.2rem; color: var(--guide-text-muted); }

@media (max-width: 980px) {
  .guide-hero { grid-template-columns: 1fr; }
  .guide-hero-summary { max-width: 620px; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-sidebar { position: static; }
  .guide-nav { display: flex; gap: .35rem; overflow-x: auto; }
  .guide-nav p, .guide-support-card { display: none; }
  .guide-nav a { flex: 0 0 auto; border-left: 0; border-bottom: 3px solid transparent; }
  .guide-nav a:hover { border-left-color: transparent; border-bottom-color: var(--guide-orange); }
}

@media (max-width: 720px) {
  .guide-page { padding: .75rem .75rem 4rem; }
  .guide-hero { min-height: auto; padding: 2rem 1.25rem; border-radius: 1rem; }
  .guide-hero h1 { font-size: 2.35rem; }
  .guide-hero-actions, .guide-support-wide { align-items: stretch; flex-direction: column; }
  .guide-button { width: 100%; }
  .guide-layout { gap: 2rem; margin-top: 1.25rem; }
  .guide-section { margin-bottom: 2.5rem; padding-bottom: 2.5rem; }
  .guide-section-heading { gap: .7rem; }
  .guide-checklist, .guide-feature-grid, .guide-org-grid, .guide-image-spec { grid-template-columns: 1fr; }
  .guide-image-spec { gap: 1.25rem; padding: 1rem; }
  .guide-note { padding: 1rem; }
}
