/* =============================================================
   AI Health & Wellness + AI Advertising hubs  —  /shared/aih-hubs.css
   Added 2026-11-29 (ai-health-law-launch). Pairs with /shared/page-shell.css
   (full-width layout, sticky rail, folded accordions). Inter only.
   Scoped to .aih-page so no other page changes.
   ============================================================= */
.aih-page{
  --color-primary:#2563eb; --color-primary-dark:#1d4ed8; --color-text:#1a1a2e; --color-text-secondary:#475569;
  --color-bg:#f6f8fa; --color-border:#e2e8f0; --color-card:#ffffff; --color-success:#16a34a; --color-warning:#d97706;
  --aih-teal:#0f766e; --aih-teal-soft:#ecfdf5; --aih-blue-soft:#eff6ff; --aih-amber-soft:#fffbeb;
  background:var(--color-bg); color:var(--color-text);
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  overflow-x:clip;
}

/* ---- Top band: breadcrumbs + hero ---- */
.aih-top{ max-width:var(--ps-max,1340px); margin:0 auto; padding:1.25rem 1.5rem 0; }
.aih-crumbs{ font-size:.85rem; color:var(--color-text-secondary); margin:0 0 .9rem; }
.aih-crumbs a{ color:var(--color-text-secondary); text-decoration:none; }
.aih-crumbs a:hover{ color:var(--color-primary); text-decoration:underline; }
.aih-hero{ display:grid; grid-template-columns:minmax(0,1fr) auto; gap:2rem; align-items:center;
  background:var(--color-card); border:1px solid var(--color-border); border-radius:18px; padding:1.9rem 2rem; }
.aih-hero h1{ font-size:clamp(1.7rem,3.6vw,2.45rem); line-height:1.15; font-weight:800; letter-spacing:-.015em;
  color:var(--color-text) !important; margin:.65rem 0 .8rem; overflow-wrap:break-word; max-width:30ch; }
.aih-lede{ font-size:1.06rem; line-height:1.6; max-width:74ch; margin:0 0 .4rem; color:var(--color-text); }
.aih-eyebrow{ display:inline-block; font-size:.72rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase;
  color:var(--aih-teal); background:var(--aih-teal-soft); border-radius:999px; padding:.35rem .8rem; }
.aih-badge{ display:flex; align-items:center; gap:.8rem; background:var(--color-bg); border:1px solid var(--color-border);
  border-radius:14px; padding:.7rem .9rem; max-width:300px; }
