/* Centenary bulletins (single-centenary.php) and the Centenary hub with its timeline (page-centenary.php, partials/centenary-timeline.php).
   Loaded only on those pages – see ngc_is_centenary_view() in functions.php. */

.ngc-cb {
	--cb-navy: #0d3d8a;
	--cb-blue: #0061ff;
	--cb-accent: #0061ff; /* bright blue, as the site uses for links and the call box */
	--cb-paper: #f5f2ea;
	--cb-paper-2: #ebe6d9;
	--cb-ink: #17181c;
	--cb-muted: #5b5e66;
	--cb-rule: var(--ngc-rule, #dedcd6);
	/* New Spirit for headings and story text in the centenary section only (labels, numbers and buttons stay in the site fonts) */
	--cb-serif: "new-spirit", Georgia, "Times New Roman", serif;
	--cb-head: "new-spirit-condensed", "new-spirit", Georgia, serif; /* headings: New Spirit SemiBold Condensed */
	color: var(--cb-ink);
	background: #fff;
}
.ngc-cb-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.ngc-cb a { color: var(--cb-blue); }
.ngc-cb-label, .ngc-cb-eyebrow, .ngc-cb-meta {
	font-family: var(--ngc-mono); letter-spacing: var(--mono-track, 0.06em); text-transform: uppercase; font-size: 0.75rem; line-height: 1.4;
}
.ngc-cb-label { display: block; color: var(--cb-muted); font-weight: 500; margin: 0 0 0.5rem; }

/* Reading progress */
.ngc-cb-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1000; pointer-events: none; }
.ngc-cb-progress span { display: block; height: 100%; background: var(--cb-accent); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Header ---------- */
.ngc-cb-hero { background: var(--cb-paper); border-bottom: 1px solid var(--cb-paper-2); padding: 2.5rem 0 2.25rem; }
.ngc-cb-hero__inner.has-photo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.ngc-cb-eyebrow { margin: 0 0 1rem; color: var(--cb-muted); display: flex; flex-wrap: wrap; gap: 0.35rem 0; }
.ngc-cb-eyebrow > * + *::before { content: "·"; margin: 0 0.6em; color: var(--cb-muted); }
.ngc-cb-eyebrow a { color: var(--cb-navy); text-decoration: none; font-weight: 600; }
.ngc-cb-eyebrow a:hover { color: var(--cb-accent); }
.ngc-cb-hero h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.04; margin: 0 0 1rem; color: var(--cb-ink); letter-spacing: -0.01em; }
.ngc-cb-dek { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.45; margin: 0 0 1.1rem; color: #2a2c32; max-width: 38em; }
.ngc-cb-meta { margin: 0; color: var(--cb-muted); }
.ngc-cb-hero__photo { margin: 0; background: #fff; padding: 10px; box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 8px 24px rgba(23,24,28,0.08); transform: rotate(0.6deg); }
.ngc-cb-hero__photo figcaption { font-size: 0.8rem; line-height: 1.4; color: var(--cb-muted); padding: 0.55rem 0.15rem 0.1rem; }
.ngc-cb-hero__photo img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; background: #f2f2f2; }

/* ---------- 1 – 23 strip ---------- */
.ngc-cb-rail { border-bottom: 1px solid var(--cb-rule); background: #fff; position: sticky; top: 0; z-index: 20; }
.ngc-cb-rail .ngc-cb-wrap { overflow-x: auto; scrollbar-width: none; }
.ngc-cb-rail .ngc-cb-wrap::-webkit-scrollbar { display: none; }
.ngc-cb-rail ol { list-style: none; margin: 0; padding: 0.6rem 0; display: flex; gap: 0.3rem; width: max-content; }
.ngc-cb-rail li { list-style: none; margin: 0; padding: 0; }
.ngc-cb-rail a {
	display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; text-decoration: none;
	font-family: var(--ngc-mono); font-size: 0.8rem; color: var(--cb-muted); border: 1px solid var(--cb-rule); background: #fff;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.ngc-cb-rail a:hover { border-color: var(--cb-navy); color: var(--cb-navy); }
.ngc-cb-rail a[aria-current] { background: var(--cb-navy); border-color: var(--cb-navy); color: #fff; font-weight: 700; }

/* ---------- Story ---------- */
.ngc-cb-layout { display: grid; grid-template-columns: 260px minmax(0, 42rem); gap: 3.5rem; justify-content: center; padding-top: 2.75rem; padding-bottom: 3rem; }
.ngc-cb-aside { position: sticky; top: 4.5rem; align-self: start; max-height: calc(100vh - 5.5rem); overflow-y: auto; }
.ngc-cb-brief { background: var(--cb-paper); border-left: 3px solid var(--cb-accent); padding: 1rem 1.1rem 0.6rem; margin: 0 0 1.75rem; }
.ngc-cb-brief ul { list-style: none; margin: 0; padding: 0; }
.ngc-cb-brief li { list-style: none; margin: 0 0 0.7rem; font-size: 0.92rem; line-height: 1.45; color: #2a2c32; }
.ngc-cb-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; border-left: 1px solid var(--cb-rule); }
.ngc-cb-toc li { list-style: none; margin: 0; counter-increment: toc; }
.ngc-cb-toc a { display: block; padding: 0.3rem 0 0.3rem 0.9rem; margin-left: -1px; border-left: 2px solid transparent; font-size: 0.9rem; line-height: 1.35; color: var(--cb-muted); text-decoration: none; }
.ngc-cb-toc a:hover { color: var(--cb-navy); border-left-color: var(--cb-navy); }
.ngc-cb-toc a.is-current { color: var(--cb-ink); font-weight: 600; border-left-color: var(--cb-accent); }

.ngc-cb-body { font-size: 1.125rem; line-height: 1.7; min-width: 0; }
.ngc-cb-body > p, .ngc-cb-body p { margin: 0 0 1.15em; }
.ngc-cb-body h2 { font-size: 1.6rem; line-height: 1.15; margin: 2.2em 0 0.6em; scroll-margin-top: 4.5rem; color: var(--cb-ink); }
.ngc-cb-body h2::before { content: ""; display: block; width: 2.5rem; height: 3px; background: var(--cb-accent); margin-bottom: 0.7rem; }
.ngc-cb-body h3 { font-size: 1.2rem; margin: 1.8em 0 0.5em; scroll-margin-top: 4.5rem; }
.ngc-cb-body ul, .ngc-cb-body ol { margin: 0 0 1.2em 1.2em; padding: 0; }
.ngc-cb-body li { margin: 0 0 0.35em; }

/* Photos: never cropped; captions in small type */
.ngc-cb-body img { max-width: 100%; height: auto; }
.ngc-cb-body .wp-caption, .ngc-cb-body figure { max-width: 100% !important; width: auto !important; margin: 1.8em 0; }
.ngc-cb-body .wp-caption img, .ngc-cb-body figure img, .ngc-cb-body p > img:only-child { display: block; margin: 0 auto; max-height: 620px; width: auto; object-fit: contain; }
.ngc-cb-body p > img:only-child { margin: 1.8em auto; }
.ngc-cb-body .wp-caption-text, .ngc-cb-body figcaption {
	font-size: 0.85rem; line-height: 1.45; color: var(--cb-muted); margin: 0.6em 0 0; padding-left: 0.75rem; border-left: 2px solid var(--cb-rule);
}
@media (min-width: 900px) {
	.ngc-cb-body .alignleft { float: left; margin: 0.4em 1.75em 1em 0 !important; max-width: 45% !important; }
	.ngc-cb-body .alignright { float: right; margin: 0.4em 0 1em 1.75em !important; max-width: 45% !important; }
	.ngc-cb-body h2, .ngc-cb-body h3 { clear: both; }
}
.ngc-cb-body .aligncenter { margin-left: auto; margin-right: auto; }

/* Pull quote */
.ngc-cb-body blockquote.ngc-cb-pull { margin: 2.2em 0; padding: 0.2em 0 0.2em 1.4rem; border-left: 4px solid var(--cb-navy); clear: both; }
.ngc-cb-body blockquote.ngc-cb-pull p {
	font-family: var(--ngc-display); font-weight: 600; font-stretch: 100%; font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.3; color: var(--cb-navy); margin: 0;
}
@media (min-width: 1200px) {
	.ngc-cb-body blockquote.ngc-cb-pull { margin-right: -6rem; }
}
.ngc-cb-cta { margin-top: 2em; font-weight: 600; }

/* ---------- Previous / next ---------- */
.ngc-cb-next { background: var(--cb-paper); border-top: 1px solid var(--cb-paper-2); padding: 2.5rem 0 2.75rem; }
.ngc-cb-next__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.ngc-cb-next__card {
	display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 1rem; align-items: center; background: #fff; padding: 0.9rem;
	text-decoration: none; color: var(--cb-ink) !important; border: 1px solid var(--cb-paper-2); transition: border-color 0.15s, box-shadow 0.15s;
}
.ngc-cb-next__card:hover { border-color: var(--cb-navy); box-shadow: 0 6px 18px rgba(13,61,138,0.1); }
.ngc-cb-next__card--next { text-align: left; }
.ngc-cb-next__photo { display: block; aspect-ratio: 4 / 3; background: #f2f2f2; overflow: hidden; }
.ngc-cb-next__photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ngc-cb-next__text strong { display: block; font-family: var(--ngc-display); font-size: 1.15rem; line-height: 1.2; margin-bottom: 0.3rem; }
.ngc-cb-next__dek { display: block; font-size: 0.88rem; line-height: 1.4; color: var(--cb-muted); }
.ngc-cb-all { margin: 1.5rem 0 0; text-align: center; font-weight: 600; }
.ngc-cb-all a { text-decoration: none; }

/* ---------- Hub ---------- */
.ngc-cb-hero--hub { padding: 3.25rem 0 2.5rem; }
.ngc-cb-hero--hub h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); max-width: 14em; }

.ngc-cb-chapnav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.ngc-cb-chapnav a {
	display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.8rem 0.45rem 0.45rem; background: #fff; border: 1px solid var(--cb-paper-2);
	color: var(--cb-ink); text-decoration: none; font-size: 0.92rem; border-radius: 999px;
}
.ngc-cb-chapnav a span { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--cb-paper); font-family: var(--ngc-mono); font-size: 0.75rem; }
.ngc-cb-chapnav a:hover { border-color: var(--cb-navy); color: var(--cb-navy); }

.ngc-cb-hub-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.ngc-cb-collage { position: relative; height: 380px; }
.ngc-cb-collage a { position: absolute; display: block; background: #fff; padding: 8px; box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 10px 26px rgba(23,24,28,0.12); transition: transform 0.2s; }
.ngc-cb-collage img { display: block; width: 100%; height: auto; }
.ngc-cb-collage a:nth-child(1) { width: 38%; left: 2%; top: 2%; transform: rotate(-3deg); z-index: 2; }
.ngc-cb-collage a:nth-child(2) { width: 56%; right: 0; top: 0; transform: rotate(2deg); }
.ngc-cb-collage a:nth-child(3) { width: 58%; right: 10%; bottom: 0; transform: rotate(-1deg); z-index: 3; }
.ngc-cb-collage a:hover { transform: rotate(0) scale(1.03); z-index: 4; }

.ngc-cb-timeline { padding: 1rem 0 2rem; }
.ngc-cb-chapter { position: relative; padding: 2.5rem 0 0.5rem 2.25rem; border-left: 2px solid var(--cb-rule); margin-left: 0.5rem; scroll-margin-top: 1rem; }
.ngc-cb-chapter::before { content: ""; position: absolute; left: -9px; top: 2.85rem; width: 16px; height: 16px; border-radius: 50%; background: var(--cb-accent); box-shadow: 0 0 0 4px #fff; }
.ngc-cb-chapter__head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 1.25rem; line-height: 1.1; }
.ngc-cb-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.25rem; }
.ngc-cb-cards > li { list-style: none; margin: 0; }
.ngc-cb-card {
	display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--cb-paper-2); text-decoration: none; color: var(--cb-ink) !important;
	transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
/* a chapter with one bulletin gets one wide card */
.ngc-cb-cards:has(> li:only-child) { grid-template-columns: minmax(0, 46rem); }
@media (min-width: 640px) {
	.ngc-cb-cards > li:only-child .ngc-cb-card { flex-direction: row; }
	.ngc-cb-cards > li:only-child .ngc-cb-card__photo { flex: 0 0 42%; aspect-ratio: 4 / 3; }
	.ngc-cb-cards > li:only-child .ngc-cb-card__text { padding: 1.4rem 1.5rem; justify-content: center; }
	.ngc-cb-cards > li:only-child .ngc-cb-card__dek { flex: 0 0 auto; font-size: 1rem; }
}
.ngc-cb-card:hover { transform: translateY(-3px); border-color: var(--cb-navy); box-shadow: 0 10px 24px rgba(13,61,138,0.12); }
.ngc-cb-card__photo { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--cb-paper); overflow: hidden; }
.ngc-cb-card__photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ngc-cb-card__n {
	position: absolute; left: 0.6rem; top: 0.6rem; min-width: 2rem; height: 2rem; padding: 0 0.4rem; box-sizing: border-box; display: grid; place-items: center;
	background: var(--cb-navy); color: #fff; font-family: var(--ngc-mono); font-size: 0.85rem; font-weight: 700; border-radius: 999px;
}
.ngc-cb-card__text { display: flex; flex-direction: column; flex: 1; padding: 1rem 1rem 1.1rem; }
.ngc-cb-card__text .ngc-cb-label { margin-bottom: 0.35rem; }
.ngc-cb-card__text strong { font-family: var(--ngc-display); font-size: 1.2rem; line-height: 1.2; margin-bottom: 0.45rem; }
.ngc-cb-card__dek { font-size: 0.92rem; line-height: 1.45; color: #3a3d44; flex: 1; }
.ngc-cb-card__meta { margin-top: 0.8rem; font-family: var(--ngc-mono); font-size: 0.72rem; letter-spacing: var(--mono-track, 0.06em); text-transform: uppercase; color: var(--cb-muted); }

.ngc-cb-letter { background: var(--cb-paper); border-top: 1px solid var(--cb-paper-2); padding: 3rem 0 3.5rem; }
.ngc-cb-letter__inner { max-width: 42rem; margin: 0 auto; }
.ngc-cb-letter h2 { font-size: 1.8rem; margin: 0 0 1.25rem; }
.ngc-cb-letter .ngc-cb-body { font-size: 1.05rem; }

/* ---------- Narrow screens ---------- */
@media (max-width: 899px) {
	.ngc-cb-hub-head { grid-template-columns: 1fr; }
	.ngc-cb-collage { display: none; }
	.ngc-cb-hero__inner.has-photo { grid-template-columns: 1fr; gap: 1.75rem; }
	.ngc-cb-hero__photo { transform: none; max-width: 520px; }
	.ngc-cb-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 1.75rem; }
	.ngc-cb-aside { position: static; max-height: none; overflow: visible; }
	.ngc-cb-toc { display: none; }
	.ngc-cb-next__grid { grid-template-columns: 1fr; }
	.ngc-cb-chapter { padding-left: 1.25rem; margin-left: 0.25rem; }
}
@media (max-width: 520px) {
	.ngc-cb-body { font-size: 1.06rem; }
	.ngc-cb-next__card { grid-template-columns: 84px minmax(0, 1fr); }
	.ngc-cb-cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.ngc-cb-card, /* a chapter with one bulletin gets one wide card */
.ngc-cb-cards:has(> li:only-child) { grid-template-columns: minmax(0, 46rem); }
@media (min-width: 640px) {
	.ngc-cb-cards > li:only-child .ngc-cb-card { flex-direction: row; }
	.ngc-cb-cards > li:only-child .ngc-cb-card__photo { flex: 0 0 42%; aspect-ratio: 4 / 3; }
	.ngc-cb-cards > li:only-child .ngc-cb-card__text { padding: 1.4rem 1.5rem; justify-content: center; }
	.ngc-cb-cards > li:only-child .ngc-cb-card__dek { flex: 0 0 auto; font-size: 1rem; }
}
.ngc-cb-card:hover { transition: none; transform: none; }
}

/* ---------- New Spirit: headings and copy ---------- */
/* Adobe Fonts project hov3wae: new-spirit 400/700, new-spirit-condensed 300–700 (with italics) */
.ngc-cb-dek, .ngc-cb-body, .ngc-cb-body p, .ngc-cb-body li,
.ngc-cb-brief li, .ngc-cb-card__dek, .ngc-cb-next__dek,
.ngc-cb-body blockquote.ngc-cb-pull p {
	font-family: var(--cb-serif);
	font-weight: 400;
	font-stretch: normal;
	font-variation-settings: normal;
	letter-spacing: 0;
}
.ngc-cb-body blockquote.ngc-cb-pull p { font-family: var(--cb-head); font-weight: 500; font-style: italic; } /* New Spirit Condensed Medium Italic */
.ngc-cb h1, .ngc-cb h2:not(.ngc-cb-label), .ngc-cb h3, .ngc-cb-card__text strong, .ngc-cb-next__text strong {
	font-family: var(--cb-head);
	font-weight: 600;
	font-stretch: normal;
	font-variation-settings: normal;
	letter-spacing: 0;
}
.ngc-cb h1 { letter-spacing: -0.005em; line-height: 1.02; }
