/*
 * XPT Magazine redesign, Oct 2026.
 * Navy chrome, warm ivory ground, champagne gold used sparingly.
 * Contrast (WCAG 2.x): charcoal on ivory 12.7, slate on ivory 5.5, gold ink on ivory 5.7,
 * gold on navy 7.9, on-navy text 14.6, on-navy muted 7.0. Gold is never text on light grounds.
 */
:root {
	--navy: #101827;
	--navy-2: #1A2436;
	--navy-rule: #2A3448;
	--ivory: #F7F5F0;
	--white: #FFFFFF;
	--charcoal: #292D32;
	--body: #41464D;
	--grey: #E8E9EC;
	--grey-strong: #CFCFD3;
	--muted: #5E6470;
	--gold: #C8A96A;
	--gold-hover: #B8975A;
	--gold-ink: #7A5C24;
	--gold-wash: #F3ECDD;
	--on-navy: #E8E9EC;
	--on-navy-muted: #9AA3B2;
	--ph: #ECEAE3;
	--f-head: "Poppins", "Segoe UI", Arial, sans-serif;
	--f-body: "Inter", "Segoe UI", Arial, sans-serif;
	--f-quote: "Lora", Georgia, "Times New Roman", serif;
	--s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
	--wrap: 1200px;
	--narrow: 720px;
	--r: 6px;
}

/* ---------- Base ---------- */
body.xpt-rd { margin: 0; background: var(--ivory); color: var(--charcoal); font: 400 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.xpt-rd *, .xpt-rd *::before, .xpt-rd *::after { box-sizing: border-box; }
.xpt-rd img { max-width: 100%; height: auto; }
.xpt-rd a { color: inherit; }
.xpt-rd :focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.xpt-rd h1, .xpt-rd h2, .xpt-rd h3, .xpt-rd h4 { font-family: var(--f-head); color: var(--charcoal); text-wrap: balance; margin: 0; }
.xpt-rd p { margin: 0; }
.xpt-rd .xr-sr, .xpt-rd .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.xpt-rd .skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 100; background: var(--white); color: var(--navy); padding: 12px 16px; border-radius: var(--r); font-weight: 600; white-space: normal; margin: 0; }
.xr-wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: max(16px, 3vw); }
.xr-narrow { max-width: calc(var(--narrow) + 2 * max(16px, 3vw)); }

