/* ============================================================
   guides.css: shared layout for the Guides pages
   (What is PGI, How do I apply, What is covered, Insolvency, NAICS lookup).
   Uses ds.css tokens only. Same section/width pattern as the home page:
   section padding var(--section-y) var(--gutter), inner max-width var(--container-max).
   ============================================================ */

.gd-section { padding: var(--section-y) var(--gutter); }
.gd-section--tight { padding: var(--section-y-tight) var(--gutter); }
.gd-section--page   { background: var(--surface-page); }
.gd-section--card   { background: var(--surface-card); }
.gd-section--sunken { background: var(--surface-sunken); }
.gd-section--ink    { background: var(--surface-ink); color: var(--text-inverse); }
.gd-inner { max-width: var(--container-max); margin: 0 auto; }

/* Hero: nav clearance, same width as the rest */
.gd-hero { background: var(--surface-page); padding: calc(120px + var(--section-y) / 2) var(--gutter) var(--section-y-tight); }

.gd-breadcrumb { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 18px; font-size: 13.5px; color: var(--text-muted); }
.gd-breadcrumb a { color: var(--text-muted); }
.gd-breadcrumb a:hover { text-decoration: underline; }

.gd-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: var(--font-body); font-weight: 600; font-size: var(--fs-eyebrow); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--text-secondary); }
.gd-eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--accent); flex-shrink: 0; }
.gd-section--ink .gd-eyebrow { color: var(--text-inverse-muted); }

.gd-h1 { margin: 0 0 18px; font-size: var(--fs-h1); line-height: 1.08; }
.gd-h2 { margin: 0 0 14px; font-size: var(--fs-h2); line-height: 1.12; }
.gd-h3 { margin: 0 0 8px; font-size: var(--fs-h3); line-height: 1.2; }
.gd-section--ink .gd-h2, .gd-section--ink .gd-h3, .gd-section--ink strong { color: var(--text-inverse); }

.gd-lead { margin: 0 0 20px; font-size: var(--fs-lead); line-height: 1.55; color: var(--text-secondary); max-width: 62ch; }
.gd-p { margin: 0 0 16px; font-size: var(--fs-body); line-height: 1.7; color: var(--text-secondary); }
.gd-p:last-child { margin-bottom: 0; }
.gd-p a, .gd-lead a, .gd-li a { text-decoration: underline; text-underline-offset: 2px; }
.gd-section--ink .gd-lead, .gd-section--ink .gd-p, .gd-section--ink .gd-li { color: var(--text-inverse-muted); }
.gd-section--ink a { color: var(--text-inverse); }

.gd-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

/* Grids */
.gd-cols { display: grid; gap: clamp(28px, 5vw, 72px); align-items: start; }
.gd-cols--2 { grid-template-columns: 1fr 1fr; }
.gd-cols--wide-left { grid-template-columns: 1.15fr 0.85fr; }
.gd-cols--wide-right { grid-template-columns: 0.85fr 1.15fr; }
.gd-cols--center { align-items: center; }
.gd-grid { display: grid; gap: 18px; }
.gd-grid--3 { grid-template-columns: repeat(3, 1fr); }
.gd-grid--4 { grid-template-columns: repeat(4, 1fr); }
.gd-grid--2 { grid-template-columns: repeat(2, 1fr); }
.gd-mt { margin-top: var(--space-10); }

