/* ============================================================
   INTELLEHEALTH EXPANSION STYLESHEET
   Additive layer for templates 08 to 14. Loads after the
   approved intellehealth.css and never redefines approved
   selectors. Mobile first at 390, adapting upward. Motion is
   transform and opacity only.

   Sections
   01 Shared expansion primitives
   02 Page hero (paper)
   03 Status, verification, and confidence labels
   04 Fact and snapshot panels
   05 Skeletons and system states
   06 Toast, inline validation, success
   07 Component demonstration bands
   08 Saved shortlist (08)
   09 Topic hub (09)
   10 Provider profile (10)
   11 Editorial article (11)
   12 Research archive (12)
   13 Search results (13)
   14 404 (14)
   15 Print
   16 Reduced motion
   ============================================================ */

/* ------------------------------------------------------------
   01 SHARED EXPANSION PRIMITIVES
   ------------------------------------------------------------ */
.intelle-x-grid { display: grid; gap: 18px; }
.intelle-x-grid--two { display: grid; gap: 18px; }
.intelle-x-grid--three { display: grid; gap: 18px; }
@media (min-width: 760px) {
  .intelle-x-grid--two { grid-template-columns: 1fr 1fr; gap: 22px; }
  .intelle-x-grid--three { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}
.intelle-x-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--intelle-muted-light);
  margin: 0 0 10px;
}
.intelle-x-kicker::before {
  content: "";
  width: 22px; height: 3px;
  border-radius: 2px;
  background: var(--intelle-spectrum);
}
.intelle-x-section { padding: 44px 0; }
.intelle-x-section--tight { padding: 30px 0; }
.intelle-x-section--dark { background: var(--intelle-ink); color: var(--intelle-canvas); }
.intelle-x-section--dark .intelle-x-kicker { color: var(--intelle-muted-dark); }
.intelle-x-h2 {
  font-weight: 800;
  font-size: clamp(1.35rem, 3.4vw, 1.8rem);
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 0 0 14px;
  overflow-wrap: anywhere;
}
.intelle-x-lede {
  color: var(--intelle-muted-light);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 62ch;
  margin: 0 0 18px;
}
.intelle-x-section--dark .intelle-x-lede { color: var(--intelle-muted-dark); }
.intelle-x-panel {
  border: 1px solid var(--intelle-border-light);
  border-radius: var(--intelle-radius-md);
  background: var(--intelle-panel-light);
  color: var(--intelle-ink);
  padding: 20px;
}
.intelle-x-panel--dark {
  border-color: var(--intelle-border);
  background: var(--intelle-panel);
  color: var(--intelle-canvas);
}
.intelle-x-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.intelle-x-list li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  line-height: 1.55;
  font-size: 0.95rem;
}
.intelle-x-list li::before {
  content: "";
  flex: none;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--intelle-violet);
  transform: translateY(-1px);
}
.intelle-x-list--check li::before { display: none; }
.intelle-x-list--check li { padding-left: 0; }
.intelle-x-list--check li > .intelle-x-check {
  flex: none;
  font-weight: 800;
  color: #0E6B5C;
}
.intelle-x-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.intelle-x-actions .intelle-btn { flex: 1 1 auto; }
@media (min-width: 700px) { .intelle-x-actions .intelle-btn { flex: 0 1 auto; } }

/* ------------------------------------------------------------
   02 PAGE HERO (PAPER)
   ------------------------------------------------------------ */
.intelle-x-hero { padding: 26px 0 34px; }
.intelle-x-hero .intelle-breadcrumbs { margin-bottom: 16px; }
.intelle-x-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--intelle-muted-light);
  margin: 0 0 12px;
}
.intelle-x-hero__eyebrow::before {
  content: "";
  width: 22px; height: 3px;
  border-radius: 2px;
  background: var(--intelle-spectrum);
}
.intelle-x-hero__title {
  font-weight: 800;
  font-size: clamp(1.7rem, 5.4vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  max-width: 21ch;
  overflow-wrap: anywhere;
}
.intelle-x-hero__lede {
  color: var(--intelle-muted-light);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 58ch;
  margin: 0 0 20px;
}
.intelle-x-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  color: var(--intelle-muted-light);
  font-size: 0.86rem;
  font-weight: 700;
}
.intelle-x-hero__meta li { display: inline-flex; align-items: center; gap: 7px; }
.intelle-x-hero__meta li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 2px;
  background: var(--intelle-border-light);
}
.intelle-x-hero__trust {
  color: var(--intelle-muted-light);
  font-size: 0.86rem;
  line-height: 1.55;
  max-width: 52ch;
  margin: 14px 0 0;
}
@media (min-width: 900px) {
  .intelle-x-hero { padding: 40px 0 48px; }
  .intelle-x-hero--split .intelle-x-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 40px;
    align-items: start;
  }
}

