/* ============================================================
   SINGLE SCHOLARSHIP  (approved redesign)

   Loaded only on a single scholarship. Everything here is namespaced
   under .nrh-sch so it cannot reach the job templates, the archive
   hero in content-scholarships.css, or a legacy .sch-post body.

   Zero !important.
   ============================================================ */

.nrh-sch {
  background: var(--sch-paper);
  color: var(--sch-ink);
  font-family: var(--nrh-font-ui);
}

.nrh-sch__display {
  font-family: var(--nrh-font-display);
  font-weight: 600;
  letter-spacing: -.02em;
}

/* ---- hero ---------------------------------------------------- */

.nrh-sch__hero {
  position: relative;
  overflow: hidden;
  background: var(--sch-navy-900);
  background-image: radial-gradient(70% 100% at 15% 0%, rgba(22,64,108,.85), transparent 65%);
}

/* The seal: three concentric rings, turning once every 90s. Ambient,
   meant to be felt rather than noticed. */
.nrh-sch__seal {
  position: absolute;
  top: -112px;
  right: -96px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(200,162,74,.20);
  border-radius: 50%;
  pointer-events: none;
  animation: nrh-sch__spin 90s linear infinite;
}
.nrh-sch__seal::before,
.nrh-sch__seal::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.nrh-sch__seal::before { inset: 40px; border: 1px solid rgba(200,162,74,.15); }
.nrh-sch__seal::after  { inset: 80px; border: 1px dashed rgba(200,162,74,.20); }

@keyframes nrh-sch__spin { to { transform: rotate(360deg); } }

.nrh-sch__hero-inner {
  position: relative;
  max-width: 1120px;
  margin-inline: auto;
  padding: 32px 24px 48px;
}

.nrh-sch__hero .nrh-crumbs { margin-bottom: 32px; font-size: 13px; color: rgba(255,255,255,.5); }
.nrh-sch__hero .nrh-crumbs a { color: rgba(255,255,255,.65); text-decoration: none; }
.nrh-sch__hero .nrh-crumbs a:hover { color: var(--sch-gold-300); }

.nrh-sch__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.nrh-sch__badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.10);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.20);
}
/* The funding badge leads, so it takes the gold. */
.nrh-sch__badge.funded,
.nrh-sch__badge.partial {
  color: var(--sch-gold-300);
  background: var(--sch-gold-t15);
  box-shadow: inset 0 0 0 1px var(--sch-gold-t30);
}

.nrh-sch__title {
  margin: 20px 0 0;
  max-width: 19ch;
  font-size: clamp(32px, 6vw, 54px);
  line-height: 1.08;
  color: #fff;
}

.nrh-sch__standfirst {
  margin: 16px 0 0;
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,.72);
}

.nrh-sch__herobar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 20px 32px;
  margin-top: 28px;
}
.nrh-sch__herobar-sep { width: 1px; height: 48px; background: rgba(255,255,255,.15); }

.nrh-sch__eyebrow {
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sch-gold-500);
}
.nrh-sch__eyebrow.mute { color: rgba(255,255,255,.45); }

.nrh-sch__funder {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
.nrh-sch__verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sch-gold-500);
  color: var(--sch-navy-900);
  font-size: 11px;
  font-weight: 700;
}

