/* NEXT "Global - Buyer's Guide": black band (Table of contents heading, crumbs, chapter title, clickable progress
 * bar), the chapter in one reading column ending on a "Next chapter" photo card, a right rail that stays in view
 * (On this page, key takeaway, quote box), and a FAQ below that follows the chosen chapter.
 * Colors + fonts come from the site brand kit (--next-* tokens). Place in a full-width container with no padding.
 * Script: next-guide.js.
 */
.nx-gd {
  --nx-gutter: clamp(16px, 4vw, 56px);
  position: relative; box-sizing: border-box; background: var(--next-white); color: var(--next-body); font-family: var(--next-font-head);
}
.nx-gd *, .nx-gd *::before, .nx-gd *::after { box-sizing: border-box; }
.nx-gd-band, .nx-gd-body, .nx-gd-stick { padding-inline: var(--nx-gutter); }
.nx-gd-in { position: relative; max-width: 1480px; margin: 0 auto; padding-inline: clamp(28px, 3vw, 56px); }
.nx-gd [hidden] { display: none !important; }

/* ── Band ── */
.nx-gd-band { padding-block: clamp(56px, 7vw, 96px) 0; background: var(--next-black); color: #C9C9CC; scroll-margin-top: 80px; }
.nx-gd .nx-prc-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; margin-bottom: 34px; padding-bottom: 34px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.nx-gd .nx-prc-head--solo { grid-template-columns: 1fr; margin-bottom: 22px; padding-bottom: 0; border-bottom: 0; }
.nx-gd .nx-prc-head--solo .nx-prc-eyebrow { margin: 0; }
.nx-gd .nx-prc-eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; font: 700 12px/1 var(--next-font-sub); letter-spacing: .2em; text-transform: uppercase; color: var(--next-red); }
.nx-gd .nx-prc-eyebrow::after { content: ""; width: 48px; height: 2px; background: var(--next-red); }
.nx-gd .nx-prc-title { margin: 0; color: var(--next-white); font: 700 clamp(32px, 4vw, 52px)/1.08 var(--next-font-head); letter-spacing: -.02em; text-transform: none; text-wrap: balance; }
.nx-gd .nx-prc-accent { color: var(--next-red); }
.nx-gd .nx-prc-intro { margin: 0; max-width: 62ch; font: 400 17px/1.7 var(--next-font-head); color: #C9C9CC; }
.nx-gd-crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; font: 700 11px/1 var(--next-font-sub); letter-spacing: .2em; text-transform: uppercase; color: #C9C9CC; }
.nx-gd-crumbs > * + *::before { content: "/"; margin-right: 10px; color: var(--next-red); }
.nx-gd-crumbs a { color: inherit; text-decoration: none; }
.nx-gd-crumbs a[href]:hover { color: #fff; }
.nx-gd-crumbs .cur { color: #fff; }
.nx-gd .nx-gd-kicker { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; font: 700 12px/1 var(--next-font-sub); letter-spacing: .2em; text-transform: uppercase; color: var(--next-red); }
.nx-gd .nx-gd-kicker::after { content: ""; width: 48px; height: 2px; background: currentColor; }
.nx-gd .nx-gd-title { margin: 0 0 12px; max-width: 34ch; font: 700 clamp(30px, 3.4vw, 50px)/1.06 var(--next-font-head); letter-spacing: -.02em; color: var(--next-white); text-transform: none; text-wrap: balance; }
.nx-gd .nx-gd-sub { margin: 0; max-width: 62ch; font: 400 18px/1.55 var(--next-font-head); color: #C9C9CC; }
.nx-gd-prog { display: grid; grid-template-columns: repeat(var(--nx-n, 9), minmax(0, 1fr)); gap: 4px; margin-top: 32px; }
.nx-gd-prog a { display: block; padding: 12px 6px 16px 0; border-top: 4px solid #3A3A3E; color: #8E8E94; text-decoration: none; font: 700 11px/1.3 var(--next-font-sub); letter-spacing: .06em; text-transform: uppercase; transition: color .2s, border-color .2s; }
.nx-gd-prog a b { display: block; margin-bottom: 5px; font: 700 15px/1 var(--next-font-call); }
.nx-gd-prog a:hover { color: #fff; border-top-color: #8E8E94; }
.nx-gd-prog a.done { border-top-color: #fff; color: #C9C9CC; }
.nx-gd-prog a[aria-current] { border-top-color: var(--next-red); color: #fff; }
.nx-gd-prog a[aria-current] b { color: var(--next-red); }
.nx-gd-prog a:focus-visible { outline: 3px solid var(--next-cyan); outline-offset: 2px; }

/* ── Body: reading column + rail ── */
.nx-gd-body { padding-block: clamp(48px, 6vw, 80px) clamp(56px, 7vw, 96px); }
.nx-gd-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, 27vw, 400px); gap: 0 clamp(40px, 4.5vw, 72px); align-items: start; }
.nx-gd-main { min-width: 0; max-width: 780px; }
.nx-gd-rail { position: sticky; top: var(--nx-gd-rail-top, 110px); display: grid; gap: 10px; }

/* Overview: the chapters in two columns, the button under the right one; no rail */
.nx-gd.is-ov .nx-gd-grid { grid-template-columns: 1fr; }
.nx-gd.is-ov .nx-gd-rail { display: none; }
.nx-gd.is-ov .nx-gd-main { max-width: none; }
.nx-gd-ovcols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(40px, 5vw, 80px); align-items: start; }
.nx-gd-ovlist { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--next-black); }
.nx-gd-ovlist li { margin: 0; }
.nx-gd-ovlist a { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--next-border); color: var(--next-black); text-decoration: none; }
.nx-gd-ovlist .n { font: 700 24px/1 var(--next-font-call); color: var(--next-red); }
.nx-gd-ovlist b { display: block; font: 700 18px/1.25 var(--next-font-head); transition: color .2s; }
.nx-gd-ovlist .t > span { display: block; margin-top: 4px; font: 400 14.5px/1.5 var(--next-font-head); color: var(--next-muted); }
.nx-gd-ovlist .m { font: 700 10px/1 var(--next-font-sub); letter-spacing: .16em; text-transform: uppercase; color: var(--next-muted); white-space: nowrap; }
.nx-gd-ovlist a:hover b { color: var(--next-red); }

/* YouTube: thumbnail until clicked */
.nx-gd-chhead { margin: 0 0 32px; padding-bottom: 24px; border-bottom: 3px solid var(--next-black); }
.nx-gd .nx-gd-chtitle { margin: 0; font: 700 clamp(30px, 3.2vw, 44px)/1.1 var(--next-font-head); letter-spacing: -.02em; color: var(--next-black); text-transform: none; text-wrap: balance; }
.nx-gd .nx-gd-chsub { margin: 12px 0 0; max-width: 62ch; font: 400 19px/1.55 var(--next-font-head); color: var(--next-body); }
.nx-gd-video { position: relative; display: block; aspect-ratio: 16 / 9; margin: 0 0 32px; background: #151517 center / cover no-repeat; }
.nx-gd-video .play { position: absolute; left: 50%; top: 50%; width: 84px; height: 58px; transform: translate(-50%, -50%); background: var(--next-red); clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 100%, 0 100%); }
.nx-gd-video .play::after { content: ""; position: absolute; left: 34px; top: 19px; border-left: 18px solid #000; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.nx-gd-video:hover .play { background: var(--next-red-hover); }
.nx-gd-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Chapter text */
.nx-gd-art { font: 400 17px/1.75 var(--next-font-head); color: var(--next-body); }
.nx-gd-art > *:first-child { margin-top: 0; }
.nx-gd-art p { margin: 0 0 16px; }
.nx-gd .nx-gd-art h4 { margin: 40px 0 12px; font: 700 clamp(22px, 2.2vw, 28px)/1.2 var(--next-font-head); color: var(--next-black); text-transform: none; letter-spacing: -.01em; scroll-margin-top: 110px; }
.nx-gd .nx-gd-art h5 { margin: 24px 0 8px; font: 700 19px/1.3 var(--next-font-head); color: var(--next-black); text-transform: none; letter-spacing: 0; }
.nx-gd-art ul, .nx-gd-art ol { margin: 0 0 18px; padding: 0; list-style: none; }
.nx-gd-art li { position: relative; margin: 0 0 8px; padding-left: 24px; }
.nx-gd-art li::before { content: ""; position: absolute; left: 0; top: 11px; width: 11px; height: 9px; background: var(--next-red); clip-path: polygon(0 0, 100% 0, calc(100% - 3px) 100%, 0 100%); }
.nx-gd-art a { color: var(--next-black); font-weight: 500; text-decoration: underline; text-decoration-color: var(--next-red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.nx-gd-art a:hover { color: var(--next-red); }
.nx-gd-art figure { margin: 28px 0; }
.nx-gd-art img { display: block; max-width: 100%; height: auto; }
.nx-gd-art .cap, .nx-gd-art figcaption { margin: 8px 0 0; font: 400 14px/1.45 var(--next-font-head); color: var(--next-muted); }
.nx-gd-art hr { margin: 28px 0; border: 0; border-top: 1px solid var(--next-border); }

/* Closing note */
.nx-gd-close { margin-top: 36px; padding: 24px 26px; background: var(--next-tint); border-left: 4px solid var(--next-red); }
.nx-gd .nx-gd-closeh { margin: 0 0 8px; font: 700 21px/1.25 var(--next-font-head); color: var(--next-black); text-transform: none; letter-spacing: 0; }
.nx-gd-close .txt p { margin: 0 0 10px; font: 400 16px/1.6 var(--next-font-head); }
.nx-gd-close .txt p:last-child { margin-bottom: 0; }

/* Next chapter card */
.nx-gd-next { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 48px; background: var(--next-black); color: #fff; text-decoration: none; }
.nx-gd-next figure { margin: 0; min-height: 230px; overflow: hidden; background: #151517; }
.nx-gd-next img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.nx-gd-next:hover img { transform: scale(1.04); }
.nx-gd-next .body { display: grid; align-content: center; gap: 10px; padding: 30px 34px; }
.nx-gd-next small { font: 700 11px/1 var(--next-font-sub); letter-spacing: .2em; text-transform: uppercase; color: var(--next-red); }
.nx-gd-next b { font: 700 26px/1.2 var(--next-font-head); }
.nx-gd-next .body > span { font: 400 15px/1.5 var(--next-font-head); color: #C9C9CC; }
.nx-gd-next:focus-visible { outline: 3px solid var(--next-cyan); outline-offset: 3px; }

/* Rail */
.nx-gd-railset { display: grid; gap: 10px; }
.nx-gd-otp { padding: 16px 22px; border-left: 4px solid var(--next-black); background: var(--next-white); }
.nx-gd-otp p { margin: 0 0 6px; font: 700 11px/1 var(--next-font-sub); letter-spacing: .2em; text-transform: uppercase; color: var(--next-red); }
.nx-gd-otp a { display: block; padding: 3px 0; color: var(--next-body); text-decoration: none; font: 500 14px/1.35 var(--next-font-head); transition: color .2s; }
.nx-gd-otp a:hover, .nx-gd-otp a.on { color: var(--next-black); font-weight: 700; }
.nx-gd-take { padding: 18px 22px; background: var(--next-cyan); color: #000; }
.nx-gd-take b { display: block; margin-bottom: 8px; font: 700 11px/1 var(--next-font-sub); letter-spacing: .2em; text-transform: uppercase; }
.nx-gd-take p { margin: 0; font: 400 15px/1.55 var(--next-font-head); }
.nx-gd-quote { display: grid; gap: 8px; justify-items: start; padding: 18px 22px; background: var(--next-black); color: #fff; }
.nx-gd-quote > b { font: 700 18px/1.25 var(--next-font-head); }
.nx-gd-quote p { margin: 0; font: 400 14px/1.5 var(--next-font-head); color: #C9C9CC; }
.nx-gd-btn { display: inline-flex; align-items: stretch; height: 50px; text-decoration: none; }
.nx-gd-btn .btn-label { display: flex; align-items: center; padding: 0 34px 0 20px; background: var(--next-red); color: var(--next-black); font: 700 13px/1 var(--next-font-call); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; clip-path: polygon(0 0, 100% 0, calc(100% - 17px) 100%, 0 100%); }
.nx-gd-btn .btn-arrow { width: 52px; margin-left: -12px; padding-left: 12px; display: grid; place-items: center; background: var(--next-cyan); clip-path: polygon(17px 0, 100% 0, 100% 100%, 0 100%); }
.nx-gd-btn svg { width: 13px; height: 13px; fill: none; stroke: #000; stroke-width: 2.6; transition: transform .25s; }
.nx-gd-btn[href]:hover .btn-label { background: var(--next-red-hover); }
.nx-gd-btn[href]:hover svg { transform: translateX(4px); }
.nx-gd-phone { display: grid; gap: 3px; color: #fff; text-decoration: none; }
.nx-gd-phone small { font: 700 10px/1 var(--next-font-sub); letter-spacing: .14em; text-transform: uppercase; color: #9A9AA0; }
.nx-gd-phone b { font: 700 20px/1.1 var(--next-font-call); letter-spacing: .02em; }
.nx-gd-ov .nx-gd-actions { margin-top: 26px; }

/* ── FAQ below (Global - FAQ side layout, next-faq.css); only the switching is here ── */
.nx-gd-faq { border-top: 1px solid var(--next-border); }
.nx-gd-faqset[hidden] { display: none !important; }

@media (max-width: 1100px) {
  .nx-gd-in { padding-inline: 28px; }
  .nx-gd .nx-prc-head, .nx-gd-grid { grid-template-columns: 1fr; }
  .nx-gd-rail { position: static; margin-top: 40px; }
  .nx-gd-prog { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 2px; }
  .nx-gd-ovcols { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nx-gd-next { grid-template-columns: 1fr; }
  .nx-gd-next figure { min-height: 180px; aspect-ratio: 16 / 9; }
  .nx-gd-ovlist a { grid-template-columns: 40px minmax(0, 1fr); }
  .nx-gd-ovlist .m { display: none; }
}
@media (max-width: 560px) {
  .nx-gd-in { padding-inline: 20px; }
  .nx-gd-prog { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ── Pinned bar (shown by next-guide.js once the band scrolls off, while a chapter is open) ── */
.nx-gd-stick { position: fixed; left: 0; right: 0; top: var(--nx-gd-top, 0px); z-index: 60; padding-top: 12px; padding-bottom: 10px; background: var(--next-black); transform: translateY(calc(-100% - 40px)); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
.nx-gd-stick.is-on { transform: none; visibility: visible; transition: transform .25s ease; }
/* white space between the bar and the text scrolling under it */
.nx-gd-stick::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 24px; background: linear-gradient(var(--next-white) 55%, rgba(255, 255, 255, 0)); pointer-events: none; }
.nx-gd-stick .nx-gd-in { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 8px 32px; align-items: center; }
.nx-gd .nx-gd-stick-t { margin: 0; max-width: 34ch; font: 700 18px/1.2 var(--next-font-head); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-gd-prog--mini { margin: 0; gap: 3px; }
.nx-gd-prog--mini a { padding: 8px 4px 0 0; border-top-width: 3px; font-size: 10px; }
.nx-gd-prog--mini a b { margin-bottom: 3px; font-size: 13px; }
.nx-gd-prog--mini a span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@media (max-width: 1100px) {
  .nx-gd-stick .nx-gd-in { grid-template-columns: 1fr; }
  .nx-gd-prog--mini { grid-template-columns: repeat(9, minmax(0, 1fr)); }
  .nx-gd-prog--mini a span { display: none; }
  .nx-gd-prog--mini a { padding: 6px 0 0; text-align: center; }
}

@media (prefers-reduced-motion: reduce) { .nx-gd-btn svg, .nx-gd-next img, .nx-gd-stick { transition: none; } }
