/* ============================================================
   NETINT Research — Collection reader
   Faithful port of prototype collection.jsx → CollectionPage (README §5).
   Base layer (.nr-page) + tokens from cards.css / Site Settings.
   ============================================================ */

.nr-col__pane[hidden] { display: none; }

/* ── Navy header + progress ─────────────────────────────────── */
/* Light header (matches the landing/blog heroes). Vertical padding lives HERE, not on
   .nr-col__header-inner, because that inner carries .wrap, whose shorthand zeroes its vertical pad. */
.nr-col__header { color: var(--ink); position: relative; overflow: hidden; padding: 50px 0; }
.nr-col__header-inner { position: relative; } /* horizontal gutter from .wrap; vertical pad on .nr-col__header */
/* Matches the shared .nr-eyebrow metrics exactly (landing.css) so topic/collection kickers
   read as the same eyebrow used across the section. */
/* type role: eyebrow */
.nr-col__kicker {
  font-family: var(--t-eyebrow-family, var(--sans));
  font-size: var(--t-eyebrow-size, 12px);
  font-weight: var(--t-eyebrow-weight, 700);
  letter-spacing: var(--t-eyebrow-ls, .16em);
  text-transform: uppercase; color: var(--t-eyebrow-color, var(--cyan-deep));
}
/* type role: h1 (page heading) */
.nr-col__title {
  margin: 10px 0 0;
  font-family: var(--t-h1-family, var(--sans));
  font-size: var(--t-h1-size, 34px);
  font-weight: var(--t-h1-weight, 900);
  letter-spacing: var(--t-h1-ls, -.03em);
  line-height: var(--t-h1-line, 1.05);
  color: var(--t-h1-color, var(--navy));
}
.nr-col__progress { margin-top: 18px; display: flex; align-items: center; gap: 14px; }
.nr-col__track { flex: 1; max-width: 460px; height: 6px; border-radius: 999px; background: var(--mist-2); overflow: hidden; }
.nr-col__bar { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--cyan), var(--cyan-soft)); transition: width .4s var(--ease); }
.nr-col__progress-label { font-size: 13px; font-weight: 600; color: var(--muted); }

/* ── Body grid: sticky sidebar + reader ─────────────────────── */
.nr-col__body { padding-top: 30px; padding-bottom: 64px; display: grid; grid-template-columns: 300px 1fr; gap: 46px; align-items: start; } /* horizontal gutter from .wrap */
.nr-col__aside { position: sticky; top: 84px; max-height: calc(100vh - 104px); overflow-y: auto; padding-right: 4px; }
.nr-col__aside::-webkit-scrollbar { width: 0; height: 0; }
.nr-col__aside-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); margin-bottom: 16px; }

/* contents list */
.nr-col__group { margin-bottom: 22px; }
.nr-col__group-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 9px; }
.nr-col__group-items { display: flex; flex-direction: column; gap: 3px; }
.nr-col__item {
  display: flex; gap: 12px; align-items: flex-start; padding: 9px 11px; border-radius: 10px;
  border: 1px solid transparent; text-decoration: none; transition: background .15s, border-color .15s;
}
.nr-col__item:hover { background: var(--mist); }
.nr-col__item.is-active { border-color: var(--cyan-deep); background: var(--cyan-mist); }
.nr-col__num {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; margin-top: 1px;
  font-size: 11px; font-weight: 700; background: var(--mist-2); color: var(--muted);
  font-family: var(--cond); font-variant-numeric: tabular-nums;
}
.nr-col__item.is-active .nr-col__num, .nr-col__item.is-read .nr-col__num { background: var(--cyan-deep); color: #fff; }
.nr-col__num-check { display: none; }
.nr-col__item.is-read .nr-col__num-n { display: none; }
.nr-col__item.is-read .nr-col__num-check { display: inline-grid; place-items: center; }
.nr-col__item-text { min-width: 0; display: flex; flex-direction: column; }
.nr-col__item-title { font-size: 13.5px; font-weight: 500; color: var(--ink-2); line-height: 1.3; }
.nr-col__item.is-active .nr-col__item-title { font-weight: 700; color: var(--navy); }
.nr-col__item.is-read .nr-col__item-title { color: var(--muted); }
.nr-col__item-meta { font-size: 11.5px; margin-top: 3px; line-height: 1.35; }
.nr-col__back {
  margin-top: 8px; width: 100%; display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 11px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2); text-decoration: none;
}
.nr-col__back .nr-ico { transform: rotate(180deg); }
.nr-col__back:hover { background: var(--mist); }

