/* Buyer's Guide: the 12 steps in three stages, then costs, the Compass tools and key terms */

.hero--small { padding-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.hero--small h1 { font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.4rem); }

/* Jump links to each section */
.bg-jump { display: flex; flex-wrap: wrap; gap: 0.5rem; padding-block: 1rem; border-block: 1px solid var(--line); }
.bg-jump a { padding: 0.5rem 0.9rem; border: 1px solid var(--ink); color: var(--ink); font-size: 0.88rem; font-weight: 600; text-decoration: none; }
.bg-jump a:hover, .bg-jump a:focus-visible { background: var(--ink); color: var(--paper); }
@media (max-width: 40rem) {
  .bg-jump { display: grid; grid-template-columns: 1fr 1fr; }
  .bg-jump a { display: flex; align-items: center; justify-content: center; text-align: center; }
}

.bg-section { padding-top: clamp(2.5rem, 6vw, 4rem); scroll-margin-top: 1rem; }
.bg-section h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); font-weight: 400; letter-spacing: -0.01em; line-height: 1.2; }
.bg-section__intro { margin-top: 0.5rem; max-width: 40rem; color: var(--muted); }

/* Stages: the stage name on the left, its steps on the right */
.bg-stage { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 2rem; margin-top: 1.25rem; padding-block: 2rem 0.5rem; border-top: 1px solid var(--line); }
.bg-stage__title .small-label { color: var(--accent); }
.bg-stage__title h3 { margin-top: 0.3rem; font-size: 1.5rem; font-weight: 400; line-height: 1.2; }
.bg-stage__steps { display: grid; gap: 1.5rem; }
.bg-stage__steps li { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 1rem; }
.bg-stage__n { font-size: 1.6rem; font-weight: 300; line-height: 1.2; color: var(--accent); font-variant-numeric: tabular-nums; }
.bg-stage__steps h4 { margin: 0; font-size: 1.15rem; font-weight: 600; line-height: 1.35; }
.bg-stage__steps p { margin-top: 0.3rem; max-width: 44rem; color: var(--muted); }
.bg-stage + .bg-stage { margin-top: 1.5rem; }
@media (max-width: 47.99rem) {
  .bg-stage { grid-template-columns: 1fr; gap: 1.25rem; }
  .bg-stage__steps li { grid-template-columns: 2.25rem minmax(0, 1fr); gap: 0.75rem; }
  .bg-stage__n { font-size: 1.35rem; }
}

/* Cards with hairline dividers, for costs and Compass tools */
.bg-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1px; margin-top: 1.5rem; background: var(--line); border: 1px solid var(--line); }
.bg-cards div { padding: 1.25rem 1.25rem 1.4rem; background: var(--paper); }
.bg-cards h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.35; }
.bg-cards p { margin-top: 0.4rem; font-size: 0.95rem; color: var(--muted); }
.bg-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.bg-tools .calc__next { margin-top: 0; }

.bg-band { margin-top: clamp(3rem, 7vw, 5rem); padding-bottom: clamp(2.5rem, 6vw, 4rem); background: var(--soft); }
.bg-band .bg-cards div { background: #fff; }

/* Key terms in two columns on wider screens */
.bg-terms { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 0 3rem; margin-top: 1.25rem; }
.bg-terms div { padding-block: 1rem; border-top: 1px solid var(--line); }
.bg-terms dt { font-weight: 600; }
.bg-terms dd { margin-top: 0.25rem; color: var(--muted); font-size: 0.95rem; }
#terms { padding-bottom: clamp(3rem, 7vw, 5rem); }

/* The calculator links, same look as on the calculator pages */
.calc__next { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 1.1rem; border: 1px solid var(--ink); color: var(--ink); text-decoration: none; transition: background 0.15s, color 0.15s; }
.calc__next strong { display: block; font-size: 0.98rem; font-weight: 600; }
.calc__next em { display: block; margin-top: 0.15rem; font-size: 0.8rem; font-style: normal; color: var(--muted); }
.calc__next > span:last-child { font-size: 1.15rem; }
.calc__next:hover, .calc__next:focus-visible { background: var(--ink); color: var(--paper); }
.calc__next:hover em, .calc__next:focus-visible em { color: inherit; }
