/**
 * RNBC One main stylesheet.
 *
 * A premium, mobile first magazine layout. News, Entertainment, Lifestyle.
 * Display serif (Fraunces) paired with a clean interface sans (Inter).
 *
 * Sections:
 *   1.  Custom properties
 *   2.  Reset and base
 *   3.  Typography
 *   4.  Layout helpers
 *   5.  Accessibility helpers
 *   6.  Accent bar
 *   7.  Header and navigation
 *   8.  Search panel and instant results
 *   9.  Kicker, meta and badge
 *   10. Cards
 *   11. Grid and feed
 *   12. Hero
 *   13. Section heading
 *   14. Buttons
 *   15. Advertisement areas
 *   16. Sidebar, widgets and layout split
 *   17. Load more and pagination
 *   18. Single story
 *   19. Related stories
 *   20. Newsletter
 *   21. Contact form and notices
 *   22. Archive, category and search heroes
 *   23. Search form
 *   24. Empty states and 404
 *   25. Comments
 *   26. Footer
 *   27. Social links
 *   28. Back to top
 *   29. Responsive
 *   30. Reduced motion and print
 *
 * @package RNBC_One
 */

/* ==========================================================================
   1. Custom properties
   ========================================================================== */

:root {
	/* Color. The navy and link values are also set inline from the Customizer. */
	--c-bg: #ffffff;
	--c-bg-soft: #fafafa;
	--c-ink: #111111;
	--c-navy: #102a43;
	--c-link: #1d4ed8;
	--c-link-hover: #3b82f6;
	--c-border: #ececec;
	--c-border-strong: #dcdcdc;
	--c-muted: #6b7280;
	--c-ink-soft: #374151;

	/* Type. */
	--font-display: "Fraunces", Georgia, "Times New Roman", serif;
	--font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	--fs-300: 0.8125rem;
	--fs-400: 0.9375rem;
	--fs-500: 1.0625rem;
	--fs-600: 1.25rem;
	--fs-700: 1.5rem;
	--fs-800: 2rem;
	--fs-900: 2.75rem;
	--fs-1000: 3.5rem;

	/* Space. */
	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 0.75rem;
	--space-4: 1rem;
	--space-5: 1.5rem;
	--space-6: 2rem;
	--space-7: 3rem;
	--space-8: 4rem;
	--space-9: 6rem;

	/* Structure. */
	--container: 1200px;
	--container-narrow: 760px;
	--radius: 4px;
	--radius-lg: 8px;
	--shadow-sm: 0 1px 2px rgba(17, 17, 17, 0.04);
	--shadow-md: 0 12px 30px rgba(17, 17, 17, 0.08);
	--header-height: 72px;
	--ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* ==========================================================================
   2. Reset and base
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background-color: var(--c-bg);
	color: var(--c-ink);
	font-family: var(--font-body);
	font-size: var(--fs-500);
	line-height: 1.65;
	font-feature-settings: "kern", "liga";
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
svg {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--c-link);
	text-decoration: none;
	transition: color 0.15s var(--ease);
}

a:hover,
a:focus {
	color: var(--c-link-hover);
}

button {
	font-family: inherit;
	cursor: pointer;
}

ul,
ol {
	margin: 0;
	padding: 0;
}

:focus-visible {
	outline: 2px solid var(--c-link);
	outline-offset: 2px;
	border-radius: 2px;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */

h1,
h2,
h3,
h4 {
	font-family: var(--font-display);
	color: var(--c-ink);
	line-height: 1.12;
	letter-spacing: -0.01em;
	margin: 0 0 var(--space-4);
	font-weight: 600;
}

p {
	margin: 0 0 var(--space-4);
}

strong {
	font-weight: 600;
}

blockquote {
	margin: var(--space-6) 0;
	padding-left: var(--space-5);
	border-left: 3px solid var(--c-navy);
	font-family: var(--font-display);
	font-size: var(--fs-700);
	line-height: 1.35;
	color: var(--c-ink);
}

code,
pre {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.9em;
}

pre {
	background: var(--c-bg-soft);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	padding: var(--space-4);
	overflow-x: auto;
}

/* ==========================================================================
   4. Layout helpers
   ========================================================================== */

.rnbc-container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--space-4);
}

.rnbc-container--narrow {
	max-width: var(--container-narrow);
}

.site-main {
	display: block;
	padding-block: var(--space-6) var(--space-9);
}

.site-main > .rnbc-container + .rnbc-container,
.site-main > section + section {
	margin-top: var(--space-8);
}

