/* RaisingRX - main stylesheet */

/* ---------- Tokens ---------- */
:root {
	--rx-accent: #0e91a6;
	--rx-accent-ink: #fff;
	--rx-btn: #0a6ea8;
	--rx-bg: #fff;
	--rx-surface: #fff;
	--rx-text: #1c1d21;
	--rx-muted: #6a6e76;
	--rx-border: #e6e7ea;
	--rx-chip: #f0f1f3;
	--rx-bar: #0b0b0c;
	--rx-bar-ink: #fff;
	--rx-shadow: 0 1px 8px rgba(0, 0, 0, .08);
	--rx-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--rx-font-head: 'Saira Semi Condensed', 'Arial Narrow', 'Roboto Condensed', Arial, sans-serif;
	--rx-container: 1200px;
	--rx-gap: 5px; /* one spacing value for everything on the homepage */
	--rx-a4: 210 / 297; /* A4 portrait - only used for the empty placeholder when a post has no featured image */
	color-scheme: light;
}

html[data-theme="dark"] {
	--rx-bg: #111214;
	--rx-surface: #191a1d;
	--rx-text: #e9e9ec;
	--rx-muted: #9b9fa7;
	--rx-border: #2b2d32;
	--rx-chip: #24262a;
	--rx-bar: #000;
	--rx-shadow: 0 1px 8px rgba(0, 0, 0, .5);
	color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.rx-lock { overflow: hidden; }
body {
	margin: 0;
	background: var(--rx-bg);
	color: var(--rx-text);
	font: 400 16px/1.6 var(--rx-font-body);
	-webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--rx-accent); }
h1, h2, h3, h4 { font-family: var(--rx-font-head); line-height: 1.2; margin: 0 0 .5em; }
:focus-visible { outline: 2px solid var(--rx-accent); outline-offset: 2px; }
button { font: inherit; color: inherit; cursor: pointer; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed !important; top: 8px; left: 8px; z-index: 100000; width: auto; height: auto;
	clip: auto; margin: 0; padding: 10px 16px; background: #fff; color: #000; box-shadow: var(--rx-shadow);
}

.rx-container { width: 100%; max-width: var(--rx-container); margin: 0 auto; padding: 0 20px; }
.rx-narrow { max-width: 820px; }
.rx-main { min-height: 50vh; padding-bottom: 48px; }

.rx-icon { display: block; flex: none; }
.rx-iconbtn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; padding: 0; border: 0; background: transparent; border-radius: 50%;
}
.rx-iconbtn:hover { color: var(--rx-accent); }

/* ---------- Header ---------- */
.rx-header { position: relative; z-index: 50; background: var(--rx-surface); box-shadow: var(--rx-shadow); }

.rx-topbar { background: var(--rx-bar); color: var(--rx-bar-ink); font-size: 13px; }
.rx-topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 34px; }
.rx-topnav, .rx-footernav, .rx-nav, .rx-drawer__nav { list-style: none; margin: 0; padding: 0; }
.rx-topnav { display: flex; gap: 22px; }
.rx-topnav a { color: var(--rx-bar-ink); }
.rx-topnav a:hover,
.rx-topnav .current-menu-item > a,
.rx-nav .current-menu-item > a,
.rx-nav .current-menu-ancestor > a { color: var(--rx-accent); }

.rx-social { display: flex; align-items: center; gap: 14px; }
.rx-social__link { display: inline-flex; color: inherit; }
.rx-social--top { color: var(--rx-bar-ink); }
.rx-social--top .rx-icon { width: 14px; height: 14px; }
.rx-social--top .rx-social__link:hover { color: var(--rx-accent); }