/* ---------- Header ---------- */
.xr-head { background: var(--navy); color: var(--white); position: relative; z-index: 20; }
.xr-head-bar { display: flex; align-items: center; gap: var(--s5); min-height: 68px; }
.xr-logo { display: inline-flex; align-items: stretch; text-decoration: none; border: 1.5px solid var(--ivory); border-radius: 2px; flex: none; }
.xr-logo b { background: var(--ivory); color: var(--navy); font: 700 17px/1 var(--f-head); padding: 8px 10px; letter-spacing: .02em; }
.xr-logo i { font: 600 17px/1 var(--f-head); font-style: normal; color: var(--ivory); padding: 8px 12px; }
.xr-nav { margin-left: var(--s3); }
.xr-nav-list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.xr-nav-list a { display: block; font: 500 15px/1 var(--f-body); color: var(--on-navy); text-decoration: none; padding: 12px; border-radius: 4px; position: relative; }
.xr-nav-list a:hover { color: var(--white); background: var(--navy-2); }
.xr-nav-list .current-menu-item > a, .xr-nav-list .current-post-ancestor > a, .xr-nav-list .current-menu-parent > a, .xr-nav-list .current-category-ancestor > a { color: var(--white); }
.xr-nav-list .current-menu-item > a::after, .xr-nav-list .current-post-ancestor > a::after, .xr-nav-list .current-menu-parent > a::after, .xr-nav-list .current-category-ancestor > a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--gold); }
.xr-head-tools { margin-left: auto; display: flex; align-items: center; gap: var(--s2); }
.xr-search { display: flex; align-items: center; gap: 8px; background: var(--navy-2); border: 1px solid var(--navy-rule); border-radius: 999px; padding: 0 6px 0 14px; height: 42px; color: var(--on-navy-muted); width: 260px; }
.xr-search:focus-within { border-color: var(--gold); }
.xr-search svg { flex: none; }
.xr-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--white); font: 400 14px var(--f-body); outline: 0; padding: 0; }
.xr-search input::placeholder { color: var(--on-navy-muted); opacity: 1; }
/* The pill's gold border is the focus indicator, so the input needs no ring of its own. */
.xpt-rd .xr-search input:focus-visible { outline: none; }
.xr-search input::-webkit-search-cancel-button { filter: invert(1); }
.xr-menu-btn { display: none; place-items: center; width: 44px; height: 44px; border: 1px solid var(--navy-rule); background: transparent; border-radius: 6px; color: var(--white); cursor: pointer; padding: 0; }
.xr-menu-btn:hover { background: var(--navy-2); }
.xr-menu-btn .xr-ico-close { display: none; }
.xr-menu-btn[aria-expanded="true"] .xr-ico-open { display: none; }
.xr-menu-btn[aria-expanded="true"] .xr-ico-close { display: block; }
.xr-panel { background: var(--navy); border-top: 1px solid var(--navy-rule); padding-block: var(--s4) var(--s5); }
.xr-panel .xr-search { width: 100%; margin-bottom: var(--s3); height: 48px; }
.xr-panel-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.xr-panel-list a { display: block; padding: 14px 4px; font: 500 17px/1.2 var(--f-body); color: var(--on-navy); text-decoration: none; border-bottom: 1px solid var(--navy-rule); }
.xr-panel-list a:hover { color: var(--white); }
.xr-panel-list .current-menu-item > a, .xr-panel-list .current-post-ancestor > a { color: var(--gold); }
.xr-sub { background: var(--navy); border-top: 1px solid var(--navy-rule); }
.xr-sub-in { display: flex; align-items: center; gap: var(--s4); min-height: 42px; overflow-x: auto; scrollbar-width: none; }
.xr-sub-in::-webkit-scrollbar { display: none; }
.xr-sub-lbl { font: 600 11px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); flex: none; text-decoration: none; padding-block: 8px; }
.xr-sub-lbl:hover { text-decoration: underline; text-underline-offset: 3px; }
.xr-az { display: flex; gap: 2px; flex: none; }
.xr-az a { font: 500 13px/1 var(--f-body); color: var(--on-navy-muted); text-decoration: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 4px; }
.xr-az a:hover { color: var(--navy); background: var(--gold); }

/* ---------- Shared pieces ---------- */
.xr-main { display: block; padding-bottom: var(--s2); }
.xr-sec { padding-top: var(--s8); }
.xr-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); padding-bottom: var(--s4); border-bottom: 1px solid var(--charcoal); margin-bottom: var(--s5); }
.xr-kicker { display: block; font: 600 12px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 10px; }
.xr-sec-head h2 { font-size: 30px; line-height: 1.2; font-weight: 700; }
.xr-sec-head p { color: var(--muted); font-size: 15px; margin-top: 6px; max-width: 60ch; }
.xr-more { font: 600 14px/1 var(--f-body); color: var(--charcoal); text-decoration: none; white-space: nowrap; padding: 12px 0 10px; border-bottom: 2px solid var(--gold); display: inline-block; }
.xr-more:hover { color: var(--gold-ink); }
.xr-cat { display: inline-block; font: 600 12px/1.2 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); text-decoration: none; }
a.xr-cat:hover { text-decoration: underline; text-underline-offset: 3px; }
.xr-meta { font: 400 13px/1.5 var(--f-body); color: var(--muted); }
.xr-meta a { color: var(--charcoal); font-weight: 500; text-decoration: none; }
.xr-meta a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.xr-dot { margin-inline: 6px; }
.xr-card-title { font-family: var(--f-head); font-weight: 600; }
.xr-card-title a, .xr-lead-title a, .xr-qtitle a, .xr-nw-text h3 a, .xr-popular li a { color: var(--charcoal); text-decoration: none; }
.xr-card-title a:hover, .xr-lead-title a:hover, .xr-qtitle a:hover, .xr-popular li a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.xr-dek { font-size: 16px; line-height: 1.6; color: var(--body); }

.xr-media { display: block; position: relative; overflow: hidden; background: var(--ph); border-radius: var(--r); max-width: 100%; }
.xr-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; border-radius: 0; }
.r169 { aspect-ratio: 16 / 9; }
.r43 { aspect-ratio: 4 / 3; }
.xr-noimg { display: grid; place-items: center; background: var(--navy); }
.xr-noimg span { font: 700 15px/1 var(--f-head); color: var(--navy); background: var(--ivory); padding: 6px 8px; border-radius: 2px; }

