/* =========================================================================
   Rock City Wire — one stylesheet.
   Every number below is traceable to docs/DESIGN.md, which records what was
   measured off the reference with getComputedStyle / getBoundingClientRect.
   ========================================================================= */

/* ---------- 1. Tokens ---------------------------------------------------- */

:root {
	--accent: #4db2ec;
	--accent-dark: #1aa4ce;

	--ink: #000000;
	--head: #111111;
	--muted: #767676;
	--meta: #aaaaaa;
	--dark: #222222;
	--line: #ededed;
	--line-2: #eaeaea;
	--tint: #f0f8ff;
	--footer-bg: #111111;
	--footer-bottom: #0d0d0d;
	--prose: #777777;

	--chip: var(--dark);
	--chip-fg: #ffffff;

	--container: 1068px;
	--gutter: 24px;
	--gap: 20px;
	--rail: 324px;
	--rail-gap: 48px;
	--module-gap: 48px;

	--sans: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--display: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
	--body: Verdana, Geneva, "DejaVu Sans", sans-serif;
}

/* ---------- 2. Reset ----------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
	/* clip, never hidden: `hidden` makes the root a scroll container and
	   every position:sticky descendant silently stops sticking. */
	overflow-x: clip;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	overflow-x: clip;
	background: #fff;
	color: var(--prose);
	font-family: var(--body);
	font-size: 14px;
	line-height: 21px;
	-webkit-font-smoothing: antialiased;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; border: 0; }

a { color: var(--head); text-decoration: none; }
a:hover, a:focus-visible { color: var(--accent); }

h1, h2, h3, h4, h5, h6 { font-family: var(--display); color: var(--head); margin: 0; }
p { margin: 0 0 21px; }
ul, ol { margin: 0 0 21px; padding-left: 20px; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden; clip-path: inset(50%);
	white-space: nowrap; border: 0;
}

.rcw-skip {
	position: absolute; left: -9999px; top: 0; z-index: 999;
	background: var(--accent); color: #fff; padding: 10px 16px;
	font-family: var(--sans); font-size: 13px;
}
.rcw-skip:focus { left: 0; color: #fff; }

/* ---------- 3. Layout ---------------------------------------------------- */

.rcw-page { overflow-x: clip; }

.rcw-container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin: 0 auto;
	padding-inline: var(--gutter);
}

.rcw-main { display: block; padding-bottom: 24px; }

.rcw-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--rail);
	gap: 0 var(--rail-gap);
	/* start, never stretch: a sticky item in a stretched grid area fills the
	   row and has nowhere left to travel. */
	align-items: start;
}

.rcw-col-main { min-width: 0; }

.rcw-col-main > * { margin-bottom: var(--module-gap); }
.rcw-col-main > *:last-child { margin-bottom: 0; }

/* The whole rail is pinned as one unit. Pinning only the top widget would let
   the widgets below scroll underneath it and clip against its edge.
   `align-items: start` on the row keeps the MAIN column from stretching, but it
   also shrink-wraps the rail to its own content — leaving the sticky child zero
   slack to travel in. The rail itself must stretch to the row height; only the
   inner stays short. */
.rcw-rail { min-width: 0; align-self: stretch; }
.rcw-sticky-rail .rcw-rail-inner {
	position: sticky;
	top: 24px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	scrollbar-width: thin;
}
.rcw-sticky-rail.admin-bar .rcw-rail-inner { top: 56px; max-height: calc(100vh - 80px); }

.rcw-rail-inner > * { margin-bottom: var(--module-gap); }
.rcw-rail-inner > *:last-child { margin-bottom: 0; }

.rcw-grid { display: grid; gap: var(--gap); }
.rcw-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rcw-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rcw-grid--tight { gap: 16px 20px; }
.rcw-grid--list { margin-top: var(--gap); gap: 0 var(--gap); }

.rcw-list { display: flex; flex-direction: column; }
.rcw-list--big { gap: 18px; }

/* ---------- 4. Top bar --------------------------------------------------- */