/* ==========================================================================
   5. Accessibility helpers
   ========================================================================== */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	position: absolute !important;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: var(--space-3);
	top: -100px;
	z-index: 1000;
	background: var(--c-navy);
	color: #ffffff;
	padding: var(--space-3) var(--space-4);
	border-radius: var(--radius);
	font-size: var(--fs-400);
	font-weight: 600;
	transition: top 0.2s var(--ease);
}

.skip-link:focus {
	top: var(--space-3);
	color: #ffffff;
}

/* ==========================================================================
   6. Accent bar
   ========================================================================== */

.rnbc-accent {
	height: 4px;
	width: 100%;
	background: var(--c-navy);
}

/* ==========================================================================
   7. Header and navigation
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--c-bg);
	border-bottom: 1px solid var(--c-border);
	transition: box-shadow 0.2s var(--ease);
}

.site-header.is-compact {
	box-shadow: var(--shadow-sm);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: var(--space-4);
	min-height: var(--header-height);
	padding-block: var(--space-3);
	transition: min-height 0.2s var(--ease), padding 0.2s var(--ease);
}

.site-header.is-compact .site-header__inner {
	min-height: 60px;
	padding-block: var(--space-2);
}

.site-header__brand {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-right: auto;
}

.site-header__brand .custom-logo-link {
	display: inline-block;
}

.site-header__brand .custom-logo {
	max-height: 42px;
	width: auto;
}

.site-title {
	margin: 0;
	font-family: var(--font-display);
	font-size: var(--fs-700);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1;
}

.site-title a {
	color: var(--c-navy);
}

.site-title a:hover {
	color: var(--c-navy);
	opacity: 0.85;
}

.site-tagline {
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--c-muted);
	font-weight: 600;
}

/* Primary navigation. */
.primary-nav__list {
	list-style: none;
	display: flex;
	align-items: center;
	gap: var(--space-5);
}

.primary-nav__list a {
	display: inline-block;
	color: var(--c-ink);
	font-size: var(--fs-400);
	font-weight: 500;
	letter-spacing: 0.01em;
	padding-block: var(--space-2);
	position: relative;
}

.primary-nav__list a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 100%;
	height: 2px;
	background: var(--c-navy);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.2s var(--ease);
}

.primary-nav__list a:hover,
.primary-nav__list a:focus,
.primary-nav__list .current-menu-item > a {
	color: var(--c-navy);
}

.primary-nav__list a:hover::after,
.primary-nav__list .current-menu-item > a::after {
	transform: scaleX(1);
}

/* Submenus. */
.primary-nav__list .sub-menu {
	list-style: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	background: var(--c-bg);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-md);
	padding: var(--space-2);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
	z-index: 20;
}

.primary-nav__list .menu-item-has-children {
	position: relative;
}

.primary-nav__list .menu-item-has-children:hover > .sub-menu,
.primary-nav__list .menu-item-has-children:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.primary-nav__list .sub-menu a {
	display: block;
	padding: var(--space-2) var(--space-3);
	border-radius: var(--radius);
}

.primary-nav__list .sub-menu a::after {
	display: none;
}

.primary-nav__list .sub-menu a:hover {
	background: var(--c-bg-soft);
}

/* Toggles. */
.nav-toggle,
.search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--c-border);
	background: var(--c-bg);
	border-radius: var(--radius);
	color: var(--c-ink);
	padding: 0;
	transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}

.nav-toggle:hover,
.search-toggle:hover {
	border-color: var(--c-navy);
	color: var(--c-navy);
}

.search-toggle svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.nav-toggle {
	display: none;
	position: relative;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
	content: "";
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle__bar::before {
	position: absolute;
	transform: translateY(-6px);
}

.nav-toggle__bar::after {
	position: absolute;
	transform: translateY(6px);
}

.nav-open .nav-toggle__bar {
	background: transparent;
}

.nav-open .nav-toggle__bar::before {
	transform: translateY(0) rotate(45deg);
}

.nav-open .nav-toggle__bar::after {
	transform: translateY(0) rotate(-45deg);
}

/* ==========================================================================
   8. Search panel and instant results
   ========================================================================== */

.search-panel {
	border-top: 1px solid var(--c-border);
	background: var(--c-bg-soft);
	padding-block: var(--space-5);
}

.search-panel[hidden] {
	display: none;
}

.search-panel__results {
	margin-top: var(--space-4);
}

.search-panel__status {
	color: var(--c-muted);
	font-size: var(--fs-400);
	margin: 0;
}

.search-panel__list {
	display: grid;
	gap: var(--space-2);
}

.search-result {
	display: flex;
	gap: var(--space-3);
	align-items: center;
	padding: var(--space-2);
	border-radius: var(--radius);
	color: var(--c-ink);
	transition: background 0.15s var(--ease);
}

.search-result:hover,
.search-result:focus {
	background: var(--c-bg);
	color: var(--c-ink);
}

.search-result__media {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--c-border);
}

