/* What Is NSIF? Start Here — capacity-safe learning page */

.sh-page {
  background: var(--ink);
  color: var(--paper);
}

.sh-page .site-nav--light {
  background: rgba(20, 20, 20, 0.92);
  border-bottom-color: rgba(240, 237, 230, 0.08);
}
.sh-page .site-nav--light a { color: var(--paper); }

.sh-hero {
  position: relative;
  padding: clamp(6rem, 14vw, 9rem) clamp(1.5rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem);
  max-width: var(--max-read);
  margin: 0 auto;
}
.sh-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 20% 0%, rgba(45, 74, 122, 0.18), transparent 55%);
  pointer-events: none;
}
.sh-hero > * { position: relative; }
.sh-hero__eyebrow {
  font-family: var(--serif);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240, 237, 230, 0.5);
  margin: 0 0 1.5rem;
}
.sh-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 1rem;
  color: var(--paper);
}
.sh-hero__subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: rgba(240, 237, 230, 0.85);
  margin: 0 0 1.25rem;
  line-height: 1.55;
}
.sh-hero__lead {
  color: rgba(240, 237, 230, 0.75);
  margin: 0 0 1rem;
  max-width: 38ch;
}
.sh-hero__support {
  color: rgba(240, 237, 230, 0.65);
  font-size: 0.975rem;
  margin: 0 0 2rem;
  max-width: 48ch;
  line-height: 1.65;
}
.sh-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.sh-jump {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem) 2.5rem;
}
.sh-jump__panel {
  background: rgba(248, 246, 241, 0.06);
  border: 1px solid rgba(240, 237, 230, 0.12);
  border-radius: 2px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}
.sh-jump__label {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(240, 237, 230, 0.75);
}
.sh-jump__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.sh-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  font-size: 0.8125rem;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--paper);
  background: transparent;
  border: 1px solid rgba(240, 237, 230, 0.28);
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}
.sh-pill:hover,
.sh-pill:focus-visible {
  background: rgba(248, 246, 241, 0.08);
  border-color: rgba(240, 237, 230, 0.45);
  color: var(--paper);
}

.sh-section {
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
}
.sh-section--paper {
  background: var(--paper);
  color: var(--text);
}
.sh-section--dark {
  background: var(--ink-soft);
  color: var(--paper);
}
.sh-section__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
}
.sh-section__label {
  font-family: var(--serif);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}
.sh-section--dark .sh-section__label { color: rgba(240, 237, 230, 0.5); }
.sh-section h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  margin: 0 0 1rem;
  max-width: 22ch;
}
.sh-section__intro {
  color: var(--text-muted);
  max-width: 42ch;
  margin: 0 0 2.5rem;
  line-height: 1.65;
}
.sh-section--dark .sh-section__intro { color: rgba(240, 237, 230, 0.65); }

/* Quick Learn cards */
.sh-quick-learn {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .sh-quick-learn { grid-template-columns: repeat(2, 1fr); }
}
.sh-ql-card {
  background: var(--paper);
  border: 1px solid var(--paper-muted);
  border-top: 3px solid var(--accent);
  padding: 1.5rem 1.5rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.sh-ql-card__label {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0;
}
.sh-ql-card__question {
  font-family: var(--serif);
  font-size: 1.125rem;
  margin: 0;
  line-height: 1.35;
}
.sh-ql-card__short {
  margin: 0;
  font-size: 0.975rem;
  color: var(--text);
}
.sh-ql-card__quote {
  margin: 0.5rem 0 0;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.925rem;
  color: var(--text-muted);
}
.sh-ql-card__example {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.75rem;
  background: var(--paper-muted);
}
.sh-ql-card details {
  margin-top: 0.5rem;
  border-top: 1px solid var(--paper-muted);
}
.sh-ql-card summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.sh-ql-card summary::-webkit-details-marker { display: none; }
.sh-ql-card summary::after {
  content: " \2193";
  font-weight: 400;
}
.sh-ql-card details[open] summary::after { content: " \2191"; }
.sh-ql-card__full {
  padding: 0 0 1.25rem;
  font-size: 0.925rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.sh-ql-card__full p { margin: 0 0 0.85rem; }
.sh-ql-card__full p:last-child { margin-bottom: 0; }

/* Stop here */
.sh-stop {
  max-width: var(--max-read);
  margin: 0 auto;
  padding: 2rem clamp(1.5rem, 5vw, 4rem) 3rem;
  text-align: center;
}
.sh-stop__card {
  background: var(--paper);
  color: var(--text);
  border: 1px solid var(--paper-muted);
  padding: 2rem 1.75rem;
}
.sh-stop__card p {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: 1.125rem;
}
.sh-stop__card .btn { margin-top: 0.5rem; }

/* One sentence test */
.sh-quote-block {
  max-width: var(--max-read);
  margin: 0 auto;
  text-align: center;
  padding: 3rem 1.5rem;
}
.sh-quote-block__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(240, 237, 230, 0.5);
  margin: 0 0 1.5rem;
}
.sh-quote-block blockquote {
  margin: 0 0 1.25rem;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.45;
  color: var(--paper);
}
.sh-quote-block__support {
  color: rgba(240, 237, 230, 0.7);
  margin: 0 0 0.75rem;
  font-size: 0.975rem;
}
.sh-quote-block__hint {
  font-size: 0.8125rem;
  color: rgba(240, 237, 230, 0.45);
  margin: 0;
}

/* Domain grid */
.sh-domains {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .sh-domains { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .sh-domains { grid-template-columns: repeat(4, 1fr); } }
.sh-domain {
  background: var(--paper);
  border: 1px solid var(--paper-muted);
  padding: 1.35rem;
}
.sh-domain h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}
.sh-domain__explain {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  line-height: 1.55;
}
.sh-domain__example {
  font-size: 0.8125rem;
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--paper-muted);
  color: var(--text);
  font-style: italic;
}

