/* ─── Guide Page ─────────────────────────────────────── */

/* ─── Base offset ─────────────────────────────────────── */
.guide-body { background: #000; }
.guide-body .topbar { border-bottom: 1px solid rgba(255,255,255,0.08); }
/* Push g-nav below the 32px topbar, same pattern as main .nav { top: 32px } */
.guide-body .g-nav { top: 32px; }
/* Subnav sticky offset = topbar (32px) + nav height (80px) */
.guide-body .g-subnav { top: 112px; }

/* ─── Nav (dark, transparent → solid) ────────────────── */
.g-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 80px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 60px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  color: #fff;
}
.g-nav.scrolled {
  background: rgba(0,0,0,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.g-nav-brand {
  display: flex; align-items: center; gap: 12px;
  color: #fff;
}
.g-nav-sep { color: rgba(255,255,255,0.2); font-size: 20px; font-weight: 200; }
.g-nav-page { font-size: 13px; color: rgba(255,255,255,0.45); }
.g-nav-links { display: flex; align-items: center; gap: 24px; }
.g-nav-links a { font-size: 13px; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.g-nav-links a:hover { color: #fff; }

/* ─── Hero ─────────────────────────────────────────────── */
.g-hero {
  position: relative;
  height: 50svh;
  min-height: 400px;
  margin-top: 80px;
  display: flex; align-items: center;
  overflow: hidden;
  padding-left: 60px; padding-right: 60px;
}
.g-container.g-hero-container {
  position: relative; z-index: 1;
  width: 100%;
}
.g-hero-bg {
  position: absolute; inset: 0;
  background-image: url('../../assets/build-hero-bg.jpg');
  background-size: cover;
  background-position: center 30%;
}
.g-hero-overlay {
  display: none;
}
.g-hero-content {
  position: relative; z-index: 1;
  max-width: 700px;
}
.g-hero-badge {
  display: inline-block;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}
.g-hero-title {
  font-family: var(--font);
  font-weight: 400;
  font-size: 64px;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 20px;
}
.g-hero-desc {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
  max-width: 520px;
  margin-bottom: 36px;
}
.g-hero-actions {
  display: flex; align-items: center; gap: 12px;
}

/* ─── Sub-nav (sticky, horizontal) ───────────────────── */
.g-subnav {
  position: sticky;
  top: 80px;
  z-index: 900;
  margin-top: 80px;
  background: rgba(0,0,0,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.g-subnav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 60px;
  overflow-x: auto;
  scrollbar-width: none;
}
.g-subnav-inner::-webkit-scrollbar { display: none; }
.g-subnav-inner a {
  flex-shrink: 0;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.4);
  padding: 14px 16px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.g-subnav-inner a:hover { color: rgba(255,255,255,0.8); }
.g-subnav-inner a.active { color: #fff; border-bottom-color: #fff; }

/* ─── Shared section atoms ─────────────────────────────── */
.g-section { position: relative; padding-left: 60px; padding-right: 60px; }

.g-light  { background: #fff; }
.g-dark   { background: #000; }
.g-dark2  { background: #0a0a0a; }
.g-grey   { background: var(--grey-bg); }

.g-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0;
}

.g-pad { padding-top: 100px; padding-bottom: 100px; }
.g-pad-sm { padding-top: 72px; padding-bottom: 72px; }

.g-eyebrow {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(0,0,0,0.3);
  margin-bottom: 20px;
}
.g-eyebrow-light { color: rgba(255,255,255,0.35); }

.g-title {
  font-family: var(--font);
  font-weight: 400;
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 16px;
}
.g-title-light { color: #fff; }

.g-lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--grey-2);
  max-width: 520px;
  margin-bottom: 40px;
}
.g-lead-light { color: rgba(255,255,255,0.5); }
.g-lead-note {
  display: block;
  font-size: 13px;
  color: rgba(0,0,0,0.35);
  margin-top: 8px;
  line-height: 1.5;
}
.g-lead-note-dark {
  font-size: inherit;
  color: rgba(255,255,255,0.45);
}

.g-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--grey-2);
  margin-bottom: 16px;
}
.g-body-light { color: rgba(255,255,255,0.5); }

/* ─── Split two-column layout ─────────────────────────── */
.g-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.g-split-reverse { direction: rtl; }
.g-split-reverse > * { direction: ltr; }

.g-split-text { display: flex; flex-direction: column; justify-content: center; }

.g-image-panel {
  border-radius: 16px;
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.g-image-panel-sq {
  border-radius: 16px;
  aspect-ratio: 1/1;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.g-image-panel-wide {
  border-radius: 16px;
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* ─── What you'll need ─────────────────────────────────── */
.g-needs-card {
  background: var(--grey-bg);
  border-radius: 14px;
  padding: 36px 40px;
  margin-top: 32px;
}
.g-needs-label {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(0,0,0,0.3);
  margin-bottom: 24px;
}
.g-needs-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 20px;
}
.g-needs-list li {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
}
.g-needs-note {
  font-size: 14px;
  color: var(--grey-2);
}
.g-note {
  display: block;
  font-size: 12px;
  color: rgba(0,0,0,0.35);
  margin-top: 5px;
}
.g-note a {
  color: rgba(0,0,0,0.45);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.g-note a:hover { color: var(--ink); }
.g-needs-list li.g-needs-optional {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(0,0,0,0.4);
  border-top: 1px solid rgba(0,0,0,0.14);
  padding-top: 20px;
  margin-top: 4px;
}

/* ─── Body options ─────────────────────────────────────── */
.g-body-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
}

.g-body-card {
  background: #111;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  overflow: hidden;
}
.g-body-card-img {
  aspect-ratio: 4/3;
  background-color: #1a1a1a;
  position: relative;
  overflow: hidden;
}
.g-card-slide-layer {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.9s ease, transform 0.7s ease;
  opacity: 0;
}
@media (hover: hover) and (pointer: fine) and (min-width: 1101px) {
  .g-body-card:hover .g-card-slide-layer { transform: scale(1.07); }
}
.g-card-pills {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 6px;
  z-index: 2;
  padding: 40px 20px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 100%);
}
.g-card-pills .mwm-pill {
  width: 24px;
  height: 4px;
  background: rgba(255,255,255,0.25);
}
.g-card-pills .mwm-pill.active,
.g-card-pills .mwm-pill.done {
  background: rgba(255,255,255,0.25);
}
.g-card-pills .mwm-pill-fill {
  background: rgba(255,255,255,0.9);
}
.g-card-pills .mwm-pill.active .mwm-pill-fill {
  animation-duration: 3.5s;
}
.g-body-card-text {
  padding: 24px 28px 28px;
}
.g-body-card-label {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 8px;
}
.g-body-card-title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 10px;
}
.g-body-card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}
.g-body-card-ul {
  list-style: none;
  display: flex; flex-direction: column; gap: 5px;
}
.g-body-card-ul li {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  padding-left: 14px; position: relative;
}
.g-body-card-ul li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
}

/* ─── Callout ──────────────────────────────────────────── */
.g-callout {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.15);
  border-left: 3px solid rgba(255,255,255,0.2);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin-top: 20px;
}
.g-callout-light {
  background: #FBF8F5;
  border: none;
  border-left: 3px solid #E8D5C4;
}
.g-callout-warn {
  background: rgba(226,77,37,0.08);
  border: none;
  border-left: 3px solid var(--accent);
}
.g-callout-label {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 5px;
}
.g-callout-label-dark { color: rgba(0,0,0,0.35); }
.g-callout-label-accent { color: var(--accent); }
.g-callout p {
  font-size: 14px; line-height: 1.6;
  color: rgba(255,255,255,0.5);
  margin: 0;
}
.g-callout-light p, .g-callout-warn p { color: rgba(0,0,0,0.6); }

/* ─── Mount options ─────────────────────────────────────── */
.g-mount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.g-mount-card { display: flex; flex-direction: column; }
.g-mount-img {
  border-radius: 14px;
  aspect-ratio: 4/3;
  background-color: #e8e8e8;
  background-position: center;
  margin-bottom: 18px;
  overflow: hidden;
  position: relative;
}
.g-mount-img::before {
  content: '';
  position: absolute; inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: inherit;
  transition: transform 0.7s ease;
}
@media (hover: hover) and (pointer: fine) and (min-width: 1101px) {
  .g-mount-card:hover .g-mount-img::before { transform: scale(1.07); }
}
.g-mount-name {
  font-size: 17px; font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 6px;
}
.g-mount-desc {
  font-size: 14px; line-height: 1.6;
  color: var(--grey-2);
}

/* ─── Mount card dark context ───────────────────────────── */
.g-dark .g-mount-img { background-color: #1a1a1a; }
.g-dark .g-mount-name { color: #fff; }
.g-dark .g-mount-desc { color: rgba(255,255,255,0.4); }
.g-dark .g-mount-note { color: rgba(255,255,255,0.18); }

/* ─── Included parts ────────────────────────────────────── */
.g-parts-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}
.g-parts-card {
  background: var(--grey-bg);
  border-radius: 14px;
  padding: 28px 32px;
}
.g-parts-card-label {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(0,0,0,0.3);
  margin-bottom: 16px;
}
.g-parts-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.g-parts-list li {
  font-size: 15px; line-height: 1.5;
  color: var(--grey-2);
  padding-left: 16px; position: relative;
}
.g-parts-list li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--grey-3);
}

/* ─── Printing notes ────────────────────────────────────── */
.g-print-notes {
  display: flex; flex-direction: column; gap: 36px;
}
.g-print-note { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 28px; }
.g-print-note:first-child { border-top: none; padding-top: 0; }
.g-print-note-title {
  font-size: 17px; font-weight: 500;
  color: #fff; margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.g-print-note-body {
  font-size: 15px; line-height: 1.65;
  color: rgba(255,255,255,0.45);
}

/* ─── Assembly (full-bleed dark) ────────────────────────── */
.g-assembly {
  position: relative;
  min-height: 70vh;
  display: flex; align-items: center;
  padding: 100px 60px;
  overflow: hidden;
}
.g-assembly-bg {
  position: absolute; inset: 0;
  background-image: url('../../assets/assembly-bg.jpg');
  background-size: cover;
  background-position: center;
}
.g-assembly-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.92) 45%, rgba(0,0,0,0.3) 100%);
}
.g-assembly-content {
  position: relative; z-index: 1;
  max-width: 520px;
}

