/* NSIF Academy catalog + course detail — uses css/tokens.css */
.breadcrumbs {
  max-width: var(--max-wide);
  margin: 1.5rem auto 0;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); }

.academy-hero {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: var(--space-lg) clamp(1.5rem, 5vw, 4rem) var(--space-md);
}
.academy-hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  max-width: 24ch;
  margin: 0.5rem 0 1rem;
}
.academy-hero__lede {
  max-width: 44rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.academy-hero__app { font-size: 0.9rem; }

.academy-path {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: var(--space-md) clamp(1.5rem, 5vw, 4rem);
}
.academy-path__head h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin: 0 0 0.25rem;
}
.academy-path__audience { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
.academy-path__outcome { font-size: 0.85rem; color: var(--text-muted); margin: 0.25rem 0 0; font-style: italic; }
.academy-path__steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1rem;
  padding: 0;
  margin: 1.25rem 0 0;
  counter-reset: step;
}

.course-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--paper-muted);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: border-color 0.3s, transform 0.3s var(--ease-slow);
  position: relative;
}
.course-card__link:hover { border-color: var(--accent); transform: translateY(-2px); }
.course-card__status {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.course-card__status--published,
.course-card__status--available { color: var(--accent); }
.course-card__title { font-family: var(--serif); font-size: 1.15rem; margin: 0.4rem 0 0.5rem; }
.course-card__problem { font-size: 0.9rem; color: var(--text-muted); margin: 0 0 1rem; }
.course-card__meta { margin: auto 0 0; display: grid; gap: 0.5rem; }
.course-card__meta div { display: grid; grid-template-columns: 5rem 1fr; gap: 0.5rem; font-size: 0.82rem; }
.course-card__meta dt { color: var(--text-muted); }
.course-card__meta dd { margin: 0; }
.course-card__start {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}

.academy-all {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: var(--space-md) clamp(1.5rem, 5vw, 4rem) var(--space-lg);
}
.academy-all h2 { font-family: var(--serif); font-size: 1.4rem; }
.academy-all__list { list-style: none; padding: 0; columns: 2; column-gap: 3rem; }
@media (max-width: 640px) { .academy-all__list { columns: 1; } }
.academy-all__list li { break-inside: avoid; padding: 0.4rem 0; border-bottom: 1px solid var(--paper-muted); }
.academy-all__list a { color: var(--ink); }
.academy-all__role { display: block; font-size: 0.78rem; color: var(--text-muted); text-transform: capitalize; }

/* Course detail */
.course-detail {
  max-width: 46rem;
  margin: 0 auto;
  padding: var(--space-md) clamp(1.5rem, 5vw, 4rem) var(--space-lg);
}
.course-detail__head h1 { font-family: var(--serif); font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0.5rem 0; }
.course-detail__sub { color: var(--text-muted); font-size: 1.05rem; line-height: 1.6; max-width: 38rem; }
.course-detail__coming {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em;
  border: 1px solid var(--paper-muted); border-radius: 999px; padding: 0.2rem 0.7rem;
  color: var(--text-muted); margin-right: 0.5rem;
}
.course-detail section { padding: 1.25rem 0; border-top: 1px solid var(--paper-muted); }
.course-detail h2 { font-family: var(--serif); font-size: 1.15rem; margin: 0 0 0.6rem; }
.course-detail p { line-height: 1.65; }
.course-detail__next { padding-left: 1.2rem; line-height: 1.8; }

/* SEO profile page sections */
.course-detail__cred { font-size: 0.85rem; color: var(--text-muted); }
.definition-block {
  border-left: 3px solid var(--accent);
  padding: 0.5rem 0 0.5rem 1.25rem !important;
  border-top: none !important;
}
.definition-block p { font-size: 1.05rem; line-height: 1.7; font-family: var(--serif); }
.situation-cards {
  list-style: none; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.75rem;
  margin-top: 1rem;
}
.situation-cards li {
  border: 1px solid var(--paper-muted); border-radius: var(--radius-lg);
  padding: 0.9rem 1rem; font-size: 0.9rem; line-height: 1.5;
}
.model-table {
  width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.9rem;
}
.model-table th, .model-table td {
  text-align: left; padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--paper-muted); vertical-align: top;
}
.model-table th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.model-table td:first-child { font-weight: 500; white-space: nowrap; }
.artifact-layers { padding-left: 1.2rem; line-height: 1.9; }
.artifact-stack {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.75rem; margin-top: 1.25rem;
}
.artifact-stack__item {
  border: 1px solid var(--paper-muted); border-radius: var(--radius-lg); padding: 1rem;
}
.artifact-stack__item p { font-size: 0.85rem; color: var(--text-muted); margin: 0.35rem 0 0; }
.outcomes-list { padding-left: 1.2rem; line-height: 1.9; }
.outcomes-list li::marker { color: var(--accent); }
.not-for-list { padding-left: 1.2rem; line-height: 1.8; color: var(--text-muted); }
.faq-list dt { font-weight: 600; margin-top: 1.1rem; }
.faq-list dd { margin: 0.35rem 0 0; color: var(--text-muted); line-height: 1.65; }
.course-detail__disclosure { color: var(--text-muted); }
.course-detail__cta { text-align: center; }