/* ------------------------------------------------------------
   03 STATUS, VERIFICATION, AND CONFIDENCE LABELS
   Shape plus text carries meaning, never color alone.
   ------------------------------------------------------------ */
.intelle-x-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--intelle-border-light);
  background: var(--intelle-panel-light);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--intelle-ink);
  white-space: nowrap;
}
.intelle-x-status::before { content: ""; width: 9px; height: 9px; flex: none; }
.intelle-x-status--doc::before { background: #0E6B5C; border-radius: 50%; }
.intelle-x-status--partial::before { background: #8A6A15; border-radius: 2px; transform: rotate(45deg); }
.intelle-x-status--not::before { background: transparent; border: 2px solid #9C3A54; border-radius: 50%; width: 7px; height: 7px; }
.intelle-x-status--verify::before { background: var(--intelle-blue); border-radius: 2px; }
.intelle-x-status--conf::before { background: var(--intelle-violet); border-radius: 50%; }
.intelle-x-statusline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* ------------------------------------------------------------
   04 FACT AND SNAPSHOT PANELS
   ------------------------------------------------------------ */
.intelle-x-facts { margin: 0; display: grid; gap: 0; }
.intelle-x-facts > div {
  display: grid;
  grid-template-columns: minmax(110px, 38%) 1fr;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--intelle-border-light);
  font-size: 0.92rem;
  line-height: 1.5;
}
.intelle-x-facts > div:first-child { border-top: 0; padding-top: 0; }
.intelle-x-facts dt { font-weight: 800; color: var(--intelle-muted-light); font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; align-self: start; padding-top: 2px; }
.intelle-x-facts dd { margin: 0; overflow-wrap: anywhere; }
.intelle-x-snapshot { position: relative; }
.intelle-x-snapshot .intelle-underline { margin: 4px 0 14px; }
.intelle-x-snapshot__title { margin: 0 0 4px; font-weight: 800; font-size: 1.02rem; }

/* ------------------------------------------------------------
   05 SKELETONS AND SYSTEM STATES
   ------------------------------------------------------------ */
.intelle-x-skeleton { display: grid; gap: 12px; }
.intelle-x-skeleton__bar {
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(90deg, rgba(8, 11, 18, 0.08) 25%, rgba(8, 11, 18, 0.16) 45%, rgba(8, 11, 18, 0.08) 65%);
  background-size: 220% 100%;
  animation: intelle-x-shimmer 1.4s linear infinite;
}
.intelle-x-skeleton__bar--lg { height: 26px; width: 70%; }
.intelle-x-skeleton__bar--md { width: 90%; }
.intelle-x-skeleton__bar--sm { width: 55%; }
.intelle-x-skeleton__block {
  height: 118px;
  border-radius: var(--intelle-radius-sm);
  background: linear-gradient(90deg, rgba(8, 11, 18, 0.06) 25%, rgba(8, 11, 18, 0.13) 45%, rgba(8, 11, 18, 0.06) 65%);
  background-size: 220% 100%;
  animation: intelle-x-shimmer 1.4s linear infinite;
}
@keyframes intelle-x-shimmer {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}
.intelle-x-state {
  border: 1px dashed var(--intelle-border-light);
  border-radius: var(--intelle-radius-md);
  background: var(--intelle-panel-light);
  color: var(--intelle-ink);
  padding: 24px 20px;
  display: grid;
  gap: 12px;
  justify-items: start;
}
.intelle-x-state__title { margin: 0; font-weight: 800; font-size: 1.1rem; }
.intelle-x-state__text { margin: 0; color: var(--intelle-muted-light); font-size: 0.94rem; line-height: 1.6; max-width: 52ch; }

/* ------------------------------------------------------------
   06 TOAST, INLINE VALIDATION, SUCCESS
   ------------------------------------------------------------ */
.intelle-x-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 12px);
  z-index: 260;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--intelle-ink);
  color: var(--intelle-paper);
  border: 1px solid var(--intelle-border);
  font-weight: 800;
  font-size: 0.88rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms var(--intelle-ease), transform 260ms var(--intelle-ease);
  max-width: calc(100vw - 40px);
  text-align: center;
}
.intelle-x-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.intelle-x-note {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid rgba(255, 130, 159, 0.7);
  border-radius: var(--intelle-radius-sm);
  background: rgba(255, 130, 159, 0.12);
  color: var(--intelle-ink);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
  padding: 10px 14px;
}
.intelle-x-note[hidden] { display: none; }
.intelle-x-note::before {
  content: "!";
  flex: none;
  width: 18px; height: 18px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--intelle-coral);
  color: var(--intelle-ink);
  font-weight: 800;
  font-size: 0.78rem;
  transform: translateY(1px);
}
.intelle-x-success {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid rgba(81, 227, 206, 0.75);
  border-radius: var(--intelle-radius-sm);
  background: rgba(81, 227, 206, 0.14);
  color: var(--intelle-ink);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
  padding: 10px 14px;
}
.intelle-x-success[hidden] { display: none; }
.intelle-x-success::before {
  content: "✓";
  flex: none;
  width: 18px; height: 18px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--intelle-mint);
  color: var(--intelle-ink);
  font-weight: 800;
  font-size: 0.78rem;
  transform: translateY(1px);
}