.rcw-topbar { background: var(--dark); color: #fff; font-family: var(--sans); font-size: 11px; }
.rcw-topbar-inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 16px; min-height: 28px;
}
.rcw-topbar-left { display: flex; align-items: center; gap: 20px; min-width: 0; }
.rcw-topbar-note { font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.rcw-topbar-date { color: #ddd; white-space: nowrap; }

.rcw-topbar-menu { display: flex; gap: 16px; margin: 0; padding: 0; list-style: none; }
.rcw-topbar-menu a { color: #fff; line-height: 28px; }
.rcw-topbar-menu a:hover { color: var(--accent); }

.rcw-topbar-right { display: flex; align-items: center; gap: 14px; }
.rcw-topbar-social { color: #fff; display: inline-flex; }
.rcw-topbar-social svg { width: 14px; height: 14px; }
.rcw-topbar-social:hover { color: var(--accent); }

/* ---------- 5. Masthead -------------------------------------------------- */

.rcw-masthead { background: #fff; }
.rcw-masthead-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	justify-items: center;
	align-items: center;
	gap: 32px;
	padding-block: 24px;
}

.rcw-logo-link { display: inline-block; text-align: center; }
.rcw-logo-text {
	display: block;
	font-family: var(--display);
	font-weight: 900;
	/* clamp so a nowrap wordmark plus the actions cannot overflow a phone. */
	font-size: clamp(26px, 6vw, 40px);
	line-height: 1.05;
	letter-spacing: -.02em;
	text-transform: uppercase;
	color: var(--head);
}
.rcw-logo-text::first-letter { color: var(--accent); }
.rcw-logo-tag {
	display: block;
	font-family: var(--display);
	font-size: 11px;
	font-style: italic;
	color: var(--muted);
	margin-top: 4px;
	letter-spacing: .04em;
}
.rcw-logo img { max-height: 90px; width: auto; }

/* ---------- 6. Nav ------------------------------------------------------- */

.rcw-navbar {
	background: #fff;
	border-top: 1px solid var(--line-2);
	border-bottom: 1px solid var(--line-2);
	z-index: 60;
}
.rcw-navbar.is-stuck {
	position: fixed; top: 0; left: 0; right: 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
	border-top-color: transparent;
}
.admin-bar .rcw-navbar.is-stuck { top: 32px; }

.rcw-navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.rcw-menu, .rcw-mobile-menu { list-style: none; margin: 0; padding: 0; }
.rcw-menu { display: flex; align-items: stretch; }
.rcw-menu > li { position: relative; }
.rcw-menu > li > a {
	display: block;
	padding: 0 14px;
	font-family: var(--sans);
	font-size: 14px;
	font-weight: 700;
	line-height: 48px;
	text-transform: uppercase;
	color: var(--ink);
	white-space: nowrap;
}
.rcw-menu > li > a::after {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 0;
	height: 3px; background: var(--accent); transform: scaleX(0);
	transform-origin: left; transition: transform .18s ease;
}
.rcw-menu > li:hover > a::after,
.rcw-menu > li.current-menu-item > a::after,
.rcw-menu > li.current-menu-parent > a::after,
.rcw-menu > li.current-menu-ancestor > a::after { transform: scaleX(1); }
.rcw-menu > li:hover > a { color: var(--accent); }

.rcw-menu .sub-menu {
	position: absolute; top: 100%; left: 0; z-index: 70;
	min-width: 200px; margin: 0; padding: 8px 0; list-style: none;
	background: #fff; border: 1px solid var(--line-2);
	box-shadow: 1px 1px 4px rgba(0, 0, 0, .15);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.rcw-menu > li:hover > .sub-menu,
.rcw-menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.rcw-menu .sub-menu a {
	display: block; padding: 7px 16px;
	font-family: var(--sans); font-size: 12px; color: var(--head);
}
.rcw-menu .sub-menu a:hover { color: var(--accent); background: #fafafa; }

.rcw-search-toggle, .rcw-burger { display: inline-flex; align-items: center; padding: 12px 6px; color: var(--ink); }
.rcw-search-toggle svg { width: 18px; height: 18px; }
.rcw-search-toggle:hover { color: var(--accent); }

.rcw-burger { flex-direction: column; gap: 4px; display: none; }
.rcw-burger span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.rcw-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.rcw-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.rcw-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.rcw-search-panel { border-top: 3px solid var(--accent); background: #fff; padding: 20px 0; }

.rcw-searchform { display: flex; border: 1px solid #e1e1e1; }
.rcw-searchfield {
	flex: 1; min-width: 0; border: 0; padding: 9px 12px;
	font-family: var(--sans); font-size: 12px; color: #444; background: transparent;
}
.rcw-searchfield:focus { outline: none; }
.rcw-searchsubmit { padding: 0 16px; background: var(--dark); color: #fff; }
.rcw-searchsubmit:hover { background: var(--accent); }

.rcw-mobile-nav { display: none; background: #fff; border-bottom: 1px solid var(--line-2); padding: 8px 0 16px; }
.rcw-mobile-menu li { border-bottom: 1px solid var(--line); }
.rcw-mobile-menu a {
	display: block; padding: 12px 24px;
	font-family: var(--sans); font-size: 14px; font-weight: 700;
	text-transform: uppercase; color: var(--ink);
}
.rcw-mobile-menu .sub-menu { list-style: none; margin: 0; padding: 0; }
.rcw-mobile-menu .sub-menu a { padding-left: 40px; font-weight: 400; text-transform: none; }
.rcw-mobile-social { display: flex; gap: 18px; padding: 16px 24px 0; }
.rcw-mobile-social a { color: var(--head); }

/* ---------- 7. Block titles ---------------------------------------------- */

.rcw-block-title {
	display: flex; align-items: flex-end; gap: 12px;
	border-bottom: 2px solid var(--chip);
	margin-bottom: 24px;
	min-width: 0;
}
.rcw-block-title-text { margin: 0; min-width: 0; }
.rcw-block-title-text span {
	display: inline-block;
	background: var(--chip);
	color: var(--chip-fg);
	font-family: var(--display);
	font-size: 14px;
	font-weight: 400;
	line-height: 22px;
	text-transform: uppercase;
	padding: 7px 12px 4px;
}
.rcw-block-more {
	margin-left: auto; padding-bottom: 4px;
	font-family: var(--sans); font-size: 11px; font-weight: 600;
	text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.rcw-block-more:hover { color: var(--accent); }

/* ---------- 8. Cards ----------------------------------------------------- */

.rcw-card { position: relative; min-width: 0; }

.rcw-img {
	display: block; width: 100%; height: 100%;
	object-fit: cover; object-position: center;
}
.rcw-img--placeholder { background: linear-gradient(135deg, #dfe6ec, #c3ced8); }
.rcw-ph-1 { background: linear-gradient(135deg, #e6dfe9, #cfc2d6); }
.rcw-ph-2 { background: linear-gradient(135deg, #dfe9e3, #bed3c8); }
.rcw-ph-3 { background: linear-gradient(135deg, #e9e4df, #d6c8bd); }
.rcw-ph-4 { background: linear-gradient(135deg, #dfe3e9, #c0c9d8); }
.rcw-ph-5 { background: linear-gradient(135deg, #e9dfdf, #d8c0c0); }

.rcw-card-media, .rcw-card-link {
	position: relative; display: block; overflow: hidden;
	aspect-ratio: var(--ratio, 1.4);
	background: #eef1f4;
}
.rcw-card-media-link { display: block; width: 100%; height: 100%; }

.rcw-card-title { margin: 0; }
.rcw-card-title a { color: inherit; }
.rcw-card:hover .rcw-card-title a { color: var(--accent); }

.rcw-t-xl  .rcw-card-title { font-size: 27px; font-weight: 500; line-height: 34px; }
.rcw-t-xl2 .rcw-card-title { font-size: 22px; font-weight: 400; line-height: 28.6px; }
.rcw-t-lg  .rcw-card-title { font-size: 21px; font-weight: 400; line-height: 25px; }
.rcw-t-rel .rcw-card-title { font-size: 16px; font-weight: 700; line-height: 21px; text-transform: uppercase; }
.rcw-t-md  .rcw-card-title { font-size: 18px; font-weight: 500; line-height: 23px; }
.rcw-t-sm  .rcw-card-title { font-size: 15px; font-weight: 500; line-height: 19.5px; }
.rcw-t-xs  .rcw-card-title { font-size: 13px; font-weight: 500; line-height: 16.9px; }

/* Category chip */
.rcw-cat {
	display: inline-block;
	background: rgba(0, 0, 0, .7);
	color: #fff;
	font-family: var(--display);
	font-size: 10px;
	font-weight: 500;
	line-height: 13px;
	text-transform: uppercase;
	padding: 3px 7px;
}
.rcw-cat:hover { background: var(--chip, var(--accent)); color: var(--chip-fg, #fff); }
.rcw-cat--image { position: absolute; left: 0; bottom: 0; z-index: 2; }
.rcw-cat--meta { position: static; margin-bottom: 8px; }

/* Meta row */
.rcw-meta {
	display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
	font-family: var(--sans); font-size: 11px; line-height: 1.4;
	margin-top: 8px;
}
.rcw-meta-author a { font-weight: 700; color: var(--head); }
.rcw-meta-sep { color: var(--meta); }
.rcw-meta-date { color: var(--meta); }
.rcw-meta-comments {
	margin-left: auto;
	background: var(--dark); color: #fff;
	font-size: 10px; line-height: 1; padding: 4px 6px;
}
.rcw-meta-comments:hover { background: var(--accent); color: #fff; }
.rcw-meta--light .rcw-meta-author a,
.rcw-meta--light .rcw-meta-date,
.rcw-meta--light .rcw-meta-sep { color: #fff; }

.rcw-excerpt {
	margin: 12px 0 0;
	font-family: var(--sans);
	font-size: 13px;
	line-height: 21px;
	color: var(--muted);
}

/* Overlay card */
.rcw-card--overlay .rcw-card-link { height: 100%; }
.rcw-card--overlay .rcw-scrim {
	position: absolute; inset: 0;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .75) 100%);
}
.rcw-card--overlay .rcw-card-body {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
	padding: 22px 20px;
	pointer-events: none;
}
.rcw-card--overlay .rcw-card-body > * { pointer-events: auto; }
.rcw-card--overlay .rcw-cat { position: static; display: inline-block; margin-bottom: 5px; }
.rcw-card--overlay .rcw-card-title,
.rcw-card--overlay .rcw-card-title a { color: #fff; }
.rcw-card--overlay:hover .rcw-card-title a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.rcw-card--overlay .rcw-img { transition: transform .5s ease; }
.rcw-card--overlay:hover .rcw-img { transform: scale(1.04); }

/* Stack card */
.rcw-card--stack .rcw-card-body { padding-top: 12px; }
.rcw-card--stack.rcw-t-sm .rcw-card-body,
.rcw-card--stack.rcw-t-xs .rcw-card-body { padding-top: 10px; }

/* Inline card */
.rcw-card--inline {
	display: grid;
	grid-template-columns: var(--tw, 100px) minmax(0, 1fr);
	gap: 14px;
	align-items: start;
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
}
.rcw-card--inline:first-child { padding-top: 0; }
.rcw-card--inline:last-child { border-bottom: 0; }
.rcw-thumb-right { grid-template-columns: minmax(0, 1fr) var(--tw, 100px); }
.rcw-thumb-right .rcw-card-media { order: 2; }
.rcw-thumb-none { grid-template-columns: minmax(0, 1fr); }
.rcw-list--big .rcw-card--inline { gap: 20px; padding: 18px 0; }
.rcw-list--big .rcw-card--inline:first-child { padding-top: 0; }

.rcw-grid--list .rcw-card--inline { padding: 12px 0; }

/* ---------- 9. Trending -------------------------------------------------- */

.rcw-trending {
	display: flex; align-items: center; gap: 16px;
	margin: 24px 0;
	min-height: 25px;
	padding-inline: 18px;
}
.rcw-trending-chip {
	flex: 0 0 auto;
	background: var(--dark); color: #fff;
	font-family: var(--display); font-size: 12px; line-height: 22px;
	text-transform: uppercase;
	padding: 2px 10px 1px;
}
.rcw-trending-track { position: relative; flex: 1; min-width: 0; min-height: 25px; }
.rcw-trending-item {
	position: absolute; inset: 0;
	display: flex; align-items: center;
	font-family: var(--display); font-size: 15px; line-height: 25px;
	color: var(--head);
	opacity: 0; visibility: hidden; transition: opacity .3s ease;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rcw-trending-item.is-active { opacity: 1; visibility: visible; position: relative; }
.rcw-trending-item:hover { color: var(--accent); }

.rcw-trending-nav, .rcw-pagination-links { display: flex; gap: 4px; }
.rcw-nav-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 22px; height: 22px;
	border: 1px solid var(--line-2); color: #999;
}
.rcw-nav-btn:hover { border-color: var(--accent); color: var(--accent); }
.rcw-nav-btn[data-dir="-1"] svg { transform: rotate(180deg); }

/* ---------- 10. Big grid ------------------------------------------------- */

/* Measured cells: 532×450 lead, 532×254 wide, 264×192 ×2, 4px gaps.
   That is a four-column track whose right half splits on the second row. */
.rcw-biggrid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-template-rows: auto auto;
	gap: 4px;
	margin-bottom: var(--module-gap);
}
.rcw-bg-lead { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.rcw-bg-wide { grid-column: 3 / span 2; grid-row: 1; }
.rcw-bg-a { grid-column: 3; grid-row: 2; }
.rcw-bg-b { grid-column: 4; grid-row: 2; }

/* ---------- 11. Modules -------------------------------------------------- */

.rcw-module { min-width: 0; }

/* Top News: ranked, any section. The rank is the list counter. */
.rcw-module--top { margin-top: var(--module-gap); }
.rcw-top-note { margin: -12px 0 16px; font-family: var(--sans); font-size: 12px; color: var(--muted); }
.rcw-top-grid { list-style: none; margin: 0; padding: 0; counter-reset: rcw-top; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
.rcw-top-item { counter-increment: rcw-top; position: relative; min-width: 0; }
.rcw-top-item::before {
	content: counter(rcw-top); position: absolute; top: 0; right: 0; z-index: 2;
	width: 32px; height: 32px; display: grid; place-items: center;
	background: #e14e42; color: #fff; font-family: var(--display); font-size: 16px; font-weight: 700;
}

.rcw-lead-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--gap);
	align-items: start;
}

.rcw-module--duo .rcw-card--stack .rcw-excerpt { margin-top: 10px; }

/* ---------- 12. Widgets -------------------------------------------------- */

.rcw-widget { min-width: 0; }
.rcw-widget ul { list-style: none; margin: 0; padding: 0; font-family: var(--sans); font-size: 13px; }
.rcw-widget ul li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.rcw-widget ul li:last-child { border-bottom: 0; }
.rcw-widget a { color: var(--head); }
.rcw-widget a:hover { color: var(--accent); }

.rcw-feature + .rcw-list { margin-top: 16px; }

.rcw-follow { display: flex; flex-direction: column; gap: 10px; }
.rcw-follow-row {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	min-height: 40px;
	background: #fafafa;
	font-family: var(--sans); font-size: 11px;
}
.rcw-follow-ico {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; background: var(--dark); color: #fff;
}
.rcw-follow-name { font-weight: 700; color: var(--head); }
.rcw-follow-verb { text-transform: uppercase; font-weight: 700; color: var(--head); padding-right: 12px; }
.rcw-follow-row:hover .rcw-follow-verb { color: var(--accent); }
.rcw-social-facebook  .rcw-follow-ico { background: #516eab; }
.rcw-social-twitter   .rcw-follow-ico { background: #000000; }
.rcw-social-instagram .rcw-follow-ico { background: #8954c1; }
.rcw-social-linkedin  .rcw-follow-ico { background: #0a66c2; }
.rcw-social-pinterest .rcw-follow-ico { background: #e60023; }

.rcw-sections li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rcw-sections-count { color: var(--meta); font-size: 12px; }

/* ---------- 14. Single --------------------------------------------------- */

.rcw-cover { position: relative; margin-bottom: 32px; }

/* Cover height. The seeded photography is often only ~1000px wide, and a
   full-bleed hero on a 1440 viewport upscales that by 1.4x and goes soft — so
   `contained` is the default: the image is capped at the page width and barely
   upscales. Switchable in Customize -> Rock City Wire -> Articles. */
.rcw-cover-media { position: relative; height: clamp(220px, 26vw, 380px); overflow: hidden; background: #1a1a1a; }

.rcw-cover-contained .rcw-cover {
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.rcw-cover-contained .rcw-cover-media { height: clamp(220px, 24vw, 360px); }
.rcw-cover-contained .rcw-cover-body { padding-inline: calc(var(--gutter) * 2); }

.rcw-cover-compact .rcw-cover-media { height: clamp(180px, 18vw, 260px); }

.rcw-cover-full .rcw-cover-media { height: clamp(260px, 32vw, 440px); }
.rcw-cover-media .rcw-img { width: 100%; height: 100%; object-fit: cover; }
.rcw-cover .rcw-scrim {
	position: absolute; inset: 0;
	background: linear-gradient(to bottom, rgba(0, 0, 0, .35), rgba(0, 0, 0, .6));
}
.rcw-cover-body {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	z-index: 2; text-align: center; color: #fff;
}
.rcw-cover-title {
	font-size: clamp(24px, 3.2vw, 40px);
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	color: #fff;
	margin: 10px 0 16px;
}
.rcw-cover-meta {
	display: flex; align-items: center; justify-content: center;
	flex-wrap: wrap; gap: 8px 20px;
	font-family: var(--sans); font-size: 11px; text-transform: uppercase;
	letter-spacing: .04em;
}
.rcw-cover-meta a, .rcw-cover-meta span, .rcw-cover-meta time { color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.rcw-cover-meta a:hover { color: var(--accent); }
.rcw-cover-meta svg { width: 13px; height: 13px; }
.rcw-cover-count { color: var(--meta); }

/* No featured image: the cover collapses to a light band.
   Keyed off the body class only — `rcw-has-cover` is set on <body>, so a
   selector like `.rcw-single:not(.rcw-has-cover)` would match every article
   and knock the title out of the overlay on pages that DO have a cover. */
body:not(.rcw-has-cover) .rcw-cover-body {
	position: static; transform: none; color: var(--head);
	padding-block: 40px 24px; text-align: left;
}
body:not(.rcw-has-cover) .rcw-cover-title { color: var(--head); }
body:not(.rcw-has-cover) .rcw-cover-meta { justify-content: flex-start; }
body:not(.rcw-has-cover) .rcw-cover-meta a,
body:not(.rcw-has-cover) .rcw-cover-meta span,
body:not(.rcw-has-cover) .rcw-cover-meta time { color: var(--muted); }

/* Share bar — buttons only, never a count. */
.rcw-share { margin-bottom: 24px; }
.rcw-share-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; }
.rcw-share-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-width: 109px; height: 40px; padding: 0 14px;
	background: var(--dark); color: #fff;
	font-family: var(--sans); font-size: 11px; font-weight: 600;
	text-transform: uppercase; letter-spacing: .03em;
}
.rcw-share-btn:hover { color: #fff; opacity: .88; }
.rcw-share-facebook  { background: #516eab; }
.rcw-share-twitter   { background: #000000; }
.rcw-share-pinterest { background: #e60023; }
.rcw-share-instagram { background: #c13584; }
.rcw-share-linkedin  { background: #0a66c2; }
.rcw-share-email     { background: #5d7987; }
.rcw-share-extra { display: none; }
.rcw-share.is-open .rcw-share-extra { display: inline-flex; }
.rcw-share.is-open .rcw-share-more { display: none; }
.rcw-share-more {
	display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 40px; background: #efefef; color: #555;
}
.rcw-share-more:hover { background: var(--accent); color: #fff; }

/* Prose. The reset and the rule that re-applies the gap carry the SAME
   specificity, or the reset silently wins and every gap disappears. */
.rcw-prose { font-family: var(--body); font-size: 14px; line-height: 21px; color: var(--prose); }
.rcw-prose > * { margin-block: 0; }
.rcw-prose > * + * { margin-top: 21px; }
.rcw-prose h2 {
	font-family: var(--display); font-size: 24px; font-weight: 700;
	line-height: 1.3; color: var(--head); margin-top: 32px;
	scroll-margin-top: 90px;
}
.rcw-prose h3 { font-family: var(--display); font-size: 19px; font-weight: 700; line-height: 1.35; color: var(--head); margin-top: 26px; }
.rcw-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.rcw-prose a:hover { color: var(--accent-dark); }
.rcw-prose img { height: auto; }
.rcw-prose figure { margin-inline: 0; }
.rcw-prose figcaption { font-family: var(--sans); font-size: 11px; font-style: italic; color: var(--meta); margin-top: 6px; }
.rcw-prose blockquote {
	margin-inline: 0; padding: 0 8%;
	font-size: clamp(20px, 2.4vw, 30px);
	font-style: italic; font-weight: 400; line-height: 1.3;
	text-align: center; color: var(--accent);
	font-family: var(--display);
}
.rcw-prose ul, .rcw-prose ol { padding-left: 22px; }
.rcw-prose li + li { margin-top: 8px; }
.rcw-prose table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 13px; }
.rcw-prose th, .rcw-prose td { border: 1px solid var(--line-2); padding: 8px 10px; text-align: left; }
.rcw-prose pre { overflow-x: auto; background: #f6f8fa; padding: 14px; font-size: 13px; }
.rcw-prose .wp-caption, .rcw-prose .wp-block-image { max-width: 100%; }

.rcw-tags { margin-top: 28px; font-family: var(--sans); font-size: 11px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rcw-tags span { text-transform: uppercase; font-weight: 700; color: var(--head); }
.rcw-tags a { background: #f4f4f4; padding: 5px 10px; color: var(--muted); }
.rcw-tags a:hover { background: var(--accent); color: #fff; }

.rcw-adjacent {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line);
}
.rcw-adjacent span { display: block; font-family: var(--sans); font-size: 11px; color: var(--meta); margin-bottom: 6px; }
.rcw-adjacent strong { display: block; font-family: var(--display); font-size: 15px; font-weight: 700; line-height: 20px; text-transform: uppercase; color: var(--head); }
.rcw-adjacent a:hover strong { color: var(--accent); }
.rcw-adjacent-next { text-align: right; grid-column: 2; }

.rcw-authorbox {
	display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px;
	margin-top: 32px; padding: 24px; border: 1px solid var(--line-2);
}
.rcw-authorbox-avatar img { width: 96px; height: 96px; object-fit: cover; }
.rcw-authorbox-name { font-size: 17px; font-weight: 700; text-transform: uppercase; }
.rcw-authorbox-avatar img { border-radius: 50%; }
.rcw-authorbox-title { font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--accent); margin-top: 4px; }
.rcw-authorbox-social { display: flex; gap: 10px; margin-top: 12px; }
.rcw-authorbox-social a { color: var(--muted); display: inline-flex; }
.rcw-authorbox-social a:hover { color: var(--accent); }
.rcw-authorbox-social svg { width: 16px; height: 16px; }
.rcw-authorbox--profile { grid-template-columns: 160px minmax(0, 1fr); margin-top: 0; align-items: center; }
.rcw-authorbox--profile .rcw-authorbox-avatar img { width: 160px; height: 160px; }
.rcw-authorbox--profile .rcw-authorbox-name { font-size: 28px; line-height: 34px; }
.rcw-authorbox--profile .rcw-authorbox-bio { font-size: 14px; line-height: 23px; }
.rcw-authorbox-facts { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-family: var(--sans); font-size: 12px; color: var(--muted); }
.rcw-authorbox-facts strong { color: #222; }
.rcw-authorbox-facts a { color: var(--accent); }
.rcw-authorbox-bio { margin: 10px 0 0; font-family: var(--sans); font-size: 13px; line-height: 21px; color: var(--muted); }

.rcw-related { margin-top: 40px; }
.rcw-related-head {
	border-top: 3px solid var(--accent);
	border-bottom: 1px solid var(--line-2);
	padding: 12px 16px;
	margin-bottom: 24px;
	text-align: center;
}
.rcw-related-head h2 { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

/* TOC — one copy shows at any width. */
.rcw-toc { border: 1px solid var(--line-2); padding: 16px 18px; }
.rcw-toc--inline { display: none; margin-bottom: 24px; }
.rcw-toc-head { font-family: var(--display); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--head); margin-bottom: 10px; }
.rcw-toc-list { list-style: decimal; margin: 0; padding-left: 18px; font-family: var(--sans); font-size: 12px; line-height: 1.5; }
.rcw-toc-list li + li { margin-top: 8px; }
.rcw-toc-list a { color: var(--muted); }
.rcw-toc-list a:hover, .rcw-toc-list a.is-active { color: var(--accent); font-weight: 600; }

/* ---------- 15. Archives, pages, 404, comments --------------------------- */

.rcw-archive-head { margin-block: 24px; }
.rcw-archive-desc { font-family: var(--sans); font-size: 13px; color: var(--muted); margin-top: 12px; }
.rcw-archive-list { display: flex; flex-direction: column; }
.rcw-empty { font-family: var(--sans); font-size: 14px; color: var(--muted); }

.rcw-page-head { margin-block: 32px 24px; }
.rcw-page-title { font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; line-height: 1.2; text-transform: uppercase; }
.rcw-page-media { margin-bottom: 24px; }

.rcw-pagination {
	display: flex; align-items: center; justify-content: space-between;
	flex-wrap: wrap; gap: 12px; margin-top: 28px;
}
.rcw-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 33px; height: 33px; padding: 5px 11px;
	font-family: var(--sans); font-size: 12px; color: #666;
	background: #f4f4f4;
}
.rcw-pagination .page-numbers:hover { background: var(--accent); color: #fff; }
.rcw-pagination .page-numbers.current { background: var(--accent); color: #fff; }
.rcw-pagination .page-numbers.dots { background: transparent; }
.rcw-pagination-count { font-family: var(--sans); font-size: 11px; color: var(--meta); }

.rcw-404 { padding: 48px 0 32px; }
.rcw-404-code { font-family: var(--display); font-size: clamp(70px, 14vw, 130px); font-weight: 900; line-height: 1; color: var(--line-2); margin: 0; }
.rcw-404-title { font-size: clamp(24px, 3vw, 34px); font-weight: 700; text-transform: uppercase; margin: 8px 0 12px; }
.rcw-404-text { font-family: var(--sans); font-size: 14px; color: var(--muted); max-width: 46ch; margin-bottom: 20px; }

.rcw-comments { margin-top: 40px; }
.rcw-comment-list { list-style: none; margin: 0 0 24px; padding: 0; }
.rcw-comment-list .children { list-style: none; margin: 0; padding-left: 32px; }
.rcw-comment-list li.comment { padding: 18px 0; border-bottom: 1px solid var(--line); }
.rcw-comment-list .comment-author img { width: 48px; height: 48px; margin-right: 12px; vertical-align: middle; }
.rcw-comment-list .fn { font-family: var(--display); font-weight: 700; font-style: normal; color: var(--head); }
.rcw-comment-list .comment-metadata { font-family: var(--sans); font-size: 11px; color: var(--meta); margin: 6px 0 10px; }
.rcw-comment-list .comment-content { font-family: var(--sans); font-size: 13px; line-height: 21px; color: var(--muted); }
.rcw-comment-list .reply { font-family: var(--sans); font-size: 11px; text-transform: uppercase; font-weight: 700; }
.rcw-comment-form input[type=text], .rcw-comment-form input[type=email],
.rcw-comment-form input[type=url], .rcw-comment-form textarea,
.comment-form input[type=text], .comment-form input[type=email],
.comment-form input[type=url], .comment-form textarea {
	width: 100%; max-width: 100%; border: 1px solid var(--line-2);
	padding: 10px 12px; font-family: var(--sans); font-size: 13px;
}
.comment-form .submit {
	background: var(--dark); color: #fff; border: 0; padding: 12px 24px;
	font-family: var(--sans); font-size: 12px; font-weight: 700; text-transform: uppercase;
	cursor: pointer;
}
.comment-form .submit:hover { background: var(--accent); }
.comment-form p { margin-bottom: 14px; }

/* ---------- 16. Footer --------------------------------------------------- */

.rcw-footer { background: var(--footer-bg); color: #fff; margin-top: 48px; }
.rcw-footer a { color: #fff; }
.rcw-footer a:hover { color: var(--accent); }

.rcw-footer-cols {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 48px; padding-block: 54px 24px;
}
.rcw-foot-title, .rcw-footer .rcw-block-title {
	font-family: var(--display); font-size: 18px; font-weight: 500;
	color: #fff; margin-bottom: 20px; border: 0; background: none; padding: 0;
}
.rcw-footer .rcw-block-title-text span { background: none; color: #fff; font-size: 18px; font-weight: 500; padding: 0; text-transform: none; }
.rcw-footer .rcw-block-title { border-bottom: 0; }

.rcw-footer .rcw-card-title a { color: #fff; }
.rcw-footer .rcw-card-title a:hover { color: var(--accent); }
.rcw-footer .rcw-card--inline { border-bottom: 0; padding: 10px 0; }
.rcw-footer .rcw-meta-date { color: #888; }
.rcw-footer .rcw-widget ul li { border-bottom: 0; padding: 6px 0; }
.rcw-footer .rcw-sections li { font-family: var(--sans); font-size: 14px; }
.rcw-footer .rcw-sections-count { color: #bbb; }

.rcw-footer-rule { height: 1px; background: rgba(255, 255, 255, .12); }

.rcw-footer-brand {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 48px; align-items: start;
	padding-block: 54px;
}
.rcw-footer-mark .rcw-logo-text { color: #fff; font-size: clamp(24px, 4vw, 34px); }
.rcw-footer-mark .rcw-logo-tag { color: #999; }
.rcw-footer-about p { font-family: var(--sans); font-size: 14px; line-height: 22px; color: #ddd; }
.rcw-footer-contact a { color: var(--accent); }
.rcw-footer-social { display: flex; gap: 8px; }
.rcw-footer-social a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; background: rgba(255, 255, 255, .06);
}
.rcw-footer-social a:hover { background: var(--accent); color: #fff; }

.rcw-footer-bottom { background: var(--footer-bottom); }
.rcw-footer-bottom-inner {
	display: flex; align-items: center; justify-content: space-between;
	flex-wrap: wrap; gap: 12px; min-height: 39px; padding-block: 8px;
}
.rcw-copyright { margin: 0; font-family: var(--sans); font-size: 12px; color: #999; }
.rcw-footer-menu { display: flex; flex-wrap: wrap; gap: 20px; margin: 0; padding: 0; list-style: none; }
.rcw-footer-menu a { font-family: var(--sans); font-size: 12px; color: #ccc; }

/* ---------- 17. Responsive ----------------------------------------------- */

@media (max-width: 1140px) {
	:root { --container: 980px; --rail: 300px; --rail-gap: 40px; }
}

@media (max-width: 1018px) {
	:root { --container: 740px; --rail: 260px; --rail-gap: 32px; --module-gap: 40px; }
	.rcw-menu > li > a { padding: 0 11px; font-size: 12px; }
	.rcw-top-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.rcw-masthead-inner { min-height: 0; gap: 20px; }
	.rcw-share-btn { min-width: 0; flex: 1; padding: 0 8px; }
	.rcw-share-label { display: none; }
	.rcw-t-xl .rcw-card-title { font-size: 22px; line-height: 28px; }
	.rcw-t-xl2 .rcw-card-title { font-size: 19px; line-height: 25px; }
	.rcw-t-lg .rcw-card-title { font-size: 18px; line-height: 23px; }
}

/* The reference holds its 8/4 split all the way down to 768, so the rail only
   drops under the article below that. Once it does, the inline table of
   contents takes over — a contents list printed after the body is useless. */
@media (max-width: 767px) {
	:root { --gutter: 20px; --gap: 16px; --module-gap: 36px; --rail-gap: 32px; }

	.rcw-row { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.rcw-rail { width: 100%; }
	.rcw-sticky-rail .rcw-rail-inner { position: static; max-height: none; overflow: visible; }
	.rcw-rail-inner {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
		gap: 40px;
		align-items: start;
	}
	.rcw-rail-inner > * { margin-bottom: 0; }
	.rcw-toc--rail { display: none; }
	.rcw-toc--inline { display: block; }
	.rcw-footer-brand { grid-template-columns: minmax(0, 1fr); gap: 32px; }

	.rcw-topbar { display: none; }
	.rcw-burger { display: inline-flex; }
	.rcw-nav { display: none; }
	.rcw-mobile-nav { display: none; }
	.rcw-mobile-nav.is-open { display: block; }
	.rcw-navbar-inner { justify-content: space-between; }

	.rcw-masthead-inner { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; }

	/* Hero: lead full width, the wide cell full width, the two small side by side. */
	.rcw-biggrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rcw-bg-lead { grid-column: 1 / -1; grid-row: auto; }
	.rcw-bg-wide { grid-column: 1 / -1; grid-row: auto; }
	.rcw-bg-a { grid-column: 1; grid-row: auto; }
	.rcw-bg-b { grid-column: 2; grid-row: auto; }
	.rcw-bg-lead .rcw-card-link { aspect-ratio: 1.25; }
	.rcw-bg-wide .rcw-card-link { aspect-ratio: 1.9; }

	.rcw-lead-grid { grid-template-columns: minmax(0, 1fr); }
	.rcw-grid--2, .rcw-grid--3 { grid-template-columns: minmax(0, 1fr); }
	.rcw-top-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rcw-grid--tight { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rcw-grid--list { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 8px; }

	.rcw-list--big .rcw-card--inline,
	.rcw-archive-list .rcw-card--inline { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.rcw-list--big .rcw-card--inline .rcw-card-media,
	.rcw-archive-list .rcw-card--inline .rcw-card-media { --tw: 100%; }

	.rcw-trending { padding-inline: 0; gap: 10px; margin: 16px 0; }
	.rcw-trending-nav { display: none; }

	.rcw-adjacent { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.rcw-adjacent-next { grid-column: 1; text-align: left; }

	.rcw-authorbox { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 20px; }
	.rcw-authorbox--profile .rcw-authorbox-avatar img { width: 120px; height: 120px; }

	.rcw-cover-media,
	.rcw-cover-contained .rcw-cover-media,
	.rcw-cover-full .rcw-cover-media { height: clamp(190px, 46vw, 280px); }
	.rcw-cover-compact .rcw-cover-media { height: clamp(160px, 38vw, 230px); }
	.rcw-cover-contained .rcw-cover { padding-inline: 0; }
	.rcw-cover-contained .rcw-cover-body { padding-inline: var(--gutter); }
	.rcw-cover-body { padding-inline: 20px; width: 100%; }
	.rcw-cover-meta { gap: 6px 14px; font-size: 10px; }

	.rcw-footer-cols { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 40px 16px; }
	.rcw-footer-bottom-inner { justify-content: center; text-align: center; }
	.rcw-footer-menu { justify-content: center; gap: 14px; }

	.rcw-prose blockquote { padding-inline: 0; }
	.rcw-pagination { justify-content: center; }

	.rcw-share-inner { gap: 2px; }
	.rcw-share-btn { min-width: 44px; height: 38px; }
}

@media (max-width: 479px) {
	:root { --gutter: 16px; }
	.rcw-grid--tight { grid-template-columns: minmax(0, 1fr); }
	.rcw-top-grid { grid-template-columns: minmax(0, 1fr); }
	.rcw-card--inline { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; }
	.rcw-t-xl .rcw-card-title { font-size: 20px; line-height: 26px; }
	.rcw-logo-tag { font-size: 10px; }
	.rcw-rail-inner { grid-template-columns: minmax(0, 1fr); }
}

/* A ghost/oversized decorative element must never widen the document. */
.rcw-module, .rcw-biggrid, .rcw-trending { overflow-x: clip; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .001ms !important;
		transition-duration: .001ms !important;
		scroll-behavior: auto !important;
	}
}

@media print {
	.rcw-header, .rcw-footer, .rcw-rail, .rcw-share, .rcw-related { display: none !important; }
	.rcw-row { grid-template-columns: minmax(0, 1fr); }
}
