/* ═══════════════════════════════════════════════════════════════
   ia-* — Instructor Agreement Design System
   Palette: --cr #A41034 | --bg #F5F1EA | --ink #1C1714 | --card #FFFFFF
   Extracted from an inline <style> block into this external file so the
   page has no internal/inline CSS. TOC/content card padding and content
   max-width are aligned with the privacy-policy page's pp2-toc/pp2-content
   (--sp-3: 12px, --content-max: 740px) per that page's reference look.
═══════════════════════════════════════════════════════════════ */
:root {
  --cr:     #A41034;
  --cr-d:   #7e0c27;
  --cr-t:   #fbeef2;
  --ink:    #1C1714;
  --body:   #4A4441;
  /* #8E847C only reached 3.66:1 against white and 3.25:1 against --bg —
     both fail WCAG AA (4.5:1) for normal-size text. Darkened to a value
     that clears 4.5:1 against every surface this token is used on. */
  --muted:  #6B6259;
  --bg:     #F5F1EA;
  --card:   #FFFFFF;
  --border: #E8E0D5;
  --line:   #EFE8DD;
  --display:'Newsreader', Georgia, serif;
  --sans:   'Hanken Grotesk', system-ui, sans-serif;
}

/* ── Layout shell ── */
.ia-wrap { background: var(--bg); }

/* ── Progress bar ── */
.ia-progress {
  position: fixed; top: 0; left: 0; width: 100%; height: 3px;
  background: rgba(228,214,200,.4); z-index: 9999; pointer-events: none;
}
.ia-progress__fill {
  height: 100%; width: 0; background: var(--cr);
  transition: width .1s linear; border-radius: 0 2px 2px 0;
}

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.ia-hero {
  background: var(--cr);
  padding: 56px 0 52px;
  position: relative;
  overflow: hidden;
}
.ia-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 85% 50%, rgba(255,255,255,.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(0,0,0,.15) 0%, transparent 60%);
}
.ia-hero__inner { position: relative; }

/* ─────────────────────────────────────────
   METRIC STRIP
───────────────────────────────────────── */
.ia-metrics {
  padding: 28px 0 0;
}
.ia-metrics__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.ia-metric {
  position: relative;
  overflow: hidden;
  padding: 22px 20px 20px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  display: flex; align-items: center; gap: 14px;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.ia-metric::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  border-radius: 12px 12px 0 0;
  background: var(--cr);
}
.ia-metric:hover {
  border-color: var(--cr);
  box-shadow: 0 6px 20px rgba(164,16,52,.10);
  transform: translateY(-2px);
}
.ia-metric__icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--cr-t);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--cr);
}
.ia-metric__body {}
.ia-metric__val {
  font-family: var(--display);
  font-size: 1.6rem; font-weight: 600;
  color: var(--ink); line-height: 1.1;
  letter-spacing: -.02em;
}
.ia-metric__label {
  font-size: 12px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em; margin-top: 2px;
}

/* Category accents — same red/amber/green/blue rhythm used on the
   Community Guidelines page's card grids. */