/* ── Reader pane ────────────────────────────────────────────── */
/* Pane hero banner hidden — the asset's own featured image already leads its body, so the
   reader-generated banner (with the ASSET N OF N overlay) just duplicates it. */
.nr-col__hero { display: none; }
.nr-col__hero--keep {
  border-radius: var(--rad-lg); overflow: hidden; box-shadow: var(--shadow-1); height: 200px; position: relative;
  margin-bottom: 26px; background-size: cover; background-position: center;
}
.nr-col__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(7,20,32,.55)); }
.nr-col__hero-meta { position: absolute; left: 28px; bottom: 24px; color: #fff; z-index: 1; }
.nr-col__hero-asset { font-family: var(--cond); font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 700; opacity: .9; letter-spacing: .04em; display: block; }
.nr-col__hero-part { font-size: 12.5px; opacity: .75; margin-top: 2px; display: block; }

.nr-col__chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); margin-bottom: 14px;
}
.nr-col__chip-ico { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; }
.nr-col__chip-meta { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
/* type role: h1 (page heading) */
.nr-col__pane-title {
  margin: 0 0 22px;
  font-family: var(--t-h1-family, var(--sans));
  font-size: var(--t-h1-size, 34px);
  font-weight: var(--t-h1-weight, 900);
  letter-spacing: var(--t-h1-ls, -.025em);
  color: var(--t-h1-color, var(--navy));
  line-height: var(--t-h1-line, 1.08);
}

/* body typography — same reading scale as the article body */
.nr-col__pane-body { max-width: 720px; }
/* type role: body (reading copy) */
.nr-col__pane-body p {
  font-family: var(--t-body-family, var(--sans));
  font-size: var(--t-body-size, 17px);
  line-height: var(--t-body-line, 1.72);
  font-weight: var(--t-body-weight, 400);
  color: var(--t-body-color, var(--ink-2));
  letter-spacing: var(--t-body-ls, normal);
  margin: 0 0 20px;
}
.nr-col__pane-body > p.nr-col__lead, .nr-col__pane-body > p:first-of-type { font-size: 18.5px; font-weight: 500; }
/* type role: h2 (section heading) */
.nr-col__pane-body h2 {
  font-family: var(--t-h2-family, var(--sans));
  font-size: var(--t-h2-size, 27px);
  font-weight: var(--t-h2-weight, 800);
  letter-spacing: var(--t-h2-ls, -.02em);
  color: var(--t-h2-color, var(--navy));
  margin: 34px 0 4px;
}
.nr-col__pane-body h3 { font-size: 21px; font-weight: 800; letter-spacing: -.015em; color: var(--navy); margin: 30px 0 4px; }
.nr-col__pane-body ul, .nr-col__pane-body ol { margin: 0 0 20px; padding-left: 24px; color: var(--ink-2); font-size: 17px; line-height: 1.72; }
.nr-col__pane-body li { margin: 0 0 8px; }
.nr-col__pane-body a { color: var(--cyan-deep); text-decoration: underline; }
.nr-col__pane-body img, .nr-col__pane-body figure { border-radius: var(--rad); margin: 22px 0; max-width: 100%; }
.nr-col__pane-body blockquote { margin: 28px 0; padding: 2px 0 2px 24px; border-left: 4px solid var(--red); }
.nr-col__pane-body blockquote p { margin: 0; font-size: 23px; font-weight: 500; font-style: italic; line-height: 1.3; color: var(--navy); }

.nr-col__source { margin: 8px 0 0; }
.nr-col__source a { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none; }
.nr-col__source a:hover { color: var(--cyan-deep); }

/* ── End-cap ────────────────────────────────────────────────── */
.nr-col__endcap { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.nr-col__endcap-label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
/* Light card (was navy) — sits on the white reader; colors set for contrast on white. */
.nr-col__upnext {
  width: 100%; display: flex; align-items: center; gap: 18px; background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--rad); padding: 20px 24px; text-decoration: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.nr-col__upnext:hover { border-color: var(--cyan); box-shadow: var(--shadow-1); }
.nr-col__upnext-arrow { flex-shrink: 0; width: 46px; height: 46px; border-radius: 999px; background: var(--red); color: #fff; display: grid; place-items: center; }
.nr-col__upnext-body { flex: 1; min-width: 0; }
.nr-col__upnext-kicker { font-family: var(--cond); font-variant-numeric: tabular-nums; font-size: 12.5px; font-weight: 700; color: var(--cyan-deep); letter-spacing: .06em; display: block; }
.nr-col__upnext-title { display: block; font-size: 19px; font-weight: 700; margin-top: 3px; color: var(--navy); }
.nr-col__upnext-meta { font-size: 13px; color: var(--muted); }
.nr-col__upnext-go { font-size: 14px; font-weight: 600; color: var(--cyan-deep); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }

.nr-col__final {
  background: linear-gradient(110deg, var(--navy), #103450); border-radius: var(--rad); padding: 26px 28px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.nr-col__final-h { font-size: 20px; font-weight: 800; }
.nr-col__final-sub { font-size: 14px; color: rgba(255,255,255,.7); margin-top: 4px; }
.nr-col__final-actions { display: flex; gap: 10px; flex-shrink: 0; }
.nr-col__final-back { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 12px 18px; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }

/* Contents drawer toggle — HIDDEN on desktop. !important + parent specificity because the site theme
   forces <button> display (it otherwise leaked the red "In this topic" button onto desktop). */
.nr-col__aside .nr-col__contents-toggle { display: none !important; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 980px) {
  .nr-col__body { grid-template-columns: 1fr; gap: 26px; }
  .nr-col__aside { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 720px) {
  .nr-col__header-inner { padding-top: 26px; padding-bottom: 24px; }
  .nr-col__body { padding-top: 24px; padding-bottom: 48px; }
  .nr-col__title, .nr-col__pane-title { font-size: 27px; }
  .nr-col__final { flex-direction: column; align-items: flex-start; }
  /* Drawer: TOC collapses behind a "Contents" button that carries the aside title. Higher specificity
     + !important so it re-shows here, and appearance:none + !important colours neutralise the theme. */
  .nr-col__aside .nr-col__contents-toggle {
    display: flex !important; align-items: center; justify-content: space-between; gap: 10px;
    width: 100%; padding: 12px 16px;
    background: #fff !important; border: 1px solid var(--line) !important; border-radius: var(--rad);
    font: 700 13px var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2) !important; cursor: pointer;
    -webkit-appearance: none; appearance: none;
  }
  .nr-col__aside .nr-col__contents-toggle:hover,
  .nr-col__aside .nr-col__contents-toggle:focus-visible {
    background: var(--mist) !important; color: var(--ink) !important; border-color: var(--line) !important;
  }
  .nr-col__contents-toggle .nr-ico { color: var(--muted); transition: transform .2s var(--ease); }
  .nr-col__contents-toggle[aria-expanded="true"] .nr-ico { transform: rotate(180deg); }
  .nr-col__aside-title { display: none; } /* replaced by the toggle on mobile */
  .nr-col__contents { display: none; margin-top: 10px; }
  .nr-col__aside.is-contents-open .nr-col__contents { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .nr-col__bar { transition: none; }
  .nr-col__contents-toggle .nr-ico { transition: none; }
}