.nrh-sch__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.nrh-sch__btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease;
}
.nrh-sch__btn:hover { transform: translateY(-2px); }
.nrh-sch__btn--gold  { background: var(--sch-gold-500); color: var(--sch-navy-950); }
.nrh-sch__btn--gold:hover { background: var(--sch-gold-300); }
.nrh-sch__btn--ghost { color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.nrh-sch__btn--ghost:hover { background: rgba(255,255,255,.10); transform: none; }

.nrh-sch__rule { height: 4px; background: linear-gradient(90deg, var(--sch-gold-600), var(--sch-gold-500), transparent); }

/* ---- countdown ----------------------------------------------- */

.nrh-sch__count { display: flex; gap: 6px; }
.nrh-sch__count-cell {
  min-width: 46px;
  padding: 6px 10px;
  border-radius: 8px;
  text-align: center;
  background: rgba(255,255,255,.10);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
  color: #fff;
}
.nrh-sch__count--light .nrh-sch__count-cell {
  background: var(--sch-navy-800);
  box-shadow: none;
}
.nrh-sch__count.is-urgent .nrh-sch__count-cell { box-shadow: inset 0 0 0 2px var(--sch-gold-500); }

.nrh-sch__count-num {
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}
.nrh-sch__count-lab {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .7;
}

.nrh-sch__closed {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--sch-bad-t10);
  color: var(--sch-bad);
  font-size: 14px;
  font-weight: 600;
}

/* ---- shell --------------------------------------------------- */

.nrh-sch__shell {
  display: grid;
  gap: 40px;
  max-width: 1120px;
  margin-inline: auto;
  padding: 48px 24px;
}
@media (min-width: 1024px) {
  .nrh-sch__shell { grid-template-columns: minmax(0,1fr) 300px; }
  /* Sidebar removed because it had nothing in it. */
  .nrh-sch__shell.is-solo { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
}

.nrh-sch__body { min-width: 0; }

/* ---- facts --------------------------------------------------- */

.nrh-sch__facts {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-bottom: 48px;
}
.nrh-sch__fact {
  padding: 16px;
  border: 1px solid var(--sch-line);
  border-radius: 12px;
  background: var(--sch-card);
  transition: box-shadow .15s ease;
}
.nrh-sch__fact:hover { box-shadow: 0 4px 14px rgba(11,32,56,.08); }
.nrh-sch__fact-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sch-gold-600);
}
.nrh-sch__fact-value {
  margin-top: 6px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--sch-navy-900);
}

/* ---- article body -------------------------------------------- */

.nrh-sch__article { font-size: 17px; line-height: 1.7; }
.nrh-sch__article > :first-child { margin-top: 0; }

.nrh-sch__article h2 {
  font-family: var(--nrh-font-display);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--sch-navy-900);
  margin: 48px 0 16px;
  scroll-margin-top: 24px;
}
.nrh-sch__article h3 {
  font-size: 19px;
  font-weight: 600;
  color: var(--sch-navy-800);
  margin: 28px 0 10px;
}
.nrh-sch__article p { margin: 0 0 16px; }
.nrh-sch__article ul,
.nrh-sch__article ol { margin: 0 0 16px; padding-left: 22px; }
.nrh-sch__article li { margin-bottom: 8px; }
.nrh-sch__article a { color: var(--sch-navy-600); }

.nrh-sch__article figure { margin: 24px 0; }
.nrh-sch__article img { height: auto; max-width: 100%; border-radius: 12px; }
.nrh-sch__article figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--sch-muted);
}

.nrh-sch__article table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 15px;
  background: var(--sch-card);
  border: 1px solid var(--sch-line);
  border-radius: 12px;
  overflow: hidden;
}
.nrh-sch__article th,
.nrh-sch__article td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--sch-line);
  vertical-align: top;
}
.nrh-sch__article th {
  background: var(--sch-navy-t06);
  font-size: 14px;
  font-weight: 700;
  color: var(--sch-navy-800);
}
.nrh-sch__article tr:last-child td { border-bottom: 0; }

/* ---- eligibility checker (JS enhancement) --------------------- */

.nrh-sch__check {
  border: 1px solid var(--sch-line);
  border-radius: 16px;
  background: var(--sch-card);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(11,32,56,.06);
  margin: 0 0 16px;
}

.nrh-sch__check-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: var(--sch-navy-800);
}
.nrh-sch__check-head h3 {
  margin: 0;
  font-family: var(--nrh-font-display);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}