.xr-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.xr-pills a { font: 500 14px/1 var(--f-body); text-decoration: none; color: var(--charcoal); border: 1px solid var(--grey-strong); border-radius: 999px; padding: 13px 16px; background: var(--white); }
.xr-pills a:hover { border-color: var(--gold); color: var(--gold-ink); }

/* ---------- Homepage: hero ---------- */
.xr-hero { padding-top: var(--s7); }
.xr-hero-intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s4) var(--s6); padding-bottom: var(--s5); border-bottom: 1px solid var(--grey); margin-bottom: var(--s6); }
.xr-hero-intro h1 { font-size: 42px; line-height: 1.15; font-weight: 700; max-width: 22ch; }
.xr-hero-intro > p { color: var(--muted); font-size: 16px; max-width: 46ch; }
.xr-stats { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); margin: var(--s4) 0 0; }
.xr-stats div { display: flex; flex-direction: column-reverse; gap: 2px; }
.xr-stats dt { font: 400 13px/1.3 var(--f-body); color: var(--muted); }
.xr-stats dd { margin: 0; font: 600 22px/1.1 var(--f-head); color: var(--charcoal); font-variant-numeric: tabular-nums; }
.xr-hero-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--s6); }
.xr-lead .xr-media { margin-bottom: var(--s4); }
.xr-lead-title { font-size: 34px; line-height: 1.18; font-weight: 700; margin: 10px 0 12px; }
.xr-lead .xr-dek { font-size: 18px; max-width: 60ch; margin-bottom: 12px; }
.xr-stack { display: flex; flex-direction: column; gap: var(--s5); }
.xr-stack-item { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: var(--s4); align-items: start; padding-bottom: var(--s5); border-bottom: 1px solid var(--grey); }
.xr-stack-item:last-child { border-bottom: 0; padding-bottom: 0; }
.xr-stack-item h3 { font-size: 19px; line-height: 1.3; margin: 8px 0; }

/* ---------- People ---------- */
.xr-people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); }
.xr-person { background: var(--white); border: 1px solid var(--grey); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.xr-person .xr-media { border-radius: 0; }
.xr-person-body { padding: var(--s4); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.xr-person h3 { font-size: 19px; line-height: 1.25; }
.xr-person-desc { font-size: 14px; line-height: 1.5; color: var(--body); }
.xr-person .xr-meta { margin-top: auto; padding-top: var(--s2); }
.xr-people-archive .xr-person-wide { grid-column: span 2; }
.xr-people-archive .xr-person-wide h3 { font-size: 24px; }
.xr-people-archive .xr-person-wide .xr-person-desc { font-size: 16px; }

/* ---------- Net worth ---------- */
.xr-band { background: var(--navy); color: var(--on-navy); margin-top: var(--s8); padding-block: var(--s8); }
.xr-band .xr-sec-head { border-color: var(--navy-rule); }
.xr-band .xr-sec-head h2 { color: var(--white); }
.xr-band .xr-sec-head p { color: var(--on-navy-muted); }
.xr-band .xr-kicker { color: var(--gold); }
.xr-band .xr-more { color: var(--white); }
.xr-band .xr-more:hover { color: var(--gold); }
.xr-nw { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s6); }
.xr-nw-row { display: grid; grid-template-columns: 28px 88px minmax(0, 1fr) auto; gap: var(--s4); align-items: center; padding-block: var(--s4); border-bottom: 1px solid var(--navy-rule); }
.xr-nw-rank { font: 600 15px/1 var(--f-head); color: var(--gold); font-variant-numeric: tabular-nums; }
.xr-nw-norank { grid-template-columns: 88px minmax(0, 1fr) auto; }
.xr-nw-row .xr-media { border-radius: 4px; background: var(--navy-2); }
.xr-nw-text { min-width: 0; }
.xr-nw-text h3 { font-size: 17px; line-height: 1.3; font-weight: 600; }
.xr-band .xr-nw-text h3 a { color: var(--white); }
.xr-nw-text h3 a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.xr-nw-sub { font-size: 13px; line-height: 1.45; color: var(--on-navy-muted); margin-top: 4px; }
.xr-est { text-align: right; }
.xr-est b { display: block; font: 600 18px/1.1 var(--f-head); color: var(--white); font-variant-numeric: tabular-nums; white-space: nowrap; }
.xr-est span { display: inline-block; margin-top: 6px; font: 500 11px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--on-navy-muted); border: 1px solid var(--navy-rule); border-radius: 3px; padding: 4px 6px; }
.xr-band-note { margin-top: var(--s5); font-size: 13px; color: var(--on-navy-muted); max-width: 80ch; }
/* Light variant for the Net Worth archive. */
.xr-nw-light { background: var(--white); border: 1px solid var(--grey); border-radius: var(--r); padding: 0 var(--s5); gap: 0 var(--s6); }
.xr-nw-light .xr-nw-row { border-color: var(--grey); }
.xr-nw-light .xr-nw-rank { color: var(--gold-ink); }
.xr-nw-light .xr-nw-sub { color: var(--muted); }
.xr-nw-light .xr-nw-row .xr-media { background: var(--ph); }
.xr-nw-light .xr-est b { color: var(--charcoal); }
.xr-nw-light .xr-est span { color: var(--muted); border-color: var(--grey); }