/* Routing layer */
.academy-hero__note { font-size: 0.85rem; color: var(--text-muted); }
.academy-intent, .academy-finder-wrap {
  max-width: var(--max-wide); margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem) var(--space-md);
}
.academy-intent h2, .academy-finder-wrap h2 { font-family: var(--serif); font-size: 1.4rem; margin: 0 0 0.4rem; }
.academy-intent__hint { color: var(--text-muted); font-size: 0.95rem; margin: 0 0 1.25rem; }
.intent-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.75rem; }
.intent-card {
  display: flex; flex-direction: column; gap: 0.4rem; text-decoration: none; color: var(--ink);
  border: 1px solid var(--paper-muted); border-radius: var(--radius-lg); padding: 1.1rem;
  transition: border-color 0.3s;
}
.intent-card:hover { border-color: var(--accent); }
.intent-card__text { font-family: var(--serif); font-size: 1.05rem; line-height: 1.4; }
.intent-card__cta { font-size: 0.85rem; color: var(--accent); margin-top: auto; }
.intent-card span:not(.intent-card__text):not(.intent-card__cta) { font-size: 0.9rem; color: var(--text-muted); }

.course-finder {
  border: 1px solid var(--paper-muted); border-radius: var(--radius-lg);
  padding: 1.5rem; max-width: 40rem;
}
.finder-progress { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin: 0 0 0.5rem; }
.course-finder h3 { font-family: var(--serif); margin: 0 0 1rem; }
.finder-options { display: grid; gap: 0.5rem; }
.finder-option {
  text-align: left; padding: 0.75rem 1rem; border: 1px solid var(--paper-muted);
  border-radius: var(--radius-lg); background: transparent; color: var(--ink);
  font: inherit; cursor: pointer; transition: border-color 0.2s;
}
.finder-option:hover { border-color: var(--accent); }
.finder-result__start { font-size: 1.15rem; font-family: var(--serif); }
.finder-result p { line-height: 1.6; }
.finder-result__ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }

/* Course page layout + rail */
.course-detail__layout { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 64rem) {
  .course-detail__layout { grid-template-columns: 1fr 16rem; align-items: start; }
  .course-rail { position: sticky; top: 5rem; }
}
.course-rail {
  border: 1px solid var(--paper-muted); border-radius: var(--radius-lg); padding: 1.25rem;
  font-size: 0.85rem;
}
.course-rail h3 { font-family: var(--serif); font-size: 1rem; margin: 0 0 0.75rem; }
.course-rail dl { display: grid; gap: 0.5rem; margin: 0 0 1rem; }
.course-rail div { display: grid; grid-template-columns: 4.5rem 1fr; gap: 0.4rem; }
.course-rail dt { color: var(--text-muted); }
.course-rail dd { margin: 0; }
.course-rail__compare { display: block; font-size: 0.78rem; color: var(--text-muted); margin-top: 0.75rem; }

/* Fit block + escapes + newcomer */
.fit-block { border: 1px solid var(--paper-muted); border-radius: var(--radius-lg); padding: 1.25rem; }
.fit-block h2 { margin: 0 0 0.75rem; }
.fit-block__yes, .fit-block__no { padding-left: 1.2rem; line-height: 1.8; }
.fit-block__yes li::marker { color: var(--accent); content: "✓ "; }
.fit-block__no { color: var(--text-muted); }
.fit-block__no li::marker { content: "✕ "; }
.newcomer-note { font-size: 0.85rem; color: var(--text-muted); border-left: 3px solid var(--paper-muted); padding-left: 0.9rem; }
.escape-routes {
  border-top: 1px solid var(--paper-muted); padding-top: 1rem; margin-top: 0.5rem; font-size: 0.9rem;
}
.escape-routes__label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin: 0 0 0.5rem; }
.escape-routes ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.escape-routes__when { color: var(--text-muted); display: block; }