.rx-mainbar__inner { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.rx-logo { display: inline-flex; align-items: center; flex: none; }
.rx-logo__img { width: auto; max-height: 52px; }
.rx-logo__text { font: 800 24px/1 var(--rx-font-head); letter-spacing: .2px; }
.rx-logo__dark { display: none; }
html[data-theme="dark"] .rx-logo--has-dark .rx-logo__light { display: none; }
html[data-theme="dark"] .rx-logo--has-dark .rx-logo__dark { display: block; }

.rx-mainnav { flex: 1; min-width: 0; }
.rx-nav { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.rx-nav > li { position: relative; }
.rx-nav a {
	display: block; padding: 8px 0;
	font: 600 15px/1.2 var(--rx-font-head); text-transform: uppercase; letter-spacing: .3px;
}
.rx-nav .sub-menu {
	position: absolute; left: -14px; top: 100%; min-width: 200px; margin: 0; padding: 8px 0; list-style: none;
	background: var(--rx-surface); box-shadow: 0 8px 24px rgba(0, 0, 0, .15); border-top: 2px solid var(--rx-accent);
	opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.rx-nav li:hover > .sub-menu, .rx-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.rx-nav .sub-menu a { padding: 8px 16px; font-size: 14px; }

.rx-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.rx-theme-toggle__sun { display: none; }
html[data-theme="dark"] .rx-theme-toggle__sun { display: block; }
html[data-theme="dark"] .rx-theme-toggle__moon { display: none; }
.rx-menu-toggle { display: none; margin-left: -8px; }

/* ---------- Drawer + search overlay ---------- */
.rx-drawer, .rx-search { position: fixed; inset: 0; z-index: 9999; visibility: hidden; }
.rx-drawer.is-open, .rx-search.is-open { visibility: visible; }

.rx-drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .2s; }
.rx-drawer.is-open .rx-drawer__backdrop { opacity: 1; }
.rx-drawer__panel {
	position: absolute; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); padding: 64px 24px 24px; overflow-y: auto;
	background: var(--rx-surface); transform: translateX(-100%); transition: transform .25s ease;
}
.rx-drawer.is-open .rx-drawer__panel { transform: none; }
.rx-drawer__close { position: absolute; top: 12px; right: 12px; }
.rx-drawer__nav a {
	display: block; padding: 12px 0; border-bottom: 1px solid var(--rx-border);
	font: 600 17px/1.2 var(--rx-font-head); text-transform: uppercase; letter-spacing: .3px;
}
.rx-drawer__nav .sub-menu { list-style: none; margin: 0; padding: 0 0 0 16px; }
.rx-social--drawer { margin-top: 24px; }

.rx-search {
	display: flex; align-items: center; justify-content: center; padding: 24px;
	background: rgba(8, 9, 10, .94); opacity: 0; transition: opacity .2s;
}
.rx-search.is-open { opacity: 1; }
.rx-search__close { position: absolute; top: 18px; right: 18px; color: #fff; width: 48px; height: 48px; }
.rx-search__form { width: min(780px, 100%); }
.rx-search__form input[type="search"] {
	width: 100%; padding: 14px 0; border: 0; border-bottom: 2px solid rgba(255, 255, 255, .4); border-radius: 0;
	background: transparent; color: #fff; font: 600 clamp(26px, 5vw, 44px)/1.2 var(--rx-font-head);
}
.rx-search__form input[type="search"]::placeholder { color: rgba(255, 255, 255, .45); }
.rx-search__form input[type="search"]:focus { outline: none; border-color: var(--rx-accent); }
.rx-search__hint { margin: 14px 0 0; color: rgba(255, 255, 255, .6); font-size: 14px; }

/* ---------- Shared bits ---------- */
.rx-badge {
	display: inline-block; padding: 3px 9px; background: var(--rx-accent); color: var(--rx-accent-ink);
	font: 700 12px/1.4 var(--rx-font-body); text-transform: uppercase; letter-spacing: .3px;
}
a.rx-badge:hover { color: var(--rx-accent-ink); filter: brightness(1.1); }

.rx-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; font-size: 12px; color: var(--rx-muted); }
.rx-meta a:hover { color: var(--rx-accent); }
.rx-meta--light, .rx-meta--light a { color: rgba(255, 255, 255, .9); }
.rx-meta--light a:hover { color: #fff; text-decoration: underline; }
.rx-meta__sep { opacity: .7; }

.rx-btn {
	display: inline-block; padding: 10px 22px; border: 1px solid var(--rx-btn); border-radius: 2px;
	background: var(--rx-btn); color: #fff; font: 600 14px/1.3 var(--rx-font-body); text-align: center; text-transform: none;
}
.rx-btn:hover { color: #fff; filter: brightness(1.12); }
.rx-btn--block { display: block; width: fit-content; max-width: 100%; margin: 12px auto 0; }
.rx-btn--outline { background: transparent; color: var(--rx-accent); border-color: var(--rx-accent); text-transform: uppercase; letter-spacing: .4px; font-size: 13px; padding: 12px 42px; }
.rx-btn--outline:hover { background: var(--rx-accent); color: var(--rx-accent-ink); filter: none; }

.rx-noimg { display: block; width: 100%; height: 100%; min-height: 160px; background: var(--rx-chip); }
.rx-cover .rx-noimg, .rx-card__media .rx-noimg, .rx-toc__thumb .rx-noimg { height: auto; min-height: 0; aspect-ratio: var(--rx-a4); }
.rx-empty { padding: 64px 0; text-align: center; }

.rx-pagehead { padding: 32px 0 20px; }
.rx-pagehead__kind { margin: 0 0 4px; color: var(--rx-accent); font: 700 14px/1.2 var(--rx-font-head); }
.rx-pagehead__title { margin: 0; font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
.rx-pagehead__desc { margin-top: 8px; color: var(--rx-muted); max-width: 70ch; }
.rx-pagehead__author { margin-bottom: 10px; }
.rx-pagehead__author img { border-radius: 50%; }

.navigation.pagination { margin: 36px 0 0; }
.navigation.pagination.is-hidden { display: none; }
.rx-infinite { display: flex; flex-direction: column; align-items: center; gap: 12px; min-height: 56px; margin-top: 28px; }
.rx-infinite__status { font: 600 14px/1 var(--rx-font-head); color: var(--rx-muted); }
.rx-infinite__status:not(:empty)::before {
	content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 10px; vertical-align: -2px;
	border: 2px solid var(--rx-border); border-top-color: var(--rx-accent); border-radius: 50%; animation: rx-spin .7s linear infinite;
}
@keyframes rx-spin { to { transform: rotate(360deg); } }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-numbers {
	min-width: 40px; padding: 8px 14px; border: 1px solid var(--rx-border); text-align: center;
	font: 600 14px/1.2 var(--rx-font-head); background: var(--rx-surface);
}
.page-numbers.current { background: var(--rx-accent); border-color: var(--rx-accent); color: var(--rx-accent-ink); }
a.page-numbers:hover { border-color: var(--rx-accent); color: var(--rx-accent); }

/* ---------- Home: banner + A4 cover grid (single gap everywhere) ---------- */
.rx-home { padding-top: var(--rx-gap); }
.rx-banner { margin: 0 0 var(--rx-gap); }
.rx-banner img { width: 100%; height: auto; }

.rx-cover-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--rx-gap); align-items: start; }
.rx-cover { position: relative; overflow: hidden; background: var(--rx-chip); }
.rx-cover__link { position: relative; display: block; color: #fff; }
.rx-cover__link img { display: block; width: 100%; height: auto; transition: transform .5s ease; }
.rx-cover__link::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .1); transition: background .25s; }
.rx-cover__link:hover img { transform: scale(1.03); }
.rx-cover__link:hover::after { background: rgba(0, 0, 0, .3); }
.rx-cover__title {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 36px 18px 18px;
	background: linear-gradient(to top, rgba(0, 0, 0, .85), rgba(0, 0, 0, 0));
	font: 700 20px/1.2 var(--rx-font-head); text-wrap: balance;
}
.rx-cover--titles-hover .rx-cover__title { opacity: 0; transition: opacity .25s; }
.rx-cover--titles-hover .rx-cover__link:hover .rx-cover__title,
.rx-cover--titles-hover .rx-cover__link:focus-visible .rx-cover__title { opacity: 1; }
.rx-cover--titles-never .rx-cover__title { display: none; }
.rx-cover--noimg .rx-cover__title { opacity: 1; display: flex; align-items: flex-end; top: 0; background: none; color: var(--rx-text); }
.rx-cover--noimg .rx-cover__link { color: var(--rx-text); }

/* Top row: 1 wide item (2 columns, same edges as the grid below) + 1 single-column item */
.rx-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--rx-gap); align-items: stretch; margin-bottom: var(--rx-gap); }
.rx-top__item--main { grid-column: span 2; }
/* The wide item never drives the row height: it fills the height of the A4 item beside it. */
.rx-top__item--main .rx-cover__link { position: absolute; inset: 0; }
.rx-top__item--main .rx-cover__link img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.rx-top--single .rx-top__item--main { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
.rx-top__item .rx-cover__link::after { background: linear-gradient(to top, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, .2) 45%, rgba(0, 0, 0, 0) 70%); }
.rx-top__item .rx-cover__link:hover::after { background: linear-gradient(to top, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .3) 50%, rgba(0, 0, 0, .05) 75%); }
.rx-feature__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 28px; color: #fff; pointer-events: none; }
.rx-feature__body a { pointer-events: auto; }
.rx-feature__title { margin: 12px 0; font-size: 38px; font-weight: 700; text-wrap: balance; }
.rx-feature__title a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.rx-top__item:not(.rx-top__item--main) .rx-feature__title { font-size: 26px; }
.rx-top__item:not(.rx-top__item--main) .rx-feature__body { padding: 20px; }

