/* SEOGA default styles — neutral base for sga-* classes.
   Colors are exposed as CSS custom properties: defaults live on :root,
   a site may retheme every block by overriding variables scoped to
   .sga-article (see example at the bottom of this file).
   Each project may also override or replace with its own css file
   (seo/<site>/articles/site.css) mapping sga- classes to its design. */

:root {
  /* brand / accent */
  --sga-accent: #63D903;            /* primary accent: buttons, summary bar, success */
  --sga-accent-dark: #3a7a10;       /* accent text, checkmarks, step numbers, FAB */
  --sga-accent-soft: #f2fbec;       /* light accent background (CTA, success callout) */
  --sga-accent-border: #bfe89a;     /* CTA border */
  /* neutrals */
  --sga-bg: #f4f7f4;                /* panel background: summary, stats */
  --sga-bg-soft: #eef3ee;           /* soft background: catalog nav pills */
  --sga-table-head: #f4f6f8;        /* table header background */
  --sga-border: #dde;               /* table borders */
  --sga-border-strong: #e2e6e2;     /* related/nav panel borders */
  --sga-quote-bar: #ccc;            /* quote left bar */
  --sga-text: #445;                 /* body text (quote block) */
  --sga-muted: #667;                /* captions, secondary text */
  --sga-muted-2: #777;              /* quote cite */
  --sga-muted-3: #556;              /* stat labels */
  --sga-muted-4: #677;              /* related item text */
  --sga-muted-5: #889;              /* note text */
  --sga-muted-6: #456;              /* nav item text */
  --sga-nav-pill-text: #244;        /* catalog pill text */
  --sga-on-accent: #fff;            /* text on accent background */
  /* info / warn callouts */
  --sga-info: #5b8def;
  --sga-info-bg: #f0f4ff;
  --sga-warn: #e0a13a;
  --sga-warn-bg: #fdf6ec;
  /* effects */
  --sga-shadow: 0 4px 14px rgba(0,0,0,.25);
  --sga-shadow-lg: 0 8px 24px rgba(0,0,0,.18);
}

