/* Research-backed migration guides. Builds on /studio-luxury.css and /migrate/migrate.css tokens. */
.gd-hero { position: relative; padding: 80px 0 56px; overflow: hidden; border-bottom: 1px solid var(--border-dark); }
.gd-hero .container { position: relative; z-index: 2; }
.gd-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--text-dim); margin-bottom: 22px; }
.gd-crumbs a:hover { color: var(--emerald-accent); }
.gd-kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; color: var(--emerald-accent); margin-bottom: 14px; text-transform: uppercase; }
.gd-title { font-size: clamp(36px, 4.6vw, 62px); font-weight: 800; line-height: 1.06; letter-spacing: -0.035em; color: #fff; max-width: 20ch; text-wrap: balance; margin-bottom: 20px; }
.gd-dek { font-size: 19px; color: var(--text-muted); max-width: 66ch; line-height: 1.65; }
.gd-byline { margin-top: 22px; font: 400 13px var(--font-mono); color: var(--text-dim); }

.gd-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.gd-stat { background: var(--bg-card); border: 1px solid var(--border-dark); border-radius: 16px; padding: 22px; display: grid; gap: 8px; align-content: start; }
.gd-stat b { font: 700 34px/1 var(--font-mono); color: #fff; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.gd-stat b.bad { color: #ff9f90; }
.gd-stat b.good { color: var(--emerald-accent); }
.gd-stat span { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.gd-stat small { font-size: 12px; color: var(--text-dim); }

.gd-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding: 64px 0 96px; align-items: start; }
.gd-toc { position: sticky; top: 96px; font-size: 14px; }
.gd-toc p { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: var(--text-dim); text-transform: uppercase; margin-bottom: 12px; }
.gd-toc ol { list-style: none; display: grid; gap: 4px; }
.gd-toc a { display: block; padding: 6px 0 6px 12px; border-left: 2px solid var(--border-dark); color: var(--text-muted); }
.gd-toc a:hover { color: #fff; border-color: var(--emerald-accent); }
.gd-toc .gd-toc-cta { margin-top: 24px; display: inline-flex; }

.gd-body { max-width: 760px; min-width: 0; }
.gd-body > section { padding-top: 12px; margin-bottom: 56px; scroll-margin-top: 96px; }
.gd-body h2 { font-size: clamp(26px, 2.8vw, 36px); font-weight: 800; letter-spacing: -0.025em; color: #fff; line-height: 1.15; margin-bottom: 18px; text-wrap: balance; }
.gd-body h3 { font-size: 19px; font-weight: 700; color: #fff; margin: 30px 0 10px; }
.gd-body p { color: var(--text-muted); font-size: 17px; line-height: 1.78; margin-bottom: 16px; }
.gd-body p strong, .gd-body li strong { color: var(--text-main); font-weight: 600; }
.gd-body ul, .gd-body ol.gd-list { color: var(--text-muted); font-size: 17px; line-height: 1.7; padding-left: 22px; margin-bottom: 18px; display: grid; gap: 8px; }
.gd-body a:not(.btn-primary):not(.btn-outline) { color: var(--emerald-accent); text-decoration: underline; text-decoration-color: rgba(45, 226, 166, 0.35); text-underline-offset: 3px; }
.gd-body a:not(.btn-primary):not(.btn-outline):hover { text-decoration-color: var(--emerald-accent); }
sup.cite { font: 500 11px var(--font-mono); margin-left: 2px; }
sup.cite a { text-decoration: none !important; padding: 0 2px; border-radius: 4px; background: rgba(45, 226, 166, 0.1); }

.gd-callout { border: 1px solid var(--border-light); background: var(--bg-card); border-radius: 16px; padding: 22px 24px; margin: 24px 0; }
.gd-callout.shopify { border-color: rgba(45, 226, 166, 0.3); background: linear-gradient(180deg, rgba(45, 226, 166, 0.06), rgba(45, 226, 166, 0.01)); }
.gd-callout.warn { border-color: rgba(229, 192, 123, 0.3); background: rgba(229, 192, 123, 0.05); }
.gd-callout h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--emerald-accent); margin-bottom: 8px; }
.gd-callout.warn h4 { color: var(--gold-accent); }
.gd-callout p:last-child, .gd-callout ul:last-child { margin-bottom: 0; }

.gd-table-wrap { overflow-x: auto; margin: 22px 0 26px; border: 1px solid var(--border-dark); border-radius: 14px; background: var(--bg-card); }
.gd-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.gd-table th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); padding: 14px 16px; border-bottom: 1px solid var(--border-light); background: rgba(0, 0, 0, 0.15); }
.gd-table td { padding: 13px 16px; border-bottom: 1px solid var(--border-dark); color: var(--text-muted); vertical-align: top; line-height: 1.55; }
.gd-table tr:last-child td { border-bottom: 0; }
.gd-table td:first-child { color: #fff; font-weight: 600; }
.gd-table td.num { font-family: var(--font-mono); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gd-table td.yes { color: var(--emerald-accent); }
.gd-table td.no { color: #ff9f90; }
.gd-table td.part { color: var(--gold-accent); }
.gd-caption { font-size: 13px; color: var(--text-dim); margin-top: -14px; margin-bottom: 24px; }

.gd-bars { display: grid; gap: 14px; margin: 22px 0 10px; }
.gd-bar { display: grid; grid-template-columns: 130px minmax(0, 1fr) 64px; gap: 14px; align-items: center; font-size: 14px; }
.gd-bar span:first-child { color: #fff; font-weight: 600; }
.gd-bar i { display: block; height: 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.gd-bar i em { display: block; height: 100%; border-radius: 12px; background: var(--text-dim); }
.gd-bar.hl i em { background: var(--emerald-accent); }
.gd-bar.lo i em { background: #ff8a7a; }
.gd-bar b { font: 600 14px var(--font-mono); color: #fff; text-align: right; font-variant-numeric: tabular-nums; }

.gd-offer { margin: 36px 0; border-radius: 20px; border: 1px solid rgba(45, 226, 166, 0.35); background: radial-gradient(120% 140% at 100% 0%, rgba(45, 226, 166, 0.14), rgba(15, 37, 33, 0.9) 55%); padding: 30px; display: grid; gap: 18px; }
.gd-offer h3 { margin: 0; font-size: 24px; letter-spacing: -0.02em; }
.gd-offer ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin: 0; font-size: 15px; }
.gd-offer li { display: flex; gap: 10px; color: var(--text-main); }
.gd-offer li::before { content: "✓"; color: var(--emerald-accent); font-weight: 700; }
.gd-offer-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.gd-offer-actions small { color: var(--text-dim); font-size: 13px; }

.gd-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.gd-related a { display: grid; gap: 6px; padding: 20px; border-radius: 16px; background: var(--bg-card); border: 1px solid var(--border-dark); text-decoration: none !important; }
.gd-related a:hover { border-color: rgba(45, 226, 166, 0.4); }
.gd-related strong { color: #fff; font-size: 16px; }
.gd-related span { color: var(--text-muted) !important; font-size: 14px; line-height: 1.5; }

.gd-sources { border-top: 1px solid var(--border-dark); padding-top: 28px; }
.gd-sources h2 { font-size: 22px !important; }
.gd-sources ol { list-style: none; padding: 0 !important; counter-reset: src; gap: 12px !important; }
.gd-sources li { counter-increment: src; display: grid; grid-template-columns: 34px minmax(0, 1fr); font-size: 14px !important; line-height: 1.6; color: var(--text-muted); scroll-margin-top: 110px; }
.gd-sources li::before { content: "[" counter(src) "]"; font: 500 12px var(--font-mono); color: var(--emerald-accent); padding-top: 2px; }
.gd-sources li:target { background: rgba(45, 226, 166, 0.07); border-radius: 8px; }
.gd-sources .note { font-size: 13px; color: var(--text-dim); margin-top: 18px; }
.gd-flag { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 100px; border: 1px solid var(--border-light); color: var(--text-dim); margin-left: 4px; white-space: nowrap; }

/* Checklist */
.ck-progress { position: sticky; top: 74px; z-index: 5; background: rgba(9, 26, 23, 0.92); backdrop-filter: blur(10px); border: 1px solid var(--border-dark); border-radius: 14px; padding: 14px 18px; display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.ck-progress i { flex: 1; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.ck-progress i em { display: block; height: 100%; width: 0; background: var(--emerald-accent); transition: width 0.25s; }
.ck-progress b { font: 600 14px var(--font-mono); color: #fff; min-width: 72px; text-align: right; }
.ck-progress button { background: none; border: 1px solid var(--border-light); color: var(--text-muted); border-radius: 100px; padding: 6px 12px; font: 500 12px var(--font-sans); cursor: pointer; }
.ck-group { list-style: none; padding: 0 !important; display: grid; gap: 8px !important; }
.ck-item label { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; padding: 14px 16px; border-radius: 12px; background: var(--bg-card); border: 1px solid var(--border-dark); cursor: pointer; }
.ck-item input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--emerald-accent); }
.ck-item strong { display: block; color: #fff; font-size: 15px; font-weight: 600; }
.ck-item span { display: block; color: var(--text-muted); font-size: 14px; line-height: 1.55; margin-top: 2px; }
.ck-item input:checked + div strong { color: var(--text-dim); text-decoration: line-through; }
.ck-item input:focus-visible { outline: 2px solid var(--emerald-accent); outline-offset: 2px; }

@media (max-width: 1080px) {
  .gd-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .gd-toc { position: static; }
  .gd-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gd-related { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .gd-hero { padding: 48px 0 40px; }
  .gd-stats, .gd-offer ul, .gd-toc ol { grid-template-columns: minmax(0, 1fr); }
  .gd-bar { grid-template-columns: 96px minmax(0, 1fr) 56px; gap: 10px; }
  .gd-offer { padding: 22px; }
  .gd-body p, .gd-body ul { font-size: 16px; }
  .ck-progress { top: 64px; }
}

/* In-brief block: short, self-contained, citable sentences at the top of each guide */
.gd-brief { border: 1px solid rgba(45, 226, 166, 0.3); border-radius: 16px; background: linear-gradient(180deg, rgba(45, 226, 166, 0.07), rgba(45, 226, 166, 0.015)); padding: 22px 24px; margin: 0 0 40px; }
.gd-brief h2 { font-size: 12px !important; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--emerald-accent); margin: 0 0 12px !important; }
.gd-brief ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 16px; line-height: 1.65; color: var(--text-main); }
.gd-brief li::marker { color: var(--emerald-accent); }