/* ---------- Homes ---------- */
.xr-homes { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: var(--s5); }
.xr-home-lead .xr-cat { margin-top: var(--s4); }
.xr-home-lead h3 { font-size: 26px; line-height: 1.2; margin: 10px 0 8px; }
.xr-home-lead .xr-dek { max-width: 56ch; margin-bottom: 8px; }
.xr-home-side { display: grid; gap: var(--s5); align-content: start; }
.xr-home-sm h3 { font-size: 18px; line-height: 1.3; margin: 8px 0 6px; }
.xr-home-sm .xr-card-body { padding-top: 12px; }

/* ---------- Quotes ---------- */
.xr-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
.xr-qcard { background: var(--white); border: 1px solid var(--grey); border-top: 3px solid var(--gold); border-radius: var(--r); padding: var(--s5); display: flex; flex-direction: column; gap: var(--s4); min-width: 0; }
.xr-qcard blockquote { margin: 0; padding: 0; border: 0; }
.xr-qcard blockquote p { font: italic 400 21px/1.5 var(--f-quote); color: var(--charcoal); }
.xr-qcard blockquote p::before { content: "\201C"; }
.xr-qcard blockquote p::after { content: "\201D"; }
.xr-qcard footer { margin-top: auto; padding-top: var(--s4); border-top: 1px solid var(--grey); display: flex; flex-direction: column; gap: 6px; }
.xr-qtitle { font: 600 16px/1.35 var(--f-head); }
.xr-qtopics { margin-top: var(--s5); }

/* ---------- About me ---------- */
.xr-about-band { background: var(--white); border-block: 1px solid var(--grey); margin-top: var(--s8); padding-block: var(--s8); scroll-margin-top: 16px; }
.xr-about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s7); align-items: center; }
.xr-about-photo { margin: 0; position: relative; max-width: 460px; }
.xr-about-photo::before { content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 1px solid var(--gold); border-radius: var(--r); }
.xr-about-photo img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: var(--r); }
.xr-about-copy { min-width: 0; display: flex; flex-direction: column; gap: var(--s4); }
.xr-about-copy .xr-kicker { margin-bottom: 0; }
.xr-about-copy h2 { font-size: 36px; line-height: 1.15; font-weight: 700; }
.xr-about-lede { font: italic 400 21px/1.5 var(--f-quote); color: var(--charcoal); max-width: 46ch; }
.xr-about-text { font-size: 17px; line-height: 1.7; color: var(--body); max-width: 60ch; }
.xr-about-stats { gap: var(--s5) var(--s6); padding-top: var(--s4); border-top: 1px solid var(--grey); margin-top: var(--s2); }
.xr-about-stats dd { font-size: 24px; }
.xr-about-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); margin-top: var(--s2); }
.xr-btn-gold { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; background: var(--gold); color: var(--navy); font: 600 15px/1 var(--f-body); text-decoration: none; border-radius: 999px; }
.xr-btn-gold:hover { background: var(--gold-hover); color: var(--navy); }

/* ---------- Latest + popular ---------- */
.xr-latest-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s7); }
.xr-latest, .xr-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6) var(--s5); }
.xr-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s6) var(--s5); }
.xr-card { min-width: 0; }
.xr-card .xr-media { margin-bottom: 12px; }
.xr-card .xr-card-title { font-size: 17px; line-height: 1.35; margin: 8px 0; }
.xr-popular { background: var(--white); border: 1px solid var(--grey); border-radius: var(--r); padding: var(--s5); align-self: start; }
.xr-popular h2 { font-size: 20px; margin-bottom: 4px; }
.xr-popular > p { font-size: 13px; color: var(--muted); margin-bottom: var(--s3); }
.xr-popular ol { list-style: none; margin: 0; padding: 0; counter-reset: xr-pop; }
.xr-popular li { counter-increment: xr-pop; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; padding-block: 14px; border-top: 1px solid var(--grey); }
.xr-popular li::before { content: counter(xr-pop); font: 700 20px/1 var(--f-head); color: var(--gold-ink); }
.xr-popular li a { font: 600 15px/1.35 var(--f-head); }
.xr-popular li .xr-cat { display: block; margin-top: 6px; font-size: 11px; }