.sga-article { max-width: 920px; margin: 0 auto; line-height: 1.65; font-family: system-ui, sans-serif; }
.sga-article img { max-width: 100%; height: auto; }
.sga-lead { font-size: 1.1em; }
.sga-summary { background: var(--sga-bg); border-left: 3px solid var(--sga-accent); padding: 14px 18px; margin: 20px 0; border-radius: 6px; overflow-block: auto; }
.sga-summary__label { display: inline-block; font-weight: 700; text-transform: uppercase; font-size: .8em; margin-right: 8px; color: var(--sga-accent-dark); }
.sga-h--2 { font-size: 1.5em; margin: 1.4em 0 .6em; }
.sga-h--3 { font-size: 1.25em; margin: 1.2em 0 .5em; }
.sga-h--4 { font-size: 1.1em; margin: 1em 0 .5em; }
.sga-list--check { list-style: none; padding-left: 0; }
.sga-list--check li::before { content: "✓ "; color: var(--sga-accent-dark); font-weight: 700; }
.sga-figure { margin: 20px 0; text-align: center; }
.sga-figure__caption { font-size: .9em; color: var(--sga-muted); margin-top: 6px; }
.sga-figure--lead { margin-bottom: 24px; }
.sga-quote { border-left: 3px solid var(--sga-quote-bar); margin: 20px 0; padding: 8px 18px; color: var(--sga-text); }
.sga-quote__cite { display: block; margin-top: 6px; font-size: .9em; color: var(--sga-muted-2); }
.sga-table-wrap { overflow-x: auto; margin: 20px 0; }
.sga-table { border-collapse: collapse; width: 100%; }
.sga-table th, .sga-table td { border: 1px solid var(--sga-border); padding: 8px 12px; text-align: left; }
.sga-table th { background: var(--sga-table-head); }
.sga-callout { padding: 14px 18px; margin: 20px 0; border-radius: 6px; border-left: 4px solid var(--sga-info); background: var(--sga-info-bg); }
.sga-callout--warn { border-color: var(--sga-warn); background: var(--sga-warn-bg); }
.sga-callout--success { border-color: var(--sga-accent); background: var(--sga-accent-soft); }
.sga-callout__title { font-weight: 700; margin-bottom: 4px; }
.sga-steps { margin: 20px 0; }
.sga-step { display: flex; gap: 14px; margin-bottom: 14px; }
.sga-step__num { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--sga-accent-dark); color: var(--sga-on-accent); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.sga-step__title { font-weight: 700; }
/* stat block: 3-4 fact cards in a row, ≤2 per row on mobile */
.sga-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px 0; }
.sga-stat { background: var(--sga-bg); border-radius: 10px; padding: 16px 14px; text-align: center; }
.sga-stat__value { font-size: 1.6em; font-weight: 700; color: var(--sga-accent-dark); line-height: 1.1; }
.sga-stat__label { margin-top: 6px; font-size: .85em; color: var(--sga-muted-3); line-height: 1.35; }
@media (max-width: 720px) { .sga-stats { grid-template-columns: repeat(2, 1fr); } }
.sga-faq__item { margin-bottom: 14px; }
.sga-faq__question { font-weight: 700; }
.sga-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; background: var(--sga-accent-soft); border: 1px solid var(--sga-accent-border); border-radius: 10px; padding: 18px 22px; margin: 26px 0; }
.sga-cta__title { font-weight: 700; font-size: 1.1em; }
@media (max-width: 720px) {
  .sga-cta { flex-direction: column; align-items: stretch; text-align: left; }
  .sga-cta .sga-btn { text-align: center; }
}
.sga-btn { display: inline-block; background: var(--sga-accent); color: var(--sga-on-accent); padding: 10px 20px; border-radius: 8px; text-decoration: none; font-weight: 600; white-space: nowrap; }
.sga-btn--sm { padding: 6px 14px; font-size: .9em; }
.sga-related { margin: 24px 0; }
.sga-related__title { font-weight: 700; margin-bottom: 10px; }
.sga-related__item { display: block; padding: 10px 14px; border: 1px solid var(--sga-border-strong); border-radius: 8px; margin-bottom: 8px; text-decoration: none; color: inherit; }
.sga-related__text { display: block; color: var(--sga-muted-4); font-size: .92em; }
.sga-catnav { margin: 24px 0; }
.sga-catnav__item { display: inline-block; margin: 0 8px 8px 0; padding: 6px 14px; background: var(--sga-bg-soft); border-radius: 16px; text-decoration: none; color: var(--sga-nav-pill-text); }
.sga-note { color: var(--sga-muted-5); font-size: .9em; margin-top: 24px; }
.sga-nav--wrap { float: right; width: 240px; margin: 0 0 16px 24px; }
.sga-nav__title { font-weight: 700; margin-bottom: 6px; }
.sga-nav__item { display: block; padding: 4px 0; color: var(--sga-muted-6); text-decoration: none; font-size: .92em; }
.sga-nav__cta { margin-top: 10px; }
@media (max-width: 720px) {
  .sga-nav--wrap { display: none; }  /* mobile: nav via FAB only */
}
.sga-nav-fab { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--sga-accent-dark); color: var(--sga-on-accent); font-size: 22px; cursor: pointer; box-shadow: var(--sga-shadow); display: none; align-items: center; justify-content: center; }
.sga-nav-fab.is-visible { display: flex; }
.sga-nav-panel { position: fixed; right: 18px; bottom: 80px; z-index: 90; background: var(--sga-on-accent); border: 1px solid var(--sga-border-strong); border-radius: 10px; box-shadow: var(--sga-shadow-lg); padding: 12px 16px; max-width: 300px; display: none; }
.sga-nav-panel.is-open { display: block; }
.sga-nav-panel .sga-nav__title { margin-bottom: 8px; }
.sga-nav-panel .sga-nav__item { padding: 6px 0; }
@media (max-width: 720px) {
  .sga-nav-fab.is-visible { display: flex; }  /* mobile: FAB is the only nav */
}
.sga-embed { margin: 20px 0; }
.sga-embed iframe { width: 100%; aspect-ratio: 16/9; border: 0; }

/* Example: site-level retheme, scoped to the article container only.
   Put this in the site's own css (or page) — every sga block follows:
   .sga-article {
     --sga-accent: #63D903;
     --sga-accent-dark: #3a7a10;
     --sga-accent-soft: #f2fbec;
     ...
   } */
