/* ═══════════════════════════════════════════
   Chanlify Suisse — compliance-guide pages (wave 1)
   Loaded per-page via page.styles on top of styles.css.
   Class namespace: .g-* (never collides with the landing components).
   ═══════════════════════════════════════════ */

.g-hero {
  padding: 140px 24px 48px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--border);
}
.g-hero-inner { max-width: 780px; margin: 0 auto; }
.g-hero .section-label { margin-bottom: 14px; }
.g-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4.5vw, 2.625rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.g-verify {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-2);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
}
.g-verify-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); flex-shrink: 0;
}

.g-answer {
  margin: 28px 0 0;
  padding: 22px 24px;
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
}
.g-answer strong { color: var(--accent-dark); }

.g-body { max-width: 780px; margin: 0 auto; padding: 24px 24px 72px; }
.g-body h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 52px 0 16px;
}
.g-body h3 { font-size: 1.0625rem; margin: 30px 0 10px; }
.g-body p  { font-size: 0.9825rem; line-height: 1.75; color: var(--text-2); margin: 0 0 16px; }
.g-body ul, .g-body ol { margin: 0 0 16px; padding-left: 22px; }
.g-body li { font-size: 0.9825rem; line-height: 1.7; color: var(--text-2); margin-bottom: 8px; }
.g-body a  { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.g-body sup a { text-decoration: none; font-weight: 600; }

/* Fact cards (per-commune examples, two-regime split) */
.g-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 18px;
  margin: 24px 0 28px;
}
.g-card {
  padding: 22px 24px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.g-card-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 8px;
}
.g-card p:last-child { margin-bottom: 0; }
.g-card .g-figure {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.375rem;
  color: var(--text);
  display: block;
  margin: 2px 0 8px;
}
.g-card--accent { background: var(--white); border-color: var(--accent-mid); }

/* Numbered steps */
.g-steps { list-style: none; padding: 0; margin: 24px 0 28px; counter-reset: gstep; }
.g-steps > li {
  counter-increment: gstep;
  position: relative;
  padding: 0 0 22px 52px;
  margin: 0;
}
.g-steps > li::before {
  content: counter(gstep);
  position: absolute;
  left: 0; top: -2px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-family: var(--font-heading);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9375rem;
}
.g-steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 16px; top: 36px; bottom: 4px;
  width: 2px;
  background: var(--border);
}
.g-step-title { font-weight: 700; color: var(--text); font-size: 0.9825rem; margin-bottom: 4px; }

/* Checklist variant (distinct from the numbered steps) */
.g-checklist { list-style: none; padding: 0; margin: 20px 0 28px; }
.g-checklist li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 16px;
  background: var(--bg-2);
  border-radius: 10px;
  margin-bottom: 10px;
}
.g-checklist li::before {
  content: "\2713";
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Soft product aside */
.g-product {
  margin: 44px 0;
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.g-product p { margin-bottom: 12px; }
.g-product p:last-child { margin-bottom: 0; }

/* FAQ */
.g-faq { margin: 20px 0 32px; }
.g-faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  background: var(--white);
}
.g-faq summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  list-style: none;
  position: relative;
  padding-right: 44px;
}
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary::after {
  content: "+";
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--accent-dark);
  font-weight: 500;
}
.g-faq details[open] summary::after { content: "\2212"; }
.g-faq details > div { padding: 0 20px 18px; }
.g-faq details > div p { margin-bottom: 8px; }

/* Sources */
.g-sources {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.g-sources h2 { margin-top: 0; font-size: 1.125rem; }
.g-sources ol { padding-left: 20px; }
.g-sources li { font-size: 0.8425rem; line-height: 1.65; color: var(--text-2); margin-bottom: 8px; overflow-wrap: anywhere; }

/* Sibling-guide link */
.g-sibling {
  display: block;
  margin: 36px 0 0;
  padding: 18px 22px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  text-decoration: none !important;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: border-color 0.15s ease;
}
.g-sibling:hover { border-color: var(--accent); }
.g-sibling span { display: block; font-weight: 400; font-size: 0.8425rem; color: var(--text-3); margin-top: 4px; }

@media (max-width: 640px) {
  .g-hero { padding-top: 120px; }
  .g-body { padding-bottom: 56px; }
}
