/* Section dividers preview (owner 2026-11-26: "phân tách các section đang là đường thẳng?"). ?giaodien=e&sd=a | sd=b, loaded last.
   A: dark sections become floating rounded panels on the white page (Linear / Vercel style).
   B: dark sections fade into the page at their top and bottom edges instead of a hard cut. */

/* ---- A: floating rounded panels ---- */
html body.sd-a.aster-v3 .v3-sec--tint { margin-inline: clamp(8px, 1.6vw, 24px); border-radius: 24px; overflow: hidden; }
html body.sd-a.aster-v3 .v3-hero { border-radius: 0 0 28px 28px; overflow: hidden; }
html body.sd-a .site-footer, html body.sd-a footer.site-info { margin-inline: clamp(8px, 1.6vw, 24px); border-radius: 24px 24px 0 0; overflow: hidden; }
html body.sd-a.aster-v3 .v3-sec--tint + .v3-sec--tint { margin-top: 16px; }
@media (max-width: 640px) { html body.sd-a.aster-v3 .v3-sec--tint { border-radius: 16px; } html body.sd-a.aster-v3 .v3-hero { border-radius: 0 0 20px 20px; } html body.sd-a .site-footer, html body.sd-a footer.site-info { border-radius: 16px 16px 0 0; } }