/* Comparison grid */
.sh-compare-anchor {
  font-family: var(--serif);
  font-style: italic;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}
.sh-compare-table {
  display: grid;
  gap: 0;
  border: 1px solid var(--paper-muted);
}
@media (min-width: 768px) {
  .sh-compare-table {
    grid-template-columns: 1fr 1.2fr 1.2fr;
  }
  .sh-compare-table__head {
    display: contents;
  }
  .sh-compare-table__head > span {
    background: var(--ink);
    color: var(--paper);
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
  }
  .sh-compare-row {
    display: contents;
  }
  .sh-compare-row > span {
    padding: 1rem;
    border-top: 1px solid var(--paper-muted);
    font-size: 0.9rem;
    background: var(--paper);
  }
  .sh-compare-row > span:first-child {
    font-weight: 600;
    font-family: var(--serif);
  }
  .sh-compare-row__label { display: none; }
}
@media (max-width: 767px) {
  .sh-compare-table__head { display: none; }
  .sh-compare-row {
    display: block;
    border: 1px solid var(--paper-muted);
    margin-bottom: 1rem;
    padding: 1.25rem;
    background: var(--paper);
  }
  .sh-compare-row__field {
    font-family: var(--serif);
    font-size: 1.05rem;
    margin: 0 0 0.75rem;
    font-weight: 600;
  }
  .sh-compare-row__label {
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0.75rem 0 0.25rem;
  }
  .sh-compare-row__label:first-of-type { margin-top: 0; }
  .sh-compare-row p { margin: 0; font-size: 0.9rem; }
}

/* Before / after */
.sh-examples {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 768px) { .sh-examples { grid-template-columns: repeat(2, 1fr); } }
.sh-example {
  border: 1px solid rgba(240, 237, 230, 0.12);
  padding: 1.5rem;
  background: rgba(248, 246, 241, 0.04);
}
.sh-example__pair {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.sh-example__before,
.sh-example__after {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
}
.sh-example__before {
  background: rgba(166, 93, 74, 0.15);
  border-left: 3px solid var(--flooded);
}
.sh-example__after {
  background: rgba(74, 122, 106, 0.15);
  border-left: 3px solid var(--grounded);
}
.sh-example__tag {
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.35rem;
  opacity: 0.7;
}
.sh-example__lesson {
  margin: 0;
  font-family: var(--serif);
  font-size: 0.95rem;
  color: rgba(240, 237, 230, 0.85);
}

/* FAQ library */
.sh-faq-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.sh-faq-cat-btn {
  padding: 0.5rem 1rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--paper);
  border: 1px solid var(--paper-muted);
  color: var(--text);
  cursor: pointer;
  border-radius: 2px;
}
.sh-faq-cat-btn[aria-expanded="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.sh-faq-cat-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.sh-faq-panel {
  display: none;
}
.sh-faq-panel.is-open { display: block; }
.sh-faq-item {
  border: 1px solid var(--paper-muted);
  margin-bottom: 0.5rem;
  background: var(--paper);
}
.sh-faq-item__trigger {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.sh-faq-item__trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.sh-faq-item__q {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--text);
  margin: 0;
  line-height: 1.35;
}
.sh-faq-item__preview {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}
.sh-faq-item__toggle {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-top: 0.25rem;
}
.sh-faq-item__body {
  display: none;
  padding: 0 1.25rem 1.25rem;
  font-size: 0.925rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.sh-faq-item.is-open .sh-faq-item__body { display: block; }
.sh-faq-item.is-open .sh-faq-item__toggle::before { content: "Hide full answer"; }
.sh-faq-item:not(.is-open) .sh-faq-item__toggle::before { content: "Read full answer"; }

.sh-back-top {
  display: inline-flex;
  margin-top: 2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--paper-muted);
  padding: 0.5rem 1rem;
  background: var(--paper);
}
.sh-back-top:hover { color: var(--accent-hover); }

/* Final CTA */
.sh-cta {
  text-align: center;
  max-width: var(--max-read);
  margin: 0 auto;
}
.sh-cta h2 { max-width: none; margin-left: auto; margin-right: auto; }
.sh-cta p {
  color: rgba(240, 237, 230, 0.7);
  margin: 0 0 2rem;
}
.sh-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
}
.sh-cta__tertiary {
  display: block;
  width: 100%;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: rgba(240, 237, 230, 0.65);
}

/* Homepage mini FAQ */
.home-faq {
  max-width: var(--max-wide);
  margin: 0 auto;
}
.home-faq__list { margin: 0; padding: 0; list-style: none; }
.home-faq__item {
  border-bottom: 1px solid var(--paper-muted);
}
.home-faq__item summary {
  padding: 1.1rem 0;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.05rem;
  list-style: none;
}
.home-faq__item summary::-webkit-details-marker { display: none; }
.home-faq__answer {
  padding: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.65;
}
.home-faq__more {
  margin-top: 1.5rem;
  font-size: 0.925rem;
}

.sh-teaser {
  text-align: center;
  max-width: var(--max-read);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  border: 1px solid var(--paper-muted);
  background: var(--paper);
}