.search-result__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.search-result__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.search-result__kicker {
	font-size: 0.625rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-weight: 700;
	color: var(--c-navy);
}

.search-result__title {
	font-weight: 600;
	font-size: var(--fs-400);
	line-height: 1.3;
}

.search-result__date {
	font-size: var(--fs-300);
	color: var(--c-muted);
}

.search-panel__all {
	display: inline-block;
	margin-top: var(--space-3);
	font-weight: 600;
	font-size: var(--fs-400);
}

/* ==========================================================================
   9. Kicker, meta and badge
   ========================================================================== */

.rnbc-kicker {
	display: inline-flex;
	align-items: center;
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-weight: 700;
	color: var(--c-navy);
	margin-bottom: var(--space-2);
}

a.rnbc-kicker {
	position: relative;
	padding-left: 14px;
}

a.rnbc-kicker::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 8px;
	height: 2px;
	background: var(--c-navy);
}

a.rnbc-kicker:hover {
	color: var(--c-link-hover);
}

.rnbc-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2);
	font-size: var(--fs-300);
	color: var(--c-muted);
}

.rnbc-meta__author {
	font-weight: 600;
	color: var(--c-ink-soft);
}

.rnbc-meta__sep {
	color: var(--c-border-strong);
}

.rnbc-meta__platform {
	font-weight: 500;
}

/* Platform badge over imagery. */
.rnbc-badge {
	position: absolute;
	top: var(--space-3);
	left: var(--space-3);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(16, 42, 67, 0.92);
	color: #ffffff;
	backdrop-filter: blur(4px);
	box-shadow: var(--shadow-sm);
}

.rnbc-badge__icon {
	display: inline-flex;
}

.rnbc-badge__icon svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

/* ==========================================================================
   10. Cards
   ========================================================================== */

.rnbc-card {
	display: flex;
	flex-direction: column;
	background: var(--c-bg);
}

.rnbc-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: var(--c-bg-soft);
	aspect-ratio: 4 / 3;
	margin-bottom: var(--space-3);
}

.rnbc-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s var(--ease);
}

.rnbc-card:hover .rnbc-card__image {
	transform: scale(1.04);
}

.rnbc-card__body {
	display: flex;
	flex-direction: column;
}

.rnbc-card__title {
	font-size: var(--fs-600);
	line-height: 1.22;
	margin: 0 0 var(--space-2);
	font-weight: 600;
}

.rnbc-card__title a {
	color: var(--c-ink);
}

.rnbc-card__title a:hover {
	color: var(--c-navy);
}

.rnbc-card__excerpt {
	color: var(--c-ink-soft);
	font-size: var(--fs-400);
	line-height: 1.55;
	margin: 0 0 var(--space-3);
}

.rnbc-card__meta {
	margin-top: auto;
}

/* Wide lead card. */
.rnbc-card--wide .rnbc-card__media {
	aspect-ratio: 16 / 9;
}

.rnbc-card--wide .rnbc-card__title {
	font-size: var(--fs-700);
}

/* Compact horizontal card. */
.rnbc-card--compact {
	flex-direction: row;
	gap: var(--space-3);
	align-items: flex-start;
}

.rnbc-card--compact .rnbc-card__media {
	flex: 0 0 96px;
	width: 96px;
	aspect-ratio: 1 / 1;
	margin-bottom: 0;
}

.rnbc-card--compact .rnbc-card__title {
	font-size: var(--fs-500);
	line-height: 1.3;
}

.rnbc-card--compact .rnbc-badge {
	display: none;
}

/* Photo first masonry card. */
.rnbc-card--photo .rnbc-card__media {
	aspect-ratio: auto;
	margin-bottom: var(--space-3);
}

.rnbc-card--photo .rnbc-card__image {
	height: auto;
}

.rnbc-card--photo .rnbc-card__title {
	font-size: var(--fs-500);
}

/* ==========================================================================
   11. Grid and feed
   ========================================================================== */

.rnbc-grid {
	display: grid;
	gap: var(--space-6) var(--space-5);
}

.rnbc-grid--two {
	grid-template-columns: 1fr;
}

.rnbc-grid--three {
	grid-template-columns: 1fr;
}

.rnbc-grid--four {
	grid-template-columns: repeat(2, 1fr);
}

/* Compact lists stack tighter. */
.rnbc-grid--compact {
	gap: var(--space-4);
}

/* Masonry via CSS columns. No JavaScript dependency. */
.rnbc-grid--masonry {
	display: block;
	column-count: 1;
	column-gap: var(--space-5);
}

.rnbc-grid--masonry .rnbc-card {
	break-inside: avoid;
	margin-bottom: var(--space-6);
}