/* Bullet list with lime tick */
.gd-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.gd-li { position: relative; padding-left: 30px; font-size: var(--fs-body); line-height: 1.6; color: var(--text-secondary); }
.gd-li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); }
.gd-li::after { content: ""; position: absolute; left: 5px; top: calc(0.42em + 3px); width: 5px; height: 8px; border: solid #1d2933; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.gd-li strong { color: var(--text-primary); }
.gd-section--ink .gd-li strong { color: var(--text-inverse); }

/* Numbered steps */
.gd-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; counter-reset: gd; }
.gd-step { counter-increment: gd; position: relative; padding-left: 48px; font-size: var(--fs-body); line-height: 1.6; color: var(--text-secondary); }
.gd-step::before { content: counter(gd); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: #1d2933; color: #b2e41b; font-family: var(--font-display); font-weight: 600; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.gd-step strong { display: block; color: var(--text-primary); font-size: 18px; margin-bottom: 2px; }
.gd-section--ink .gd-step { color: var(--text-inverse-muted); }
.gd-section--ink .gd-step::before { background: #b2e41b; color: #1d2933; }
.gd-section--ink .gd-step strong { color: var(--text-inverse); }

/* Factoids */
.gd-facts { display: grid; gap: 16px; }
.gd-fact { padding: 22px 24px; border-radius: var(--radius-lg); background: var(--surface-card); border: 1px solid var(--border-default); }
.gd-section--card .gd-fact { background: var(--surface-page); }
.gd-section--ink .gd-fact { background: var(--surface-ink-soft); border-color: rgba(238, 236, 227, 0.16); }
.gd-fact__fig { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 1.5rem + 1.8vw, 2.9rem); line-height: 1.05; color: var(--text-primary); letter-spacing: -0.01em; }
.gd-fact__fig--sm { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.15; }
.gd-fact__txt { display: block; margin-top: 8px; font-size: 15.5px; line-height: 1.5; color: var(--text-secondary); }
.gd-section--ink .gd-fact__fig { color: var(--accent); }
.gd-section--ink .gd-fact__txt { color: var(--text-inverse-muted); }
.gd-fact--accent { border-color: var(--accent); }

/* Cards */
.gd-card { padding: 24px; border-radius: var(--radius-lg); background: var(--surface-card); border: 1px solid var(--border-default); height: 100%; }
.gd-section--card .gd-card { background: var(--surface-page); }
.gd-section--ink .gd-card { background: var(--surface-ink-soft); border-color: rgba(238, 236, 227, 0.16); }
.gd-card .gd-p { font-size: 16px; }
.gd-card__num { display: block; font-family: var(--font-display); font-weight: 600; font-size: 2.2rem; line-height: 1; color: var(--text-primary); }
.gd-card__bar { display: block; width: 34px; height: 2px; background: var(--accent); margin: 14px 0; }

/* Callout (quick answer) */
.gd-callout { padding: 26px 30px; border-radius: var(--radius-lg); background: var(--accent-soft); border: 1px solid var(--accent); }
:root[data-theme="dark"] .gd-callout { background: var(--surface-ink-soft); }
.gd-callout__label { display: block; margin-bottom: 8px; font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--accent-text); }
.gd-callout p { margin: 0; font-size: 18px; line-height: 1.65; color: var(--text-primary); }
:root:not([data-theme="dark"]) .gd-callout p { color: #1d2933; }
:root:not([data-theme="dark"]) .gd-callout__label { color: #1d2933; }

/* Related links */
.gd-link { display: block; padding: 18px 22px; border-radius: var(--radius-lg); background: var(--surface-card); border: 1px solid var(--border-default); transition: transform var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard); height: 100%; }
.gd-section--card .gd-link { background: var(--surface-page); }
.gd-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.gd-link__label { display: block; font-weight: 600; font-size: 16.5px; color: var(--text-primary); }
.gd-link__note { display: block; margin-top: 5px; font-size: 14.5px; line-height: 1.55; color: var(--text-secondary); }

/* FAQ in a wide section */
.gd-faq { max-width: none; }

/* CTA band (ink) */
.gd-cta { position: relative; overflow: hidden; background: var(--surface-ink); padding: var(--section-y) var(--gutter); }
.gd-cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; pointer-events: none; }
.gd-cta .gd-inner { position: relative; }
.gd-cta .gd-h2 { color: var(--text-inverse); max-width: 28ch; }
.gd-cta .gd-lead { color: var(--text-inverse-muted); }
.gd-cta a:not(.pgi-btn) { color: inherit; text-decoration: underline; }

.gd-note { margin-top: 24px; font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.gd-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Article figure */
.gd-figure { margin: 0; }
.gd-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); }
.gd-sources { margin: 0; padding-left: 20px; font-size: 14.5px; line-height: 1.6; color: var(--text-secondary); }
.gd-sources li { margin-bottom: 6px; overflow-wrap: anywhere; }

