/*
 * Recovery News — shared layout approximating the original news-magazine design.
 * Original CSS written for this rebuild; values (widths, colours, type) taken from the archived
 * pages' inline theme settings and the Operator's reference screenshots. No tagDiv code is used.
 * Per-site values live in css/site-<key>.css as custom properties.
 */
:root {
	--rn-accent: #4db2ec;
	--rn-accent-contrast: #fff;
	--rn-text: #111;
	--rn-muted: #767676;
	--rn-line: #ededed;
	--rn-topbar-bg: #1a1a1a;
	--rn-header-bg: #111 none center / cover no-repeat;
	--rn-footer-bg: #111;
	--rn-footer-image: none;
	--rn-width: 1068px;
	--rn-font-head: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	--rn-font-body: 'Open Sans', Verdana, Arial, sans-serif;
}

body {
	background: #fff;
	color: var(--rn-text);
	font-family: var(--rn-font-body);
	font-size: 15px;
	line-height: 1.74;
}
h1, h2, h3, h4, h5, h6, .main-title, .entry-title, .widget-title, .main-navigation a {
	font-family: var(--rn-font-head);
}
a { color: var(--rn-accent); }
a:hover { color: var(--rn-text); }
.grid-container { max-width: var(--rn-width); }

/* ---------------------------------------------------------------- top bar */
.rn-top-bar {
	background: var(--rn-topbar-bg);
	border-bottom: 2px solid var(--rn-accent);
	color: #fff;
	font-family: var(--rn-font-head);
	font-size: 11px;
	line-height: 30px;
}
.rn-top-bar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 auto;
	padding: 0 20px;
}
.rn-top-bar__left, .rn-top-bar__right { display: flex; align-items: center; gap: 18px; min-width: 0; }
.rn-top-bar a { color: #fff; text-decoration: none; }
.rn-top-bar a:hover { color: var(--rn-accent); }
.rn-wordmark { font-size: 15px; font-weight: 500; letter-spacing: .2px; white-space: nowrap; }
.rn-wordmark .specific-color { color: var(--rn-accent); }
.rn-top-menu ul { display: flex; flex-wrap: wrap; gap: 0 16px; margin: 0; padding: 0; list-style: none; }
.rn-top-menu li { position: relative; }
.rn-top-menu .sub-menu {
	display: none; position: absolute; top: 100%; left: -10px; z-index: 50; min-width: 200px;
	flex-direction: column; background: var(--rn-topbar-bg); padding: 6px 10px;
}
.rn-top-menu li:hover > .sub-menu, .rn-top-menu li:focus-within > .sub-menu { display: flex; }
.rn-date { color: #ccc; white-space: nowrap; }
.rn-social { font-weight: 500; }

/* ---------------------------------------------------------------- header */
.site-header {
	background: var(--rn-header-bg);
	color: #fff;
}
.site-header .inside-header {
	padding: 28px 20px;
	min-height: 130px;
	align-items: center;
}
.site-header .header-image { max-height: 90px; width: auto; }
.site-header .main-title a, .site-header .main-title a:hover { color: #fff; }
.site-header .site-description { color: #ccc; }

/* ---------------------------------------------------------------- main menu */
.main-navigation, .main-navigation ul ul {
	background: #fff;
}
.main-navigation {
	border-bottom: 1px solid var(--rn-line);
	box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}
.main-navigation .main-nav ul li a {
	color: #000;
	font-size: 14px;
	font-weight: 700;
	line-height: 48px;
	padding: 0 14px;
	text-transform: uppercase;
}
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current-menu-ancestor > a,
.main-navigation .main-nav ul li.current-post-ancestor > a {
	color: #000;
	box-shadow: inset 0 -3px 0 var(--rn-accent);
	background: transparent;
}
.main-navigation ul ul {
	box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
	border-top: 2px solid var(--rn-accent);
}
.main-navigation .main-nav ul ul li a {
	font-size: 12px; font-weight: 500; line-height: 1.5; padding: 9px 18px; text-transform: none;
}
.main-navigation .main-nav ul ul li:hover > a { color: var(--rn-accent); box-shadow: none; }
.menu-toggle, .menu-toggle:hover, .menu-toggle:focus { color: #000; background: #fff; }

/* ---------------------------------------------------------------- content area */
.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.one-container .container,
.separate-containers .paging-navigation,
.inside-page-header { background: #fff; }
.site-content { padding-top: 26px; }
.separate-containers .inside-article { padding: 0; }
.separate-containers .site-main > * { margin-bottom: 30px; }

.rn-cats { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.rn-cat {
	background: var(--rn-accent);
	color: var(--rn-accent-contrast);
	font-family: var(--rn-font-head);
	font-size: 10px;
	font-weight: 500;
	line-height: 1;
	padding: 4px 7px 5px;
	text-decoration: none;
	text-transform: uppercase;
}
.rn-cat:hover { background: #222; color: #fff; }

.entry-title { font-weight: 500; letter-spacing: -.2px; }
.single .entry-title, .page .entry-title { font-size: 41px; line-height: 1.22; margin-bottom: 10px; }
.entry-meta { color: var(--rn-muted); font-family: var(--rn-font-head); font-size: 11px; }
.entry-meta a { color: #000; font-weight: 700; }
.single .entry-header { margin-bottom: 20px; }
.single .featured-image, .single .page-header-image-single { margin-bottom: 24px; }
.entry-content { font-size: 15px; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-weight: 700; margin-top: 1.6em; }
.entry-content img { height: auto; }
.entry-content blockquote { border-left: 3px solid var(--rn-accent); font-style: italic; }
footer.entry-meta { border-top: 1px solid var(--rn-line); padding-top: 14px; }

/* Missing-image placeholder, as delivered by the importer */
img.recovery-missing { display: block; width: 100%; max-width: 696px; height: auto; margin: 1em 0; }

/* ---------------------------------------------------------------- post grid (home + archives) */
.blog .site-main, .archive .site-main, .search .site-main {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 26px;
}
.blog .site-main > :not(article),
.archive .site-main > :not(article),
.search .site-main > :not(article) { grid-column: 1 / -1; }
.blog.home .site-main > article:first-of-type { grid-column: 1 / -1; }
.blog .inside-article, .archive .inside-article, .search .inside-article {
	display: flex; flex-direction: column;
}
.blog .post-image, .archive .post-image, .search .post-image {
	order: -1; margin: 0 0 12px !important; overflow: hidden;
}
.blog .post-image img, .archive .post-image img, .search .post-image img {
	aspect-ratio: 696 / 392; object-fit: cover; width: 100%; transition: transform .3s;
}
.blog .post-image a:hover img, .archive .post-image a:hover img { transform: scale(1.03); }
.blog .entry-title, .archive .entry-title, .search .entry-title { font-size: 19px; line-height: 1.32; margin-bottom: 6px; }
.blog.home .site-main > article:first-of-type .entry-title { font-size: 30px; }
.blog .entry-title a, .archive .entry-title a, .search .entry-title a { color: #000; }
.blog .entry-title a:hover, .archive .entry-title a:hover { color: var(--rn-accent); }
.blog .entry-summary, .archive .entry-summary, .search .entry-summary { color: var(--rn-muted); font-size: 13px; line-height: 1.6; margin-top: 6px; }
.blog footer.entry-meta, .archive footer.entry-meta, .search footer.entry-meta { display: none; }

.archive .page-header, .search .page-header { padding: 0 0 6px; border-bottom: 2px solid var(--rn-accent); margin-bottom: 26px; }
.archive .page-title { font-size: 28px; font-weight: 500; }
.taxonomy-description { color: var(--rn-muted); font-size: 13px; }

.paging-navigation .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.paging-navigation .page-numbers {
	border: 1px solid var(--rn-line); color: #000; font-family: var(--rn-font-head); font-size: 13px;
	padding: 5px 12px; text-decoration: none;
}
.paging-navigation .page-numbers.current, .paging-navigation .page-numbers:hover {
	background: var(--rn-accent); border-color: var(--rn-accent); color: #fff;
}

/* ---------------------------------------------------------------- sidebar */
.sidebar .widget { background: #fff; padding: 0; margin-bottom: 34px; font-size: 13px; }
.sidebar .widget-title, .rn-footer__title {
	border-bottom: 2px solid var(--rn-accent);
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	margin-bottom: 16px;
	text-transform: uppercase;
}
/* label look: text sits in an accent tab on a full-width accent rule (span added by functions.php) */
.sidebar .widget-title > span {
	display: inline-block;
	background: var(--rn-accent);
	color: var(--rn-accent-contrast);
	padding: 8px 12px 7px;
}
.sidebar .widget ul { margin: 0; }
.sidebar .widget ul li { border-bottom: 1px dashed var(--rn-line); padding: 7px 0; margin: 0; }
.sidebar .widget ul li a { color: #000; font-family: var(--rn-font-head); font-weight: 500; }
.sidebar .widget ul li a:hover { color: var(--rn-accent); }
.sidebar .widget .post-date { display: block; color: var(--rn-muted); font-size: 11px; }
.sidebar .search-field { border-color: var(--rn-line); }
.sidebar .search-submit, button, input[type="submit"] { background: var(--rn-accent); color: #fff; }

/* ---------------------------------------------------------------- footer */
.rn-footer {
	background: var(--rn-footer-bg) var(--rn-footer-image) center / cover no-repeat;
	color: #ccc;
	font-size: 13px;
	line-height: 1.6;
	padding: 46px 0 26px;
}
.rn-footer__inner {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 36px;
	margin: 0 auto;
	padding: 0 20px;
}
.rn-footer__logo { display: block; max-width: 270px; height: auto; margin-bottom: 14px; }
.rn-footer a { color: #fff; text-decoration: none; }
.rn-footer a:hover { color: var(--rn-accent); }
.rn-footer__title { color: #fff; border-bottom-color: var(--rn-accent); padding-bottom: 10px; }
.rn-footer__posts, .rn-footer__links { list-style: none; margin: 0; padding: 0; }
.rn-footer__posts li { border-bottom: 1px solid rgba(255, 255, 255, .08); padding: 8px 0; margin: 0; }
.rn-footer__posts li span { display: block; color: #888; font-size: 11px; }
.rn-footer__links li { margin: 0 0 6px; }
.site-info { background: #0d0d0d; color: #999; font-size: 12px; }
.site-info a { color: #ccc; }

.rn-to-top {
	position: fixed; right: 18px; bottom: 18px; z-index: 99;
	width: 40px; height: 40px; border-radius: 50%;
	background: var(--rn-accent); color: #fff; text-align: center; line-height: 40px; font-size: 18px;
	text-decoration: none; box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.rn-to-top:hover { background: #222; color: #fff; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 768px) {
	.rn-top-bar__inner { flex-direction: column; align-items: flex-start; gap: 0; padding: 4px 16px; }
	.rn-top-menu { display: none; }
	.site-header .inside-header { padding: 18px 16px; min-height: 0; }
	.site-header .header-image { max-height: 64px; }
	.blog .site-main, .archive .site-main, .search .site-main { grid-template-columns: 1fr; }
	.single .entry-title, .page .entry-title { font-size: 28px; }
	.rn-footer__inner { grid-template-columns: 1fr; gap: 26px; padding: 0 16px; }
}

/* ---------------------------------------------------------------- fixes */
/* GeneratePress adds clearfix ::before/::after to .grid-container; in grid/flex they become items. */
.rn-top-bar__inner::before, .rn-top-bar__inner::after,
.rn-footer__inner::before, .rn-footer__inner::after { content: none; display: none; }

/* Single posts: title, then featured image, then content (as on the originals). */
.single .inside-article { display: flex; flex-direction: column; }
.single .inside-article > .entry-header { order: 1; }
.single .inside-article > .featured-image,
.single .inside-article > .page-header-image-single { order: 2; }
.single .inside-article > .entry-content { order: 3; }
.single .inside-article > footer.entry-meta { order: 4; }
.single .featured-image img { width: auto; max-width: 100%; }
.featured-image:not(:has(img)), .page-header-image-single:not(:has(img)) { display: none; }

/* GeneratePress's generated CSS colours the mobile toggle white; our menu bar is white. */
.main-navigation .menu-toggle, .main-navigation .menu-toggle:hover, .main-navigation .menu-toggle:focus,
.main-navigation .menu-bar-item > a, .main-navigation .mobile-bar-items a {
	color: #000; background: #fff; font-family: var(--rn-font-head); font-weight: 700; text-transform: uppercase;
}
.main-navigation.toggled .main-nav ul li a { line-height: 44px; border-bottom: 1px solid var(--rn-line); }

@media (max-width: 768px) {
	.site-content { padding: 16px 16px 0; }
	.blog.home .site-main > article:first-of-type .entry-title { font-size: 24px; }
	.blog .entry-title, .archive .entry-title, .search .entry-title { font-size: 18px; }
	.rn-to-top { width: 36px; height: 36px; line-height: 36px; }
}

/* ---------------------------------------------------------------- Stay Connected (sidebar) */
.rn-social-block { list-style: none; margin: 0; padding: 0; }
.sidebar .widget .rn-social-block li { border: 0; padding: 0; margin: 0 0 6px; }
.rn-social-block a {
	display: flex; align-items: center; gap: 10px;
	color: #fff !important; font-family: var(--rn-font-head); font-size: 13px; font-weight: 500;
	padding: 0 12px 0 0; text-decoration: none; line-height: 38px;
}
.rn-social-block__icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; background: rgba(0, 0, 0, .15); }
.rn-social-block__icon svg { width: 18px; height: 18px; fill: #fff; }
.rn-social-block__name { flex: 1; }
.rn-social-block__action { font-size: 11px; text-transform: uppercase; opacity: .9; }
.rn-social-block__item--facebook a { background: #516eab; }
.rn-social-block__item--twitter a, .rn-social-block__item--x a { background: #000; }
.rn-social-block a:hover { filter: brightness(1.12); }

/* ---------------------------------------------------------------- header banner (optional, per site) */
.rn-header-banner { margin-left: auto; max-width: 728px; flex: 0 1 728px; line-height: 0; }
.rn-header-banner__img { display: block; width: 100%; height: auto; }
@media (max-width: 1024px) { .rn-header-banner { flex-basis: 60%; } }
@media (max-width: 768px) {
	.site-header .inside-header { flex-wrap: wrap; justify-content: center; }
	.rn-header-banner { margin: 14px auto 0; flex-basis: 100%; }
}

/* ---------------------------------------------------------------- header proportions (matched to the Operator's screenshots) */
/* Original: compact header, logo and banner side by side and vertically centred; banner centred in
   the space to the right of the logo, roughly 645px wide inside the 1068px container. */
.site-header .inside-header { padding: 14px 20px; min-height: 0; align-items: center; flex-wrap: nowrap; }
.site-header .site-logo { flex: 0 0 auto; margin: 0; }
.site-header .header-image { height: var(--rn-logo-h, auto); max-height: var(--rn-logo-max, 90px); width: auto; }
.rn-header-banner { flex: 0 1 645px; margin: 0 auto; }

/* Top-bar dropdown arrows, as on the original ("Blockchain / Crypto 101 ⌄") */
.rn-top-menu .menu-item-has-children > a::after {
	content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 0 3px 7px;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
}

/* Facebook "f" beside the menu search icon */
.main-navigation .main-nav ul li.rn-nav-social a { display: inline-flex; align-items: center; height: 48px; padding: 0 10px; box-shadow: none; }
.rn-nav-social svg { width: 17px; height: 17px; fill: #000; }
.rn-nav-social a:hover svg { fill: var(--rn-accent); }
@media (min-width: 769px) {   /* desktop only: on phones GeneratePress collapses the menu behind MENU */
	.main-navigation .main-nav > ul { display: flex; flex-wrap: wrap; }
	.main-navigation .main-nav > ul > li.search-item { margin-left: auto; }
}

/* Post pages: dark category labels (archive cards keep the accent colour) */
.single .rn-cat { background: #222; }
.single .rn-cat:hover { background: var(--rn-accent); }

@media (max-width: 768px) {
	.site-header .inside-header { flex-wrap: wrap; justify-content: center; }
	.site-header .header-image { height: auto; max-height: var(--rn-logo-max-mobile, 64px); }
}
/* This GeneratePress build floats the header contents; make it a flex row (clearfix pseudo-elements off). */
.site-header .inside-header { display: flex; }
.site-header .inside-header::before, .site-header .inside-header::after { content: none; display: none; }
.site-header .site-logo { float: none; }

/* Photo credit line under articles with Pixabay images */
.rn-image-credit { color: var(--rn-muted); font-size: 12px; margin-top: 1.5em; }
.rn-image-credit a { color: var(--rn-muted); }

/* Menu search icon: no dark hover/active box from GeneratePress; match the accent-underline style */
.main-navigation .main-nav ul li.search-item a,
.main-navigation .main-nav ul li.search-item:hover > a,
.main-navigation .main-nav ul li.search-item.active > a,
.main-navigation .main-nav ul li.search-item.current-menu-item > a { background: transparent; color: #000; box-shadow: none; }
.main-navigation .main-nav ul li.search-item a:hover { color: var(--rn-accent); }
.main-navigation .main-nav ul li.rn-nav-social + li.rn-nav-social a { padding-left: 4px; }
.rn-nav-social svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- home: Monthly Roundup feature */
.rn-roundup-feature { grid-column: 1 / -1; margin-bottom: 30px; border: 1px solid var(--rn-line); border-top: 3px solid var(--rn-accent); }
.rn-roundup-feature__label { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; border-bottom: 1px solid var(--rn-line); font-family: var(--rn-font-head); font-size: 12px; text-transform: uppercase; }
.rn-roundup-feature__label span { background: var(--rn-accent); color: #fff; font-weight: 700; padding: 3px 8px; }
.rn-roundup-feature__label a { color: #000; font-weight: 500; text-decoration: none; }
.rn-roundup-feature__label a:hover { color: var(--rn-accent); }
.rn-roundup-feature__link { display: flex; gap: 16px; padding: 14px; color: inherit; text-decoration: none; }
.rn-roundup-feature__img { flex: 0 0 218px; width: 218px; height: 150px; object-fit: cover; }
.rn-roundup-feature__text { display: flex; flex-direction: column; gap: 6px; }
.rn-roundup-feature__title { font-family: var(--rn-font-head); font-size: 20px; font-weight: 500; line-height: 1.3; color: #000; }
.rn-roundup-feature__link:hover .rn-roundup-feature__title { color: var(--rn-accent); }
.rn-roundup-feature__excerpt { color: var(--rn-muted); font-size: 13px; line-height: 1.6; }
.rn-roundup-feature__date { color: var(--rn-muted); font-family: var(--rn-font-head); font-size: 11px; }
@media (max-width: 768px) {
	.rn-roundup-feature__link { flex-direction: column; }
	.rn-roundup-feature__img { width: 100%; height: auto; aspect-ratio: 696 / 392; flex-basis: auto; }
}

/* ---------------------------------------------------------------- dropdown fix (main menu)
   GeneratePress's generated CSS colours sub-menu links white and gives open/hovered parents a dark
   #3f3f3f box; our menu bar and dropdowns are white, so the links were invisible. */
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li:focus-within > a,
.main-navigation .main-nav ul li.sfHover > a,
.main-navigation .main-nav ul li[class*="current-menu-"] > a,
.main-navigation .main-nav ul li.current-post-ancestor > a {
	background-color: transparent;
	color: #000;
}
.main-navigation .main-nav ul ul li a,
.main-navigation .main-nav ul ul li[class*="current-menu-"] > a {
	background-color: #fff;
	color: #111;
	box-shadow: none;
}
.main-navigation .main-nav ul ul li:hover > a,
.main-navigation .main-nav ul ul li:focus-within > a,
.main-navigation .main-nav ul ul li.sfHover > a {
	background-color: #f5f5f5;
	color: var(--rn-accent);
}
.main-navigation .main-nav ul ul li + li a { border-top: 1px solid var(--rn-line); }
.main-navigation .main-nav ul li.menu-item-has-children > a .dropdown-menu-toggle { color: inherit; }
/* phone menu: sub-items indented, dark on white */
.main-navigation.toggled .main-nav ul ul li a { padding-left: 32px; background: #fafafa; color: #111; }

/* ---------------------------------------------------------------- market ticker strip (TradingView) */
.rn-ticker { background: #fff; border-bottom: 1px solid var(--rn-line); min-height: 46px; overflow: hidden; }
.rn-ticker tv-ticker-tape { display: block; width: 100%; }
.rn-ticker__placeholder { display: block; color: var(--rn-muted); font-family: var(--rn-font-head); font-size: 12px; line-height: 46px; padding: 0 20px; }
