/*
 * The SEO-guide template (templates/guide-page.template.html): canvas "Stacked
 * Redesign", page "Site · SEO guide", approved 3 Nov 2026. Loaded after
 * css/bold-stack.css, which brings the kit, header and footer. Class prefix gd-.
 *
 * Phone layout at 860px, as on the rest of the site: the sticky contents list
 * becomes a collapsed "On this page", and the one action docks to the screen.
 */

.gd-wrap { max-width: 1180px; margin: 0 auto; padding-left: var(--hm-pad); padding-right: var(--hm-pad); }
.gd-main { padding-top: 28px; padding-bottom: 80px; }

.gd-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; font-weight: 500; }

.gd-head { max-width: 820px; display: flex; flex-direction: column; gap: 20px; padding: 36px 0 32px; }
.gd-h1 { font-size: clamp(40px, 5vw, 64px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; text-wrap: balance; }
.gd-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font-size: 14px; font-weight: 500; }
.gd-byline strong { font-weight: 700; }

.gd-cols { display: flex; align-items: flex-start; gap: 64px; }

/* The contents list: sticky beside the article on computers, collapsed above it on phones. */
.gd-aside { flex: 0 0 240px; position: sticky; top: 100px; display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.gd-aside ol { display: flex; flex-direction: column; gap: 10px; font-size: 14px; font-weight: 500; line-height: 1.4; }
.gd-toc-narrow { display: none; border-top: 1px solid var(--bs-hairline); border-bottom: 1px solid var(--bs-hairline); }
.gd-toc-narrow summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; font-size: 15px; font-weight: 700; cursor: pointer; list-style: none; }
.gd-toc-narrow ol { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; padding-left: 20px; list-style: decimal; font-size: 15px; font-weight: 400; }

.gd-toc-narrow summary::-webkit-details-marker, .gd-faq summary::-webkit-details-marker { display: none; }
.gd-chev { flex: 0 0 auto; color: var(--bs-teal); }
details[open] > summary > .gd-chev { transform: rotate(180deg); }

.gd-art { flex: 1 1 0; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 40px; }
/* Running copy only: a figure's demo sets its own sizes. */
.gd-sec > p, .gd-sec > ul > li, .gd-sec > ol > li, .gd-faq details p, .gd-cta > p:not(.bs-eyebrow) { font-size: 17px; font-weight: 400; line-height: 1.65; }
.gd-art h2 { font-size: clamp(26px, 2.4vw, 32px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.12; text-wrap: balance; scroll-margin-top: 96px; }
.gd-art h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }

/* The short answer: the first thing on the page. */
.gd-answer { display: flex; flex-direction: column; gap: 18px; padding: 26px 28px; border: 1px solid var(--bs-teal); border-radius: var(--bs-radius-feature); background: var(--bs-teal-advice); }
.gd-answer-text { font-size: 19px; font-weight: 500; line-height: 1.6; }
.gd-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 12px; }
.gd-facts li { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: var(--bs-radius-card); background: var(--bs-slate); font-size: 14px; font-weight: 500; line-height: 1.5; }
.gd-facts .bs-eyebrow { font-size: 10.5px; }