/* ─── Numbered steps ────────────────────────────────────── */
.g-steps { display: flex; flex-direction: column; gap: 0; margin-top: 36px; }
.g-step {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.g-step:last-child { border-bottom: none; }
.g-step-num {
  font-size: 11px; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.2);
  min-width: 28px;
  padding-top: 2px;
}
.g-step-label {
  font-size: 15px; font-weight: 500;
  color: #fff; margin-bottom: 5px;
  letter-spacing: -0.01em;
}
.g-step-desc {
  font-size: 14px; line-height: 1.6;
  color: rgba(255,255,255,0.45);
}

/* ─── Firmware ──────────────────────────────────────────── */
.g-firmware-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.g-firmware-img {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background-size: cover;
  background-position: center top;
  background-image: url('../../assets/ui-iphone-firmware-mockup.jpg');
}

/* ─── Config cards ──────────────────────────────────────── */
.g-config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}
.g-config-card {
  border: 1px solid var(--grey-3);
  border-radius: 14px;
  overflow: hidden;
}
.g-config-card-img {
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  background-color: #e8e8e8;
}
.g-config-card-body { padding: 24px 24px 28px; }
.g-config-card-label {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(0,0,0,0.3);
  margin-bottom: 10px;
}
.g-config-card-title {
  font-size: 18px; font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 12px;
}
.g-config-ul {
  list-style: none; display: flex; flex-direction: column; gap: 7px;
}
.g-config-ul li {
  font-size: 14px; line-height: 1.5;
  color: var(--grey-2);
  padding-left: 14px; position: relative;
}
.g-config-ul li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--grey-3);
}

