/* ============================================================
   INTELLEHEALTH TRUST AND UTILITY STYLESHEET
   Additive layer for pages 19 to 24. Loads after the approved
   intellehealth.css and intellehealth-expansion.css and never
   redefines approved selectors. Legal readability first: calm
   hierarchy, comfortable measure, no ornamental card around
   every paragraph, no seals or badges.

   Sections
   01 Legal document shell
   02 Long-content readability helpers
   03 Contact form
   04 Affiliate link label examples
   05 Reduced motion
   06 Print rules for legal pages
   ============================================================ */

/* ------------------------------------------------------------
   01 LEGAL DOCUMENT SHELL
   ------------------------------------------------------------ */
.intelle-trust-hero {
  background: var(--intelle-ink);
  color: var(--intelle-canvas);
  padding: 34px 0 30px;
}
.intelle-trust-hero .intelle-breadcrumbs a { color: var(--intelle-muted-dark); }
.intelle-trust-hero .intelle-breadcrumbs [aria-current] { color: var(--intelle-canvas); }
.intelle-trust-hero__title {
  margin: 10px 0 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(1.7rem, 4.6vw, 2.4rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
}
.intelle-trust-hero .intelle-underline { margin-top: 12px; }
.intelle-trust-hero__meta {
  margin: 14px 0 0;
  color: var(--intelle-muted-dark);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.6;
}
.intelle-trust-draft {
  display: inline-block;
  border: 1.5px dashed var(--intelle-border);
  border-radius: 999px;
  padding: 3px 12px;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--intelle-canvas);
}

.intelle-trust-summary {
  border: 1px solid var(--intelle-border-light);
  border-left: 4px solid var(--intelle-blue);
  border-radius: var(--intelle-radius-sm);
  background: var(--intelle-panel-light);
  padding: 18px 20px;
  margin: 0 0 8px;
  color: var(--intelle-ink);
}
.intelle-trust-summary h2 { margin-top: 0; color: var(--intelle-ink); }
.intelle-trust-summary p { color: var(--intelle-muted-light); }
.intelle-trust-summary li { color: var(--intelle-ink); }
.intelle-trust-summary p:last-child,
.intelle-trust-summary ul:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------
   02 LONG-CONTENT READABILITY HELPERS
   ------------------------------------------------------------ */
.intelle-trust-body { max-width: 70ch; }
.intelle-trust-body h2 { scroll-margin-top: 90px; }
.intelle-trust-body h3 { scroll-margin-top: 90px; }
.intelle-trust-break { overflow-wrap: anywhere; word-break: break-word; }
.intelle-legal .intelle-x-list li { line-height: 1.65; }
.intelle-trust-placeholder {
  display: inline-block;
  border: 1.5px dashed var(--intelle-border-light);
  border-radius: 8px;
  padding: 1px 8px;
  font-weight: 800;
  font-size: 0.88em;
  color: var(--intelle-muted-light);
  white-space: nowrap;
}

/* ------------------------------------------------------------
   03 CONTACT FORM
   ------------------------------------------------------------ */
.intelle-trust-form { display: grid; gap: 16px; max-width: 640px; }
.intelle-trust-field { display: grid; gap: 6px; }
.intelle-trust-field label {
  font-weight: 800;
  font-size: 0.9rem;
}
.intelle-trust-field .intelle-trust-hint {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--intelle-muted-light);
}
.intelle-trust-input,
.intelle-trust-select,
.intelle-trust-textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--intelle-border-light);
  border-radius: 12px;
  background: var(--intelle-paper);
  color: var(--intelle-ink);
  font: inherit;
  line-height: 1.5;
}
.intelle-trust-textarea { min-height: 140px; resize: vertical; }
.intelle-trust-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.intelle-trust-input:focus-visible,
.intelle-trust-select:focus-visible,
.intelle-trust-textarea:focus-visible {
  outline: 3px solid var(--intelle-blue);
  outline-offset: 2px;
}
.intelle-trust-field.is-invalid .intelle-trust-input,
.intelle-trust-field.is-invalid .intelle-trust-select,
.intelle-trust-field.is-invalid .intelle-trust-textarea {
  border-color: var(--intelle-coral);
}
.intelle-trust-error {
  margin: 0;
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--intelle-ink);
}
.intelle-trust-error::before { content: "! "; font-weight: 800; color: var(--intelle-coral); }
.intelle-trust-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  line-height: 1.55;
  cursor: pointer;
}
.intelle-trust-consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; }