@media (max-width: 860px) {
  .gd-cols--2, .gd-cols--wide-left, .gd-cols--wide-right { grid-template-columns: 1fr; }
  .gd-grid--3, .gd-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .gd-grid--2, .gd-grid--3, .gd-grid--4 { grid-template-columns: 1fr; }
  .gd-btns { flex-direction: column; align-items: flex-start; }
  .gd-callout { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .gd-link { transition: none; } }

/* Article pages */
.gd-h1--long { font-size: var(--fs-h1); }
.gd-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 20px; font-size: 14px; color: var(--text-muted); }
.gd-meta strong { color: var(--text-secondary); }
.gd-kicker { display: inline-block; margin-bottom: 14px; padding: 4px 12px; border-radius: var(--radius-pill); border: 1px solid var(--accent); background: var(--accent-soft); color: #1d2933; font-size: 1rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
:root[data-theme="dark"] .gd-kicker { background: transparent; color: var(--accent); }
.gd-card .gd-list { margin-top: 12px; }
.gd-card .gd-li { font-size: 15.5px; }
.gd-faq-wrap .pgi-accordion__body a { text-decoration: underline; }
.gd-pager { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.gd-disclaimer { margin: 18px 0 0; font-size: 14px; line-height: 1.6; color: var(--text-inverse-muted); }

/* Steps inside the dark CTA band */
.gd-cta .gd-step { color: var(--text-inverse-muted); }
.gd-cta .gd-step::before { background: #b2e41b; color: #1d2933; }
.gd-cta .gd-step strong { color: var(--text-inverse); }
.gd-cta .gd-p { color: var(--text-inverse-muted); }

/* Brighter text over the photo in the CTA band (paper, full strength) */
.gd-cta--bright .gd-lead, .gd-cta--bright .gd-step { color: var(--text-inverse); }
.gd-cta--bright .gd-cta__bg { opacity: 0.32; }

/* Hero heading: the page's single h1 in markup, sized as an H2 */
.gd-h1--as-h2 { margin: 0 0 20px; font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -0.01em; font-weight: 600; }
.gd-hero--features .gd-lead { margin-bottom: 0; }
.gd-hero--features .gd-btns { margin-top: 30px; }
.gd-hero--features .gd-cols { grid-template-columns: 1.05fr 0.95fr; }
.gd-hero--features { padding-top: 112px; padding-bottom: 56px; }
.gd-section[id], .gd-cta[id] { scroll-margin-top: 80px; }

/* Feature panel: ink panel, 2x2 grid, outline lime icons, thin dividers */
.gd-featurelist { padding: 4px 24px; border-radius: var(--radius-lg); background: var(--surface-ink); color: var(--text-inverse); border: 1px solid var(--border-on-ink); box-shadow: 0 24px 48px rgba(29, 41, 51, 0.18); }
.gd-featurelist__list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.gd-feature { display: block; padding: 16px 0; border-top: 1px solid var(--border-on-ink); }
.gd-feature:nth-child(-n+2) { border-top: 0; }
.gd-feature__icon { display: block; width: 28px; height: 28px; margin-bottom: 8px; color: var(--accent); }
.gd-feature__icon svg { width: 28px; height: 28px; }
.gd-feature__title { display: block; font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.25; color: var(--text-inverse); }
.gd-feature__txt { display: block; margin-top: 4px; font-size: 15.5px; line-height: 1.5; color: var(--text-inverse-muted); }
:root[data-theme="dark"] .gd-featurelist { background: var(--surface-ink-soft); border-color: rgba(178, 228, 27, 0.4); box-shadow: none; }

@media (max-width: 860px) {
  .gd-hero--features { padding-top: 104px; }
  .gd-hero--features .gd-cols { grid-template-columns: 1fr; }
  .gd-featurelist__list { grid-template-columns: 1fr; }
  .gd-feature:nth-child(2) { border-top: 1px solid var(--border-on-ink); }
}
@media (max-width: 600px) {
  .gd-featurelist { padding: 4px 20px; }
  .gd-featurelist__list { grid-template-columns: 1fr; }
  .gd-feature:nth-child(2) { border-top: 1px solid var(--border-on-ink); }
  .gd-feature { padding: 18px 0; }
  .gd-hero--features .gd-btns { flex-direction: column; align-items: stretch; }
  .gd-hero--features .gd-btns .pgi-btn { justify-content: center; }
}
.gd-mt-sm{margin-top:20px}
.gd-hero--features .gd-featurelist { align-self: center; }

/* Feature panel as a one-column sequence (rows) */
.gd-featurelist--rows .gd-featurelist__list { grid-template-columns: 1fr; }
.gd-featurelist--rows .gd-feature { display: grid; grid-template-columns: 28px 1fr; column-gap: 16px; align-items: start; }
.gd-featurelist--rows .gd-feature:nth-child(2) { border-top: 1px solid var(--border-on-ink); }
.gd-featurelist--rows .gd-feature__icon { margin-bottom: 0; }