/* ---- B: soft fades ---- */
html body.sd-b.aster-v3 .v3-sec--tint { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 120px, #000 calc(100% - 120px), transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 120px, #000 calc(100% - 120px), transparent 100%); }
html body.sd-b.aster-v3 .v3-hero { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 140px), transparent 100%); mask-image: linear-gradient(to bottom, #000 calc(100% - 140px), transparent 100%); }
html body.sd-b .site-footer, html body.sd-b footer.site-info { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 96px); mask-image: linear-gradient(to bottom, transparent 0, #000 96px); }

/* ---- C: glowing horizon — a thin amber light line on each dark edge, bright in the middle, fading out, with a soft bloom into the dark ---- */
html body.sd-c.aster-v3 .v3-sec--tint { position: relative; }
html body.sd-c.aster-v3 .v3-sec--tint > .v2-wrap { position: relative; z-index: 1; }
html body.sd-c.aster-v3 .v3-sec--tint::before, html body.sd-c.aster-v3 .v3-sec--tint::after { content: ""; position: absolute; left: 0; right: 0; height: 160px; pointer-events: none; }
html body.sd-c.aster-v3 .v3-sec--tint::before { top: 0; background: linear-gradient(90deg, transparent 5%, #fbbf24 50%, transparent 95%) top / 100% 2px no-repeat, radial-gradient(50% 100% at 50% 0%, rgba(245, 158, 11, 0.34), transparent 72%); }
html body.sd-c.aster-v3 .v3-sec--tint { box-shadow: 0 -24px 48px -36px rgba(245, 158, 11, 0.9); }
html body.sd-c.aster-v3 .v3-sec--tint::after { bottom: 0; background: linear-gradient(90deg, transparent 5%, #f97316 50%, transparent 95%) bottom / 100% 2px no-repeat, radial-gradient(50% 100% at 50% 100%, rgba(249, 115, 22, 0.26), transparent 72%); }
html body.sd-c.aster-v3 .v3-calc-sec::before { content: ""; position: absolute; left: 0; right: 0; top: -150px; height: 150px; pointer-events: none; z-index: 2; background: linear-gradient(90deg, transparent 8%, rgba(251, 191, 36, 0.9) 50%, transparent 92%) bottom / 100% 1px no-repeat, radial-gradient(45% 100% at 50% 100%, rgba(245, 158, 11, 0.22), transparent 70%); }
html body.sd-c footer.site-info { position: relative; }
html body.sd-c footer.site-info::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 140px; pointer-events: none; background: linear-gradient(90deg, transparent 8%, rgba(251, 191, 36, 0.8) 50%, transparent 92%) top / 100% 1px no-repeat, radial-gradient(45% 100% at 50% 0%, rgba(245, 158, 11, 0.16), transparent 70%); }

/* ---- D: curved horizon — dark sections bulge like a planet edge, with an amber glow along the curve ---- */
html body.sd-d.aster-v3 .v3-sec--tint { position: relative; padding-top: 104px; padding-bottom: 136px; border-radius: 50% 50% 50% 50% / 64px 64px 64px 64px; box-shadow: 0 -18px 60px -30px rgba(245, 158, 11, 0.55), 0 18px 60px -30px rgba(249, 115, 22, 0.45); }
html body.sd-d.aster-v3 .v3-sec--tint::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1.5px 0 rgba(251, 191, 36, 0.7), inset 0 -1.5px 0 rgba(249, 115, 22, 0.5); }
html body.sd-d.aster-v3 .v3-sec--tint > .v2-wrap { position: relative; z-index: 1; }
html body.sd-d.aster-v3 .v3-hero { z-index: 2; border-radius: 0 0 50% 50% / 0 0 64px 64px; box-shadow: inset 0 -1.5px 0 rgba(251, 191, 36, 0.7), 0 18px 60px -30px rgba(245, 158, 11, 0.55); }
html body.sd-d.aster-v3 .v3-hero + .v3-calc-sec { margin-top: -64px; padding-top: 88px; }
html body.sd-d footer.site-info { position: relative; border-radius: 50% 50% 0 0 / 64px 64px 0 0; box-shadow: inset 0 1.5px 0 rgba(251, 191, 36, 0.6), 0 -18px 60px -30px rgba(245, 158, 11, 0.5); }
@media (max-width: 640px) { html body.sd-d.aster-v3 .v3-sec--tint { border-radius: 50% / 28px; padding-top: 72px; padding-bottom: 96px; } html body.sd-d.aster-v3 .v3-hero { border-radius: 0 0 50% 50% / 0 0 28px 28px; } html body.sd-d.aster-v3 .v3-hero + .v3-calc-sec { margin-top: -28px; padding-top: 52px; } html body.sd-d footer.site-info { border-radius: 50% 50% 0 0 / 28px 28px 0 0; } }

/* ---- F: technical grid (Vercel / Supabase style) — thin vertical rails along the content edges run through every section;
   each section boundary is a hairline with "+" marks where it meets the rails. Light rails on light sections, faint white rails on dark ones. ---- */
html body.sd-f { --sd-rail: max(16px, calc(50% - 660px)); }
html body.sd-f.aster-v3 .v3-calc-sec, html body.sd-f.aster-v3 .v3-sec, html body.sd-f.aster-v3 .v3-final, html body.sd-f footer.site-info { position: relative; --rl: rgba(15, 23, 42, 0.09); --pm: #f59e0b; --hl: rgba(15, 23, 42, 0.10); }
html body.sd-f.aster-v3 .v3-sec--tint, html body.sd-f footer.site-info { --rl: rgba(255, 255, 255, 0.09); --hl: rgba(255, 255, 255, 0.10); }
html body.sd-f.aster-v3 .v3-calc-sec::before, html body.sd-f.aster-v3 .v3-sec::before, html body.sd-f.aster-v3 .v3-final::before, html body.sd-f footer.site-info::before {
  content: ""; position: absolute; z-index: 0; top: -7px; bottom: 0; left: calc(var(--sd-rail) - 7px); right: calc(var(--sd-rail) - 7px); pointer-events: none;
  background:
    linear-gradient(var(--pm), var(--pm)) 6.5px 0 / 2px 15px no-repeat, linear-gradient(var(--pm), var(--pm)) 0 6.5px / 15px 2px no-repeat,
    linear-gradient(var(--pm), var(--pm)) calc(100% - 6.5px) 0 / 2px 15px no-repeat, linear-gradient(var(--pm), var(--pm)) 100% 6.5px / 15px 2px no-repeat,
    linear-gradient(var(--rl), var(--rl)) 7px 7px / 1px calc(100% - 7px) no-repeat, linear-gradient(var(--rl), var(--rl)) calc(100% - 7px) 7px / 1px calc(100% - 7px) no-repeat; }
html body.sd-f.aster-v3 .v3-calc-sec::after, html body.sd-f.aster-v3 .v3-sec::after, html body.sd-f.aster-v3 .v3-final::after, html body.sd-f footer.site-info::after { content: ""; position: absolute; z-index: 0; top: 0; left: 0; right: 0; height: 1px; pointer-events: none; background: linear-gradient(90deg, var(--hl), rgba(245, 158, 11, 0.6) 50%, var(--hl)); }
html body.sd-f.aster-v3 .v3-calc-sec > .v2-wrap, html body.sd-f.aster-v3 .v3-sec > .v2-wrap, html body.sd-f.aster-v3 .v3-final > .v2-wrap, html body.sd-f footer.site-info > * { position: relative; z-index: 1; }
@media (max-width: 640px) { html body.sd-f { --sd-rail: 10px; } }

/* ---- G: journey line (GitHub style) — one amber line runs down the left gutter from the hero to the footer; every section starts with an icon node on it;
   the line and nodes light up as you scroll. Desktop only (the gutter is too narrow on phones). Positions are set by the script. ---- */
.v3-journey { position: absolute; z-index: 3; width: 2px; pointer-events: none; background: linear-gradient(to bottom, rgba(245, 158, 11, 0), rgba(148, 163, 184, 0.35) 40px, rgba(148, 163, 184, 0.35) calc(100% - 40px), rgba(245, 158, 11, 0)); }
.v3-journey i { position: absolute; left: 0; top: 0; width: 2px; height: var(--p, 0px); background: linear-gradient(to bottom, rgba(251, 191, 36, 0), #fbbf24 60px, #f97316); box-shadow: 0 0 12px 1px rgba(245, 158, 11, 0.55); border-radius: 2px; }
.v3-jn { position: absolute; z-index: 4; display: grid; place-items: center; width: 34px; height: 34px; margin: -17px 0 0 -16px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px #e5e7eb, 0 4px 12px -6px rgba(15, 23, 42, 0.25); color: #94a3b8; pointer-events: none; transition: background 0.3s, color 0.3s, box-shadow 0.3s; }
.v3-jn svg { width: 17px; height: 17px; }
.v3-jn.is-dark { background: #111827; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12); color: #64748b; }
.v3-jn.is-on { background: #fffbeb; color: #d97706; box-shadow: 0 0 0 1.5px #f59e0b, 0 0 18px -2px rgba(245, 158, 11, 0.6); }
.v3-jn.is-dark.is-on { background: #1f1607; color: #fbbf24; }
@media (max-width: 1100px) { .v3-journey, .v3-jn { display: none; } }

/* ---- E: diagonal cut (Stripe style) — dark sections slanted top and bottom, hero slanted at the bottom, footer at the top ---- */
html body.sd-e { --sk: clamp(28px, 4vw, 72px); }
html body.sd-e.aster-v3 .v3-sec--tint { padding-top: calc(64px + var(--sk)); padding-bottom: calc(104px + var(--sk)); margin: calc(-1 * var(--sk) / 2) 0; clip-path: polygon(0 var(--sk), 100% 0, 100% calc(100% - var(--sk)), 0 100%); }
html body.sd-e.aster-v3 .v3-hero { padding-bottom: calc(72px + var(--sk)); clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--sk)), 0 100%); }
html body.sd-e footer.site-info { padding-top: var(--sk); clip-path: polygon(0 var(--sk), 100% 0, 100% 100%, 0 100%); }

/* ---- H: cards bridge the boundary — the dark background stops halfway down the last row of cards, so the cards hang over into the white section;
   the calculator card rises over the bottom of the hero. No bare cut line is left exposed. ---- */
html body.sd-h { --br: 150px; }
html body.sd-h.aster-v3 .v3-sec--tint { background:
    radial-gradient(ellipse 70% 80% at 15% 0%, rgba(245, 158, 11, 0.16), transparent 60%) top / 100% calc(100% - var(--br)) no-repeat,
    radial-gradient(ellipse 60% 70% at 90% 100%, rgba(249, 115, 22, 0.14), transparent 60%) top / 100% calc(100% - var(--br)) no-repeat,
    linear-gradient(#0a0f1f, #0a0f1f) top / 100% calc(100% - var(--br)) no-repeat !important; padding-bottom: 72px; }
html body.sd-h.aster-v3 .v3-sec--tint + .v3-sec, html body.sd-h.aster-v3 .v3-sec--tint + .v3-final { padding-top: 40px; }
html body.sd-h.aster-v3 .v3-hero { padding-bottom: 200px !important; }
html body.sd-h.aster-v3 .v3-hero + .v3-calc-sec { position: relative; z-index: 2; margin-top: -120px; padding-top: 0; background: linear-gradient(transparent 0 120px, #f2f4f9 120px); }
@media (max-width: 768px) { html body.sd-h { --br: 110px; } html body.sd-h.aster-v3 .v3-hero { padding-bottom: 96px !important; } html body.sd-h.aster-v3 .v3-hero + .v3-calc-sec { margin-top: -64px; background: linear-gradient(transparent 0 64px, #f2f4f9 64px); } }