.ia-metric--red::before      { background: #ef4444; }
.ia-metric--amber::before    { background: #f59e0b; }
.ia-metric--green::before    { background: #10b981; }
.ia-metric--blue::before     { background: #3b82f6; }

.ia-metric--red:hover        { border-color: #ef4444; box-shadow: 0 6px 20px rgba(239,68,68,.12); }
.ia-metric--amber:hover      { border-color: #f59e0b; box-shadow: 0 6px 20px rgba(245,158,11,.12); }
.ia-metric--green:hover      { border-color: #10b981; box-shadow: 0 6px 20px rgba(16,185,129,.12); }
.ia-metric--blue:hover       { border-color: #3b82f6; box-shadow: 0 6px 20px rgba(59,130,246,.12); }

.ia-metric--red .ia-metric__icon    { background: rgba(239,68,68,.08);  color: #dc2626; }
.ia-metric--amber .ia-metric__icon  { background: rgba(245,158,11,.10); color: #b45309; }
.ia-metric--green .ia-metric__icon  { background: rgba(16,185,129,.10); color: #047857; }
.ia-metric--blue .ia-metric__icon   { background: rgba(59,130,246,.10); color: #1d4ed8; }

/* ─────────────────────────────────────────
   TL;DR BANNER
───────────────────────────────────────── */
.ia-tldr {
  background: var(--cr-t);
  border-left: 4px solid var(--cr);
  border-radius: 0 12px 12px 0;
  padding: 18px 24px;
  margin: 32px 0 0;
}
.ia-tldr__kicker {
  font-size: 10px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--cr); margin-bottom: 6px;
}
.ia-tldr p {
  font-size: 17.5px; line-height: 1.65; color: var(--body); margin: 0;
}
.ia-tldr p + p { margin-top: 8px; }

.ia-attorney-banner {
  background: #fff8e6;
  border: 1px solid #f0c040;
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 16px;
  font-size: 16px; line-height: 1.55; color: #7a5c00;
}
.ia-attorney-banner strong { color: #5a4200; }

/* ─────────────────────────────────────────
   BODY LAYOUT
───────────────────────────────────────── */
/* White band behind the TOC+content grid — fills whatever width the
   outer .container (see the <section><div class="container"> wrapper in
   the blade file, matching the header's/footer's shared container rule
   in ig-theme.css) actually resolves to, instead of the grid's own two
   cards leaving bare cream page-background showing wherever they fall
   short of that edge. */
.ia-body-band {
  
}
.ia-body {
  position: relative; /* anchor for ia-toc--bottomed */
  display: grid;
  grid-template-columns: 288px 1fr;
  gap: 28px;
  align-items: start;
  padding: 32px 0 56px;
}

/* ── TOC — its own card, matching the content card and the metric cards
   above; padding matches privacy-policy's pp2-toc (--sp-3: 12px). ── */
.ia-toc {
  /* no position: sticky — JS handles pinning via ia-toc--pinned/bottomed */
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  /* Shrinks to fit its content (heading + links + CTA), capped so it
     never extends past the visible viewport. No explicit height — a
     short TOC stays a compact, naturally-sized card instead of being
     stretched to fill the whole window with dead or artificially-tall
     rows; a long TOC (13 links) naturally ends up close to full height
     on its own. */
  max-height: calc(100vh - var(--header-h, 80px) - 12px - 16px);
}
/* Mobile-only "On this page" collapse trigger — hidden by default, only
   shown at <=900px (see media query below). Without this base rule it has
   no display set at all, so it renders above the full desktop nav too. */
.ia-toc__toggle { display: none; }
.ia-toc__nav {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
.ia-toc--pinned {
  position: fixed !important;
  z-index: 100;
}
.ia-toc--bottomed {
  position: absolute !important;
  bottom: 0;
  top: auto !important;
}

.ia-toc__heading {
  flex: 0 0 auto;
  font-size: 11px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
  margin: 0 0 10px; padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
}
.ia-toc__list-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  /* Stop the inner nav-list scroll from chaining into the page scroll
     once it hits its own top/bottom (mirrors .pp2-toc__list-wrap). */
  overscroll-behavior: contain;
}
.ia-toc__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 2px;
}
.ia-toc__list li { margin: 0; }
.ia-toc__link {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: 8px;
  font-size: 15.5px; font-weight: 500; color: var(--muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: background .14s, color .14s, border-color .14s;
}
.ia-toc__link:hover { background: var(--line); color: var(--ink); }
.ia-toc__link--active { background: var(--cr-t) !important; color: var(--cr) !important; font-weight: 700; border-left-color: var(--cr); }
.ia-toc__link:focus { outline: none; }
.ia-toc__link:focus-visible { outline: 2px solid var(--cr); outline-offset: 1px; }
.ia-toc__num {
  width: 19px; height: 19px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .04em;
  color: var(--muted); background: var(--bg); border: 1px solid var(--border);
  flex-shrink: 0;
  transition: color .14s, background .14s, border-color .14s;
}
.ia-toc__link--active .ia-toc__num { background: var(--cr); border-color: var(--cr); color: #fff; }
.ia-toc__cta {
  flex: 0 0 auto;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--line);
}
.ia-toc__cta p { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.ia-toc__cta a {
  font-size: 13.5px; font-weight: 700; color: var(--cr); text-decoration: none;
}
.ia-toc__cta a:hover { text-decoration: underline; }

/* ── Content — a card capped at privacy-policy's --content-max (740px)
   for line length; headings/dividers/tab panels below. ── */
.ia-content {
  position: relative;
  overflow: hidden;
  
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 32px;
}
.ia-content a { color: var(--cr); text-decoration: none; }
.ia-content a:hover { text-decoration: underline; }
.ia-content::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  border-radius: 14px 14px 0 0;
  background: var(--cr);
}
.ia-section {
  display: none;
}
.ia-section.is-current {
  display: block;
}

.ia-sec-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
}
.ia-sec-num {
  font-family: var(--display);
  font-size: 0.9rem; font-weight: 600;
  /* Was opacity:.7, which blends the maroon toward white and drops
     contrast from 7.77:1 to ~4.33:1 — below AA. Full-strength color
     instead of a translucent one keeps the contrast margin. */
  color: var(--cr);
  flex-shrink: 0;
  min-width: 28px;
}
.ia-sec-h2 {
  font-family: var(--display) !important;
  font-size: 1.55rem !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
  letter-spacing: -.01em !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}
.ia-sec-intro {
  font-size: 18.5px; line-height: 1.7; color: var(--body);
  font-style: italic; margin: 0 0 20px;
}
.ia-body-p {
  font-size: 18px; line-height: 1.75; color: var(--body);
  margin: 0 0 16px;
}
.ia-float-h3 {
  font-size: 14px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink); margin: 20px 0 8px;
}

/* Generic list used inside sections, in place of one-off inline styles. */
.ia-list {
  margin: 10px 0 16px 20px;
  line-height: 1.85;
  font-size: 15px;
  color: var(--body);
}

/* Spacing utilities — replace one-off inline margin overrides. */
.ia-mt-16 { margin-top: 16px; }
.ia-mt-20 { margin-top: 20px; }
.ia-mb-20 { margin-bottom: 20px; }

/* ── Definition list ── */
.ia-deflist { margin: 0; }
.ia-deflist__item {
  display: grid; grid-template-columns: 170px 1fr; gap: 20px;
  border-top: 1px solid var(--line); padding: 14px 0;
}
.ia-deflist__term {
  font-size: 16px; font-weight: 700;
  color: var(--ink); padding-right: 16px;
  padding-top: 1px;
}
.ia-deflist__desc {
  font-size: 17.5px; line-height: 1.7;
  color: var(--body); margin: 0;
}
.ia-deflist__desc a { color: var(--cr); }
.ia-deflist__desc code {
  background: var(--line); padding: 1px 5px;
  border-radius: 4px; font-size: .9em; color: var(--ink);
}

/* ── Callouts ── */
.ia-callout {
  border-radius: 10px; padding: 16px 18px;
  font-size: 14px; line-height: 1.65;
  margin: 16px 0;
}
.ia-callout--info {
  background: #EFF6FF; border: 1px solid #BFDBFE; color: #1e40af;
}
.ia-callout--warning {
  background: #FEF3C7; border: 1px solid #FDE68A; color: #92400e;
}
.ia-callout--danger {
  background: #FEF2F2; border: 1px solid #FECACA; color: #991b1b;
}
.ia-callout ul { margin: 8px 0 0 18px; line-height: 1.7; }
.ia-callout code {
  background: rgba(0,0,0,.07); padding: 2px 6px;
  border-radius: 4px; font-size: .9em;
}

/* ── Revenue formula highlight ── */
.ia-formula {
  background: var(--ink); color: #fff;
  border-radius: 12px; padding: 20px 24px;
  margin: 20px 0; text-align: center;
}
.ia-formula__eq {
  font-family: var(--display);
  font-size: 1.3rem; font-weight: 600;
  color: #fff; letter-spacing: -.01em;
}
.ia-formula__sub { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 6px; }

/* ── Prohibited content grid ── */
.ia-prohibited-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
}
.ia-proh-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  position: relative;
  padding-left: 20px;
}
.ia-proh-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; border-radius: 10px 0 0 10px;
}
.ia-proh-card--red::before    { background: #ef4444; }
.ia-proh-card--orange::before { background: #f97316; }
.ia-proh-card--amber::before  { background: #f59e0b; }
.ia-proh-card--gray::before   { background: #9ca3af; }
.ia-proh-card__title {
  font-size: 13px; font-weight: 700;
  color: var(--ink); margin-bottom: 5px;
  display: flex; align-items: center; gap: 6px;
}
.ia-proh-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.ia-proh-card--red    .ia-proh-dot { background: #ef4444; }
.ia-proh-card--orange .ia-proh-dot { background: #f97316; }
.ia-proh-card--amber  .ia-proh-dot { background: #f59e0b; }
.ia-proh-card--gray   .ia-proh-dot { background: #9ca3af; }
.ia-proh-card__desc {
  font-size: 12.5px; line-height: 1.55; color: var(--muted);
}

.ia-proh-legend {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin: 4px 0 20px; font-size: 12px;
}
.ia-proh-legend__item {
  display: flex; align-items: center; gap: 5px;
  color: var(--muted); font-weight: 500;
}
.ia-proh-legend__dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.ia-proh-legend__dot--red    { background: #ef4444; }
.ia-proh-legend__dot--orange { background: #f97316; }
.ia-proh-legend__dot--amber  { background: #f59e0b; }
.ia-proh-legend__dot--gray   { background: #9ca3af; }

/* ── Contact action cards ── */
.ia-contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.ia-contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.ia-contact-card:hover {
  border-color: var(--cr);
  box-shadow: 0 4px 16px rgba(164,16,52,.12);
  transform: translateY(-2px);
}
.ia-contact-card__icon {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--cr-t); color: var(--cr);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 8px;
}
.ia-contact-card__label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); margin-bottom: 3px;
}
.ia-contact-card__value {
  font-size: 12.5px; font-weight: 700; color: var(--ink);
  line-height: 1.3;
}
.ia-contact-card--primary {
  background: var(--cr); border-color: var(--cr);
}
.ia-contact-card--primary .ia-contact-card__icon {
  background: rgba(255,255,255,.15); color: #fff;
}
.ia-contact-card--primary .ia-contact-card__label { color: rgba(255,255,255,.65); }
.ia-contact-card--primary .ia-contact-card__value { color: #fff; }

/* ── Back to top ── */
.ia-back-top {
  text-align: right; padding: 16px 0 48px;
}
.ia-back-top a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--cr);
  text-decoration: none;
  padding: 8px 16px; border-radius: 8px;
  border: 1px solid rgba(164,16,52,.25);
  background: var(--cr-t);
  transition: background .15s, box-shadow .15s;
}
.ia-back-top a:hover {
  background: var(--cr); color: #fff;
  box-shadow: 0 4px 12px rgba(164,16,52,.25);
}

/* ── Closing CTA — plain full-bleed band on the shared cream
   background, no card/shadow (same treatment as Community
   Guidelines' .cgp-cta-footer / Cookie Policy's .ig-ck-contact-footer). ── */
.ia-cta-footer {
  background: var(--bg);
  padding: 40px 24px;
  text-align: center;
}
.ia-cta-footer__inner {
  max-width: 560px;
  margin: 0 auto;
}
.ia-cta-footer__inner h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem !important;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.ia-cta-footer__inner h2 span {
  color: var(--cr);
}
.ia-cta-footer__inner p {
  font-size: 0.875rem;
  color: var(--body);
  margin: 0 0 18px;
  line-height: 1.6;
}
.ia-cta-footer__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cr);
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 10px;
  border: 2px solid var(--cr);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(164,16,52,.30);
  transition: background .18s, border-color .18s, transform .12s, box-shadow .18s;
}
.ia-cta-footer__btn:hover {
  background: var(--cr-d);
  border-color: var(--cr-d);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(164,16,52,.38);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .ia-body { grid-template-columns: 1fr; }
  .ia-toc {
    position: static; height: auto; max-height: none; overflow: visible;
    padding: 0; border: none; background: transparent;
    margin-bottom: 32px;
  }
  .ia-toc__list-wrap { overflow-y: visible; max-height: none; }
  /* Collapsible "On this page" toggle — same pattern as privacy-policy's
     .pp2-toc__toggle/.pp2-toc__nav, so the mobile TOC doesn't dump all 13
     section links inline above the content by default. */
  .ia-toc__toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    transition: background .14s;
  }
  .ia-toc__toggle:hover { background: var(--bg); }
  .ia-toc__toggle-chevron { transition: transform .22s ease; }
  .ia-toc__toggle[aria-expanded="true"] .ia-toc__toggle-chevron { transform: rotate(180deg); }
  .ia-toc__nav {
    display: none;
    background: var(--card);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 14px 14px;
    padding: 8px 12px 12px;
  }
  .ia-toc__nav.ia-toc__nav--open { display: block; }
  .ia-toc__heading { display: none; }
  .ia-metrics__inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .ia-metrics__inner { grid-template-columns: 1fr 1fr; }
  .ia-metric { padding: 16px; gap: 10px; }
  .ia-deflist__item { grid-template-columns: 1fr; gap: 4px; }
  .ia-deflist__term { padding-right: 0; color: var(--muted); font-size: 14.5px; }
  .ia-prohibited-grid { grid-template-columns: 1fr; }
  .ia-contact-grid { grid-template-columns: 1fr; }
  .ia-body { padding: 24px 0 48px; }
}