/* ==========================================================================
   12. Hero
   ========================================================================== */

.home-hero {
	margin-bottom: var(--space-8);
}

.hero-card {
	display: grid;
	gap: var(--space-5);
}

.hero-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--radius-lg);
	background: var(--c-bg-soft);
	aspect-ratio: 16 / 9;
}

.hero-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--ease);
}

.hero-card:hover .hero-card__image {
	transform: scale(1.03);
}

.hero-card__body {
	max-width: 760px;
}

.hero-card__title {
	font-size: var(--fs-900);
	line-height: 1.08;
	margin: var(--space-2) 0 var(--space-3);
}

.hero-card__title a {
	color: var(--c-ink);
}

.hero-card__title a:hover {
	color: var(--c-navy);
}

.hero-card__meta {
	font-size: var(--fs-400);
}

/* ==========================================================================
   13. Section heading
   ========================================================================== */

.section-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-4);
	margin-bottom: var(--space-5);
	padding-top: var(--space-3);
	border-top: 2px solid var(--c-navy);
}

.section-heading__title {
	font-size: var(--fs-700);
	margin: 0;
	letter-spacing: -0.01em;
}

.section-heading__link {
	flex: 0 0 auto;
	font-family: var(--font-body);
	font-size: var(--fs-400);
	font-weight: 600;
	color: var(--c-navy);
	white-space: nowrap;
}

.section-heading__link span {
	transition: transform 0.15s var(--ease);
	display: inline-block;
}

.section-heading__link:hover {
	color: var(--c-link-hover);
}

.section-heading__link:hover span {
	transform: translateX(3px);
}

/* ==========================================================================
   14. Buttons
   ========================================================================== */

.rnbc-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	font-family: var(--font-body);
	font-size: var(--fs-400);
	font-weight: 600;
	line-height: 1;
	padding: 0.75rem 1.4rem;
	border: 1px solid var(--c-navy);
	border-radius: var(--radius);
	background: var(--c-bg);
	color: var(--c-navy);
	transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.rnbc-button:hover,
.rnbc-button:focus {
	background: var(--c-navy);
	color: #ffffff;
}

.rnbc-button--solid {
	background: var(--c-navy);
	color: #ffffff;
}

.rnbc-button--solid:hover,
.rnbc-button--solid:focus {
	background: var(--c-ink);
	border-color: var(--c-ink);
	color: #ffffff;
}

.rnbc-button[hidden] {
	display: none;
}

/* ==========================================================================
   15. Advertisement areas
   ========================================================================== */

.rnbc-ad {
	display: flex;
	justify-content: center;
	margin-block: var(--space-2);
}

.rnbc-ad--section {
	margin-block: var(--space-8);
}

.rnbc-ad__placeholder {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--space-1);
	background: var(--c-bg-soft);
	border: 1px dashed var(--c-border-strong);
	border-radius: var(--radius);
	color: var(--c-muted);
	text-align: center;
}

.rnbc-ad__tag {
	font-size: 0.625rem;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-weight: 700;
}

.rnbc-ad__size {
	font-size: var(--fs-300);
	font-variant-numeric: tabular-nums;
}

/* Mobile banner only shows on small screens, leaderboard hides there. */
.rnbc-ad--mobile-banner {
	display: none;
}

/* ==========================================================================
   16. Sidebar, widgets and layout split
   ========================================================================== */

.rnbc-layout {
	display: grid;
	gap: var(--space-7);
	grid-template-columns: 1fr;
}

.rnbc-layout__main {
	min-width: 0;
}

.rnbc-sidebar {
	display: flex;
	flex-direction: column;
	gap: var(--space-6);
}

.widget {
	border-top: 2px solid var(--c-navy);
	padding-top: var(--space-3);
}

.widget__title,
.widget .widget-title,
.widget .widgettitle {
	font-size: var(--fs-500);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-family: var(--font-body);
	font-weight: 700;
	margin: 0 0 var(--space-3);
}

.widget ul {
	list-style: none;
}

.widget li {
	padding: var(--space-2) 0;
	border-bottom: 1px solid var(--c-border);
	font-size: var(--fs-400);
}

.widget li:last-child {
	border-bottom: 0;
}

.widget a {
	color: var(--c-ink);
}

.widget a:hover {
	color: var(--c-navy);
}

.ad-widget {
	border-top: 0;
	padding-top: 0;
}

/* ==========================================================================
   17. Load more and pagination
   ========================================================================== */

.rnbc-loadmore {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-3);
	margin-top: var(--space-8);
}

.rnbc-loadmore.is-loading .rnbc-loadmore__button {
	opacity: 0.6;
	pointer-events: none;
}