/* ---------- Archive cards ---------- */
.rx-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px var(--rx-gap); }
.rx-card__media { display: block; overflow: hidden; background: var(--rx-chip); }
.rx-card__media img { width: 100%; height: auto; transition: transform .4s; }
.rx-card__media:hover img { transform: scale(1.03); }
.rx-card__body { padding-top: 14px; }
.rx-card__title { margin: 10px 0 8px; font-size: 22px; font-weight: 700; }
.rx-card__excerpt { margin: 10px 0 0; color: var(--rx-muted); font-size: 15px; }

/* ---------- Single post ---------- */
.rx-single__head { padding-top: 12px; }
.rx-breadcrumbs { margin: 0 0 18px; font-size: 12px; color: var(--rx-muted); }
.rx-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; }
.rx-breadcrumbs li + li::before { content: "»"; margin: 0 9px; opacity: .7; }
.rx-breadcrumbs a:hover { color: var(--rx-accent); }
.rx-breadcrumbs li[aria-current] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; }

.rx-single__labels { display: flex; flex-wrap: wrap; gap: 8px; }
.rx-chip {
	display: inline-block; padding: 2px 9px; border: 1px solid var(--rx-accent); color: var(--rx-accent);
	font: 700 12px/1.5 var(--rx-font-body); text-transform: uppercase; letter-spacing: .3px;
}
.rx-chip:hover { background: var(--rx-accent); color: var(--rx-accent-ink); }
.rx-single__title { margin: 14px 0 16px; max-width: 24ch; font-size: clamp(30px, 4.6vw, 46px); font-weight: 800; letter-spacing: -.2px; text-wrap: balance; }
.rx-meta--single { gap: 6px 10px; margin-bottom: 22px; }
.rx-meta--single .rx-meta__avatar img { width: 30px; height: 30px; border-radius: 50%; }
.rx-meta__author { color: var(--rx-text); font-weight: 700; }
.rx-meta__item { display: inline-flex; align-items: center; gap: 5px; }