/* ─── License / Support ─────────────────────────────────── */
.g-license-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.g-license-card {
  padding: 0;
}
.g-license-card-label {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(0,0,0,0.3);
  margin-bottom: 10px;
}
.g-license-card p {
  font-size: 14px; line-height: 1.65;
  color: rgba(0,0,0,0.5);
  margin: 0;
}

/* ─── Full guide section background ─────────────────────── */
.g-fullguide { position: relative; overflow: hidden; }
.g-fullguide-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed;
  opacity: 0.85;
}
.g-fullguide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.94) 30%, rgba(0,0,0,0.2) 70%);
}

/* ─── CTA footer ────────────────────────────────────────── */
.g-cta {
  position: relative;
  min-height: 480px;
  display: flex; align-items: center; justify-content: center;
  padding: 100px 60px;
  overflow: hidden;
  text-align: center;
}
.g-cta-bg {
  position: absolute; inset: 0;
  background-image: url('../../assets/build-cta-bg.jpg');
  background-size: cover;
  background-position: center;
}
.g-cta-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.72);
}
.g-cta-content {
  position: relative; z-index: 1;
}
.g-cta-title {
  font-family: var(--font);
  font-weight: 400;
  font-size: 48px;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.0;
  margin-bottom: 12px;
}
.g-cta-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 40px;
}
.g-cta-actions {
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.btn-g-back {
  display: inline-flex; align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  padding: 12px 20px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.15);
  transition: border-color 0.2s, color 0.2s;
}
.btn-g-back:hover { color: #fff; border-color: rgba(255,255,255,0.4); }
.g-light .btn-g-back { color: rgba(0,0,0,0.5); border-color: rgba(0,0,0,0.15); }
.g-light .btn-g-back:hover { color: var(--ink); border-color: rgba(0,0,0,0.35); }

/* ─── Divider between dark sections ──────────────────────  */
.g-section-rule { border: none; border-top: 1px solid rgba(255,255,255,0.06); margin: 0; }
.g-section-rule-light { border: none; border-top: 1px solid #C4C4C4; margin: 0; }

/* ─── Static two-image pair ──────────────────────────────── */
.g-image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 64px;
}
.g-image-pair-item {
  border-radius: 14px;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* ─── Before You Start two-col layout ───────────────────── */
.g-bys-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.g-bys-image {
  border-radius: 14px;
  aspect-ratio: 3/4;
  background-size: cover;
  background-position: center;
  background-color: #111;
}

/* ─── Single section image ───────────────────────────────── */
.g-section-image {
  width: 100%;
  aspect-ratio: 16/7;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  background-color: #111;
  margin-bottom: 64px;
}

/* ─── Build overview two-col layout ─────────────────────── */
.g-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.g-overview-left {}
.g-overview-left .g-lead { margin-bottom: 32px; }

/* ─── Build overview stages ──────────────────────────────── */
.g-stages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 48px;
}
/* Single-column variant used inside two-col layout */
.g-stages-col {
  grid-template-columns: 1fr;
  margin-top: 0;
  border-top: none;
}
.g-stages-col .g-stage {
  border-left: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.g-stage {
  display: block;
  padding: 28px 32px 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.g-stage:nth-child(even) {
  padding-left: 32px;
  padding-right: 0;
  border-left: 1px solid rgba(255,255,255,0.15);
}
.g-stage-num {
  font-size: 12px; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.2);
  margin-bottom: 10px;
}
.g-stage-title {
  font-size: 17px; font-weight: 500;
  color: #fff; margin-bottom: 5px;
  letter-spacing: -0.01em;
}
.g-stage-desc {
  font-size: 15px; line-height: 1.6;
  color: rgba(255,255,255,0.4);
}
.g-stage-link {
  display: inline-block;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  transition: color 0.2s;
  margin-top: 10px;
}
.g-stage-link:hover { color: rgba(255,255,255,0.8); }

/* ─── Build overview stages — light context ─────────────── */
.g-light .g-stages {
  border-top-color: rgba(0,0,0,0.14);
}
.g-light .g-stage {
  border-bottom-color: rgba(0,0,0,0.14);
}
.g-light .g-stage:nth-child(even) {
  border-left-color: rgba(0,0,0,0.14);
}
.g-light .g-stage-num { color: rgba(0,0,0,0.2); }
.g-light .g-stage-title { color: var(--ink); }
.g-light .g-stage-desc { color: var(--grey-2); }
.g-light .g-stage-link { color: rgba(0,0,0,0.3); }
.g-light .g-stage-link:hover { color: var(--ink); }

/* ─── Accordion group dividers ───────────────────────────── */
.g-accordion-group {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
}
.g-accordion-group:first-child { margin-top: 0; }
.g-accordion-group-label {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(0,0,0,0.3);
  white-space: nowrap; flex-shrink: 0;
}
.g-accordion-group-line {
  flex: 1; height: 1px;
  background: rgba(0,0,0,0.14);
}

/* ─── Suppress double line after group header ────────────── */
.g-accordion-group + .accordion-item { border-top: none; }

/* ─── Light accordion (dark-on-white) ───────────────────── */
.g-accordion-light .accordion-item { border-top-color: rgba(0,0,0,0.14); }
.g-accordion-light .accordion-item:last-child { border-bottom-color: rgba(0,0,0,0.14); }
.g-accordion-light .accordion-label,
.g-accordion-light .accordion-subtitle { color: var(--ink); }
.g-accordion-light .accordion-item:hover .accordion-label,
.g-accordion-light .accordion-item:hover .accordion-subtitle { color: var(--grey-2); }
.g-accordion-light .accordion-item.active .accordion-label,
.g-accordion-light .accordion-item.active .accordion-subtitle { color: var(--ink); }
.g-accordion-light .accordion-icon { color: rgba(0,0,0,0.25); }
.g-accordion-light .accordion-item.active .accordion-icon { color: var(--ink); }
.g-accordion-light .accordion-panel p { color: var(--grey-2); }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1000px) {
  .g-split { grid-template-columns: 1fr; gap: 48px; }
  .g-split-reverse { direction: ltr; }
  .g-image-panel, .g-image-panel-sq { aspect-ratio: 16/9; }
  .g-firmware-wrap { grid-template-columns: 1fr; gap: 48px; }
  .g-firmware-img { aspect-ratio: 16/9; }
}

@media (max-width: 800px) {
  .g-body-grid { grid-template-columns: 1fr; }
  .g-mount-grid { grid-template-columns: 1fr 1fr; }
  .g-parts-wrap { grid-template-columns: 1fr; }
  .g-config-grid { grid-template-columns: 1fr; }
  .g-bys-grid { grid-template-columns: 1fr; }
  .g-bys-image { aspect-ratio: 16/9; position: static; order: -1; }
}

@media (max-width: 800px) {
  .g-stages { grid-template-columns: 1fr; }
  .g-stage:nth-child(even) { padding-left: 0; border-left: none; }
  .g-image-pair { grid-template-columns: 1fr; }
  .g-overview-grid { grid-template-columns: 1fr; gap: 48px; }
  .g-overview-left { position: static; }
}

@media (max-width: 640px) {
  .g-stage-link { display: none; }

  .g-nav { padding: 0 20px; }
  .g-nav-page, .g-nav-sep { display: none; }
  .g-nav-links a:not(.btn-primary):not(.btn-accent) { display: none; }
  .g-subnav { display: none; }

  .g-hero { padding: 0 20px 60px; margin-top: 112px; }
  .g-hero-bg { display: none; }
  .g-fullguide-bg { display: none; }
  .g-hero-title { font-size: 40px; }
  .g-hero-desc { font-size: 16px; }
  .g-hero-actions { flex-direction: column; align-items: flex-start; }

  .g-subnav-inner { padding: 0 20px; }

  .g-section { padding-left: 20px; padding-right: 20px; }
  .g-pad { padding-top: 64px; padding-bottom: 64px; }
  .g-pad-sm { padding-top: 48px; padding-bottom: 48px; }

  .g-title { font-size: 30px; }

  .g-mount-grid { grid-template-columns: 1fr; }

  .g-assembly { padding: 64px 20px; }
  .g-assembly-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 100%);
  }

  .g-cta { padding: 64px 20px; }
  .g-cta-bg { display: none; }
  .g-cta-title { font-size: 32px; }
  .g-cta-actions { flex-direction: column; width: 100%; }
  .g-cta-actions .btn-g-back, .g-cta-actions .btn-primary { width: 100%; justify-content: center; }

  .g-needs-card { padding: 24px 20px; }
}