.intelle-trust-layout .intelle-x-panel { color: var(--intelle-ink); }
.intelle-trust-layout .intelle-x-panel .intelle-x-kicker,
.intelle-trust-layout .intelle-x-panel .intelle-x-facts dt { color: var(--intelle-muted-light); }
.intelle-trust-layout .intelle-x-panel .intelle-x-facts dd { color: var(--intelle-ink); }
.intelle-trust-layout .intelle-article-toc { color: var(--intelle-ink); }
.intelle-trust-layout .intelle-article-toc summary { color: var(--intelle-ink); }
.intelle-trust-layout {
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.intelle-trust-layout > * { min-width: 0; }
.intelle-trust-layout .intelle-article-aside { width: 100%; }
.intelle-trust-input::placeholder,
.intelle-trust-textarea::placeholder {
  color: #777B86;
  opacity: 0.78;
}

/* Honeypot: removed from visual flow and pointer reach, still in
   the accessibility tree for implementation-side spam filtering. */
.intelle-trust-hp {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.intelle-trust-form [aria-busy="true"] { opacity: 0.75; pointer-events: none; }

/* ------------------------------------------------------------
   04 AFFILIATE LINK LABEL EXAMPLES
   ------------------------------------------------------------ */
.intelle-trust-linkdemo {
  display: grid;
  gap: 14px;
  border: 1px solid var(--intelle-border-light);
  border-radius: var(--intelle-radius-sm);
  background: var(--intelle-panel-light);
  padding: 18px 20px;
  max-width: 560px;
  color: var(--intelle-ink);
}
.intelle-trust-linkdemo p { margin: 0; color: var(--intelle-ink); }
.intelle-trust-linkdemo .intelle-trust-hint { color: var(--intelle-muted-light); }
.intelle-linklabel {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  vertical-align: middle;
}
.intelle-linklabel--aff {
  border: 1.5px solid var(--intelle-warm);
  color: var(--intelle-ink);
}
.intelle-linklabel--neutral {
  border: 1.5px solid var(--intelle-border-light);
  color: var(--intelle-muted-light);
}

/* ------------------------------------------------------------
   05 REDUCED MOTION
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .intelle-trust-form [aria-busy="true"] { transition: none; }
}

@media (max-width: 900px) {
  .intelle-trust-layout { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------
   06 PRINT RULES FOR LEGAL PAGES
   ------------------------------------------------------------ */
@media print {
  .intelle-legal ~ footer,
  body:has(.intelle-legal) .intelle-header,
  body:has(.intelle-legal) footer,
  body:has(.intelle-legal) .intelle-skip-link,
  .intelle-legal .intelle-article-aside,
  .intelle-legal .intelle-breadcrumbs { display: none !important; }
  .intelle-trust-hero {
    background: #fff;
    color: #000;
    padding: 0 0 12px;
  }
  .intelle-trust-hero__meta,
  .intelle-trust-draft { color: #000; border-color: #000; }
  .intelle-legal { background: #fff; color: #000; }
  .intelle-trust-summary { border-color: #000; background: #fff; }
  .intelle-trust-body { max-width: none; }
  .intelle-trust-body a { text-decoration: underline; color: #000; }
  .intelle-trust-body a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
  .intelle-trust-body h2 { break-after: avoid; }
}