/* ---------- Archives ---------- */
.xr-archive-head { padding-top: var(--s7); padding-bottom: var(--s6); }
.xr-archive-head h1 { font-size: 42px; line-height: 1.15; font-weight: 700; margin-bottom: var(--s3); }
.xr-archive-intro { font-size: 17px; line-height: 1.65; color: var(--body); max-width: 68ch; margin-bottom: var(--s3); }
.xr-archive-intro p + p { margin-top: var(--s3); }
.xr-crumbs { font: 400 13px/1.5 var(--f-body); color: var(--muted); margin-bottom: var(--s4); }
.xr-crumbs a { color: var(--charcoal); text-decoration: none; }
.xr-crumbs a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.xr-crumbs .breadcrumb_last { color: var(--muted); }
.xr-card-feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s6); align-items: center; padding-bottom: var(--s6); border-bottom: 1px solid var(--grey); }
.xr-card-feature .xr-media { margin-bottom: 0; }
.xr-card-feature .xr-card-title { font-size: 30px; line-height: 1.2; font-weight: 700; margin: 10px 0 12px; }
.xr-card-feature .xr-dek { font-size: 17px; margin-bottom: 10px; }
.xr-rows { display: flex; flex-direction: column; }
.xr-row { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--s5); align-items: center; padding-block: var(--s5); border-bottom: 1px solid var(--grey); }
.xr-row:first-child { padding-top: 0; }
.xr-row .xr-media { margin-bottom: 0; }
.xr-row .xr-card-title { font-size: 20px; }
.xr-row .xr-dek { font-size: 15px; margin-bottom: 6px; }
.xr-row-page { grid-template-columns: minmax(0, 1fr); }
.xr-search-page { width: 100%; max-width: 560px; margin-top: var(--s4); background: var(--white); border-color: var(--grey-strong); height: 50px; color: var(--muted); }
.xr-search-page input { color: var(--charcoal); font-size: 16px; }
.xr-search-page input::placeholder { color: var(--muted); }
.xr-search-page input::-webkit-search-cancel-button { filter: none; }
.xr-search-page:focus-within { border-color: var(--gold-ink); }
.xr-empty { background: var(--white); border: 1px solid var(--grey); border-radius: var(--r); padding: var(--s5); font-size: 17px; }
.xr-pagination { margin-top: var(--s7); }
.xr-pagination ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.xr-pagination a, .xr-pagination span.page-numbers, .xr-prose .xr-pagination > a, .xr-prose .xr-pagination > span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; gap: 6px; padding: 0 14px; border: 1px solid var(--grey-strong); border-radius: 999px; background: var(--white); font: 500 15px/1 var(--f-body); color: var(--charcoal); text-decoration: none; }
.xr-pagination a:hover { border-color: var(--gold); color: var(--gold-ink); }
.xr-pagination .current { background: var(--navy); border-color: var(--navy); color: var(--white); }
.xr-pagination .dots { border: 0; background: transparent; min-width: 24px; padding: 0; }
.xr-explore { margin-top: var(--s8); padding-top: var(--s5); border-top: 1px solid var(--grey); }
.xr-explore h2 { font-size: 20px; margin-bottom: var(--s4); }

/* ---------- Single article ---------- */
.xr-article-head { padding-top: var(--s7); padding-bottom: var(--s5); }
.xr-article-title { font-size: 42px; line-height: 1.15; font-weight: 700; margin: 12px 0 var(--s4); }
.xr-standfirst { font-size: 20px; line-height: 1.55; color: var(--body); margin-bottom: var(--s4); max-width: 62ch; }
.xr-article-figure { margin: 0 auto var(--s6); max-width: calc(960px + 2 * max(16px, 3vw)); }
.xr-article-figure img { display: block; width: 100%; height: auto; border-radius: var(--r); background: var(--ph); }
.xr-article-figure figcaption { font-size: 13px; line-height: 1.5; color: var(--muted); margin-top: 8px; }
.xr-estimate { margin-bottom: var(--s6); }
.xr-estimate > * { max-width: var(--narrow); }
.xr-estimate { background: none; }
.xr-estimate-figure { font: 700 34px/1.1 var(--f-head); color: var(--charcoal); margin-bottom: 8px; font-variant-numeric: tabular-nums; }