.aih-badge img{ width:64px; height:80px; object-fit:cover; border-radius:10px; flex:none; }
.aih-badge p{ margin:0; font-size:.84rem; line-height:1.45; color:var(--color-text-secondary); }
.aih-badge strong{ color:var(--color-text); display:block; font-size:.92rem; }
.aih-cta-row{ display:flex; flex-wrap:wrap; gap:.6rem; margin-top:1.1rem; }
.aih-btn{ display:inline-flex; align-items:center; justify-content:center; min-height:44px; background:var(--color-primary);
  color:#fff !important; font-weight:700; font-size:.95rem; padding:.7rem 1.15rem; border-radius:10px; text-decoration:none; }
.aih-btn:hover{ background:var(--color-primary-dark); }
.aih-btn-ghost{ background:transparent; color:var(--color-primary-dark) !important; border:1.5px solid var(--color-primary); }
.aih-btn-ghost:hover{ background:var(--aih-blue-soft); }

/* ---- Prose inside folded sections ---- */
.aih-page .ps-acc-body-inner{ font-size:1rem; line-height:1.68; }
.aih-page .ps-acc-body-inner > *{ max-width:78ch; }
.aih-page .ps-acc-body-inner > .aih-table, .aih-page .ps-acc-body-inner > .aih-pkgs{ max-width:none; }
.aih-page .ps-acc-body-inner h3{ font-size:1.08rem; font-weight:700; margin:1.4rem 0 .5rem; }
.aih-page .ps-acc-body-inner h4{ font-size:1rem; font-weight:700; margin:1.1rem 0 .4rem; }
.aih-page .ps-acc-body-inner ul, .aih-page .ps-acc-body-inner ol{ padding-left:1.3rem; }
.aih-page .ps-acc-body-inner li{ margin:.35rem 0; }
.aih-page .ps-acc-body-inner a{ color:var(--color-primary-dark); text-underline-offset:2px; overflow-wrap:anywhere; }
.aih-page blockquote{ margin:1rem 0; padding:.8rem 1.1rem; border-left:4px solid var(--aih-teal); background:var(--aih-teal-soft); border-radius:0 10px 10px 0; }

/* ---- Tables scroll inside their own box ---- */
.aih-table{ overflow-x:auto; -webkit-overflow-scrolling:touch; max-width:100%; min-width:0; margin:1rem 0 1.3rem;
  border:1px solid var(--color-border); border-radius:12px; background:var(--color-card); }
.aih-table table{ border-collapse:collapse; width:100%; min-width:640px; font-size:.91rem; }
.aih-table th, .aih-table td{ text-align:left; vertical-align:top; padding:.65rem .8rem; border-bottom:1px solid var(--color-border); line-height:1.5; }
.aih-table th{ background:#f1f5f9; font-weight:700; }
.aih-table tr:last-child td{ border-bottom:0; }

/* ---- Callouts ---- */
.info-box, .warning-box, .success-box{ border-radius:12px; padding:.95rem 1.15rem; margin:1rem 0; border:1px solid; border-left-width:5px; }
.info-box{ background:var(--aih-blue-soft); border-color:#bfdbfe; border-left-color:var(--color-primary); }
.warning-box{ background:var(--aih-amber-soft); border-color:#fde68a; border-left-color:var(--color-warning); }
.success-box{ background:var(--aih-teal-soft); border-color:#a7f3d0; border-left-color:var(--color-success); }
.info-box > :first-child, .warning-box > :first-child, .success-box > :first-child{ margin-top:0; }
.info-box > :last-child, .warning-box > :last-child, .success-box > :last-child{ margin-bottom:0; }
.aih-takeaways h2{ font-size:1.15rem; margin:0 0 .5rem; }
.aih-takeaways ul{ margin:0; padding-left:1.2rem; }
.aih-checklist ul, .aih-checklist ol{ list-style:none; padding-left:0 !important; }
.aih-checklist li{ position:relative; padding-left:1.8rem; }
.aih-checklist li::before{ content:""; position:absolute; left:.1rem; top:.38em; width:.95rem; height:.95rem; border:2px solid var(--aih-teal); border-radius:4px; }

/* ---- Package cards (conversion core, never folded) ---- */
.aih-pkgs{ display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:1rem; }
.aih-pkg{ background:var(--color-card); border:1px solid var(--color-border); border-radius:16px; padding:1.25rem 1.2rem 1.1rem;
  display:flex; flex-direction:column; min-width:0; }
.aih-pkg h3{ margin:0 0 .3rem; font-size:1.02rem; line-height:1.35; }
.aih-fee{ font-size:1.55rem; font-weight:800; color:var(--color-primary-dark); margin:.1rem 0 .5rem; letter-spacing:-.01em; }
.aih-fee small{ font-size:.8rem; font-weight:600; color:var(--color-text-secondary); }
.aih-pkg p{ font-size:.92rem; line-height:1.55; color:var(--color-text-secondary); margin:0 0 1rem; flex:1; }
.aih-pkg .aih-btn{ width:100%; }
.aih-pkg-foot{ font-size:.85rem; color:var(--color-text-secondary); margin:.8rem 0 0; }
.aih-band-head{ font-size:1.3rem; font-weight:800; margin:0 0 .35rem; }
.aih-band-sub{ color:var(--color-text-secondary); margin:0 0 1.1rem; }
.aih-band{ background:linear-gradient(135deg,#eff6ff 0%,#eef2ff 100%); border:1px solid #c7d2fe; border-radius:16px; padding:1.5rem; }

/* ---- Fee panel on package pages ---- */
.aih-feebox{ background:var(--color-card); border:2px solid var(--color-primary); border-radius:16px; padding:1.2rem 1.3rem; }
.aih-feebox .aih-fee{ font-size:2rem; margin:0; }
.aih-feebox p{ margin:.4rem 0 0; color:var(--color-text-secondary); font-size:.94rem; }

/* ---- FAQ + sources ---- */
.aih-faq details{ background:var(--color-card); border:1px solid var(--color-border); border-radius:12px; margin:.6rem 0; padding:0 1rem; }
.aih-faq summary{ cursor:pointer; font-weight:700; padding:.9rem 0; min-height:44px; list-style-position:outside; }
.aih-faq details[open] summary{ border-bottom:1px solid var(--color-border); margin-bottom:.4rem; }
.aih-sources li{ font-size:.9rem; overflow-wrap:anywhere; }

/* ---- Related links + attorney block ---- */
.aih-related{ display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:.6rem; list-style:none; padding:0 !important; margin:.5rem 0 0; }
.aih-related li{ margin:0 !important; }
.aih-related a{ display:block; min-height:44px; background:var(--color-card); border:1px solid var(--color-border); border-radius:12px;
  padding:.75rem .9rem; text-decoration:none; font-weight:600; font-size:.92rem; color:var(--color-primary-dark); }
.aih-related a:hover{ background:var(--aih-blue-soft); }
.aih-attorney{ display:grid; grid-template-columns:84px minmax(0,1fr); gap:1.1rem; align-items:center; background:var(--color-card);
  border:1px solid var(--color-border); border-radius:16px; padding:1.1rem 1.25rem; }
.aih-attorney img{ width:84px; height:104px; object-fit:cover; border-radius:12px; }
.aih-attorney p{ margin:.2rem 0; font-size:.93rem; color:var(--color-text-secondary); }
.aih-attorney strong{ color:var(--color-text); }
.aih-meta{ font-size:.84rem; color:var(--color-text-secondary); }

/* ---- Inline AI Legal Analyst mount ---- */
.aih-analyst{ background:var(--color-card); border:1px solid var(--color-border); border-radius:16px; padding:1.25rem; }
.aih-analyst h2{ font-size:1.2rem; margin:0 0 .3rem; }
.aih-analyst > p{ color:var(--color-text-secondary); margin:0 0 .8rem; font-size:.94rem; }

@media (max-width:1023px){
  .aih-top{ padding:.75rem 1rem 0; }
  .aih-hero{ grid-template-columns:1fr; padding:1.3rem 1.1rem; gap:1rem; }
  .aih-badge{ max-width:none; }
  .aih-badge img{ width:48px; height:60px; }
}
@media (max-width:600px){
  .aih-cta-row .aih-btn{ width:100%; }
  .aih-attorney{ grid-template-columns:60px minmax(0,1fr); }
  .aih-attorney img{ width:60px; height:76px; }
  .aih-band{ padding:1.1rem; }
}
