/* ============================================================
   NEW AI HEALTH
   INSTITUTIONAL / STANDARDS PAGE FAMILY

   Depends on:
   /themes/css/system.css
   /themes/css/styles.css

   Used by:
   /about.html
   /editorial-standards.html
   /safe-health-ai.html

   This file owns long-form institutional presentation only.
   Header, menu, footer, global typography, tokens, and reset
   remain owned by their shared system files.
   ============================================================ */


/* ============================================================
   PAGE COMPOSITION
   ============================================================ */

.page-institutional .institutional-page {
  width: min(100%, var(--reading-width));
  margin-inline: auto;
  padding:
    clamp(var(--space-16), 8vw, var(--space-24))
    0
    clamp(var(--space-20), 9vw, 7rem);
}


/* ============================================================
   PAGE HEADER
   ============================================================ */

.institutional-header {
  max-width: 720px;
  margin: 0 0 var(--space-8);
}

.institutional-eyebrow {
  margin: 0 0 var(--space-4);

  color: var(--red);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.institutional-header h1 {
  max-width: 13ch;
  margin: 0;

  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: var(--text-display-sm);
  font-weight: 680;
  letter-spacing: var(--tracking-hero);
  line-height: 0.98;
  text-wrap: balance;
}

.institutional-subtitle {
  max-width: 680px;
  margin: var(--space-5) 0 0;

  color: var(--text-soft);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.015em;
  line-height: 1.6;
}

.institutional-lede {
  max-width: 34ch;
  margin: 0 0 var(--space-12);

  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--tracking-tight);
  line-height: 1.2;
  text-wrap: balance;
}


/* ============================================================
   LONG-FORM SECTIONS
   ============================================================ */

.institutional-section {
  margin: var(--space-12) 0 0;
  padding: var(--space-10) 0 0;

  border-top: 1px solid var(--divider);
}

.institutional-section h2 {
  max-width: 22ch;
  margin: 0 0 var(--space-5);

  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  font-weight: 660;
  letter-spacing: var(--tracking-display);
  line-height: 1.08;
  text-wrap: balance;
}

.institutional-section p {
  max-width: 72ch;
  margin: 0;

  color: var(--text);
  font-size: var(--text-base);
  line-height: 1.78;
}

.institutional-section p + p {
  margin-top: var(--space-5);
}

.institutional-section a {
  color: var(--blue);
  font-weight: var(--font-weight-medium);
  text-decoration-color: rgba(47, 111, 159, 0.32);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;

  transition:
    color var(--duration-fast) var(--ease-standard),
    text-decoration-color var(--duration-fast) var(--ease-standard);
}

.institutional-section a:hover {
  color: var(--text-strong);
  text-decoration-color: var(--red);
}

.institutional-section a:focus-visible {
  border-radius: 3px;
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}


/* ============================================================
   BOUNDED EDITORIAL NOTE

   This is the only card-like surface in the standard
   institutional reading flow.
   ============================================================ */

.institutional-section--note {
  margin-top: 0;
  padding: clamp(var(--space-6), 4vw, var(--space-10));

  border: 1px solid var(--border);
  border-radius: var(--radius-panel);

  background: var(--surface-hover);

  box-shadow: var(--shadow-soft);
}

.institutional-section--note h2 {
  margin-bottom: var(--space-4);
}

.institutional-section--note p {
  max-width: 68ch;
}

.institutional-section + .institutional-section--note {
  margin-top: var(--space-6);
}

/* ============================================================
   LAST UPDATED
   ============================================================ */

.institutional-updated {
  margin-top: var(--space-12);
  padding-top: var(--space-5);

  border-top: 1px solid var(--divider);
}

.institutional-updated p {
  margin: 0;

  color: var(--text-faint);
  font-size: var(--text-sm);
  line-height: 1.5;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 760px) {
  .page-institutional .institutional-page {
    padding:
      var(--space-12)
      0
      var(--space-20);
  }

  .institutional-header {
    margin-bottom: var(--space-6);
  }

  .institutional-header h1 {
    max-width: 15ch;
    font-size: clamp(2.2rem, 12vw, 3.1rem);
  }

  .institutional-subtitle {
    max-width: 38ch;
    font-size: var(--text-sm);
  }

  .institutional-lede {
    margin-bottom: var(--space-10);
    font-size: clamp(1.25rem, 6vw, 1.55rem);
  }

  .institutional-section {
    margin-top: var(--space-10);
    padding-top: var(--space-8);
  }

  .institutional-section h2 {
    margin-bottom: var(--space-4);
    font-size: clamp(1.45rem, 7vw, 1.85rem);
  }

  .institutional-section p {
    font-size: var(--text-base);
    line-height: 1.72;
  }

  .institutional-section--note {
    margin-top: 0;
    padding: var(--space-6);
  }
}


@media (max-width: 520px) {
  .institutional-subtitle {
    max-width: 32ch;
  }

  .institutional-section--note {
    padding: var(--space-5);
    border-radius: var(--radius-card);
  }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .institutional-section a {
    transition: none;
  }
}

/* ============================================================
   INSTITUTIONAL LISTS
   ============================================================ */

.institutional-list {
  max-width: 68ch;
  margin: var(--space-5) 0 0;
  padding-left: 1.3rem;

  color: var(--text);
}

.institutional-list li {
  padding-left: var(--space-2);

  font-size: var(--text-base);
  line-height: 1.72;
}

.institutional-list li + li {
  margin-top: var(--space-3);
}

.institutional-list li::marker {
  color: var(--blue);
  font-size: 0.82em;
}


@media (max-width: 760px) {
  .institutional-list {
    padding-left: 1.2rem;
  }

  .institutional-list li {
    line-height: 1.68;
  }
}

/* ============================================================
   NOT FOUND PAGE
   ============================================================ */

.not-found-page {
  width: min(100%, var(--reading-width));
  min-height: clamp(24rem, 58vh, 36rem);
  margin-inline: auto;
  padding:
    clamp(var(--space-12), 7vw, var(--space-20))
    0;

  display: grid;
  align-content: center;
  justify-items: start;
}

.not-found-code {
  margin: 0 0 var(--space-4);

  color: var(--red);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.not-found-page h1 {
  max-width: 12ch;
  margin: 0;

  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: var(--text-display-sm);
  font-weight: 680;
  letter-spacing: var(--tracking-hero);
  line-height: 0.98;
  text-wrap: balance;
}

.not-found-message {
  max-width: 38rem;
  margin: var(--space-5) 0 0;

  color: var(--text-soft);
  font-size: var(--text-lg);
  line-height: 1.65;
}

.not-found-link {
  display: inline-flex;
  align-items: center;
  margin-top: var(--space-6);

  color: var(--blue);
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  line-height: 1.4;
  text-decoration-color: rgba(47, 111, 159, 0.32);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;

  transition:
    color var(--duration-fast) var(--ease-standard),
    text-decoration-color var(--duration-fast) var(--ease-standard);
}

.not-found-link:hover {
  color: var(--text-strong);
  text-decoration-color: var(--red);
}

.not-found-link:focus-visible {
  border-radius: 3px;
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}


@media (max-width: 760px) {
  .not-found-page {
    min-height: clamp(22rem, 54vh, 30rem);
    padding:
      var(--space-12)
      0
      var(--space-16);
  }

  .not-found-page h1 {
    font-size: clamp(2.2rem, 12vw, 3.1rem);
  }

  .not-found-message {
    max-width: 32rem;
    font-size: var(--text-base);
    line-height: 1.65;
  }
}


@media (prefers-reduced-motion: reduce) {
  .not-found-link {
    transition: none;
  }
}