.rnbc-loadmore__status {
	font-size: var(--fs-300);
	color: var(--c-muted);
	margin: 0;
	min-height: 1.2em;
}

.navigation.pagination {
	margin-top: var(--space-8);
}

.navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	justify-content: center;
}

.navigation.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 var(--space-2);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	color: var(--c-ink);
	font-size: var(--fs-400);
	font-weight: 500;
}

.navigation.pagination .page-numbers.current {
	background: var(--c-navy);
	border-color: var(--c-navy);
	color: #ffffff;
}

.navigation.pagination a.page-numbers:hover {
	border-color: var(--c-navy);
	color: var(--c-navy);
}

.navigation.pagination[hidden] {
	display: none;
}

/* ==========================================================================
   18. Single story
   ========================================================================== */

.story-hero {
	padding-top: var(--space-6);
	text-align: left;
}

.story-hero__title {
	font-size: var(--fs-900);
	line-height: 1.08;
	margin: var(--space-3) 0 var(--space-4);
}

.story-hero__meta {
	font-size: var(--fs-400);
}

.story-figure {
	margin: var(--space-6) auto var(--space-7);
	max-width: var(--container);
	padding-inline: var(--space-4);
}

.story-figure img {
	width: 100%;
	border-radius: var(--radius-lg);
	background: var(--c-bg-soft);
}

.story-figure__caption {
	margin-top: var(--space-2);
	font-size: var(--fs-300);
	color: var(--c-muted);
	text-align: center;
}

.story-body {
	padding-top: var(--space-2);
}

/* Reading typography. */
.story-content {
	font-size: 1.1875rem;
	line-height: 1.75;
	color: var(--c-ink);
}

.story-content > p:first-of-type {
	font-size: 1.3125rem;
	line-height: 1.6;
	color: var(--c-ink);
}

.story-content h2 {
	font-size: var(--fs-700);
	margin-top: var(--space-7);
}

.story-content h3 {
	font-size: var(--fs-600);
	margin-top: var(--space-6);
}

.story-content img,
.story-content figure {
	margin: var(--space-6) 0;
}

.story-content figure img {
	border-radius: var(--radius-lg);
}

.story-content figcaption {
	font-size: var(--fs-300);
	color: var(--c-muted);
	text-align: center;
	margin-top: var(--space-2);
}

.story-content a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

.story-content ul,
.story-content ol {
	margin: 0 0 var(--space-5) var(--space-5);
}

.story-content li {
	margin-bottom: var(--space-2);
}

.page-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	align-items: center;
	margin: var(--space-6) 0;
	font-weight: 600;
}

.page-links a,
.page-links > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 var(--space-2);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
}

/* Tags. */
.story-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2);
	margin: var(--space-7) 0 0;
	padding-top: var(--space-5);
	border-top: 1px solid var(--c-border);
}

.story-tags__label {
	font-size: var(--fs-300);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-weight: 700;
	color: var(--c-muted);
	margin-right: var(--space-1);
}

.story-tags a {
	display: inline-block;
	padding: var(--space-1) var(--space-3);
	background: var(--c-bg-soft);
	border: 1px solid var(--c-border);
	border-radius: 999px;
	font-size: var(--fs-300);
	color: var(--c-ink-soft);
}

.story-tags a:hover {
	border-color: var(--c-navy);
	color: var(--c-navy);
}

/* Share. */
.story-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-3);
	margin: var(--space-6) 0;
}

.story-share__label {
	font-size: var(--fs-300);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-weight: 700;
	color: var(--c-muted);
}

.story-share__list {
	list-style: none;
	display: flex;
	gap: var(--space-2);
}

.story-share__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--c-border);
	border-radius: 50%;
	color: var(--c-ink);
}

.story-share__item svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.story-share__item:hover {
	background: var(--c-navy);
	border-color: var(--c-navy);
	color: #ffffff;
}

/* ==========================================================================
   19. Related stories
   ========================================================================== */

.related {
	margin-top: var(--space-9);
}

.related .section-heading {
	margin-bottom: var(--space-6);
}

/* ==========================================================================
   20. Newsletter
   ========================================================================== */

.newsletter {
	background: var(--c-navy);
	color: #ffffff;
	border-radius: var(--radius-lg);
	margin-block: var(--space-9);
}

.newsletter__inner {
	padding: var(--space-7) var(--space-5);
	text-align: center;
	max-width: 640px;
	margin-inline: auto;
}

.newsletter__title {
	color: #ffffff;
	font-size: var(--fs-800);
	margin-bottom: var(--space-2);
}

.newsletter__text {
	color: rgba(255, 255, 255, 0.82);
	margin-bottom: var(--space-5);
}

.newsletter__form {
	display: flex;
	gap: var(--space-2);
	max-width: 460px;
	margin-inline: auto;
}

