/* NRCME Library (hub + chapters). Loaded only on library pages; builds on siteStyle.css tokens. */

.nt-lib-head { padding-block: var(--nt-space-m) var(--nt-space-l); }
.nt-lib-head h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); }
.nt-lib-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem .5rem;
	list-style: none;
	margin: 0 0 var(--nt-space-s);
	padding: 0;
	font-size: .95rem;
	color: #dce8f4;
}
.nt-lib-crumbs li + li::before { content: "/"; margin-right: .5rem; }
.nt-lib-crumbs a { color: #fff; }

.nt-lib-wrap { padding-block: var(--nt-space-l); }
.nt-lib-intro { max-width: 60rem; }
/* g-5's 3rem side gutter is wider than the container padding and overflows the viewport on small screens */
@media (max-width: 991.98px) { .nt-lib-wrap .row { --bs-gutter-x: 1.5rem; } }

/* Article text */
.nt-lib-prose { font-size: 1.0625rem; line-height: 1.7; }
.nt-lib-prose h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); margin: 2.5rem 0 .75rem; }
.nt-lib-prose h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; margin: 1.5rem 0 .4rem; }
.nt-lib-prose ul { padding-left: 1.4rem; }
.nt-lib-prose li { margin-bottom: .35rem; }
.nt-lib-prose a { color: #1f5a8f; }

.nt-lib-answer { background: var(--nt-pale); }
.nt-lib-answer h2 { font-size: 1.25rem; font-weight: 600; margin: 0 0 .5rem; }
.nt-lib-answer p { margin: 0; }
.nt-lib-answer p + p, .nt-lib-answer ul, .nt-lib-answer ol { margin-top: .75rem; }

/* Process and timeline steps */
.nt-lib-steps {
	counter-reset: step;
	display: grid;
	gap: .75rem;
	list-style: none;
	margin: 1rem 0 1.5rem;
	padding: 0;
}
.nt-lib-prose .nt-lib-steps li {
	counter-increment: step;
	position: relative;
	margin: 0;
	padding: .85rem 1rem;
	background: var(--nt-pale);
	border-radius: var(--nt-radius);
	line-height: 1.35;
}
.nt-lib-steps:not(.nt-lib-steps-time) li::before {
	content: counter(step);
	display: inline-grid;
	place-items: center;
	width: 1.75rem;
	height: 1.75rem;
	margin-right: .6rem;
	border-radius: 50%;
	background: var(--nt-navy);
	color: #fff;
	font-weight: 600;
}
.nt-lib-steps-time strong { display: block; color: var(--nt-navy); }
@media (min-width: 1200px) {
	.nt-lib-steps { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 1.5rem; }
	.nt-lib-steps:not(.nt-lib-steps-time) li::before { display: grid; margin: 0 0 .5rem; }
	.nt-lib-prose .nt-lib-steps li:not(:last-child)::after {
		content: "\2192";
		position: absolute;
		top: 50%;
		right: -1.25rem;
		transform: translateY(-50%);
		color: var(--nt-nav);
		font-weight: 700;
	}
}

/* Table */
.nt-lib-tablewrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid #c7d4e0; border-radius: var(--nt-radius); }
.nt-lib-table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 1rem; line-height: 1.45; }
.nt-lib-table th, .nt-lib-table td { padding: .7rem .85rem; border: 1px solid #dbe4ec; text-align: left; vertical-align: top; }
.nt-lib-table thead th { background: var(--nt-navy); color: #fff; font-weight: 500; }
.nt-lib-table tbody th { background: var(--nt-pale); font-weight: 600; }

/* Closing blocks */
.nt-lib-takeaways { margin-top: 2.5rem; padding: var(--nt-space-m); background: var(--nt-pale); border-radius: var(--nt-radius-lg); }
.nt-lib-takeaways h2 { margin-top: 0; }
.nt-lib-takeaways .nt-checks { font-size: inherit; line-height: 1.55; }
.nt-lib-prose .nt-lib-takeaways .nt-checks { padding-left: 0; }
.nt-lib-takeaways .nt-checks > li { margin-bottom: .6rem; }
.nt-lib-takeaways .nt-checks > li > .nt-check { top: .2em; }

.nt-lib-cta { margin-top: 2.5rem; padding: var(--nt-space-m); background: var(--nt-navy); color: #fff; border-radius: var(--nt-radius-lg); }
.nt-lib-cta h2 { margin-top: 0; color: #fff; }
.nt-lib-cta .btn-nt { background: #fff; color: var(--nt-navy); letter-spacing: .04em; }
.nt-lib-cta .btn-nt:hover { background: var(--nt-accent-soft); color: var(--nt-navy); }

.nt-lib-pager { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #c7d4e0; }
@media (min-width: 768px) { .nt-lib-pager { grid-template-columns: 1fr 1fr; } .nt-lib-next { grid-column: 2; text-align: right; } }
.nt-lib-pager a { font-weight: 500; line-height: 1.35; text-decoration: none; }
.nt-lib-pager a:hover { text-decoration: underline; }
.nt-lib-pager span { display: block; font-size: .9rem; font-weight: 400; color: var(--nt-ink-muted); }

/* Chapter list */
.nt-lib-side { padding: var(--nt-space-m); background: var(--nt-pale); border-radius: var(--nt-radius-lg); }
@media (min-width: 992px) {
	.nt-lib-side { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; }
}
.nt-lib-side-title { margin-bottom: .75rem; font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
.nt-lib-side-title a { color: var(--nt-navy); text-decoration: none; }
.nt-lib-toc { margin: 0 0 1.25rem; padding-left: 1.6rem; font-size: .95rem; line-height: 1.35; }
.nt-lib-toc li { margin-bottom: .55rem; }
.nt-lib-toc a { color: #1f5a8f; text-decoration: none; }
.nt-lib-toc a:hover { text-decoration: underline; }
.nt-lib-toc a[aria-current="page"] { color: var(--nt-navy); font-weight: 700; }
.nt-lib-side-btn { display: block; text-align: center; letter-spacing: .04em; }

/* Hub cards */
.nt-lib-chapno { margin-bottom: .35rem; font-size: .9rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--nt-ink-muted); }
.nt-lib-cardtitle { font-size: 1.35rem; line-height: 1.25; margin-bottom: .75rem; }
.nt-lib-cardtitle a { color: var(--nt-navy); text-decoration: none; }
.nt-lib-cardtitle a:hover { text-decoration: underline; }

/* Byline / last-reviewed line under a chapter title (shown only when set in admin) */
.nt-lib-byline { margin: .5rem 0 0; font-size: .95rem; color: #dce8f4; }

/* ==========================================================================
   Resources pages in the site root (2026-11-16): best-nrcme-training-courses, teamcme-vs-oakstone,
   2026-nrcme-candidate-survey, provider-testimonials. They reuse the Guide's article styles above.
   ========================================================================== */
.nt-lib-toc-plain { list-style: none; padding-left: 0; }
.nt-lib-toc-plain + .nt-lib-side-title { margin-top: 1.5rem; }
.nt-lib-disclosure { margin: 0 0 1.5rem; font-size: .95rem; line-height: 1.55; color: var(--nt-ink-muted); }
.nt-lib-prose .nt-lib-answer ul { margin-bottom: 0; }

/* Comparison chart: wide, scrolls sideways on small screens */
.nt-lib-table-wide { min-width: 46rem; font-size: .95rem; }
.nt-lib-prose a.btn-nt, .nt-lib-prose a.btn-nt:hover { color: #fff; text-decoration: none; }
.nt-lib-prose .nt-lib-cta a.btn-nt, .nt-lib-prose .nt-lib-cta a.btn-nt:hover { color: var(--nt-navy); }
.nt-lib-table .nt-yes { color: #176b3a; font-weight: 700; }
.nt-lib-table .nt-no  { color: #8b2e2e; font-weight: 700; }

/* Contributor line and in-article callouts */
.nt-lib-contrib { display: flex; flex-direction: column; margin: 0 0 1.5rem; padding-left: 1rem; border-left: 4px solid var(--nt-accent); line-height: 1.4; }
.nt-lib-contrib span { font-size: .9rem; color: var(--nt-ink-muted); }
.nt-lib-chartlink { margin: 2rem 0; font-size: 1.2rem; font-weight: 600; text-align: center; }

/* Survey: figures at a glance */
.nt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem; margin: 1.5rem 0; padding: 0; list-style: none; }
.nt-lib-prose .nt-stats li { margin: 0; padding: 1rem 1.25rem; background: #fff; border: 1px solid #c7d4e0; border-top: 4px solid var(--nt-nav); border-radius: var(--nt-radius); line-height: 1.35; }
.nt-stats strong { display: block; font-size: 2rem; font-weight: 500; line-height: 1.1; color: var(--nt-navy); }

/* "Too much to read?" buttons: plain links that open the reader's AI with a summarize prompt */
.nt-askai { margin: 2rem 0; padding: 1.25rem 1.5rem; background: var(--nt-pale); border-radius: var(--nt-radius-lg); }
.nt-askai p { margin: 0 0 .75rem; font-weight: 600; color: var(--nt-navy); }
.nt-askai-links { display: flex; flex-wrap: wrap; gap: .75rem; }
.nt-lib-prose .nt-askai-links a { display: inline-block; padding: .5rem 1.1rem; border-radius: var(--nt-radius); background: var(--nt-navy); color: #fff; font-weight: 500; text-decoration: none; }
.nt-lib-prose .nt-askai-links a:hover { background: var(--nt-navy-deep); }

/* Provider testimonials */
.nt-tm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1.5rem; margin-top: 2rem; }
.nt-tm-card { display: flex; flex-direction: column; margin: 0; padding: 1.5rem; background: #fff; border-radius: var(--nt-radius-lg); box-shadow: var(--nt-shadow); }
.nt-tm-card h3 { margin: 0 0 .75rem; font-size: 1.15rem; font-weight: 600; line-height: 1.3; color: var(--nt-navy); }
.nt-tm-card blockquote { flex: 1 1 auto; margin: 0 0 1.25rem; font-size: 1.05rem; line-height: 1.6; }
.nt-tm-by { display: flex; align-items: center; gap: .75rem; padding-top: 1rem; border-top: 1px solid #dbe4ec; font-size: .95rem; line-height: 1.35; }
.nt-tm-by strong { display: block; color: var(--nt-navy); }
.nt-tm-by span { display: block; color: var(--nt-ink-muted); }
.nt-tm-avatar { flex: 0 0 2.75rem; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--nt-pale); color: var(--nt-navy); font-weight: 700; font-size: .95rem; }
.nt-tm-feature { position: relative; height: 100%; padding: 2rem; background: var(--nt-navy); color: #fff; border-radius: var(--nt-radius-lg); box-shadow: var(--nt-shadow); }
.nt-tm-feature blockquote { margin: 0 0 1.5rem; font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); line-height: 1.5; }
.nt-tm-feature .nt-tm-by { border-top-color: rgba(255, 255, 255, .25); }
.nt-tm-feature .nt-tm-by strong { color: #fff; }
.nt-tm-feature .nt-tm-by span { color: #dce8f4; }
.nt-tm-feature .nt-tm-avatar { background: var(--nt-accent); }
.nt-tm-label { display: block; margin-bottom: .75rem; font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--nt-accent); }
.nt-tm-strip { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.nt-tm-strip strong { font-size: 1.6rem; font-weight: 500; color: var(--nt-navy); margin-right: .35rem; }
.nt-tm-themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.nt-tm-themes h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: .4rem; }
.nt-tm-themes p { margin: 0; }
.nt-faq-list details { padding: 1rem 0; border-bottom: 1px solid #c7d4e0; }
.nt-faq-list summary { cursor: pointer; font-size: 1.15rem; font-weight: 600; color: var(--nt-navy); }
.nt-faq-list details p { margin: .75rem 0 0; }
/* the avatar is a span inside .nt-tm-by, so restate what ".nt-tm-by span" (display:block, muted colour) would otherwise override */
.nt-tm-by .nt-tm-avatar, .nt-tm-feature .nt-tm-by .nt-tm-avatar { display: flex; align-items: center; justify-content: center; line-height: 1; letter-spacing: .02em; color: var(--nt-navy); }