/* ------------------------------------------------------------
   07 COMPONENT DEMONSTRATION BANDS
   ------------------------------------------------------------ */
.intelle-x-demo {
  padding: 34px 0;
  background:
    repeating-linear-gradient(-45deg, rgba(8, 11, 18, 0.028) 0 10px, transparent 10px 20px),
    var(--intelle-canvas);
  border-top: 1px dashed var(--intelle-border-light);
}
.intelle-x-demo__tag {
  display: inline-block;
  margin: 0 0 8px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--intelle-border-light);
  background: var(--intelle-paper);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--intelle-muted-light);
}
.intelle-x-demo__title { margin: 0 0 6px; font-weight: 800; font-size: 1.15rem; }
.intelle-x-demo__note { margin: 0 0 16px; color: var(--intelle-muted-light); font-size: 0.9rem; max-width: 60ch; line-height: 1.6; }

/* ------------------------------------------------------------
   08 SAVED SHORTLIST
   ------------------------------------------------------------ */
.intelle-shortlist-results { display: grid; gap: 18px; }
.intelle-shortlist-card {
  border: 1px solid var(--intelle-border-light);
  border-radius: var(--intelle-radius-md);
  background: var(--intelle-panel-light);
  color: var(--intelle-ink);
  padding: 20px;
  display: grid;
  gap: 14px;
}
.intelle-shortlist-card__name,
.intelle-shortlist-card .intelle-x-score strong,
.intelle-shortlist-card__why li,
.intelle-shortlist-card .intelle-compare-check {
  color: var(--intelle-ink);
}
.intelle-shortlist-card--top {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--intelle-panel-light), var(--intelle-panel-light)) padding-box,
    var(--intelle-spectrum) border-box;
}
.intelle-shortlist-card__rank {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--intelle-ink);
  color: var(--intelle-paper);
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.intelle-shortlist-card__rank::before {
  content: "";
  width: 14px; height: 3px;
  border-radius: 2px;
  background: var(--intelle-spectrum);
}
.intelle-shortlist-card__rank--alt { background: transparent; color: var(--intelle-muted-light); border: 1px solid var(--intelle-border-light); }
.intelle-shortlist-card__rank--alt::before { background: var(--intelle-border-light); }
.intelle-shortlist-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.intelle-shortlist-card__name { margin: 0; font-weight: 800; font-size: 1.15rem; line-height: 1.25; overflow-wrap: anywhere; }
.intelle-shortlist-card__provider { margin: 2px 0 0; color: var(--intelle-muted-light); font-weight: 700; font-size: 0.88rem; }
.intelle-shortlist-card__scores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.intelle-x-score {
  border: 1px solid var(--intelle-border-light);
  border-radius: var(--intelle-radius-sm);
  background: var(--intelle-paper);
  padding: 12px 14px;
  display: grid;
  gap: 3px;
  min-width: 0;
}
.intelle-x-score--fit { border-left: 4px solid var(--intelle-blue); }
.intelle-x-score--grade { border-left: 4px solid var(--intelle-violet); }
.intelle-x-score b { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--intelle-muted-light); }
.intelle-x-score strong { font-size: 1.3rem; font-weight: 800; line-height: 1.1; }
.intelle-x-score span { font-size: 0.76rem; font-weight: 600; color: var(--intelle-muted-light); line-height: 1.4; }
.intelle-shortlist-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--intelle-muted-light);
}
.intelle-shortlist-card__facts li { display: inline-flex; align-items: center; gap: 6px; }
.intelle-shortlist-card__facts li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 2px;
  background: var(--intelle-border-light);
}
.intelle-shortlist-card__why { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.intelle-shortlist-card__why li { display: flex; gap: 10px; align-items: baseline; font-size: 0.94rem; line-height: 1.5; }
.intelle-shortlist-card__why li::before { content: "✓"; flex: none; font-weight: 800; color: #0E6B5C; }
.intelle-shortlist-card__watch { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.intelle-shortlist-card__watch li { display: flex; gap: 10px; align-items: baseline; font-size: 0.9rem; line-height: 1.5; color: var(--intelle-muted-light); }
.intelle-shortlist-card__watch li::before {
  content: "!";
  flex: none;
  width: 16px; height: 16px;
  border-radius: 5px;
  display: inline-grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.72rem;
  background: rgba(255, 130, 159, 0.18);
  color: #9C3A54;
  transform: translateY(2px);
}
.intelle-shortlist-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.intelle-shortlist-actions {
  margin-top: 22px;
  border: 1px solid var(--intelle-border-light);
  border-radius: var(--intelle-radius-md);
  background: var(--intelle-panel-light);
  padding: 16px;
  display: grid;
  gap: 10px;
}
.intelle-shortlist-actions .intelle-btn { width: 100%; }
.intelle-shortlist-actions .intelle-btn--ghost {
  color: var(--intelle-ink);
  border-color: var(--intelle-muted-light);
}
.intelle-shortlist-actions .intelle-btn--ghost:hover,
.intelle-shortlist-actions .intelle-btn--ghost:focus-visible {
  color: var(--intelle-ink);
  border-color: var(--intelle-ink);
}
@media (min-width: 700px) {
  .intelle-shortlist-actions { grid-template-columns: repeat(3, 1fr); }
  .intelle-shortlist-actions .intelle-btn { width: auto; }
}
.intelle-shortlist-steps { margin: 0; padding: 0 0 0 0; list-style: none; counter-reset: intelle-x-step; display: grid; gap: 12px; }
.intelle-shortlist-steps li {
  counter-increment: intelle-x-step;
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 0.96rem;
  line-height: 1.55;
}
.intelle-shortlist-steps li::before {
  content: counter(intelle-x-step);
  flex: none;
  width: 26px; height: 26px;
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  background: var(--intelle-ink);
  color: var(--intelle-paper);
  font-weight: 800;
  font-size: 0.82rem;
  transform: translateY(4px);
}

/* ------------------------------------------------------------
   09 TOPIC HUB
   ------------------------------------------------------------ */
.intelle-hub-groups { display: grid; gap: 14px; }
.intelle-hub-group {
  border: 1px solid var(--intelle-border-light);
  border-radius: var(--intelle-radius-sm);
  background: var(--intelle-panel-light);
  padding: 16px;
}
.intelle-hub-group h3 { margin: 0 0 6px; font-weight: 800; font-size: 1rem; }
.intelle-hub-group p { margin: 0; color: var(--intelle-muted-light); font-size: 0.9rem; line-height: 1.55; }
@media (min-width: 760px) { .intelle-hub-groups { grid-template-columns: 1fr 1fr; } }
.intelle-hub-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--intelle-border-light); border-radius: var(--intelle-radius-sm); background: var(--intelle-panel-light); }
.intelle-hub-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.9rem; }
.intelle-hub-table th, .intelle-hub-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--intelle-border-light); vertical-align: top; line-height: 1.5; }
.intelle-hub-table thead th { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--intelle-muted-light); background: var(--intelle-paper); position: sticky; left: auto; }
.intelle-hub-table tbody th { font-weight: 800; background: var(--intelle-paper); position: sticky; left: 0; min-width: 150px; }
.intelle-hub-table tr:last-child th, .intelle-hub-table tr:last-child td { border-bottom: 0; }
.intelle-hub-related { display: grid; gap: 12px; }
@media (min-width: 760px) { .intelle-hub-related { grid-template-columns: repeat(4, 1fr); } }
.intelle-hub-related a {
  display: grid;
  gap: 6px;
  border: 1px solid var(--intelle-border-light);
  border-radius: var(--intelle-radius-sm);
  background: var(--intelle-panel-light);
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  font-weight: 800;
  min-height: 44px;
  transition: border-color 180ms var(--intelle-ease), transform 180ms var(--intelle-ease);
}
.intelle-hub-related a:hover { border-color: var(--intelle-ink); transform: translateY(-2px); }
.intelle-hub-related span { font-weight: 600; color: var(--intelle-muted-light); font-size: 0.85rem; }

