/* ── SaaS Dummies — Glossary layout ───────────────────────────────
   Shared styles for /glossary/ hub + individual DefinedTerm pages.
   Relies on /css/style.css for nav, footer, logo, and buttons.
   Brand tokens per STYLE_GUIDE.md — no #137ca3, system font stack. */

:root{
  --ink:#1a1a2e; --body:#4a6070; --muted:#8b9aae;
  --border:#dde6ee; --bg:#f2f5f8; --accent:#c4960e; --yellow:#F5C518;
}

.gl-wrap{max-width:760px;margin:0 auto;padding:0 24px}
.gl-wrap-wide{max-width:960px;margin:0 auto;padding:0 24px}

/* ── Breadcrumbs ─────────────────────────────────────────────── */
.gl-crumbs{font-size:13px;color:var(--muted);padding:22px 0 0}
.gl-crumbs a{color:var(--muted);font-weight:600}
.gl-crumbs a:hover{color:var(--ink)}
.gl-crumbs span{margin:0 8px;opacity:.6}

/* ── Term hero ───────────────────────────────────────────────── */
.gl-hero{padding:30px 0 40px;border-bottom:1px solid var(--border)}
.gl-eyebrow{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--accent);margin-bottom:14px}
.gl-term{font-size:clamp(30px,5vw,48px);font-weight:900;line-height:1.1;color:var(--ink);letter-spacing:-.02em;margin-bottom:6px}
.gl-term small{display:block;font-size:16px;font-weight:600;color:var(--muted);letter-spacing:0;margin-top:8px}

/* The crisp, quotable one-paragraph definition — the LLM-citation payload. */
.gl-def{font-size:20px;line-height:1.6;color:var(--ink);font-weight:500;margin-top:22px;padding-left:18px;border-left:4px solid var(--yellow)}