.newsletter__input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0.85rem 1rem;
	border: 1px solid transparent;
	border-radius: var(--radius);
	font-size: var(--fs-400);
	font-family: inherit;
	background: #ffffff;
	color: var(--c-ink);
}

.newsletter__input:focus-visible {
	outline-color: #ffffff;
}

.newsletter__button {
	flex: 0 0 auto;
	padding: 0.85rem 1.4rem;
	border: 0;
	border-radius: var(--radius);
	background: #ffffff;
	color: var(--c-navy);
	font-weight: 700;
	font-size: var(--fs-400);
	transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.newsletter__button:hover {
	background: var(--c-link-hover);
	color: #ffffff;
}

/* ==========================================================================
   21. Contact form and notices
   ========================================================================== */

.contact {
	padding-block: var(--space-4) var(--space-8);
}

.contact__header {
	margin-bottom: var(--space-6);
}

.contact__intro {
	font-size: var(--fs-600);
	color: var(--c-ink-soft);
	line-height: 1.5;
	max-width: 640px;
}

.contact__email {
	font-size: var(--fs-500);
	margin-bottom: var(--space-6);
}

.contact__email a {
	font-weight: 600;
}

.contact-form {
	display: grid;
	gap: var(--space-4);
	max-width: var(--container-narrow);
}

.contact-form__row {
	display: grid;
	gap: var(--space-2);
}

.contact-form__label {
	font-size: var(--fs-400);
	font-weight: 600;
	color: var(--c-ink);
}

.contact-form__input,
.contact-form__textarea {
	width: 100%;
	padding: 0.85rem 1rem;
	border: 1px solid var(--c-border-strong);
	border-radius: var(--radius);
	font-size: var(--fs-400);
	font-family: inherit;
	color: var(--c-ink);
	background: var(--c-bg);
	transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.contact-form__input:focus,
.contact-form__textarea:focus {
	outline: none;
	border-color: var(--c-navy);
	box-shadow: 0 0 0 3px rgba(16, 42, 67, 0.12);
}

.contact-form__textarea {
	min-height: 160px;
	resize: vertical;
}

.contact-form__actions {
	margin-top: var(--space-2);
}

/* Honeypot field stays out of sight and out of the tab order. */
.contact-form__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.rnbc-notice {
	padding: var(--space-3) var(--space-4);
	border-radius: var(--radius);
	border: 1px solid var(--c-border);
	background: var(--c-bg-soft);
	font-size: var(--fs-400);
	margin-bottom: var(--space-5);
}

.rnbc-notice--sent {
	border-color: #b7e0c4;
	background: #effaf2;
	color: #1d6b3a;
}

.rnbc-notice--invalid,
.rnbc-notice--error {
	border-color: #f1c2c2;
	background: #fdf1f1;
	color: #9b2c2c;
}

/* ==========================================================================
   22. Archive, category and search heroes
   ========================================================================== */

.archive-hero,
.category-hero,
.search-hero,
.page-hero,
.page-header {
	padding-block: var(--space-7) var(--space-6);
	border-bottom: 1px solid var(--c-border);
	margin-bottom: var(--space-7);
}

.archive-hero__eyebrow,
.category-hero__eyebrow,
.search-hero__eyebrow {
	display: inline-block;
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	font-weight: 700;
	color: var(--c-navy);
	margin-bottom: var(--space-2);
}

.archive-hero__title,
.category-hero__title,
.search-hero__title,
.page-hero__title,
.page-header__title {
	font-size: var(--fs-900);
	line-height: 1.05;
	margin: 0;
}

.archive-hero__desc,
.category-hero__desc {
	margin-top: var(--space-3);
	max-width: 680px;
	color: var(--c-ink-soft);
	font-size: var(--fs-500);
}

.category-hero__count,
.search-hero__count {
	display: block;
	margin-top: var(--space-3);
	font-size: var(--fs-400);
	color: var(--c-muted);
}

.search-hero__term {
	color: var(--c-navy);
}

.search-hero__form {
	margin-top: var(--space-5);
	max-width: 520px;
}

/* ==========================================================================
   23. Search form
   ========================================================================== */

.rnbc-searchform__row {
	display: flex;
	gap: var(--space-2);
}

.rnbc-searchform__input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0.8rem 1rem;
	border: 1px solid var(--c-border-strong);
	border-radius: var(--radius);
	font-size: var(--fs-400);
	font-family: inherit;
	color: var(--c-ink);
	background: var(--c-bg);
}

.rnbc-searchform__input:focus {
	outline: none;
	border-color: var(--c-navy);
	box-shadow: 0 0 0 3px rgba(16, 42, 67, 0.12);
}

.rnbc-searchform__submit {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	border: 1px solid var(--c-navy);
	border-radius: var(--radius);
	background: var(--c-navy);
	color: #ffffff;
	padding: 0;
}

.rnbc-searchform__submit svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.rnbc-searchform__submit:hover {
	background: var(--c-ink);
	border-color: var(--c-ink);
}

/* ==========================================================================
   24. Empty states and 404
   ========================================================================== */

.rnbc-empty,
.error-404 {
	text-align: center;
	padding-block: var(--space-8);
	max-width: 560px;
	margin-inline: auto;
}

.rnbc-empty__title,
.error-404__title {
	font-size: var(--fs-800);
	margin-bottom: var(--space-3);
}

.rnbc-empty__text,
.error-404__text {
	color: var(--c-ink-soft);
	margin-bottom: var(--space-5);
}

.error-404__code {
	font-family: var(--font-display);
	font-size: 5rem;
	line-height: 1;
	color: var(--c-navy);
	margin-bottom: var(--space-3);
}

.error-404__search {
	max-width: 420px;
	margin: var(--space-5) auto 0;
}

/* ==========================================================================
   25. Comments
   ========================================================================== */

.comments {
	max-width: var(--container-narrow);
	margin: var(--space-9) auto 0;
	padding-inline: var(--space-4);
}

.comments__title {
	font-size: var(--fs-700);
	border-top: 2px solid var(--c-navy);
	padding-top: var(--space-4);
}

.comments__list {
	list-style: none;
}

.comments__list .children {
	list-style: none;
	margin-left: var(--space-5);
}

.comments__list .comment-body {
	padding: var(--space-4) 0;
	border-bottom: 1px solid var(--c-border);
}

.comments__list .comment-author {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	font-size: var(--fs-400);
	margin-bottom: var(--space-2);
}

.comments__list .comment-author .avatar {
	border-radius: 50%;
}

.comments__list .fn {
	font-weight: 700;
	font-style: normal;
	color: var(--c-ink);
}

.comments__list .comment-metadata {
	font-size: var(--fs-300);
	color: var(--c-muted);
}

.comments__closed {
	color: var(--c-muted);
	font-size: var(--fs-400);
}

.comment-respond {
	margin-top: var(--space-6);
}

.comment-respond .comment-reply-title {
	font-size: var(--fs-600);
}

.comment-form {
	display: grid;
	gap: var(--space-4);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 0.8rem 1rem;
	border: 1px solid var(--c-border-strong);
	border-radius: var(--radius);
	font-family: inherit;
	font-size: var(--fs-400);
	background: var(--c-bg);
	color: var(--c-ink);
}

.comment-form input:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--c-navy);
	box-shadow: 0 0 0 3px rgba(16, 42, 67, 0.12);
}

