/* ============================================================
   Support guides — the shared look for rebuilt support articles.
   Loaded after support.css on each guide page:
     <main class="gd" id="main-content"> … </main>
   Blocks: .gd-hero, .gd-sec (+ .gd-alt for a tinted band), .gd-h2,
   .gd-sub, .gd-cards, .gd-split, .gd-steps, .gd-list, .gd-note,
   .gd-table, .gd-faq, .gd-end. Phones are framed 632×1317 images.
   ============================================================ */

.gd { display: block; }
.gd .wrap { max-width: 1120px; }
.breadcrumbs { max-width: 1120px; }
.gd b, .gd strong { font-weight: 600; color: var(--ink); }
.gd a:not(.dl-badge):not(.gd-more) { color: var(--accent); }
.gd code { font-family: 'JetBrains Mono', monospace; font-size: .88em; padding: 1px 6px; border-radius: 6px; background: var(--bg-soft); color: var(--ink); }
.gd-alt code { background: #fff; }
.gd .mono { font-family: 'JetBrains Mono', monospace; }

/* Headings */
.gd-h2 { margin: 0 0 14px; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.gd-sub { margin: 0 0 32px; max-width: 58ch; font-size: 17px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.gd-kicker { display: block; margin-bottom: 10px; font-family: 'JetBrains Mono', monospace; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }

/* Hero */
.gd-hero { padding: 40px 0 64px; }
.gd-hero h1 { margin: 14px 0 0; max-width: 17ch; font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -.045em; text-wrap: balance; }
.gd-hero .lede { margin: 22px 0 0; max-width: 48ch; font-size: 19px; }
.gd-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.gd-hero-grid .gd-phone { max-width: 270px; }
.gd-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 36px; }
.gd-quick a { display: block; padding: 18px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--rule); text-decoration: none; color: var(--ink) !important; transition: border-color .15s ease; }
.gd-quick a:hover { border-color: var(--accent); }
.gd-quick b { display: block; font-size: 16px; }
.gd-quick span { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-mute); }

/* Sections */
.gd-sec { padding: 88px 0; scroll-margin-top: 70px; }
.gd-sec[id], .gd-h2[id] { scroll-margin-top: 90px; }
.gd-alt { background: var(--bg-soft); }