.xr-prose { font-size: 18px; line-height: 1.7; color: var(--charcoal); overflow-wrap: break-word; }
.xr-prose > * + * { margin-top: 1.2em; }
.xr-prose p { margin: 0; }
.xr-prose p + p { margin-top: 1.2em; }
.xr-prose h2 { font-size: 30px; line-height: 1.25; font-weight: 700; margin: 1.8em 0 .6em; }
.xr-prose h3 { font-size: 22px; line-height: 1.3; font-weight: 600; margin: 1.6em 0 .5em; }
.xr-prose h4 { font-size: 18px; line-height: 1.35; font-weight: 600; margin: 1.4em 0 .4em; }
.xr-prose h2 + *, .xr-prose h3 + *, .xr-prose h4 + * { margin-top: 0; }
/* :where() keeps these at class weight so embedded widgets (the A–Z directory) style their own links. */
.xr-prose :where(a) { color: var(--charcoal); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.xr-prose :where(a):hover { color: var(--gold-ink); }
.xr-prose .xpt-dir a { text-decoration: none; }
.xr-prose .xpt-dir .xpt-dir-matrix-key { color: var(--xpt-on-chrome); }
.xr-prose .xpt-dir .xpt-dir-matrix-key:hover, .xr-prose .xpt-dir .xpt-dir-matrix-key:focus-visible { color: var(--xpt-on-accent); }
.xr-prose .xpt-dir .xpt-dir-matrix-key.is-empty { color: #5E6A7C; }
.xr-prose strong { font-weight: 600; }
.xr-prose ul, .xr-prose ol { padding-left: 1.3em; margin: 1.2em 0 0; }
.xr-prose li + li { margin-top: .45em; }
.xr-prose li::marker { color: var(--gold-ink); }
.xr-prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--gold); font: italic 400 21px/1.55 var(--f-quote); color: var(--charcoal); }
.xr-prose blockquote p + p { margin-top: .6em; }
.xr-prose figure { margin: 1.6em 0; }
.xr-prose figcaption, .xr-prose .wp-caption-text { font-size: 13px; line-height: 1.5; color: var(--muted); margin-top: 8px; }
.xr-prose img { border-radius: var(--r); }
.xr-prose hr { border: 0; border-top: 1px solid var(--grey); margin: 2em 0; }
.xr-prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; background: var(--white); border: 1px solid var(--grey); border-radius: var(--r); overflow: hidden; display: table; }
.xr-prose th, .xr-prose td { padding: 11px 14px; border-bottom: 1px solid var(--grey); text-align: left; vertical-align: top; }
.xr-prose tr:last-child td { border-bottom: 0; }
.xr-prose thead th { background: var(--navy); color: var(--white); font: 600 12px/1.3 var(--f-body); letter-spacing: .08em; text-transform: uppercase; border-bottom: 0; }
.xr-prose thead th strong { font-weight: 600; }
.xr-prose tbody td:first-child { width: 38%; color: var(--muted); }
.xr-prose tbody td:first-child strong { color: var(--charcoal); font-weight: 600; }
.xr-prose tbody tr:nth-child(even) td { background: #FBFAF7; }
.xr-prose div:has(> table) { overflow-x: auto; }
.xr-prose-wide { max-width: var(--wrap); }

/* Older posts carry inline styles from the previous design; bring them into the new type and colour system. */
.xr-prose [style*="Newsreader"] { font-family: var(--f-body) !important; font-size: 18px !important; line-height: 1.7 !important; color: var(--charcoal) !important; max-width: none !important; }
.xr-prose [style*="Archivo"] { font-family: var(--f-head) !important; font-weight: 700 !important; color: var(--charcoal) !important; }
.xr-prose [style*="max-width:960px"] { max-width: none !important; padding-left: 0 !important; padding-right: 0 !important; margin-left: 0 !important; margin-right: 0 !important; }
.xr-prose [style*="border-top:2px solid #14181F"] { border-top: 1px solid var(--grey) !important; }
.xr-prose .rs-wrap { margin-top: 2em; margin-bottom: 2em; }
.xr-prose .rs-card { border: 1px solid var(--grey) !important; border-top: 3px solid var(--gold) !important; border-radius: var(--r) !important; }
.xr-prose .rs-quote-mark { color: var(--gold-wash) !important; font-family: var(--f-quote) !important; }
.xr-prose .rs-badge { font-family: var(--f-body) !important; color: var(--gold-ink) !important; border-color: var(--gold) !important; border-radius: 999px !important; letter-spacing: .1em !important; }
.xr-prose .rs-text { font-family: var(--f-quote) !important; color: var(--charcoal) !important; }
.xr-prose .rs-num { font-family: var(--f-body) !important; color: var(--muted) !important; }
.xr-prose .rs-copy { font-family: var(--f-body) !important; background: var(--white) !important; border-color: var(--grey-strong) !important; color: var(--charcoal) !important; border-radius: 999px !important; }
.xr-prose .rs-copy.copied { background: var(--navy) !important; color: var(--white) !important; border-color: var(--navy) !important; }
.xr-prose .rs-arrow { background: var(--navy) !important; color: var(--white) !important; border-radius: 999px !important; }
.xr-prose .rs-arrow:hover { background: var(--gold) !important; color: var(--navy) !important; }

/* The A–Z directory keeps its own layout; its tokens are remapped to the new palette. */
.xpt-rd .xpt-dir { --xpt-ink: #292D32; --xpt-ink-body: #41464D; --xpt-muted: #5E6470; --xpt-rule: #E8E9EC; --xpt-rule-soft: #EFEDE8; --xpt-surface: #F7F5F0; --xpt-chrome: #101827; --xpt-on-chrome: #E8E9EC; --xpt-dim-chrome: #9AA3B2; --xpt-rule-chrome: #2A3448; --xpt-accent: #7A5C24; --xpt-on-accent: #FFFFFF; --xpt-head: "Poppins", "Segoe UI", Arial, sans-serif; --xpt-mono: "Inter", "Segoe UI", Arial, sans-serif; margin-top: 0; }

.xr-article-foot { padding-top: var(--s6); }
.xr-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: var(--s5); border-top: 1px solid var(--grey); }
.xr-tags-lbl { font: 600 12px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.xr-tags a { font: 500 13px/1 var(--f-body); color: var(--charcoal); text-decoration: none; border: 1px solid var(--grey-strong); border-radius: 999px; padding: 10px 12px; background: var(--white); }
.xr-tags a:hover { border-color: var(--gold); color: var(--gold-ink); }
.xr-author-box { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--s4); align-items: start; margin-top: var(--s6); padding: var(--s5); background: var(--white); border: 1px solid var(--grey); border-radius: var(--r); }
.xr-author-face { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: center 20%; display: block; }
.xr-author-initial { display: grid; place-items: center; background: var(--navy); color: var(--gold); font: 700 28px/1 var(--f-head); }
.xr-author-name { font: 600 17px/1.3 var(--f-head); margin-bottom: 6px; }
.xr-author-bio { font-size: 15px; line-height: 1.6; color: var(--body); margin-bottom: 4px; }
.xr-postnav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s6); }
.xr-postnav a { display: block; padding: var(--s4) var(--s5); border: 1px solid var(--grey); border-radius: var(--r); background: var(--white); text-decoration: none; font: 600 15px/1.4 var(--f-head); color: var(--charcoal); }
.xr-postnav a:hover { border-color: var(--gold); }
.xr-postnav span { display: block; font: 600 11px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 8px; }
.xr-postnav-next { grid-column: 2; text-align: right; }