.rx-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.rx-single__main { min-width: 0; }

.rx-share__list { display: flex; flex-wrap: wrap; gap: 8px; }
.rx-share__btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; color: #fff;
	font: 600 13px/1 var(--rx-font-body); background: #555;
}
.rx-share__btn:hover { color: #fff; filter: brightness(1.12); }
.rx-share__btn--facebook { background: #1877f2; }
.rx-share__btn--x { background: #14171a; }
.rx-share__btn--pinterest { background: #e60023; }
.rx-share__btn--linkedin { background: #0a66c2; }
.rx-share__btn--tumblr { background: #35465c; }
.rx-share__btn--mail { background: #3a3d42; }
.rx-share--top { margin-bottom: 16px; }
.rx-share--top .rx-share__btn { height: 40px; padding: 0 22px; flex: 0 1 140px; }
.rx-share--top .rx-share__btn--more { flex: none; width: 40px; padding: 0; background: transparent; color: var(--rx-muted); border: 1px solid var(--rx-border); }
.rx-share--top .rx-share__btn--more[hidden] { display: none; }
.rx-share--bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 28px 0; }
.rx-share__label { font: 700 13px/1 var(--rx-font-head); text-transform: uppercase; letter-spacing: .5px; color: var(--rx-muted); }
.rx-share--bottom .rx-share__list { flex: 1; max-width: 360px; flex-wrap: nowrap; gap: 0; }
.rx-share--bottom .rx-share__btn { flex: 1; height: 38px; }

.rx-single__media { margin: 0 0 28px; }
.rx-single__media img { width: 100%; height: auto; }
.rx-single__media figcaption { margin-top: 8px; font-size: 13px; color: var(--rx-muted); }

.rx-content { font-size: 17px; line-height: 1.8; overflow-wrap: break-word; }
.rx-content > * { margin-top: 0; margin-bottom: 1.3em; }
.rx-content h2, .rx-content h3, .rx-content h4 { margin: 1.8em 0 .6em; font-weight: 700; }
.rx-content h2 { font-size: 30px; }
.rx-content h3 { font-size: 24px; }
.rx-content a { color: var(--rx-accent); text-decoration: underline; text-underline-offset: 3px; }
.rx-content blockquote {
	margin-left: 0; margin-right: 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--rx-accent);
	font-size: 1.1em; color: var(--rx-muted);
}
.rx-content img { height: auto; }
.rx-content figure { margin-left: 0; margin-right: 0; }
.rx-content figcaption { font-size: 13px; color: var(--rx-muted); margin-top: 6px; }
.rx-content .alignleft { float: left; margin: .3em 1.4em 1em 0; }
.rx-content .alignright { float: right; margin: .3em 0 1em 1.4em; }
.rx-content .aligncenter { margin-left: auto; margin-right: auto; }
.rx-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rx-content th, .rx-content td { padding: 8px 10px; border: 1px solid var(--rx-border); }
.rx-content::after { content: ""; display: block; clear: both; }
.rx-pagelinks { display: flex; gap: 8px; margin-top: 1.5em; }

.rx-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.rx-tags a { padding: 6px 12px; background: var(--rx-chip); color: var(--rx-muted); font-size: 13px; }
.rx-tags a:hover { background: var(--rx-accent); color: var(--rx-accent-ink); }

.rx-author { display: flex; gap: 22px; align-items: center; padding: 22px 0; border-top: 1px solid var(--rx-border); }
.rx-author__avatar img { width: 96px; height: 96px; border-radius: 50%; }
.rx-author__name { margin: 0 0 4px; font-size: 20px; font-weight: 700; }
.rx-author__bio { margin: 0; color: var(--rx-muted); font-size: 15px; }

.rx-comments { margin-top: 12px; }
.rx-comments__title { font-size: 22px; margin-bottom: 18px; }
.rx-comment-list, .rx-comment-list ol { list-style: none; margin: 0; padding: 0; }
.rx-comment-list .children { margin-left: 32px; }
.rx-comment-list .comment-body { position: relative; padding: 16px 0 16px 64px; border-bottom: 1px solid var(--rx-border); font-size: 15px; }
.rx-comment-list .avatar { position: absolute; left: 0; top: 16px; border-radius: 50%; }
.rx-comment-list .comment-meta { font-size: 12px; color: var(--rx-muted); margin-bottom: 6px; }
.rx-comment-list .fn { font-weight: 700; font-style: normal; color: var(--rx-text); }
.rx-comment-list .reply a { font-size: 12px; font-weight: 700; color: var(--rx-accent); }
.rx-comments__action { display: flex; justify-content: center; margin: 24px 0; }
.rx-comments__form { max-width: 640px; margin: 0 auto; }
.comment-respond .comment-reply-title { font-size: 22px; }
.comment-form label { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 600; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form textarea,
.search-form .search-field {
	width: 100%; padding: 10px 12px; border: 1px solid var(--rx-border); background: var(--rx-surface); color: var(--rx-text); font: inherit; border-radius: 2px;
}
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: baseline; }
.comment-form-cookies-consent label { display: inline; font-weight: 400; }
.comment-form .submit { padding: 10px 24px; border: 0; background: var(--rx-btn); color: #fff; font-weight: 600; border-radius: 2px; }

.search-form { display: flex; gap: 8px; justify-content: center; max-width: 480px; margin: 20px auto; }
.search-form label { flex: 1; }
.search-form .search-submit { padding: 10px 18px; border: 0; background: var(--rx-btn); color: #fff; border-radius: 2px; }

/* ---------- Sidebar ---------- */
.rx-sidebar { min-width: 0; }
.widget { margin-bottom: 28px; }
.widget-title, .rx-section-title { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; color: var(--rx-accent); font: 700 17px/1.2 var(--rx-font-head); }
.widget-title::after, .rx-section-title::after { content: ""; flex: 1; height: 1px; background: var(--rx-border); }
.rx-section-title { font-size: 22px; margin-bottom: 20px; }
.widget img { width: 100%; }
.widget ul { margin: 0; padding-left: 18px; }
.rx-issue__embed { aspect-ratio: 286 / 520; background: #1a1b1e; }
.rx-issue__embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.rx-issue__cover img { width: 100%; height: auto; }

/* ---------- Issues (Hejmar) ---------- */
.rx-issue-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px var(--rx-gap); }
.rx-issue-card__link { display: block; }
.rx-issue-card__cover { display: block; overflow: hidden; background: var(--rx-chip); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.rx-issue-card__cover img { width: 100%; height: auto; transition: transform .4s; }
.rx-issue-card__link:hover .rx-issue-card__cover img { transform: scale(1.03); }
.rx-issue-card__title { display: block; margin-top: 14px; font: 700 18px/1.25 var(--rx-font-head); }
.rx-issue-card__date { display: block; margin-top: 2px; font-size: 12px; color: var(--rx-muted); }

.rx-hejmar__top { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 40px; margin-top: 20px; align-items: start; }
.rx-hejmar__top--nocover { grid-template-columns: minmax(0, 1fr); }
.rx-hejmar__cover { margin: 0; }
.rx-hejmar__cover img { width: 100%; height: auto; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }

.rx-toc { margin-top: 48px; }
.rx-toc__list { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.rx-toc__item {
	counter-increment: toc; display: grid; grid-template-columns: 40px 72px minmax(0, 1fr); gap: 18px; align-items: center;
	padding: 14px 0; border-bottom: 1px solid var(--rx-border);
}
.rx-toc__item::before { content: counter(toc, decimal-leading-zero); font: 700 22px/1 var(--rx-font-head); color: var(--rx-muted); }
.rx-toc__thumb { display: block; overflow: hidden; background: var(--rx-chip); }
.rx-toc__thumb img { width: 100%; height: auto; }
.rx-toc__title { margin: 6px 0 4px; font-size: 22px; font-weight: 700; }
.rx-toc__title a:hover { color: var(--rx-accent); }

.rx-hejmar__viewer { margin-top: 36px; height: min(88vh, 900px); min-height: 520px; background: #1a1b1e; }
.rx-hejmar__viewer iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Authors list ---------- */
.rx-author-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 24px; }
.rx-author-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 12px; border: 1px solid var(--rx-border); text-align: center; background: var(--rx-surface); }
.rx-author-card:hover { border-color: var(--rx-accent); }
.rx-author-card__avatar img { width: 96px; height: 96px; border-radius: 50%; }
.rx-author-card__name { font: 700 18px/1.2 var(--rx-font-head); }
.rx-author-card__count { font-size: 13px; color: var(--rx-muted); }

/* ---------- Footer ---------- */
.rx-footer { margin-top: 24px; background: var(--rx-bar); color: #fff; text-align: center; }
.rx-footer__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; padding-top: 44px; padding-bottom: 36px; }
.rx-footer__name, .rx-footer__copy { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .6); }
.rx-social--footer { gap: 12px; }
.rx-social--footer .rx-social__link {
	width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 50%;
	background: rgba(255, 255, 255, .1); color: #fff;
}
.rx-social--footer .rx-social__link:hover { background: var(--rx-accent); color: var(--rx-accent-ink); }
.rx-footernav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.rx-footernav a { color: #fff; font: 700 14px/1.2 var(--rx-font-head); text-transform: uppercase; letter-spacing: .4px; }
.rx-footernav a:hover { color: var(--rx-accent); }

/* ---------- Read more (long editor letters) ---------- */
.rx-readmore__btn {
	display: none; align-items: center; gap: 8px; margin-top: 14px; padding: 0; border: 0; background: none;
	color: var(--rx-accent); font: 700 14px/1.2 var(--rx-font-head); text-transform: uppercase; letter-spacing: .4px; cursor: pointer;
}
.rx-js .rx-readmore__btn { display: inline-flex; }
.rx-readmore__btn::after { content: "▾"; font-size: 12px; transition: transform .2s; }
.rx-readmore__btn[aria-expanded="true"]::after { transform: rotate(180deg); }
.rx-readmore__btn:hover { text-decoration: underline; text-underline-offset: 4px; }
.rx-ellipsis { display: none; }
.rx-js .rx-readmore.is-collapsed .rx-ellipsis { display: inline; }
.rx-js .rx-readmore.is-collapsed .rx-more { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.rx-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.rx-sidebar { max-width: 420px; margin: 0 auto; width: 100%; }
	.rx-issue-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	.rx-topbar { display: none; }
	.rx-mainnav { display: none; }
	.rx-menu-toggle { display: inline-flex; }
	.rx-mainbar__inner { gap: 12px; min-height: 58px; }
	.rx-logo { margin-right: auto; }
	.rx-logo__img { max-height: 42px; }
	.rx-actions { margin-left: 0; }
	.rx-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rx-feature__title { font-size: 24px; }
	.rx-feature__body { padding: 16px; }
	.rx-top__item:not(.rx-top__item--main) .rx-feature__title { font-size: 18px; }
	.rx-top__item:not(.rx-top__item--main) .rx-feature__body { padding: 12px; }
	.rx-hejmar__top { grid-template-columns: minmax(0, 1fr); }
	.rx-hejmar__cover { max-width: 340px; }
}

@media (max-width: 600px) {
	.rx-container { padding: 0 14px; }
	.rx-cover-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rx-top { grid-template-columns: minmax(0, 1fr); }
	.rx-top__item--main, .rx-top--single .rx-top__item--main { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
	.rx-top__item:not(.rx-top__item--main) .rx-feature__title { font-size: 24px; }
	.rx-top__item:not(.rx-top__item--main) .rx-feature__body { padding: 16px; }
	.rx-toc__item { grid-template-columns: 28px 56px minmax(0, 1fr); gap: 12px; }
	.rx-toc__title { font-size: 18px; }
	.rx-cover__title { font-size: 15px; padding: 24px 10px 10px; }
	.rx-card-grid { grid-template-columns: minmax(0, 1fr); }
	.rx-issue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
	.rx-share--top .rx-share__btn { flex: 1 1 0; padding: 0 8px; }
	.rx-share--top .rx-share__btn span { display: none; }
	.rx-share--bottom { flex-direction: column; align-items: stretch; }
	.rx-share--bottom .rx-share__list { max-width: none; }
	.rx-content { font-size: 16px; }
	.rx-author { align-items: flex-start; }
	.rx-author__avatar img { width: 64px; height: 64px; }
}

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