.comment-form .form-submit input {
	display: inline-flex;
	padding: 0.75rem 1.4rem;
	border: 1px solid var(--c-navy);
	border-radius: var(--radius);
	background: var(--c-navy);
	color: #ffffff;
	font-weight: 600;
	font-size: var(--fs-400);
	cursor: pointer;
}

.comment-form .form-submit input:hover {
	background: var(--c-ink);
	border-color: var(--c-ink);
}

/* ==========================================================================
   26. Footer
   ========================================================================== */

.site-footer {
	background: var(--c-bg-soft);
	border-top: 1px solid var(--c-border);
	margin-top: var(--space-9);
	padding-block: var(--space-8) var(--space-6);
}

.site-footer__widgets {
	display: grid;
	gap: var(--space-6);
	margin-bottom: var(--space-7);
	grid-template-columns: 1fr;
}

.site-footer__top {
	display: grid;
	gap: var(--space-6);
	padding-bottom: var(--space-6);
	border-bottom: 1px solid var(--c-border);
}

.site-footer__name {
	font-family: var(--font-display);
	font-size: var(--fs-700);
	font-weight: 700;
	color: var(--c-navy);
	margin: 0 0 var(--space-1);
}

.site-footer__tagline {
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--c-muted);
	font-weight: 600;
	margin: 0;
}

.site-footer__nav ul {
	list-style: none;
	display: grid;
	gap: var(--space-2);
}

.site-footer__nav a {
	color: var(--c-ink-soft);
	font-size: var(--fs-400);
	font-weight: 500;
}

.site-footer__nav a:hover {
	color: var(--c-navy);
}

.site-footer__ad {
	display: flex;
	justify-content: center;
	margin-block: var(--space-6);
}

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-2);
	padding-top: var(--space-5);
}

.site-footer__copy,
.site-footer__byline {
	margin: 0;
	font-size: var(--fs-300);
	color: var(--c-muted);
}

.site-footer__byline {
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-weight: 600;
}