.nrh-sch__check-sub { margin: 2px 0 0; font-size: 13px; color: rgba(255,255,255,.7); }

.nrh-sch__check-score { flex: 0 0 auto; text-align: right; }
/*
 * Both spans in the score carry their own class, so neither rule can
 * reach the other. An earlier version styled the caption as
 * `.nrh-sch__check-score span`, which also matched the counter inside
 * the tally and dropped it onto its own line at 11px: the score read
 * as "0" stacked above "/7".
 */
.nrh-sch__check-tally {
  display: block;
  white-space: nowrap;      /* "0/7" is one token, never broken */
  font-variant-numeric: tabular-nums;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: var(--sch-gold-300);
}
.nrh-sch__check-tally span {
  display: inline;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  text-transform: none;
  letter-spacing: normal;
}
/*
 * Direct child only. The score markup is
 *   <b><span data-met>0</span>/7</b><span>criteria met</span>
 * so a plain descendant selector also caught the counter inside <b> and
 * dropped it onto its own line at 11px: the tally read as "0" above
 * "/7" instead of "0/7".
 */
.nrh-sch__check-cap {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}

.nrh-sch__check-bar { height: 4px; background: var(--sch-line); }
.nrh-sch__check-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--sch-gold-500);
  transition: width .5s cubic-bezier(.22,.8,.3,1);
}

/*
 * The checker replaces a list INSIDE the article, so it inherits the
 * article's list rules: padding-left, bullet markers, and the 8px
 * bottom margin on every li. That pushed every row right of the card's
 * own padding and broke the row rhythm. Reset them here rather than
 * lowering the article rules, which the body copy still needs.
 */
.nrh-sch__article .nrh-sch__check-list,
.nrh-sch__check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.nrh-sch__article .nrh-sch__check-list > li,
.nrh-sch__check-list > li { margin: 0; }
.nrh-sch__check-list li + li { border-top: 1px solid var(--sch-line); }

/* Same reason: the card is a block inside prose, so it must not pick up
   the article's paragraph spacing on its inner text. */
.nrh-sch__article .nrh-sch__check p { margin: 0; }
.nrh-sch__article .nrh-sch__check-head h3 { margin: 0; }

.nrh-sch__check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 20px;
  cursor: pointer;
  transition: background-color .15s ease;
}
.nrh-sch__check-item:hover { background: var(--sch-paper); }
.nrh-sch__check-item input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--sch-navy-800);
  cursor: pointer;
}
.nrh-sch__check-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15px;
  line-height: 1.45;
}
.nrh-sch__check-item input:checked ~ .nrh-sch__check-text {
  color: var(--sch-muted);
  text-decoration: line-through;
  text-decoration-color: var(--sch-gold-500);
}

.nrh-sch__verdict {
  padding: 16px 20px;
  border-top: 2px solid var(--sch-gold-600);
  background: var(--sch-gold-t08);
  animation: nrh-sch__rise .4s cubic-bezier(.22,.8,.3,1) both;
}
.nrh-sch__verdict.is-good { border-top-color: var(--sch-good); background: var(--sch-good-t06); }
.nrh-sch__verdict b { display: block; font-size: 15px; color: var(--sch-gold-600); }
.nrh-sch__verdict.is-good b { color: var(--sch-good); }
.nrh-sch__verdict p { margin: 4px 0 0; font-size: 14px; line-height: 1.6; }

@keyframes nrh-sch__rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ---- sidebar -------------------------------------------------- */

.nrh-sch__side { display: none; }
@media (min-width: 1024px) { .nrh-sch__side { display: block; } }

.nrh-sch__side-inner { position: sticky; top: 24px; display: grid; gap: 16px; }

.nrh-sch__card {
  padding: 20px;
  border: 1px solid var(--sch-line);
  border-radius: 16px;
  background: var(--sch-card);
  box-shadow: 0 1px 3px rgba(11,32,56,.06);
}
.nrh-sch__card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sch-gold-600);
}
.nrh-sch__card-label.mute { color: var(--sch-muted); }