/* ── Prose body ──────────────────────────────────────────────── */
.gl-body{padding:44px 0}
.gl-body h2{font-size:clamp(21px,3vw,27px);font-weight:800;color:var(--ink);letter-spacing:-.01em;margin:38px 0 14px}
.gl-body h2:first-child{margin-top:0}
.gl-body h3{font-size:17px;font-weight:800;color:var(--ink);margin:26px 0 10px}
.gl-body p{font-size:17px;line-height:1.75;color:var(--body);margin-bottom:16px}
.gl-body ul,.gl-body ol{margin:0 0 18px;padding-left:22px}
.gl-body li{font-size:17px;line-height:1.7;color:var(--body);margin-bottom:9px}
.gl-body strong{color:var(--ink);font-weight:700}
.gl-body a{color:var(--accent);font-weight:600;text-decoration:underline;text-underline-offset:2px}
.gl-body a:hover{color:#a37c0b}

/* ── Callout / tool tie-in box ───────────────────────────────── */
.gl-callout{background:var(--bg);border:1px solid var(--border);border-left:4px solid var(--accent);border-radius:12px;padding:22px 24px;margin:30px 0}
.gl-callout h3{font-size:16px;font-weight:800;color:var(--ink);margin:0 0 8px}
.gl-callout p{font-size:15px;line-height:1.65;color:var(--body);margin:0 0 14px}
.gl-callout p:last-child{margin-bottom:0}
.gl-callout .gl-inline-cta{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:800;color:var(--ink);background:var(--yellow);border-radius:8px;padding:10px 18px;text-decoration:none;transition:background .15s,transform .1s}
.gl-callout .gl-inline-cta:hover{background:#e6b200;transform:translateY(-1px)}

/* ── Key-facts table (definition attributes) ─────────────────── */
.gl-facts{width:100%;border-collapse:collapse;font-size:15px;border:1px solid var(--border);border-radius:12px;overflow:hidden;margin:6px 0 8px}
.gl-facts th,.gl-facts td{padding:12px 16px;text-align:left;vertical-align:top;border-bottom:1px solid var(--border)}
.gl-facts th{width:34%;background:#fbfcfe;font-weight:700;color:var(--ink)}
.gl-facts td{color:var(--body)}
.gl-facts tr:last-child th,.gl-facts tr:last-child td{border-bottom:none}

/* ── FAQ (reused from compare pages) ─────────────────────────── */
.gl-faq{display:flex;flex-direction:column;max-width:720px;margin:0 auto}
.gl-faq-item{border-bottom:1px solid var(--border)}
.gl-faq-q{display:flex;align-items:center;justify-content:space-between;padding:18px 4px;cursor:pointer;user-select:none;font-size:16px;font-weight:700;color:var(--ink);gap:12px}
.gl-faq-chev{font-size:20px;font-weight:400;color:var(--muted);flex-shrink:0;transition:transform .15s}
.gl-faq-item.open .gl-faq-chev{transform:rotate(45deg)}
.gl-faq-a{display:none;padding:0 4px 20px;font-size:15px;color:var(--body);line-height:1.75;max-width:660px}
.gl-faq-item.open .gl-faq-a{display:block}

/* ── Related terms ───────────────────────────────────────────── */
.gl-related{padding:52px 0;background:var(--bg);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.gl-related h2{font-size:22px;font-weight:800;color:var(--ink);margin-bottom:20px}
.gl-rel-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}
.gl-rel-card{display:block;background:#fff;border:1px solid var(--border);border-radius:12px;padding:18px 20px;transition:border-color .15s,transform .1s}
.gl-rel-card:hover{border-color:var(--accent);transform:translateY(-2px)}
.gl-rel-card .t{font-size:15px;font-weight:800;color:var(--ink);margin-bottom:4px}
.gl-rel-card .d{font-size:13px;line-height:1.5;color:var(--muted)}

/* ── Section headings ────────────────────────────────────────── */
.gl-sec{padding:52px 0}
.gl-sec-hd{text-align:center;margin-bottom:34px}
.gl-sec-eyebrow{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--accent);margin-bottom:10px}
.gl-sec-title{font-size:clamp(22px,3.2vw,32px);font-weight:800;color:var(--ink);letter-spacing:-.01em}

/* ── Final CTA (light, on-brand — no dark section) ───────────── */
.gl-cta{background:var(--bg);border-top:1px solid var(--border);padding:60px 0;text-align:center}
.gl-cta h2{font-size:clamp(24px,4vw,36px);font-weight:900;color:var(--ink);letter-spacing:-.01em;margin-bottom:12px}
.gl-cta p{font-size:17px;color:var(--body);max-width:520px;margin:0 auto 26px;line-height:1.6}
.gl-btn-yellow{background:var(--yellow);color:var(--ink);border:none;border-radius:10px;padding:15px 30px;font-family:inherit;font-size:16px;font-weight:900;cursor:pointer;display:inline-flex;align-items:center;gap:8px;text-decoration:none;transition:background .15s,transform .1s}
.gl-btn-yellow:hover{background:#e6b200;transform:translateY(-1px)}
.gl-cta-note{margin-top:14px;font-size:12px;color:var(--muted)}

/* ── Hub page ────────────────────────────────────────────────── */
.gl-hub-hero{padding:56px 0 40px;border-bottom:1px solid var(--border);text-align:center}
.gl-hub-hero h1{font-size:clamp(30px,5.5vw,52px);font-weight:900;line-height:1.1;color:var(--ink);letter-spacing:-.02em;margin-bottom:16px}
.gl-hub-hero h1 em{font-style:normal;color:var(--accent)}
.gl-hub-hero p{font-size:18px;color:var(--body);max-width:600px;margin:0 auto;line-height:1.65}
.gl-hub-list{padding:48px 0}
.gl-hub-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px}
.gl-hub-card{display:block;background:#fff;border:1px solid var(--border);border-radius:14px;padding:24px;transition:border-color .15s,transform .1s}
.gl-hub-card:hover{border-color:var(--accent);transform:translateY(-2px)}
.gl-hub-card .t{font-size:18px;font-weight:800;color:var(--ink);margin-bottom:8px}
.gl-hub-card .t em{font-style:normal;color:var(--accent)}
.gl-hub-card .d{font-size:14px;line-height:1.6;color:var(--body)}
.gl-hub-card .more{display:inline-block;margin-top:12px;font-size:13px;font-weight:700;color:var(--accent)}

@media(max-width:640px){
  .gl-hero{padding:22px 0 32px}
  .gl-def{font-size:18px}
  .gl-body{padding:34px 0}
  .gl-related,.gl-sec{padding:40px 0}
}
