:root {
  --guide-ink: #071426;
  --guide-muted: #607086;
  --guide-line: #dce5ef;
  --guide-blue: #245cf3;
  --guide-aqua: #36d6c2;
}

.guide-page { background: #f7faff; }
.guide-page main { overflow: hidden; }
.guide-shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.guide-narrow { width: min(790px, 100%); }

.breadcrumbs {
  padding: 24px 0 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #7a899d;
  font-size: .78rem;
  font-weight: 700;
}
.breadcrumbs a { color: #586a82; text-decoration: none; }
.breadcrumbs a:hover { color: var(--guide-blue); }
.breadcrumbs span[aria-hidden] { color: #b1bdcb; }

.hub-hero {
  position: relative;
  padding: 76px 0 64px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 70px;
}
.hub-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -220px;
  right: -260px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(54, 214, 194, .19), rgba(36, 92, 243, .06) 48%, transparent 72%);
}
.hub-hero h1, .article-hero h1 {
  max-width: none;
  margin: 0;
  text-align: left;
}
.hub-hero h1 { font-size: clamp(3rem, 6.2vw, 5.5rem); }
.hub-lede, .article-lede { color: var(--guide-muted); font-size: clamp(1.05rem, 2vw, 1.22rem); }
.hub-lede { max-width: 690px; margin: 23px 0 0; }
.hero-actions { margin-top: 29px; display: flex; flex-wrap: wrap; gap: 10px; }
.guide-button {
  min-height: 47px;
  padding: 12px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #cbd8e8;
  border-radius: 12px;
  color: var(--guide-ink);
  background: white;
  box-shadow: 0 9px 24px rgba(20, 48, 86, .08);
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.guide-button.primary { border-color: transparent; color: white; background: linear-gradient(135deg, var(--guide-blue), #557cff); box-shadow: 0 13px 28px rgba(36, 92, 243, .25); }
.guide-button:hover { transform: translateY(-2px); box-shadow: 0 15px 32px rgba(20, 48, 86, .14); }

.editorial-card {
  position: relative;
  padding: 31px;
  overflow: hidden;
  border: 1px solid rgba(189, 205, 226, .9);
  border-radius: 25px;
  color: white;
  background: linear-gradient(145deg, #071426, #15365f);
  box-shadow: 0 30px 70px rgba(7, 20, 38, .22);
}
.editorial-card::after { content: ""; position: absolute; right: -80px; bottom: -105px; width: 230px; height: 230px; border-radius: 50%; background: rgba(54, 214, 194, .15); }
.editorial-card > * { position: relative; z-index: 1; }
.editorial-card > span { color: #9ef4e8; font-size: .72rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.editorial-card h2 { margin: 10px 0 20px; color: white; font-size: clamp(1.6rem, 3vw, 2.15rem); line-height: 1.1; }
.editorial-card ul { margin: 0; padding: 0; display: grid; gap: 14px; list-style: none; }
.editorial-card li { display: grid; grid-template-columns: 27px 1fr; gap: 10px; color: #d2dbea; font-size: .91rem; }
.editorial-card li::before { content: "✓"; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; color: #071426; background: var(--guide-aqua); font-size: .75rem; font-weight: 900; }

.guide-index { padding: 34px 0 100px; }
.guide-index-heading { margin-bottom: 34px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.guide-index-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.1rem); }
.guide-index-heading p { max-width: 480px; margin: 0; color: var(--guide-muted); }
.guide-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.guide-card {
  position: relative;
  min-height: 295px;
  padding: 29px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--guide-line);
  border-radius: 22px;
  color: var(--guide-ink);
  background: white;
  box-shadow: 0 12px 35px rgba(15, 40, 75, .055);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.guide-card::after { content: "↗"; position: absolute; right: 24px; top: 24px; width: 37px; height: 37px; display: grid; place-items: center; border-radius: 11px; color: var(--guide-blue); background: #edf3ff; font-weight: 900; }
.guide-card:hover { transform: translateY(-4px); border-color: #b8cafa; box-shadow: 0 23px 52px rgba(20, 49, 89, .12); }
.guide-card:nth-child(4n+2), .guide-card:nth-child(4n+3) { background: linear-gradient(145deg, #f9fbff, #f0f6ff); }
.guide-card-tag { width: fit-content; padding: 6px 9px; border-radius: 999px; color: #0c7569; background: #e9faf7; font-size: .69rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.guide-card h3 { max-width: 520px; margin: 51px 45px 10px 0; font-family: "Avenir Next", "Segoe UI", sans-serif; font-size: clamp(1.35rem, 2.7vw, 1.8rem); line-height: 1.12; letter-spacing: -.04em; }
.guide-card p { margin: 0 0 24px; color: var(--guide-muted); font-size: .92rem; }
.guide-card-meta { margin-top: auto; color: #8a98aa; font-size: .74rem; font-weight: 750; }

.topic-strip { padding: 52px 0; color: white; background: #071426; }
.topic-strip-inner { display: grid; grid-template-columns: .75fr 1.25fr; align-items: center; gap: 60px; }
.topic-strip h2 { margin: 0; color: white; font-size: clamp(2rem, 4vw, 3rem); }
.topic-strip p { color: #99a8bb; }
.topic-links { display: flex; flex-wrap: wrap; gap: 9px; }
.topic-links a { padding: 9px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: #d8e1ed; background: rgba(255,255,255,.05); font-size: .8rem; font-weight: 750; text-decoration: none; }
.topic-links a:hover { border-color: rgba(54,214,194,.5); color: #aafff2; }

.article-hero { padding: 53px 0 49px; }
.article-hero-inner { width: min(920px, 100%); }
.article-label { width: fit-content; margin-bottom: 18px; padding: 7px 10px; border: 1px solid #d2def8; border-radius: 999px; color: var(--guide-blue); background: #edf3ff; font-size: .72rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.article-hero h1 { font-size: clamp(2.7rem, 6.2vw, 5rem); line-height: .99; }
.article-lede { max-width: 820px; margin: 23px 0 0; }
.article-meta { margin-top: 25px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; color: #748399; font-size: .78rem; font-weight: 700; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta span + span::before { content: ""; width: 4px; height: 4px; margin-right: 8px; border-radius: 50%; background: #b6c1cf; }

.answer-box {
  margin-top: 36px;
  padding: 24px 27px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 17px;
  border: 1px solid #b9cdfd;
  border-radius: 18px;
  background: linear-gradient(145deg, #f2f6ff, #f8fbff);
  box-shadow: 0 14px 35px rgba(36, 92, 243, .08);
}
.answer-box > span { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; color: white; background: var(--guide-blue); font-weight: 900; }
.answer-box strong { display: block; margin-bottom: 4px; font-size: .84rem; }
.answer-box p { margin: 0; color: #475c78; font-size: .94rem; }

.article-layout { padding: 13px 0 100px; display: grid; grid-template-columns: 245px minmax(0, 770px); justify-content: space-between; gap: 72px; }
.article-toc { position: sticky; top: 103px; align-self: start; padding: 20px; border: 1px solid var(--guide-line); border-radius: 17px; background: rgba(255,255,255,.9); box-shadow: 0 10px 27px rgba(20, 48, 86, .055); }
.article-toc strong { display: block; margin-bottom: 11px; color: #253a57; font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; }
.article-toc nav { display: grid; gap: 2px; }
.article-toc a { padding: 7px 8px; border-radius: 8px; color: #64748a; font-size: .8rem; font-weight: 700; line-height: 1.3; text-decoration: none; }
.article-toc a:hover { color: var(--guide-blue); background: #f0f5ff; }
.article-toc .toc-cta { margin-top: 14px; padding: 10px 11px; color: white; background: var(--guide-blue); text-align: center; }
.article-body { min-width: 0; padding: 42px 45px; border: 1px solid var(--guide-line); border-radius: 24px; background: white; box-shadow: 0 25px 65px rgba(15, 40, 75, .08); }
.article-body > *:first-child { margin-top: 0; }
.article-body h2, .article-body h3 { scroll-margin-top: 110px; color: var(--guide-ink); }
.article-body h2 { margin: 51px 0 14px; font-size: clamp(1.65rem, 3vw, 2.15rem); line-height: 1.12; }
.article-body h3 { margin: 31px 0 10px; font-family: "Avenir Next", "Segoe UI", sans-serif; font-size: 1.23rem; letter-spacing: -.025em; }
.article-body p, .article-body li { color: #465974; }
.article-body p { margin: 0 0 18px; }
.article-body ul, .article-body ol { padding-left: 23px; }
.article-body li + li { margin-top: 8px; }
.article-body a { font-weight: 750; }
.article-body table { width: 100%; margin: 25px 0; border-collapse: collapse; border: 1px solid var(--guide-line); font-size: .86rem; }
.article-body th, .article-body td { padding: 13px 14px; border-bottom: 1px solid var(--guide-line); text-align: left; vertical-align: top; }
.article-body th { color: #1d3553; background: #f2f6fb; }
.article-body tr:last-child td { border-bottom: 0; }
.note-box, .warning-box { margin: 27px 0; padding: 19px 21px; border-left: 4px solid var(--guide-blue); border-radius: 4px 13px 13px 4px; background: #f1f5ff; }
.warning-box { border-left-color: #f29a3f; background: #fff7ed; }
.note-box strong, .warning-box strong { display: block; margin-bottom: 4px; color: var(--guide-ink); }
.note-box p, .warning-box p { margin: 0; font-size: .9rem; }
.step-list { margin: 24px 0; padding: 0 !important; display: grid; gap: 12px; counter-reset: guide-step; list-style: none; }
.step-list li { padding: 17px 18px; display: grid; grid-template-columns: 34px 1fr; gap: 13px; border: 1px solid #e1e9f2; border-radius: 14px; background: #fbfdff; counter-increment: guide-step; }
.step-list li::before { content: counter(guide-step); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: white; background: var(--guide-blue); font-size: .78rem; font-weight: 900; }
.step-list li strong { display: block; margin-bottom: 3px; color: var(--guide-ink); }
.step-list li p { margin: 0; font-size: .88rem; }
.checklist { margin: 23px 0; padding: 0 !important; display: grid; gap: 9px; list-style: none; }
.checklist li { position: relative; padding-left: 31px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 21px; height: 21px; display: grid; place-items: center; border-radius: 7px; color: #075d53; background: #dff8f3; font-size: .73rem; font-weight: 900; }
.article-end { margin-top: 43px; padding-top: 26px; border-top: 1px solid var(--guide-line); color: #738297; font-size: .78rem; }

.related-guides { padding: 80px 0; border-top: 1px solid #dce5ef; background: linear-gradient(145deg, #f0f5ff, #f7fbff); }
.related-heading { margin-bottom: 29px; display: flex; align-items: end; justify-content: space-between; gap: 25px; }
.related-heading h2 { margin: 0; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.related-heading a { font-weight: 800; text-decoration: none; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.related-card { min-height: 190px; padding: 23px; display: flex; flex-direction: column; border: 1px solid #d9e3ee; border-radius: 18px; color: var(--guide-ink); background: white; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.related-card:hover { transform: translateY(-3px); box-shadow: 0 16px 35px rgba(20, 48, 86, .1); }
.related-card span { color: var(--guide-blue); font-size: .7rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.related-card strong { margin-top: auto; font-family: "Avenir Next", "Segoe UI", sans-serif; font-size: 1.18rem; line-height: 1.15; letter-spacing: -.025em; }

.guide-convert-cta { margin: 80px auto; padding: 43px 46px; display: flex; align-items: center; justify-content: space-between; gap: 35px; border-radius: 24px; color: white; background: linear-gradient(135deg, #0c2b66, #245cf3 68%, #3a76ff); box-shadow: 0 28px 65px rgba(36, 92, 243, .25); }
.guide-convert-cta h2 { margin: 0; color: white; font-size: clamp(1.75rem, 3.5vw, 2.7rem); }
.guide-convert-cta p { margin: 7px 0 0; color: #d8e4ff; }
.guide-convert-cta .guide-button { flex: 0 0 auto; border-color: white; }

@media (max-width: 900px) {
  .hub-hero, .topic-strip-inner { grid-template-columns: 1fr; gap: 35px; }
  .hub-hero { padding-top: 55px; }
  .article-layout { grid-template-columns: 1fr; gap: 20px; }
  .article-toc { position: static; }
  .article-toc nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .guide-shell { width: calc(100% - 24px); }
  .guide-card-grid { grid-template-columns: 1fr; }
  .guide-index-heading, .related-heading, .guide-convert-cta { align-items: flex-start; flex-direction: column; }
  .guide-index-heading { display: flex; }
  .article-body { padding: 31px 23px; border-radius: 20px; }
  .article-meta { align-items: flex-start; flex-direction: column; gap: 6px; }
  .article-meta span + span::before { display: none; }
  .answer-box { grid-template-columns: 1fr; }
  .article-toc nav { grid-template-columns: 1fr; }
  .article-body table { display: block; overflow-x: auto; }
  .guide-convert-cta { margin-top: 55px; margin-bottom: 55px; padding: 32px 25px; }
}