/* ------------------------------------------------------------
   10 PROVIDER PROFILE
   ------------------------------------------------------------ */
.intelle-provider-rows { display: grid; gap: 12px; }
.intelle-provider-row {
  border: 1px solid var(--intelle-border-light);
  border-radius: var(--intelle-radius-sm);
  background: var(--intelle-panel-light);
  padding: 14px 16px;
  display: grid;
  gap: 10px;
}
.intelle-provider-row__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.intelle-provider-row__name { margin: 0; font-weight: 800; font-size: 1.02rem; overflow-wrap: anywhere; }
.intelle-provider-row__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--intelle-muted-light); font-size: 0.85rem; font-weight: 700; margin: 0; padding: 0; list-style: none; }
.intelle-provider-row__meta li { display: inline-flex; gap: 6px; align-items: center; }
.intelle-provider-row__meta li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--intelle-border-light); }
.intelle-provider-history { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.intelle-provider-history li {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--intelle-border-light);
  font-size: 0.92rem;
  line-height: 1.5;
}
.intelle-provider-history li:first-child { border-top: 0; }
.intelle-provider-history time { font-weight: 800; color: var(--intelle-muted-light); font-size: 0.84rem; }

/* ------------------------------------------------------------
   11 EDITORIAL ARTICLE
   ------------------------------------------------------------ */
