:root {
  --grad-a: #7CB0F0;
  --grad-b: #B48CE6;
  --grad-c: #F2A7CF;
  --page-bg: #FFFFFF;
  --card-bg: #F6F3FC;
  --ink: #211A38;
  --ink-soft: #4B4368;
  --magenta: #9B2FA0;
  --pill-dark: #241B3D;
  --line: #E3DEF2;
  --green: #49B072;
  --yellow: #E6A934;
  --footer-bg: #1B1530;
  --ease-cinema: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page-bg: #16121F; --card-bg: #241E35; --ink: #F3EEFF; --ink-soft: #BEB3D6; --line: #362C4C; --footer-bg: #100D19;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--page-bg); color: var(--ink); font-family: 'Inter', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif; line-height: 1.65; }
a { color: var(--magenta); }
.g-top { position: relative; overflow: hidden; padding: 38px 0 60px; text-align: left; background: linear-gradient(135deg, var(--grad-a) 0%, var(--grad-b) 55%, var(--grad-c) 100%); }
.g-top::before, .g-top::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.25); filter: blur(30px); pointer-events: none; }
.g-top::before { width: 220px; height: 220px; top: -80px; left: -60px; }
.g-top::after { width: 200px; height: 200px; bottom: -70px; right: -60px; }
.g-top-in { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; padding: 0 24px; }
.g-back { display: inline-block; margin-bottom: 18px; font-weight: 800; font-size: .85rem; color: #1D1733; text-decoration: none; background: rgba(255,255,255,.6); padding: 7px 14px; border-radius: 999px; }
.g-kicker { display: inline-block; margin-bottom: 12px; font-weight: 800; font-size: .78rem; letter-spacing: .01em; color: #1D1733; background: rgba(255,255,255,.7); padding: 6px 14px; border-radius: 999px; }
h1.g-title { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: clamp(1.9rem,7vw,2.6rem); line-height: 1.14; letter-spacing: -.01em; color: #1D1733; margin: 6px 0 0; }
.g-sub { margin: 14px 0 0; max-width: 46ch; font-size: 1rem; font-weight: 500; line-height: 1.62; color: #372A57; }
main.g-body { max-width: 660px; margin: -34px auto 0; padding: 0 22px 64px; position: relative; z-index: 2; }
.g-card { background: var(--page-bg); border: 1px solid var(--line); border-radius: 22px; padding: 30px 26px; box-shadow: 0 20px 44px -22px rgba(33,26,56,.35); overflow: hidden; }
.g-card h2 { font-family: 'Baloo 2', sans-serif; font-size: 1.3rem; margin: 34px 0 10px; color: var(--ink); }
.g-card h2:first-child { margin-top: 0; }
.g-card p, .g-card li { color: var(--ink-soft); font-size: .98rem; }
.g-hero-img { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: center; max-height: 46vh; border-radius: 16px; margin: 0 0 22px; }
.g-card ul, .g-card ol { padding-left: 1.2em; }
.g-card li { margin: 6px 0; }
.g-stat { background: var(--card-bg); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin: 18px 0; }
.g-stat b { font-family: 'Baloo 2', sans-serif; color: var(--magenta); font-size: 1.15rem; }
.g-stat cite { display: block; margin-top: 6px; font-style: normal; font-size: .72rem; color: var(--ink-soft); opacity: .8; }
.g-cta { margin: 34px 0 6px; border-radius: 22px; background: linear-gradient(135deg, var(--pill-dark), #3A2A5C 60%, var(--magenta)); color: #fff; padding: 26px 24px; text-align: center; }
.g-cta h3 { font-family: 'Baloo 2', sans-serif; margin: 0 0 8px; font-size: 1.2rem; }
.g-cta p { color: #E7DEF7; margin: 0 0 16px; font-size: .92rem; }
.g-btn { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--pill-dark); font-weight: 800; font-size: .95rem; padding: 13px 24px; border-radius: 100px; text-decoration: none; box-shadow: 0 10px 24px -10px rgba(0,0,0,.4); transition: transform .25s var(--ease-cinema); }
.g-btn:hover { transform: translateY(-2px); }
.g-related { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.g-related h4 { font-family: 'Baloo 2', sans-serif; font-size: 1rem; margin: 0 0 10px; }
.g-related a { display: block; font-weight: 700; font-size: .92rem; margin: 6px 0; }
footer.g-footer { background: var(--footer-bg, #1B1530); color: #C9C0DE; padding: 30px 0; text-align: center; font-size: .82rem; font-weight: 600; }
.g-flinks { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.g-flinks a { color: #C9C0DE; text-decoration: none; }
.g-index-cat { margin: 30px 0 0; }
.g-index-cat:first-child { margin-top: 0; }
.g-index-cat h2 { font-family: 'Baloo 2', sans-serif; font-size: 1.1rem; margin: 0 0 4px; color: var(--ink); }
.g-index-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.g-index-item { display: block; border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px; text-decoration: none; transition: transform .2s var(--ease-cinema), border-color .2s var(--ease-cinema); }
.g-index-item:hover { transform: translateY(-2px); border-color: var(--magenta); }
.g-index-title { display: block; font-weight: 800; font-size: .95rem; color: var(--ink); text-decoration: none; }
.g-index-desc { display: block; margin-top: 3px; font-size: .82rem; color: var(--ink-soft); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .g-btn { transition: none; } .g-index-item { transition: none; } }

/* Byline, freshness date, and visible breadcrumb — added for E-E-A-T / GEO signals */
.g-crumb { display: block; font-size: .78rem; font-weight: 700; color: var(--ink-soft); opacity: .85; margin: 2px 0 10px; }
.g-crumb a { color: var(--ink-soft); text-decoration: none; }
.g-crumb a:hover, .g-crumb a:focus-visible { text-decoration: underline; color: var(--magenta); }
.g-crumb span[aria-current="page"] { color: var(--ink); }
.g-byline { display: flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; color: #1D1733; opacity: .6; margin: 20px 0 0; padding-top: 14px; border-top: 1px solid rgba(29,23,51,.14); }
.g-byline::before { content: "✍️"; font-size: .8rem; }
.g-hero-img { width: 100%; height: auto; border-radius: 16px; }
picture { display: block; }

/* Visible FAQ block ("Quick questions") to match the invisible FAQPage schema */
.g-faq { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.g-faq h4 { font-family: 'Baloo 2', sans-serif; font-size: 1rem; margin: 0 0 12px; }
.g-faq-list { display: flex; flex-direction: column; gap: 10px; }
.g-faq-item { background: var(--card-bg); border-radius: 14px; overflow: hidden; }
.g-faq-item summary { cursor: pointer; list-style: none; padding: 14px 18px; font-weight: 700; font-size: .92rem; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.g-faq-item summary::-webkit-details-marker { display: none; }
.g-faq-item summary::after { content: "+"; font-family: 'Baloo 2', sans-serif; font-size: 1.2rem; color: #9B2FA0; transition: transform .2s ease; flex-shrink: 0; }
.g-faq-item[open] summary::after { transform: rotate(45deg); }
.g-faq-item p { margin: 0; padding: 0 18px 16px; color: var(--ink-soft); font-weight: 600; font-size: .88rem; }

/* Guide library search (index page only) */
.g-search-wrap { position: relative; display: flex; align-items: center; gap: 10px; background: var(--card-bg); border: 1px solid var(--line); border-radius: 100px; padding: 4px 6px 4px 18px; margin: 0; transition: border-color .2s var(--ease-cinema), box-shadow .2s var(--ease-cinema); }
.g-search-wrap:focus-within { border-color: var(--magenta); box-shadow: 0 0 0 4px rgba(155,47,160,.12); }
.g-search-ic { flex-shrink: 0; font-size: .95rem; opacity: .6; }
.g-search-input { flex: 1; min-width: 0; border: none; background: none; outline: none; font: inherit; font-size: .95rem; font-weight: 600; color: var(--ink); padding: 11px 0; -webkit-appearance: none; appearance: none; }
.g-search-input::-webkit-search-decoration, .g-search-input::-webkit-search-cancel-button, .g-search-input::-webkit-search-results-button, .g-search-input::-webkit-search-results-decoration { display: none; }
.g-search-input::placeholder { color: var(--ink-soft); opacity: .7; font-weight: 500; }
.g-search-clear { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: none; background: var(--line); color: var(--ink-soft); font-size: .8rem; font-weight: 800; cursor: pointer; }
.g-search-clear[hidden] { display: none; }
.g-search-empty { text-align: center; color: var(--ink-soft); font-weight: 600; font-size: .92rem; padding: 30px 10px; }
.g-search-empty[hidden] { display: none; }
.g-search-hint { margin: 8px 2px 22px; font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: .68rem; font-weight: 400; color: var(--ink-soft); opacity: .65; }
.g-index-cat[hidden] { display: none; }
.g-index-list li[hidden] { display: none; }
.g-index-snippet { display: block; margin-top: 6px; font-size: .8rem; font-style: italic; color: var(--ink-soft); opacity: .85; line-height: 1.45; }
.g-index-snippet[hidden] { display: none; }
.g-index-snippet mark { background: rgba(155,47,160,.14); color: var(--magenta); font-style: normal; font-weight: 800; border-radius: 4px; padding: 0 2px; }