/* ---------- Footer ---------- */
.xr-foot { background: var(--navy); color: var(--on-navy); margin-top: var(--s8); padding-block: var(--s7) var(--s5); }
.xr-foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--s6); }
.xr-foot-brand p { font-size: 14px; color: var(--on-navy-muted); margin-top: var(--s4); max-width: 40ch; line-height: 1.6; }
.xr-foot .xr-foot-h { font: 600 12px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--s3); }
.xr-foot-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.xr-foot-list a { color: var(--on-navy); text-decoration: none; font-size: 14px; display: inline-block; padding-block: 8px; }
.xr-foot-list a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.xr-foot-base { margin-top: var(--s7); padding-top: var(--s4); border-top: 1px solid var(--navy-rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); font-size: 13px; color: var(--on-navy-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.xr-nav-list a { padding: 12px 8px; font-size: 14px; }
	.xr-head-tools .xr-search { display: none; }
	.xr-menu-btn { display: grid; }
	.xr-people, .xr-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.xr-latest-wrap { grid-template-columns: minmax(0, 1fr); }
	.xr-popular { order: -1; }
}
@media (max-width: 900px) {
	.xr-nav { display: none; }
	.xr-hero-grid, .xr-homes, .xr-about { grid-template-columns: minmax(0, 1fr); }
	.xr-nw { grid-template-columns: minmax(0, 1fr); }
	.xr-quotes { grid-template-columns: minmax(0, 1fr); }
	.xr-latest, .xr-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.xr-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.xr-home-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.xr-card-feature { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
	.xr-card-feature .xr-card-title { font-size: 26px; }
	.xr-about { gap: var(--s6); }
	.xr-about-photo { max-width: 360px; margin-right: 16px; }
	.xr-hero-intro h1, .xr-archive-head h1, .xr-article-title { font-size: 34px; }
}
@media (max-width: 600px) {
	.xr-head-bar { min-height: 60px; gap: var(--s3); }
	.xr-logo b, .xr-logo i { font-size: 15px; padding: 7px 8px; }
	.xr-hero { padding-top: var(--s6); }
	.xr-hero-intro h1, .xr-archive-head h1, .xr-article-title { font-size: 30px; }
	.xr-lead-title { font-size: 26px; }
	.xr-lead .xr-dek { font-size: 17px; }
	.xr-sec { padding-top: var(--s7); }
	.xr-band, .xr-about-band { margin-top: var(--s7); padding-block: var(--s7); }
	.xr-sec-head { flex-direction: column; align-items: flex-start; }
	.xr-sec-head h2 { font-size: 24px; }
	.xr-stack-item { grid-template-columns: minmax(0, 1fr) 96px; }
	.xr-people { gap: var(--s3); }
	.xr-person-body { padding: 12px; }
	.xr-person h3 { font-size: 16px; }
	.xr-person-desc { display: none; }
	.xr-people-archive .xr-person-wide h3 { font-size: 18px; }
	.xr-people-archive .xr-person-wide .xr-person-desc { display: block; font-size: 14px; }
	.xr-nw-row { grid-template-columns: 22px 72px minmax(0, 1fr); row-gap: 8px; }
	.xr-nw-norank { grid-template-columns: 72px minmax(0, 1fr); }
	.xr-nw-norank .xr-est { grid-column: 2; }
	.xr-est { grid-column: 3; text-align: left; }
	.xr-est b { display: inline; margin-right: 8px; }
	.xr-nw-light { padding: 0 var(--s4); }
	.xr-home-side { grid-template-columns: minmax(0, 1fr); }
	.xr-home-lead h3 { font-size: 22px; }
	.xr-latest, .xr-grid3, .xr-grid4 { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
	.xr-latest .xr-card, .xr-grid3 .xr-card:not(.xr-card-feature), .xr-grid4 .xr-card, .xr-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: var(--s3); align-items: start; }
	.xr-latest .xr-card .xr-media, .xr-grid3 .xr-card:not(.xr-card-feature) .xr-media, .xr-grid4 .xr-card .xr-media { margin-bottom: 0; }
	.xr-card .xr-card-title { margin-top: 6px; font-size: 16px; }
	.xr-row .xr-dek { display: none; }
	.xr-row-page { grid-template-columns: minmax(0, 1fr); }
	.xr-row-page .xr-dek { display: block; }
	.xr-card-feature .xr-card-title { font-size: 22px; }
	.xr-foot-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
	.xr-about-copy h2 { font-size: 28px; }
	.xr-about-lede { font-size: 19px; }
	.xr-about-photo { max-width: none; }
	.xr-prose { font-size: 17px; }
	.xr-prose h2 { font-size: 24px; }
	.xr-prose h3 { font-size: 19px; }
	.xr-prose [style*="Newsreader"] { font-size: 17px !important; }
	.xr-prose tbody td:first-child { width: 42%; }
	.xr-standfirst { font-size: 18px; }
	.xr-postnav { grid-template-columns: minmax(0, 1fr); }
	.xr-postnav-next { grid-column: 1; }
	.xr-author-box { grid-template-columns: 56px minmax(0, 1fr); padding: var(--s4); }
	.xr-author-face { width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
	.xpt-rd *, .xpt-rd *::before, .xpt-rd *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