.intelle-article-layout { display: grid; gap: 30px; }
.intelle-article-layout > * { min-width: 0; }
@media (min-width: 980px) {
  .intelle-article-layout { grid-template-columns: minmax(0, 1fr) 264px; gap: 48px; align-items: start; }
}
.intelle-article-body { max-width: 68ch; }
.intelle-article-body > p { font-size: 1.02rem; line-height: 1.75; margin: 0 0 18px; }
.intelle-article-body > h2 { font-weight: 800; font-size: 1.45rem; letter-spacing: -0.02em; line-height: 1.2; margin: 36px 0 14px; scroll-margin-top: 90px; }
.intelle-article-body > h3 { font-weight: 800; font-size: 1.12rem; margin: 26px 0 10px; }
.intelle-article-byline {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--intelle-border-light);
  border-bottom: 1px solid var(--intelle-border-light);
  padding: 14px 0;
  margin: 18px 0;
  font-size: 0.9rem;
}
.intelle-article-byline strong { font-weight: 800; }
.intelle-article-byline span { color: var(--intelle-muted-light); font-weight: 600; }
.intelle-article-share { display: flex; flex-wrap: wrap; gap: 10px; }
.intelle-article-toc {
  border: 1px solid var(--intelle-border-light);
  border-radius: var(--intelle-radius-sm);
  background: var(--intelle-panel-light);
}
.intelle-article-toc summary {
  cursor: pointer;
  list-style: none;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 16px;
  font-weight: 800;
  font-size: 0.95rem;
}
.intelle-article-toc summary::-webkit-details-marker { display: none; }
.intelle-article-toc summary::after {
  content: "";
  width: 9px; height: 9px;
  border-right: 2px solid var(--intelle-muted-light);
  border-bottom: 2px solid var(--intelle-muted-light);
  transform: rotate(45deg);
  transition: transform 200ms var(--intelle-ease);
}
.intelle-article-toc[open] summary::after { transform: rotate(225deg); }
.intelle-article-toc ol { margin: 0; padding: 4px 16px 14px 16px; list-style: none; display: grid; gap: 2px; }
.intelle-article-toc a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 2px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--intelle-muted-light);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.35;
  transition: color 160ms var(--intelle-ease), background-color 160ms var(--intelle-ease);
}
.intelle-article-toc a:hover { color: var(--intelle-ink); background: rgba(8, 11, 18, 0.05); }
.intelle-article-toc a.is-current { color: var(--intelle-ink); background: rgba(8, 11, 18, 0.06); }
@media (min-width: 980px) {
  .intelle-article-aside { position: sticky; top: 86px; }
  .intelle-article-toc summary { pointer-events: none; }
  .intelle-article-toc summary::after { display: none; }
}
.intelle-article-callout {
  border: 1px solid var(--intelle-border-light);
  border-left: 4px solid var(--intelle-violet);
  border-radius: var(--intelle-radius-sm);
  background: var(--intelle-panel-light);
  padding: 16px 18px;
  margin: 22px 0;
}
.intelle-article-callout--practice { border-left-color: var(--intelle-blue); }
.intelle-article-callout--limit { border-left-color: var(--intelle-coral); }
.intelle-article-callout--definition { border-left-color: var(--intelle-mint); }
.intelle-article-callout h3 { margin: 0 0 6px; font-weight: 800; font-size: 0.95rem; }
.intelle-article-callout p { margin: 0; font-size: 0.95rem; line-height: 1.65; }
.intelle-article-callout p + p { margin-top: 10px; }
.intelle-article-key {
  border: 1px solid var(--intelle-border-light);
  border-radius: var(--intelle-radius-md);
  background: var(--intelle-panel-light);
  padding: 18px 20px;
  margin: 0 0 26px;
}
.intelle-article-key h2 { margin: 0 0 12px; font-weight: 800; font-size: 1.05rem; }
.intelle-article-cite { font-size: 0.8em; font-weight: 800; vertical-align: super; text-decoration: none; color: var(--intelle-ink); }
.intelle-article-cite:hover { color: var(--intelle-violet); }
.intelle-article-sources { margin: 0; padding: 0 0 0 0; list-style: none; counter-reset: intelle-src; display: grid; gap: 10px; }
.intelle-article-sources li {
  counter-increment: intelle-src;
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.55;
  scroll-margin-top: 90px;
  overflow-wrap: anywhere;
}
.intelle-article-sources li::before {
  content: counter(intelle-src);
  flex: none;
  width: 22px; height: 22px;
  border-radius: 7px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--intelle-border-light);
  background: var(--intelle-paper);
  font-weight: 800;
  font-size: 0.74rem;
  transform: translateY(2px);
}
.intelle-article-history { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.intelle-article-history li {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--intelle-border-light);
  font-size: 0.9rem;
  line-height: 1.5;
}
.intelle-article-history li:first-child { border-top: 0; }
.intelle-article-history time { font-weight: 800; color: var(--intelle-muted-light); font-size: 0.82rem; }
.intelle-article-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--intelle-border-light); border-radius: var(--intelle-radius-sm); background: var(--intelle-panel-light); margin: 22px 0; }
.intelle-article-table { width: 100%; border-collapse: collapse; min-width: 540px; font-size: 0.9rem; }
.intelle-article-table th, .intelle-article-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--intelle-border-light); line-height: 1.5; vertical-align: top; }
.intelle-article-table thead th { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--intelle-muted-light); background: var(--intelle-paper); }
.intelle-article-table tbody th { font-weight: 800; background: var(--intelle-paper); position: sticky; left: 0; min-width: 140px; }
.intelle-article-table tr:last-child th, .intelle-article-table tr:last-child td { border-bottom: 0; }