/* fg-container inside g-section or fg-header: parent provides horizontal padding */
.g-section > .fg-container,
.fg-header > .fg-container { padding-left: 0; padding-right: 0; }

/* ─── Full Guide quick links ─────────────────────────────── */
.fg-quick-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  transition: color 0.2s;
}
.fg-quick-link:hover { color: #fff; }

/* ─── Full Guide page ────────────────────────────────────── */
.fg-container {
  max-width: 660px;
  margin: 0 auto;
  padding: 0 40px;
}
.fg-header {
  background: #000;
  padding: 80px 0 80px;
}
.fg-header-badge {
  display: inline-block;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 20px;
}
.fg-header-title {
  font-family: var(--font);
  font-weight: 400;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 24px;
}
.fg-header-desc {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
}
.fg-notice {
  margin-top: 40px;
  background: rgba(255,255,255,0.04);
  border-left: 3px solid rgba(255,255,255,0.18);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
}
.fg-notice-label {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 6px;
}
.fg-notice p {
  font-size: 13px; line-height: 1.65;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

/* ─── Full guide sections ───────────────────────────────── */
.fg-section-eyebrow {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(0,0,0,0.25);
  margin-bottom: 16px;
}
.fg-section-title {
  font-family: var(--font);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 16px;
}
.fg-section-desc {
  font-size: 17px;
  line-height: 1.65;
  color: var(--grey-2);
  margin-bottom: 0;
}

/* ─── Full guide steps ──────────────────────────────────── */
.fg-steps { margin-top: 64px; display: flex; flex-direction: column; gap: 72px; }
.fg-step-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
}
.fg-step-num {
  font-size: 11px; letter-spacing: 0.1em;
  color: rgba(0,0,0,0.2);
  min-width: 24px;
  flex-shrink: 0;
}
.fg-step-title {
  font-size: 20px; font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.fg-step-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: #e8e8e8;
  border-radius: 12px;
  margin-bottom: 22px;
  background-size: cover;
  background-position: center;
}
.fg-step-content p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--grey-2);
  margin: 0;
}