/* Start-here drawer (rendered by site nav pages) */
.routing-tab {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  background: var(--ink); color: #e8e5de; border: none; cursor: pointer;
  padding: 0.9rem 0.55rem; border-radius: 8px 0 0 8px; font-size: 0.78rem;
  writing-mode: vertical-rl; letter-spacing: 0.04em; z-index: 60;
}
.routing-drawer {
  position: fixed; right: 0; top: 50%; transform: translate(100%, -50%);
  width: 17rem; background: var(--ink); color: #e8e5de;
  border-radius: 12px 0 0 12px; padding: 1.25rem; z-index: 59;
  transition: transform 0.35s var(--ease-slow); box-shadow: -8px 0 30px rgba(0,0,0,0.3);
}
.routing-drawer.is-open { transform: translate(0, -50%); }
.routing-drawer h2 { font-family: var(--serif); font-size: 1rem; margin: 0 0 0.25rem; }
.routing-drawer__prompt { font-size: 0.8rem; color: rgba(232,229,222,0.6); margin: 0 0 1rem; }
.routing-drawer a {
  display: block; color: #e8e5de; text-decoration: none; font-size: 0.9rem;
  padding: 0.6rem 0.75rem; border: 1px solid rgba(232,229,222,0.15);
  border-radius: 8px; margin-bottom: 0.4rem;
}
.routing-drawer a:hover { border-color: var(--accent); }
@media (max-width: 640px) {
  .routing-tab {
    top: auto; bottom: 1rem; right: 50%; transform: translateX(50%);
    writing-mode: horizontal-tb; padding: 0.6rem 1.2rem; border-radius: 999px;
  }
  .routing-drawer { top: auto; bottom: 0; transform: translateY(100%); width: 100%; border-radius: 16px 16px 0 0; }
  .routing-drawer.is-open { transform: translateY(0); }
}

/* Homepage additions */
.hero__microcopy { font-size: 0.82rem; color: var(--text-muted); margin-top: 1rem; }
.hero__verify { font-size: 0.85rem; margin-top: 0.5rem; }
.home-steps { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; list-style: none; padding: 0; counter-reset: s; }
.home-steps li { text-align: center; font-size: 0.82rem; color: var(--text-muted); }
.home-steps li strong { display: block; color: var(--ink); font-size: 0.75rem; letter-spacing: 0.1em; }
.home-steps li + li::before { content: "→"; margin-right: 0.5rem; color: var(--paper-muted); }
.course-hotspot { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.75rem; }
.map-preview { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0.75rem; }
.map-preview .capacity-state { min-height: auto; }

/* ── Pillar guides ─────────────────────────────────────────── */
.pillar { max-width: 46rem; }
.pillar__head { margin-bottom: 1.5rem; }
.pillar__meta { color: var(--paper-muted); margin-top: 0.75rem; }
.pillar__toc { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-top: 1rem; font-size: 0.85rem; }
.pillar__toc a { color: var(--paper-muted); }
.pillar__section { margin: 2rem 0; }
.pillar__section h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.pillar__list { padding-left: 1.25rem; }
.pillar__list li { margin-bottom: 0.5rem; }
.pillar__tool { padding: 0.75rem 1rem; background: rgba(12,26,44,.04); border-radius: 6px; }
.pillar__cta { margin-top: 2.5rem; }
.claim-tag { display: inline-block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.15em 0.55em; border-radius: 99px; vertical-align: middle; margin-right: 0.25rem; }
.claim-tag--framework { background: #e8f0ea; color: #2d5a3d; }
.claim-tag--empirical { background: #e7edf7; color: #2c4a7c; }
.claim-tag--recommendation { background: #f3ece0; color: #7a5a22; }
.claim-tag--illustrative { background: #efe8f5; color: #5c4470; }
.claim-tag--boundary { background: #f5e8e8; color: #7c3a3a; }
.pattern-card { border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.25rem; margin-bottom: 1rem; }
.pattern-card p { margin: 0.3rem 0; font-size: 0.92rem; }
.flow-rail { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 1rem 0; color: var(--paper-muted); }
.flow-rail__stage { background: var(--navy); color: var(--ivory); font-size: 0.78rem; font-weight: 600; padding: 0.4em 0.8em; border-radius: 6px; }
.example-card { border-left: 3px solid #9aa6b8; background: rgba(12,26,44,.04); padding: 1rem 1.25rem; border-radius: 0 8px 8px 0; }
.example-card__label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #5c6b7c; margin-bottom: 0.5rem; }
.boundaries-box { border: 1px dashed #b08a8a; background: #faf5f5; padding: 1rem 1.25rem; border-radius: 8px; }
.boundaries-box__label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #7c3a3a; margin-bottom: 0.5rem; }
.boundaries-box ul { padding-left: 1.25rem; margin: 0; }
.boundaries-box li { margin-bottom: 0.4rem; font-size: 0.9rem; }