/* A section. Lists are real lists here (the kit resets them), except inside a figure, where a demo's list keeps its own layout. */
.gd-sec { display: flex; flex-direction: column; gap: 16px; padding-top: 44px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.gd-sec > p.gd-num { font-size: 13px; font-weight: 700; line-height: 1.3; letter-spacing: 0.15em; text-transform: uppercase; color: var(--bs-teal); }
.gd-sec ul:where(:not(.gd-fig *)), .gd-sec ol:where(:not(.gd-fig *)) { display: flex; flex-direction: column; gap: 8px; padding-left: 22px; list-style: disc; }
.gd-sec ol:where(:not(.gd-fig *)) { list-style: decimal; }
.gd-sec > p.gd-small { font-size: 15px; }
.gd-sec > p.gd-swipe { display: none; font-size: 13px; font-weight: 500; }

/* A figure: a still screen, or one beat of a demo. */
.gd-fig { margin: 8px 0 0; display: flex; flex-direction: column; gap: 12px; }
.gd-fig figcaption { text-align: center; font-size: 13px; font-weight: 500; line-height: 1.5; }

/* A product page's still (css/product-page.css): the figure sets its width. */
.gd-fig .px-rec { flex: none; align-self: center; width: 100%; max-width: 560px; }

.gd-fig .gp { align-self: center; }
.gd-screen { width: 100%; max-width: 560px; align-self: center; overflow: hidden; background: var(--bs-surface); border: 1px solid var(--bs-hairline); border-radius: 18px; }

/* One beat of the buy demo, held (the design's SiteDemoBuy modes 2, 3 and 4), as one gold phone at
   every width: a still of the recording, either the Buy screen or the wallet once the sats have arrived. */
.bd--cut, .bd--cut * { animation: none !important; }
.bd--cut .bd-stage { display: flex; width: 100%; height: auto; }
.bd--cut .gp { --gp-n: 272; position: relative; }

/* A whole demo as a figure, at the width it has in a hero. */
.gd-fig .bd:not(.bd--cut) { max-width: 520px; margin-inline: auto; }

/* Tables keep their width and scroll sideways inside their own frame. */
.gd-table-wrap { overflow: hidden; border: 1px solid var(--bs-hairline); border-radius: var(--bs-radius-card); }
.gd-table { width: 100%; min-width: 640px; border-collapse: collapse; }
.gd-table--narrow { min-width: 0; }
.gd-table--mid { min-width: 480px; }
.gd-table-scroll { overflow-x: auto; }
.gd-table-note { padding: 12px 14px; font-size: 12px; font-weight: 500; line-height: 1.5; }
.gd-table th, .gd-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(255, 255, 255, 0.07); font-size: 14px; line-height: 1.5; }
.gd-table th { font-weight: 700; }
.gd-table td { font-weight: 500; }
.gd-table thead tr, .gd-table .gd-row-source { background: var(--bs-surface); }
.gd-table thead th:first-child { width: 22%; }
.gd-table .gd-row-total { background: var(--bs-teal-wash); }
.gd-table .gd-row-total td { font-weight: 800; }
.gd-table .gd-free { color: var(--bs-teal); font-weight: 700; }

/* FAQs. */
.gd-faq { display: flex; flex-direction: column; border-top: 1px solid var(--bs-hairline); }
.gd-faq details { border-bottom: 1px solid var(--bs-hairline); }
.gd-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 12px 0; font-size: 17px; font-weight: 700; cursor: pointer; list-style: none; }
.gd-faq details p { margin-bottom: 18px; }

/* The one action. */
.gd-cta { display: flex; flex-direction: column; gap: 16px; padding: 28px; border: 1px solid var(--bs-hairline); border-radius: var(--bs-radius-feature); background: var(--bs-surface); }
.gd-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.gd-cta-row .bs-pill { width: auto; padding: 0 30px; font-size: 16px; }
/* A wallet guide's action on a computer: the QR code and the stores' badges (the final card's parts). */
.gd-get { display: flex; align-items: center; gap: 20px; }
.gd-get-copy { display: flex; flex-direction: column; gap: 12px; }
.gd-get-note { font-size: 14px; font-weight: 500; line-height: 1.5; }
.gd-cta > p.gd-risk { font-size: 14px; font-weight: 500; line-height: 1.55; }

.gd-sources, .gd-related { display: flex; flex-direction: column; gap: 12px; }
.gd-art .gd-sources h2, .gd-art .gd-related h2 { font-size: 20px; }
.gd-sources ul { display: flex; flex-direction: column; gap: 6px; padding-left: 20px; list-style: disc; }
.gd-sources li { font-size: 14px; line-height: 1.6; }
.gd-related div { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 15px; font-weight: 500; }

/* Phones: the dock slides in once the first screen has gone by. With no scroll-driven animations,
   it's simply there. */
.gd-dock { transform: none; visibility: visible; transition: none; }
@supports (animation-timeline: scroll()) {
  .gd-dock { animation: gdDock linear both; animation-timeline: scroll(nearest); animation-range: 560px 660px; }
}
@keyframes gdDock { from { opacity: 0; transform: translateY(100%); visibility: hidden; } to { opacity: 1; transform: none; visibility: visible; } }
@keyframes gdDockFade { from { opacity: 0; visibility: hidden; } to { opacity: 1; visibility: visible; } }
@media (prefers-reduced-motion: reduce) {
  .gd-dock { animation-name: gdDockFade; }
}

@media (max-width: 860px) {
  .gd-cols { flex-direction: column; align-items: stretch; gap: 0; }
  .gd-aside { display: none; }
  .gd-art { width: 100%; max-width: none; }
  .gd-toc-narrow { display: block; }
  .gd-sec > p, .gd-sec > ul > li, .gd-sec > ol > li, .gd-faq details p, .gd-cta > p:not(.bs-eyebrow) { font-size: 16px; }
  .gd-sec > p.gd-swipe { display: block; }
  .gd-answer { padding: 22px 20px; }
  .gd-cta { padding: 24px 20px; }
  .gd-cta-row .bs-pill { width: 100%; }
}
