/* =============================================================
   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; }
}

/* ---- Launch Risk Analyzer (2026-11-29, AI mastery sprint) ---- */
.aih-tool{ max-width:var(--ps-max,1340px); margin:0 auto; padding:1rem 1.5rem 0; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.15fr); gap:1.5rem; align-items:start; }
.aih-tool > *{ min-width:0; }
.aih-panel{ background:var(--color-card); border:1px solid var(--color-border); border-radius:16px; padding:1.1rem 1.15rem; }
.aih-panel h2{ font-size:1.15rem; margin:0 0 .4rem; }
.aih-ex-row{ display:flex; flex-wrap:wrap; gap:.5rem; margin:.4rem 0 .2rem; }
.aih-q{ border:0; border-top:1px solid var(--color-border); margin:0; padding:.9rem 0 .7rem; min-width:0; }
.aih-q:first-of-type{ border-top:0; padding-top:.3rem; }
.aih-q legend{ font-weight:700; font-size:.98rem; padding:0; margin-bottom:.55rem; display:flex; flex-wrap:wrap; align-items:baseline; gap:.4rem; }
.aih-qn{ display:inline-flex; align-items:center; justify-content:center; width:1.45rem; height:1.45rem; border-radius:50%; background:#eef2ff; color:var(--color-primary-dark); font-size:.78rem; font-weight:800; }
.aih-q.is-done .aih-qn{ background:var(--color-primary); color:#fff; }
.aih-qhint{ font-weight:500; font-size:.8rem; color:var(--color-text-secondary); }
.aih-opts{ display:flex; flex-wrap:wrap; gap:.45rem; }
.aih-opt{ font:inherit; font-size:.88rem; line-height:1.3; text-align:left; min-height:40px; padding:.5rem .75rem; border-radius:10px; border:1.5px solid var(--color-border); background:#fff; color:var(--color-text); cursor:pointer; max-width:100%; white-space:normal; }
.aih-opt:hover{ border-color:#93c5fd; background:var(--aih-blue-soft); }
.aih-opt[aria-pressed="true"]{ border-color:var(--color-primary); background:#dbeafe; color:#1e3a8a; font-weight:600; }
.aih-opt:focus-visible, .aih-btn:focus-visible{ outline:3px solid #93c5fd; outline-offset:2px; }
.aih-ex{ border-style:dashed; }
.aih-go-row{ position:sticky; bottom:0; background:linear-gradient(180deg,rgba(246,248,250,0),var(--color-bg) 35%); padding:.8rem 0 .4rem; display:flex; flex-wrap:wrap; gap:.6rem; align-items:center; z-index:4; }
.aih-btn[disabled]{ opacity:.45; cursor:not-allowed; }
button.aih-btn{ border:0; font:inherit; font-weight:700; cursor:pointer; }
button.aih-btn-ghost{ border:1.5px solid var(--color-primary); }
#aih-progress{ font-size:.85rem; color:var(--color-text-secondary); }
.aih-results{ position:sticky; top:1rem; max-height:none; }
.aih-results[hidden]{ display:none; }
.aih-placeholder{ color:var(--color-text-secondary); }
.aih-counts{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.6rem; margin:.4rem 0 .6rem; }
.aih-counts .c{ border-radius:12px; padding:.7rem .8rem; border:1px solid var(--color-border); background:#fff; }
.aih-counts b{ display:block; font-size:1.6rem; line-height:1.1; }
.aih-counts span{ font-size:.8rem; color:var(--color-text-secondary); }
.aih-counts .lvl-priority{ border-left:5px solid #dc2626; } .aih-counts .lvl-review{ border-left:5px solid #d97706; } .aih-counts .lvl-info{ border-left:5px solid #2563eb; }
.aih-group-h{ font-size:1rem; margin:1.2rem 0 .5rem; }
.aih-issue{ background:#fff; border:1px solid var(--color-border); border-left:5px solid #94a3b8; border-radius:12px; padding:.85rem 1rem; margin:.6rem 0; }
.aih-issue.lvl-priority{ border-left-color:#dc2626; } .aih-issue.lvl-review{ border-left-color:#d97706; } .aih-issue.lvl-info{ border-left-color:#2563eb; }
.aih-issue h3{ font-size:1.02rem; margin:.35rem 0 .15rem; }
.aih-issue-top{ display:flex; flex-wrap:wrap; gap:.35rem; align-items:center; }
.aih-lvl{ font-size:.72rem; font-weight:800; text-transform:uppercase; letter-spacing:.06em; }
.lvl-priority .aih-lvl{ color:#b91c1c; } .lvl-review .aih-lvl{ color:#b45309; } .lvl-info .aih-lvl{ color:#1d4ed8; }
.aih-chip{ font-size:.74rem; background:#f1f5f9; border-radius:999px; padding:.15rem .55rem; color:#334155; }
.aih-chip.st-enacted_not_yet_effective, .aih-chip.st-proposed{ background:#fef3c7; color:#92400e; }
.aih-chip.st-allegation, .aih-chip.st-settlement, .aih-chip.st-vacated, .aih-chip.st-stayed{ background:#fee2e2; color:#991b1b; }
.aih-cite{ margin:.1rem 0 .3rem; font-size:.88rem; } .aih-cite a{ color:var(--color-primary-dark); overflow-wrap:anywhere; }
.aih-why{ margin:.2rem 0 .3rem; padding-left:1.1rem; } .aih-why li{ font-size:.93rem; margin:.15rem 0; }
.aih-more summary{ cursor:pointer; font-weight:600; font-size:.88rem; color:var(--color-primary-dark); padding:.3rem 0; min-height:32px; }
.aih-more p, .aih-more li{ font-size:.9rem; line-height:1.55; }
.aih-more ul{ padding-left:1.1rem; }
.aih-more blockquote{ font-size:.86rem; }
.aih-enf{ font-size:.88rem; }
.aih-consent{ display:flex; gap:.5rem; align-items:flex-start; font-size:.86rem; color:var(--color-text-secondary); margin:.2rem 0 .8rem; }
.aih-consent input{ margin-top:.2rem; width:18px; height:18px; flex:none; }
.aih-pkg-cta{ margin-top:1.2rem; }
.aih-pkg-cta .aih-pkg{ max-width:520px; }
.aih-reg-table td, .aih-reg-table th{ font-size:.86rem; }
@media (max-width:1023px){
  .aih-tool{ grid-template-columns:1fr; padding:.75rem 1rem 0; }
  .aih-results{ position:static; }
}
@media (max-width:600px){ .aih-counts b{ font-size:1.3rem; } .aih-opt{ font-size:.86rem; } }
@media print{
  #site-header, #site-footer, .aih-go-row, #aih-form-panel, .aih-cta-row, .aih-pkg-cta, .analyst-mount, .aih-hero .aih-cta-row{ display:none !important; }
  .aih-tool{ display:block; } .aih-results{ position:static; }
  .aih-issue details{ display:block; } .aih-issue details > *{ display:block; }
  body{ background:#fff; }
}

/* ---- Claim Screener (2026-11-29) ---- */
.aih-claims-in textarea{ width:100%; min-height:180px; box-sizing:border-box; font:inherit; font-size:.95rem; line-height:1.55; padding:.8rem .9rem; border:1.5px solid var(--color-border); border-radius:12px; background:#fff; resize:vertical; }
.aih-claims-in textarea:focus{ outline:3px solid #93c5fd; outline-offset:1px; border-color:var(--color-primary); }
.aih-copybox{ white-space:pre-wrap; background:#fff; border:1px solid var(--color-border); border-radius:12px; padding:.9rem 1rem; line-height:1.7; font-size:.95rem; margin:.6rem 0 1rem; overflow-wrap:anywhere; }
.aih-copybox mark{ border-radius:4px; padding:.05rem .15rem; }
.aih-copybox mark.sev-high{ background:#fee2e2; box-shadow:inset 0 -2px 0 #dc2626; }
.aih-copybox mark.sev-medium{ background:#fef3c7; box-shadow:inset 0 -2px 0 #d97706; }