/* ─── Caution / tip callouts ────────────────────────────── */
.fg-caution {
  margin-top: 16px;
  background: #FFFAED;
  border-left: 3px solid #E0B830;
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
}
.fg-caution-label {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(0,0,0,0.35);
  margin-bottom: 5px;
}
.fg-caution p {
  font-size: 13px; line-height: 1.6;
  color: rgba(0,0,0,0.6);
  margin: 0;
}
.fg-tip {
  margin-top: 20px;
  background: var(--grey-bg);
  border-left: 3px solid rgba(0,0,0,0.12);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
}
.fg-tip-label {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(0,0,0,0.3);
  margin-bottom: 5px;
}
.fg-tip p {
  font-size: 13px; line-height: 1.6;
  color: rgba(0,0,0,0.5);
  margin: 0;
}

/* ─── Full guide responsive ─────────────────────────────── */
@media (max-width: 640px) {
  .fg-header { padding: 120px 0 60px; }
  .fg-container { padding: 0 20px; }
  .fg-header > .fg-container { padding-left: 20px; padding-right: 20px; }
  .fg-header-title { font-size: 36px; }
  .fg-section-title { font-size: 28px; }
  .fg-step-title { font-size: 18px; }
  .fg-cta-row { flex-direction: column; }
  .fg-cta-row a { width: 100%; justify-content: center; }

  /* Guide pages: show Home link instead of Contact (no handler on guide pages) */
  .guide-body .topbar-link:not(:first-child) { display: none; }
  .guide-body .topbar-link:first-child { display: block; }

  /* Build notes: override inline 160px padding */
  #build-notes { padding-top: 80px !important; padding-bottom: 80px !important; }

  /* Assembly steps: tighter gap on mobile */
  .fg-steps { gap: 48px; }
}

@media (hover: none), (pointer: coarse) {
  .g-fullguide-bg { background-attachment: scroll; }
}