/* ------------------------------------------------------------
   12 RESEARCH ARCHIVE
   ------------------------------------------------------------ */
.intelle-archive-lead {
  border: 1px solid var(--intelle-border-light);
  border-radius: var(--intelle-radius-md);
  background: var(--intelle-panel-light);
  overflow: hidden;
  display: grid;
}
.intelle-archive-lead__cover {
  background:
    radial-gradient(420px 200px at 90% -20%, rgba(141, 124, 255, 0.2), transparent 60%),
    var(--intelle-ink);
  color: var(--intelle-canvas);
  padding: 24px 22px;
  display: grid;
  gap: 12px;
  align-content: center;
}
.intelle-archive-lead__cover .intelle-bars { height: 44px; }
.intelle-archive-lead__body { padding: 20px 22px; display: grid; gap: 10px; align-content: start; }
.intelle-archive-lead__title { margin: 0; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.2; }
@media (min-width: 860px) { .intelle-archive-lead { grid-template-columns: 0.9fr 1.1fr; } }
.intelle-archive-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .intelle-archive-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .intelle-archive-grid { grid-template-columns: repeat(3, 1fr); } }
.intelle-archive-card {
  border: 1px solid var(--intelle-border-light);
  border-radius: var(--intelle-radius-md);
  background: var(--intelle-panel-light);
  padding: 18px;
  display: grid;
  gap: 10px;
  align-content: start;
  transition: border-color 180ms var(--intelle-ease), transform 180ms var(--intelle-ease);
}
.intelle-archive-card:hover { border-color: var(--intelle-ink); transform: translateY(-2px); }
.intelle-archive-card__type {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--intelle-muted-light);
}
.intelle-archive-card__type::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--intelle-violet); }
.intelle-archive-card--guide .intelle-archive-card__type::before { background: var(--intelle-blue); }
.intelle-archive-card--comparison .intelle-archive-card__type::before { background: var(--intelle-warm); }
.intelle-archive-card--methodology .intelle-archive-card__type::before { background: var(--intelle-mint); }
.intelle-archive-card__title { margin: 0; font-weight: 800; font-size: 1.05rem; line-height: 1.3; overflow-wrap: anywhere; }
.intelle-archive-card__title a { color: inherit; text-decoration: none; }
.intelle-archive-card__title a:hover { text-decoration: underline; text-decoration-color: var(--intelle-mint); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.intelle-archive-card__value { margin: 0; color: var(--intelle-muted-light); font-size: 0.9rem; line-height: 1.55; }
.intelle-archive-card__meta { display: flex; flex-wrap: wrap; gap: 5px 12px; margin: 0; padding: 0; list-style: none; color: var(--intelle-muted-light); font-size: 0.8rem; font-weight: 700; }
.intelle-archive-card__meta li { display: inline-flex; align-items: center; gap: 6px; }
.intelle-archive-card__meta li::before { content: ""; width: 5px; height: 5px; border-radius: 2px; background: var(--intelle-border-light); }
.intelle-archive-topics { display: grid; gap: 12px; }
@media (min-width: 700px) { .intelle-archive-topics { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .intelle-archive-topics { grid-template-columns: repeat(4, 1fr); } }
.intelle-archive-topic {
  border: 1px solid var(--intelle-border);
  border-radius: var(--intelle-radius-md);
  background:
    radial-gradient(220px 130px at 88% -18%, rgba(97, 180, 255, 0.16), transparent 60%),
    var(--intelle-ink-soft);
  color: var(--intelle-canvas);
  padding: 18px;
  display: grid;
  gap: 8px;
  align-content: start;
  text-decoration: none;
  transition: transform 180ms var(--intelle-ease), border-color 180ms var(--intelle-ease);
}
.intelle-archive-topic:hover { transform: translateY(-2px); border-color: var(--intelle-muted-dark); }
.intelle-archive-topic strong { font-weight: 800; font-size: 1.02rem; }
.intelle-archive-topic span { color: var(--intelle-muted-dark); font-size: 0.85rem; font-weight: 600; line-height: 1.5; }
.intelle-archive-topic .intelle-underline { margin-top: 2px; }
.intelle-archive-more { display: grid; justify-items: center; gap: 8px; padding-top: 8px; }
.intelle-archive-more p { margin: 0; color: var(--intelle-muted-light); font-size: 0.85rem; font-weight: 700; }

/* ------------------------------------------------------------
   13 SEARCH RESULTS
   ------------------------------------------------------------ */
.intelle-search-head { display: grid; gap: 14px; }
.intelle-search-head .intelle-search { max-width: 560px; }
.intelle-search-count { margin: 0; color: var(--intelle-muted-light); font-weight: 700; font-size: 0.92rem; }
.intelle-search-toolbar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; }
.intelle-search-sort { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; font-weight: 800; color: var(--intelle-muted-light); }
.intelle-search-sort select {
  min-height: 44px;
  border: 1.5px solid var(--intelle-border-light);
  border-radius: 10px;
  background: var(--intelle-panel-light);
  color: var(--intelle-ink);
  font: inherit;
  font-weight: 700;
  padding: 0 10px;
}
.intelle-search-group { padding-top: 26px; }
.intelle-search-group__title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 14px;
  font-weight: 800;
  font-size: 1.1rem;
}
.intelle-search-group__count { color: var(--intelle-muted-light); font-size: 0.85rem; font-weight: 700; }
.intelle-search-rows { display: grid; gap: 12px; }
.intelle-search-row {
  border: 1px solid var(--intelle-border-light);
  border-radius: var(--intelle-radius-sm);
  background: var(--intelle-panel-light);
  padding: 14px 16px;
  display: grid;
  gap: 8px;
}
.intelle-search-row__kind { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; color: var(--intelle-muted-light); }
.intelle-search-row__title { margin: 0; font-weight: 800; font-size: 1rem; line-height: 1.35; overflow-wrap: anywhere; }
.intelle-search-row__title a { color: inherit; text-decoration: none; }
.intelle-search-row__title a:hover { text-decoration: underline; text-decoration-color: var(--intelle-mint); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.intelle-search-row__text { margin: 0; color: var(--intelle-muted-light); font-size: 0.9rem; line-height: 1.55; }
.intelle-search-row mark {
  background: rgba(244, 214, 162, 0.55);
  color: inherit;
  border-radius: 3px;
  padding: 0 2px;
  font-weight: 800;
}
.intelle-search-suggest { display: flex; flex-wrap: wrap; gap: 8px; }

/* ------------------------------------------------------------
   14 404
   ------------------------------------------------------------ */
.intelle-x-404 {
  min-height: 62vh;
  display: grid;
  align-content: center;
  padding: 56px 0;
}
.intelle-x-404__code {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--intelle-border);
  color: var(--intelle-muted-dark);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
}
.intelle-x-404 .intelle-bars { height: 46px; margin-bottom: 18px; }
.intelle-x-404__routes { display: grid; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .intelle-x-404__routes { grid-template-columns: repeat(2, minmax(0, 320px)); } }
.intelle-x-404__routes a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--intelle-border);
  border-radius: var(--intelle-radius-sm);
  color: var(--intelle-canvas);
  background: rgba(23, 27, 37, 0.6);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.94rem;
  transition: border-color 180ms var(--intelle-ease), background-color 180ms var(--intelle-ease);
}
.intelle-x-404__routes a::after {
  content: "";
  width: 8px; height: 8px;
  border-right: 2px solid var(--intelle-muted-dark);
  border-top: 2px solid var(--intelle-muted-dark);
  transform: rotate(45deg);
  flex: none;
}
.intelle-x-404__routes a:hover { border-color: var(--intelle-muted-dark); background: rgba(255, 252, 246, 0.07); }

/* ------------------------------------------------------------
   15 PRINT
   ------------------------------------------------------------ */
@media print {
  .intelle-header, .intelle-footer, .intelle-shortlist-actions,
  .intelle-x-demo, .intelle-x-toast, .intelle-article-share { display: none !important; }
  .intelle-shortlist-card { break-inside: avoid; border: 1px solid #CCC7BA; }
  .intelle-x-hero { padding-top: 0; }
  body { background: #FFFFFF; }
}

/* ------------------------------------------------------------
   16 REDUCED MOTION
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .intelle-x-skeleton__bar,
  .intelle-x-skeleton__block { animation: none; background: rgba(8, 11, 18, 0.1); }
  .intelle-x-toast { transition: none; }
  .intelle-archive-card:hover,
  .intelle-archive-topic:hover,
  .intelle-hub-related a:hover { transform: none; }
}