/* ==========================================================================
   27. Social links
   ========================================================================== */

.social-links {
	list-style: none;
	display: flex;
	gap: var(--space-2);
}

.social-links__item {
	display: inline-flex;
}

.social-links__item a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--c-border-strong);
	border-radius: 50%;
	color: var(--c-ink);
	transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.social-links__icon,
.social-links__item svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.social-links__item a:hover {
	background: var(--c-navy);
	border-color: var(--c-navy);
	color: #ffffff;
}

/* ==========================================================================
   28. Back to top
   ========================================================================== */

.rnbc-to-top {
	position: fixed;
	right: var(--space-4);
	bottom: var(--space-4);
	z-index: 90;
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--c-border-strong);
	border-radius: 50%;
	background: var(--c-bg);
	color: var(--c-navy);
	box-shadow: var(--shadow-md);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}

.rnbc-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.rnbc-to-top:hover {
	background: var(--c-navy);
	color: #ffffff;
	border-color: var(--c-navy);
}

/* ==========================================================================
   29. Responsive
   ========================================================================== */

@media (max-width: 900px) {
	.nav-toggle {
		display: inline-flex;
		order: 3;
	}

	.search-toggle {
		order: 2;
	}

	.site-header__brand {
		order: 1;
	}

	.primary-nav {
		order: 4;
		flex-basis: 100%;
		display: none;
	}

	.nav-open .primary-nav {
		display: block;
	}

	.site-header__inner {
		flex-wrap: wrap;
	}

	.primary-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding-block: var(--space-3);
		border-top: 1px solid var(--c-border);
		margin-top: var(--space-3);
	}

	.primary-nav__list > li {
		border-bottom: 1px solid var(--c-border);
	}

	.primary-nav__list a {
		padding: var(--space-3) 0;
	}

	.primary-nav__list a::after {
		display: none;
	}

	/* Mobile submenus expand inline. */
	.primary-nav__list .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: 0;
		padding: 0 0 var(--space-2) var(--space-4);
		display: none;
	}

	.primary-nav__list .menu-item-has-children.is-open > .sub-menu {
		display: block;
	}

	.hero-card__title {
		font-size: var(--fs-800);
	}

	.story-hero__title,
	.archive-hero__title,
	.category-hero__title,
	.search-hero__title,
	.page-hero__title,
	.page-header__title {
		font-size: var(--fs-800);
	}

	/* Swap leaderboard for the mobile banner on small screens. */
	.rnbc-ad--leaderboard {
		display: none;
	}

	.rnbc-ad--mobile-banner {
		display: flex;
	}
}

@media (min-width: 600px) {
	.rnbc-grid--two {
		grid-template-columns: repeat(2, 1fr);
	}

	.rnbc-grid--masonry {
		column-count: 2;
	}

	.newsletter__inner {
		padding-inline: var(--space-7);
	}
}

@media (min-width: 768px) {
	:root {
		--header-height: 80px;
	}

	.rnbc-grid--three {
		grid-template-columns: repeat(2, 1fr);
	}

	.hero-card {
		grid-template-columns: 1fr;
	}
}

@media (min-width: 1000px) {
	.rnbc-container {
		padding-inline: var(--space-6);
	}

	.rnbc-grid--three {
		grid-template-columns: repeat(3, 1fr);
	}

	.rnbc-grid--four {
		grid-template-columns: repeat(4, 1fr);
	}

	.rnbc-grid--masonry {
		column-count: 3;
	}

	.hero-card {
		grid-template-columns: 1.4fr 1fr;
		align-items: center;
		gap: var(--space-7);
	}

	.hero-card__media {
		aspect-ratio: 4 / 3;
		height: 100%;
	}

	/* Layout split: main feed plus sidebar. */
	.rnbc-layout {
		grid-template-columns: minmax(0, 1fr) 320px;
	}

	.site-footer__top {
		grid-template-columns: 1.5fr 1fr auto;
		align-items: start;
	}

	.site-footer__widgets {
		grid-template-columns: repeat(4, 1fr);
	}

	.story-hero,
	.story-body {
		padding-top: var(--space-7);
	}
}

@media (min-width: 1240px) {
	.rnbc-container {
		padding-inline: var(--space-4);
	}
}

/* ==========================================================================
   30. Reduced motion and print
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}

	.rnbc-card:hover .rnbc-card__image,
	.hero-card:hover .hero-card__image {
		transform: none;
	}
}

@media print {
	.site-header,
	.site-footer,
	.rnbc-ad,
	.story-share,
	.rnbc-to-top,
	.related,
	.newsletter,
	.comments {
		display: none !important;
	}

	body {
		color: #000000;
	}

	.story-content a {
		text-decoration: underline;
	}
}
