/* Guides: loaded after /home.css, so the articles share the landing page's tokens, type, nav and footer. */

.g-hero { position: relative; isolation: isolate; overflow: clip; padding: calc(124px + env(safe-area-inset-top)) var(--gutter) 56px; }
.g-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 80% at 15% 0%, rgba(75, 84, 214, .55), transparent 70%),
    radial-gradient(50% 70% at 90% 10%, rgba(140, 147, 245, .25), transparent 70%),
    linear-gradient(180deg, var(--cobalt-deep) -40%, var(--bg) 100%);
}
.g-hero-in, .g-body { max-width: 760px; margin: 0 auto; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; font-size: .92rem; font-weight: 600; color: rgba(255, 255, 255, .7); }
.crumbs a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.g-hero h1 { margin-top: 22px; font-size: clamp(2.3rem, 6.4vw, 4rem); line-height: 1; letter-spacing: -.045em; text-wrap: balance; }
.g-hero .lede { margin-top: 22px; max-width: none; color: rgba(255, 255, 255, .86); }
.g-hero .meta { margin: 18px 0 0; color: rgba(255, 255, 255, .6); font-size: .92rem; }

.g-body { padding: 24px var(--gutter) 40px; font-size: 1.08rem; line-height: 1.75; color: #d6dae3; }
.g-body > * { max-width: 100%; }
.g-body h2 { margin: 56px 0 14px; font-size: clamp(1.6rem, 3.6vw, 2.1rem); line-height: 1.1; letter-spacing: -.03em; color: #fff; }
.g-body h3 { margin: 32px 0 8px; font: 700 1.2rem/1.3 var(--display); letter-spacing: -.02em; color: #fff; }
.g-body p, .g-body li { color: #d6dae3; }
.g-body ul, .g-body ol { padding-left: 1.3em; }
.g-body li { margin: 8px 0; }
.g-body li::marker { color: var(--peri); }
.g-body a { color: var(--peri); text-underline-offset: 3px; }
.g-body a:hover { color: var(--peri-hi); }

.scroll { overflow-x: auto; margin: 24px 0; border-radius: 16px; background: var(--tile); box-shadow: inset 0 0 0 1px var(--line-2); }
.g-body table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.g-body th, .g-body td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.g-body tr:last-child td { border-bottom: 0; }
.g-body th { color: var(--muted); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.g-body pre { margin: 0; padding: 18px 20px; font: .9rem/1.6 var(--mono); color: var(--peri-hi); }

.g-body figure { margin: 36px 0; }
.shot { display: block; width: min(300px, 78%); height: auto; margin: 0 auto; border-radius: 34px; border: 8px solid #1b1b1f; box-shadow: 0 0 0 1px var(--line-2), 0 40px 80px -30px rgba(75, 84, 214, .55); }
.g-body figcaption { margin-top: 16px; text-align: center; color: var(--muted); font-size: .95rem; }

.cta { position: relative; overflow: hidden; margin: 56px 0 0; padding: 32px 28px; border-radius: 28px; text-align: center;
  background: radial-gradient(80% 120% at 50% 0%, rgba(140, 147, 245, .35), transparent 70%), var(--cobalt-deep); }
.cta p { margin: 0 0 20px; color: rgba(255, 255, 255, .9); font-size: 1.1rem; }
.cta strong { color: #fff; }
.cta .button { display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: 999px; background: #fff; color: #2a31a6; font-weight: 700; text-decoration: none; }
.cta .button:hover { transform: translateY(-2px); }

.related h2 { font-size: 1.4rem; }
.related ul, .guide-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.related li, .guide-list li { margin: 0; }
.related a, .guide-list a { display: block; padding: 18px 20px; border-radius: 16px; background: var(--tile); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); font-weight: 600; text-decoration: none; transition: background-color .2s, transform .25s var(--ease); }
.related a:hover, .guide-list a:hover { background: var(--wash); transform: translateY(-2px); color: var(--ink); }
.guide-list a b { display: block; color: #fff; font: 700 1.15rem/1.3 var(--display); letter-spacing: -.01em; }
.guide-list a span { display: block; margin-top: 6px; color: var(--muted); font-weight: 400; font-size: .98rem; }
@media (min-width: 640px) { .related ul { grid-template-columns: 1fr 1fr; } }