.nrh-sch__deadline {
  margin-top: 4px;
  font-family: var(--nrh-font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--sch-navy-900);
}

.nrh-sch__side-cta {
  display: block;
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  background: var(--sch-navy-800);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s ease;
}
.nrh-sch__side-cta:hover { background: var(--sch-navy-600); }

.nrh-sch__side-note {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  color: var(--sch-muted);
}

/* TOC */
.nrh-sch__toc ol { margin: 12px 0 0; padding: 0; list-style: none; }
.nrh-sch__toc a {
  display: flex;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--sch-muted);
  text-decoration: none;
  transition: color .15s ease, background-color .15s ease;
}
.nrh-sch__toc a:hover { color: var(--sch-navy-800); }
.nrh-sch__toc a.is-active {
  background: var(--sch-navy-t06);
  color: var(--sch-navy-800);
  font-weight: 600;
}
.nrh-sch__toc-num {
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  opacity: .5;
  padding-top: 2px;
}

/* ---- apply CTA + warning -------------------------------------- */

.nrh-sch__apply {
  border-radius: 16px;
  overflow: hidden;
  background: var(--sch-navy-900);
  margin-top: 48px;
}
.nrh-sch__apply-in { padding: 28px; }
.nrh-sch__apply h2 {
  margin: 8px 0 0;
  font-family: var(--nrh-font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
}
.nrh-sch__apply p {
  margin: 8px 0 0;
  max-width: 58ch;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,.72);
}
.nrh-sch__apply-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 20px; }

.nrh-sch__scam {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 28px;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
}
.nrh-sch__scam p { margin: 0; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.78); }
.nrh-sch__scam strong { color: #fff; }

/* ---- related -------------------------------------------------- */

.nrh-sch__related { margin-top: 48px; }
.nrh-sch__related h2 {
  margin: 0 0 16px;
  font-family: var(--nrh-font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--sch-navy-900);
}

/* ---- mobile sticky apply bar ---------------------------------- */

.nrh-sch__sticky {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid var(--sch-line);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
}
@media (min-width: 1024px) { .nrh-sch__sticky { display: none; } }

.nrh-sch__sticky-info { flex: 1 1 auto; min-width: 0; }
.nrh-sch__sticky-lab {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--sch-gold-600);
}
.nrh-sch__sticky .nrh-sch__count { margin-top: 4px; }
.nrh-sch__sticky-btn {
  flex: 0 0 auto;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--sch-navy-800);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

/* ---- expired -------------------------------------------------- */

.nrh-sch__expired {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  border-left: 4px solid var(--sch-bad);
  border-radius: 12px;
  background: var(--sch-bad-t10);
}
.nrh-sch__expired p { margin: 0; font-size: 15px; line-height: 1.6; }

@media (prefers-reduced-motion: reduce) {
  .nrh-sch__seal { animation: none; }
  .nrh-sch__verdict { animation: none; }
  .nrh-sch__btn:hover { transform: none; }
}

/* The hero links here, so keep the card clear of the viewport edge. */
.nrh-sch__check { scroll-margin-top: 24px; }
#nrh-sch__eligibility { scroll-margin-top: 24px; }

/*
 * Standalone scam warning.
 *
 * Normally the warning is the dark band at the foot of the navy apply
 * box. When the body carries its own CTA the theme skips that box but
 * still prints the warning, so it needs to read as a complete element
 * on the pale page rather than a stray dark strip.
 */
.nrh-sch__scam.is-standalone {
  margin-top: 48px;
  border: 0;
  border-left: 4px solid var(--sch-bad);
  border-radius: 12px;
  background: var(--sch-bad-t10);
}
.nrh-sch__scam.is-standalone p { color: var(--sch-ink); }
.nrh-sch__scam.is-standalone strong { color: var(--sch-bad); }
