/* /ai-guide and /ai-guide/:slug (services/seo/aiGuide.js). Same system as /learn:
   .card / .card-head / .card-body, .card-kpi, .btn, .tag, .badge, .seg-tabs and the
   hub FAQ. This file PLACES them and styles the page-own pieces (topic rows, the
   shared .aig-body copy blocks). Type sizes follow the hub shell (h1, .lede) and
   the library (card-head h3). No gradients, glows or per-section accent colours.
   The co-pilot Learn mode styles the same .aig-body markup in ai-copilot.css. */

.aig-page .hub-shell { max-width: 1040px; }
.aig-page .hub-shell:has(.aig-article) { max-width: 820px; }

.aig-head { padding: 4px 0 16px; }
.aig-sec > .aig-head { padding: 16px; }
.aig-head h1 { margin: 8px 0 8px; }
.aig-head .lede { margin: 0; max-width: 720px; }
.aig-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.aig-actions .btn svg { width: 16px; height: 16px; margin-left: 2px; }
.aig-claims { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.aig-claims .tag { white-space: normal; }

/* Index: live record tiles, then one card per section with topic rows. */
.aig-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 0 0 12px; }
.aig-groups { display: flex; flex-direction: column; gap: 12px; }
.aig-group, .aig-sec, .aig-next { margin: 0; }
.aig-group-note { margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--border); color: var(--text-md); font-size: 13px; line-height: 1.5; }

.aig-list { margin: 0; padding: 0; list-style: none; }
.aig-list li + li { border-top: 1px solid var(--border); }
.aig-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) 18px; gap: 12px; align-items: center; padding: 12px 16px; color: inherit; text-decoration: none; }
a.aig-row:hover { background: var(--sel-hover); }
a.aig-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.aig-step { grid-template-columns: 32px minmax(0, 1fr); }
.aig-link { grid-template-columns: minmax(0, 1fr) 18px; }
.aig-ico { display: grid; place-items: center; width: 32px; height: 32px; color: var(--sel-ink, var(--accent)); background: var(--sel-fill); }
.aig-ico svg { width: 18px; height: 18px; }
.aig-row-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.aig-row-txt b { color: var(--text-hi); font-size: 14px; font-weight: 600; line-height: 1.3; }
.aig-row-txt b i { margin-right: 4px; color: var(--text-lo); font-size: 12px; font-style: normal; font-weight: 600; }
.aig-row-txt > span { color: var(--text-md); font-size: 13px; line-height: 1.45; }
.aig-go { width: 18px; height: 18px; color: var(--text-lo); }

/* Topic: back link, overview card, sticky section tabs (js/section-tabs.js, same
   pattern as /learn and /incident), then one column of cards. */
.aig-back { display: inline-flex; margin-bottom: 8px; align-items: center; gap: 2px; margin-left: -4px; color: var(--sel-ink, var(--accent)); font-size: 13px; font-weight: 600; text-decoration: none; }
.aig-back svg { width: 18px; height: 18px; }
.aig-meta { display: flex; align-items: center; gap: 8px; }
.aig-intro { margin: 0; max-width: 680px; color: var(--text-md); font-size: 14px; line-height: 1.6; }
.aig-jump { margin-bottom: 12px; }
.aig-article { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.aig-sec { scroll-margin-top: 90px; }

/* Shared .aig-body copy blocks (js/ai-guide.js), SSR only. */
.aig-copy p, .aig-copy li { color: var(--text-md); font-size: 14px; line-height: 1.65; }
.aig-copy p { margin: 0 0 10px; }
.aig-copy ul { margin: 0 0 10px; padding-left: 20px; }
.aig-copy li { margin: 3px 0; }
.aig-copy .aig-body > :last-child { margin-bottom: 0; }
.aig-copy strong { color: var(--text-hi); font-weight: 600; }
.aig-copy a { color: var(--sel-ink, var(--accent)); text-decoration: none; }
.aig-copy a:hover { text-decoration: underline; }
.aig-copy .aig-note { padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--sel-fill); color: var(--text-hi); }
.aig-copy .aig-eg { display: flex; flex-direction: column; margin: 0 0 10px; border: 1px solid var(--border); }
.aig-copy .aig-eg-r { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 10px 12px; }
.aig-copy .aig-eg-r + .aig-eg-r { border-top: 1px solid var(--border); }
.aig-copy .aig-eg-r span { font: 700 10.5px var(--mono); letter-spacing: .06em; }
.aig-copy .aig-eg-ok span { color: var(--bull); }
.aig-copy .aig-eg-no span { color: var(--bear); }
.aig-copy .aig-eg-r em { color: var(--text-md); font-size: 13.5px; font-style: normal; line-height: 1.55; }

.aig-faq .hub-faq { margin: 12px 0 0; }

@media (max-width: 860px) {
  .aig-row { padding: 12px; }
  .aig-link { padding: 12px 16px; }
  .aig-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aig-actions .btn { flex: 1 1 auto; justify-content: center; }
}