/* Cards */
.gd-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gd-cards.two { grid-template-columns: repeat(2, 1fr); }
.gd-cards.four { grid-template-columns: repeat(4, 1fr); }
.gd-card { padding: 26px; border-radius: 22px; background: #fff; border: 1px solid var(--rule); }
.gd-card.is-key { background: var(--accent); border-color: var(--accent); color: #fff; }
.gd-card.is-key h3, .gd-card.is-key b { color: #fff; }
.gd-card.is-key p, .gd-card.is-key li { color: #E3E9FC; }
.gd-card.is-key .gd-kicker { color: #C9D6FA; }
.gd-card h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.02em; }
.gd-card p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.gd-card p + p { margin-top: 10px; }
.gd-card .gd-list { margin-top: 12px; }
.gd-card.is-key .gd-list li::before { color: #fff; }

/* Text beside a phone */
.gd-split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.gd-split.rev > :first-child { order: 2; }
.gd-split + .gd-split { margin-top: 80px; }
.gd-phone { margin: 0 auto; max-width: 280px; filter: drop-shadow(0 24px 40px rgba(20,21,24,.14)); }
.gd-phone img { display: block; width: 100%; height: auto; }
.gd-phone figcaption { margin-top: 12px; text-align: center; font-size: 13.5px; color: var(--ink-mute); filter: none; }
.gd-wide { margin: 0 auto; max-width: 760px; }
.gd-wide img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 30px 60px rgba(0,0,0,.12); }

/* Numbered steps: plain, or with a phone above each (.with-phones) */
.gd-steps { margin: 0; padding: 0; list-style: none; counter-reset: gds; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gd-steps.two { grid-template-columns: repeat(2, 1fr); }
.gd-steps.four { grid-template-columns: repeat(4, 1fr); }
.gd-steps > li { counter-increment: gds; padding: 24px; border-radius: 22px; background: #fff; border: 1px solid var(--rule); }
.gd-steps > li::before { content: counter(gds); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 14px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.gd-steps h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.02em; }
.gd-steps p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.gd-steps.with-phones > li { padding: 0; background: none; border: 0; }
.gd-steps.with-phones > li::before { display: none; }
.gd-steps.with-phones figure { margin: 0 auto 22px; max-width: 240px; filter: drop-shadow(0 24px 40px rgba(20,21,24,.14)); }
.gd-steps.with-phones img { display: block; width: 100%; height: auto; }
.gd-steps.with-phones h3::before { content: counter(gds) "  "; color: var(--accent); white-space: pre; }

/* Ticked list, and ordered path list (Settings → …) */
.gd-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.gd-list li { position: relative; padding-left: 28px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.gd-list li::before { content: "✓"; position: absolute; left: 2px; color: var(--accent); font-weight: 700; }
.gd-list.no li::before { content: "—"; color: var(--ink-mute); }
.gd-list.dots li::before { content: "•"; left: 8px; }
.gd-path { margin: 0; padding: 0; list-style: none; counter-reset: gdp; display: grid; gap: 10px; }
.gd-path li { counter-increment: gdp; position: relative; padding-left: 36px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.gd-path li::before { content: counter(gdp); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 700; }

/* Callout */
.gd-note { margin: 28px 0 0; padding: 18px 22px; border-radius: 16px; background: var(--accent-soft); font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.gd-note.warn { background: #FFF4E5; }
.gd-note b:first-child { margin-right: 4px; }

/* Table */
.gd-table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; border-radius: 18px; overflow: hidden; }
.gd-table th { padding: 14px 16px; text-align: left; font-size: 12.5px; font-weight: 600; color: var(--ink-mute); }
.gd-table td { padding: 13px 16px; border-top: 1px solid var(--rule); vertical-align: top; color: var(--ink-2); }
.gd-table td:first-child { font-weight: 600; color: var(--ink); }
.gd-table small { display: block; font-size: 12.5px; color: var(--ink-mute); }

/* FAQ */
.gd-faq .faq-list { max-width: 820px; margin: 0; }
.gd-faq .faq-item { padding: 20px 0; }
.gd-faq .faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--ink); }
.gd-faq .faq-item summary::-webkit-details-marker { display: none; }
.gd-faq .faq-item summary::after { content: '+'; font-family: 'JetBrains Mono', monospace; }
.gd-faq .faq-item[open] summary::after { content: '−'; color: var(--accent-deep); }
.gd-faq .faq-body { margin-top: 10px; max-width: 70ch; line-height: 1.6; }

/* End box */
.gd-end { padding: 0 0 90px; }
.gd-end-box { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; padding: 40px 44px; border-radius: 28px; background: var(--night); color: #fff; }
.gd-end h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); line-height: 1.1; letter-spacing: -.03em; color: #fff; }
.gd-end h2 span { color: var(--ink-mute-dark); }
.gd-end p { margin: 12px 0 0; font-size: 15.5px; color: var(--ink-mute-dark); }
.gd-end-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; justify-self: end; }
.gd-more { color: #fff; font-weight: 500; text-decoration: none; }
.gd-more:hover { text-decoration: underline; }

.gd-cards > *, .gd-split > *, .gd-hero-grid > *, .gd-steps > *, .gd-end-box > * { min-width: 0; }

@media (max-width: 900px) {
  .gd-hero-grid, .gd-split, .gd-end-box { grid-template-columns: 1fr; }
  .gd-split.rev > :first-child { order: 0; }
  .gd-cards, .gd-cards.four, .gd-steps, .gd-steps.four { grid-template-columns: 1fr 1fr; }
  .gd-steps.with-phones { grid-template-columns: 1fr; gap: 56px; }
  .gd-end-cta { justify-self: start; }
}
@media (max-width: 600px) {
  .gd-hero { padding-top: 24px; }
  .gd-cards, .gd-cards.two, .gd-cards.four, .gd-steps, .gd-steps.two, .gd-steps.four { grid-template-columns: 1fr; }
  .gd-sec { padding: 64px 0; }
  .gd-end-box { padding: 30px 22px; }
  .gd-table { font-size: 14px; }
  .gd-table th, .gd-table td { padding: 11px 10px; }
}

/* Section jump bar (FAQ) */
.gd-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.gd-jump a { padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--rule-2); font-size: 15px; font-weight: 500; color: var(--ink) !important; text-decoration: none; transition: border-color .15s ease; }
.gd-jump a:hover { border-color: var(--accent); }
