/*
Theme Name: Virtual Telescope Horizon
Theme URI: https://www.virtualtelescope.eu/
Author: Virtual Telescope Project
Description: Dark, editorial, bilingual-ready theme for The Virtual Telescope Project. Test on staging before activating on the live site.
Version: 0.9.152
Requires at least: 5.8
Requires PHP: 7.4
Text Domain: vt-horizon
Domain Path: /languages
*/

/* ==========================================================================
   1. Base
   ========================================================================== */
:root {
	--bg: #030b19;
	--panel: #0b1a30;
	--line: #294462;
	--line-soft: #426181;
	--cyan: #00d5f4;
	--blue: #0762cc;
	--text: #f4f8ff;
	--muted: #c5d4e5;
	--shell: min(1480px, 94%);
}

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

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

/* Dark scroll bar that matches the site (Chrome, Edge, Firefox, Safari 18.2+). */
html { background: #01040a; color-scheme: dark; scrollbar-color: #2f6fb8 #061325; scrollbar-width: auto; }
/* Embedded pages (players, widgets) keep a transparent background instead of an opaque white one. */
iframe { color-scheme: light; }


body {
	/* Frame: on wide screens the whole site is a 1640px column with a side border running the full height. */
	max-width: 1640px;
	min-height: 100vh;
	margin: 0 auto;
	border-inline: 1px solid #203b59;
	box-shadow: 0 0 60px rgba(20, 60, 120, .18);
	background: var(--bg);
	color: var(--text);
	font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--cyan); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
img { max-width: 100%; height: auto; }

.wrap { width: var(--shell); margin-inline: auto; }

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.screen-reader-text:focus {
	top: 10px;
	left: 10px;
	z-index: 100000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 10px 16px;
	clip-path: none;
	background: #fff;
	color: #000;
}

.cta {
	display: inline-block;
	padding: 10px 22px;
	border: 1px solid #54bfff;
	border-radius: 9px;
	background: linear-gradient(#05b8f1, #0751d6);
	font-weight: 750;
	white-space: nowrap;
}
.cta:hover { color: var(--text); filter: brightness(1.1); }
/* Donate shortcut next to the Menu button: phones only (the menu has its own Donate item on desktop). */
.nav-donate { display: none; }
.cta.secondary { background: #071426; border-color: #b4c7df; }

/* ==========================================================================
   2. Masthead (banner, logo, utilities)
   ========================================================================== */
.masthead {
	/*
	 * Banner: assets/m31-banner.jpg is a panoramic crop of the original M31 photograph
	 * (whole galaxy visible). It keeps a fixed height and is shifted so that the galaxy sits
	 * at ~60% of the viewport width, away from the logo. --galaxy-x is the galaxy centre in
	 * pixels from the left edge of the image at this height: recompute it if you change
	 * --masthead-h or replace the image (galaxy-x = galaxy centre fraction x image display width).
	 */
	--masthead-h: 196px;
	--galaxy-x: 1742px;
	--galaxy-pos: min(62vw, 1017px);
	position: relative;
	/* On very wide screens the banner and the menu bar stay slightly wider than the content (1480px). */
	max-width: 1640px;
	margin-inline: auto;
	height: var(--masthead-h);
	overflow: hidden;
	background: #050e20;
	border-bottom: 1px solid #203b59;
}
.masthead-photo {
	position: absolute;
	top: 0;
	left: min(0px, calc(var(--galaxy-pos) - var(--galaxy-x)));
	width: auto;
	height: 100%;
	max-width: none;
	filter: brightness(.85);
	-webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 200px), transparent);
	mask-image: linear-gradient(90deg, #000 calc(100% - 200px), transparent);
}
.masthead-inner { position: relative; height: 100%; }

.brand {
	position: absolute;
	top: 50%;
	left: 2.5%;
	z-index: 2;
	width: min(51%, 880px, calc((var(--masthead-h) - 26px) * 4.34));
	line-height: 0;
	transform: translateY(-50%);
}
.brand picture,
.brand img { display: block; width: 100%; height: auto; max-width: none; }

.utilities {
	position: absolute;
	top: 50%;
	right: 3%;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: clamp(10px, 1.4vw, 24px);
	padding: 8px 12px;
	border-radius: 8px;
	background: rgba(2, 10, 24, .55);
	font-size: 15px;
	white-space: nowrap;
	transform: translateY(-50%);
}

.language-switch ul {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 5px 11px;
	border: 1px solid #4c6887;
	border-radius: 8px;
	list-style: none;
	text-transform: uppercase;
}
.language-switch .current-lang a,
.language-switch a[aria-current] { color: var(--cyan); font-weight: 700; }

.search-form { margin: 0; }
.search-field {
	width: 110px;
	padding: 7px 9px;
	border: 1px solid #3e5874;
	border-radius: 5px;
	background: #07172b;
	color: var(--text);
	font: inherit;
	font-size: 14px;
}
.search-field::placeholder { color: #8da9c6; }

/* Header search: a magnifier button opens the field (plain visible field when JavaScript is off). */
.header-search-wrap { position: relative; }
.search-toggle { display: none; }
.js .search-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 34px;
	padding: 0;
	border: 1px solid #4c6887;
	border-radius: 8px;
	background: transparent;
	color: var(--text);
	cursor: pointer;
}
.js .search-toggle:hover,
.js .search-toggle[aria-expanded="true"] { border-color: var(--cyan); color: var(--cyan); }
.js .header-search {
	display: none;
	position: absolute;
	top: calc(100% + 12px);
	right: 0;
	z-index: 20;
	padding: 10px;
	border: 1px solid #2a4a6d;
	border-radius: 8px;
	background: #061325;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .55);
}
.js .header-search.open { display: block; }
.js .header-search .search-field { width: 240px; max-width: 70vw; padding: 9px 11px; font-size: 15px; }

/* ==========================================================================
   3. Main navigation
   ========================================================================== */
.nav-wrap { max-width: 1640px; margin-inline: auto; background: #061325; border-bottom: 1px solid #18304c; }
.nav-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 60px;
}

.menu {
	display: flex;
	flex-wrap: wrap;
	gap: 4px clamp(14px, 2.2vw, 34px);
	margin: 0;
	padding: 0;
	list-style: none;
}
.menu li { position: relative; }

/*
 * A dot before every entry (also in sub-menus) makes the separation between items clear.
 * It is attached to the link itself, so it does not depend on the menu markup.
 */
.primary-nav a {
	display: flex;
	align-items: baseline;
	gap: 9px;
	padding: 4px 0;
}
.primary-nav a::before {
	content: "";
	flex: none;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--cyan);
	opacity: .6;
	transform: translateY(-.14em);
	transition: opacity .15s ease;
}
.primary-nav a:hover::before,
.primary-nav a:focus-visible::before,
.primary-nav .current-menu-item > a::before,
.primary-nav .current-menu-ancestor > a::before { opacity: 1; }
@media (min-width: 761px) {
	.menu > li > a { white-space: nowrap; }
}
.menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 30;
	min-width: 180px;
	margin: 0;
	padding: 12px;
	border: 1px solid #34506b;
	background: #0b203a;
	list-style: none;
}
.menu .sub-menu a { padding: 5px 0; gap: 8px; white-space: nowrap; }
.menu .sub-menu a::before { width: 4px; height: 4px; }
.menu .sub-menu .sub-menu { top: -13px; left: 100%; }
.menu li:hover > .sub-menu,
.menu li:focus-within > .sub-menu { display: block; }
.menu .current-menu-item > a,
.menu .current-menu-ancestor > a { color: var(--cyan); }

.menu-toggle {
	display: none;
	padding: 9px;
	border: 1px solid #52718f;
	border-radius: 5px;
	background: transparent;
	color: var(--text);
	font: inherit;
	cursor: pointer;
}

/* ==========================================================================
   4. Layout
   ========================================================================== */
.main-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 18px;
	padding-top: 22px;
}
.main-col { min-width: 0; }

/* Posts and pages: three columns: events/ads (left) | content | latest articles (right), two columns, or content only. */
.main-layout--three {
	grid-template-columns: 300px minmax(0, 1fr) 240px;
	grid-template-areas: "left main right";
	gap: 24px;
}
.main-layout--three > .sidebar { grid-area: left; }
.main-layout--three > .main-col { grid-area: main; justify-self: center; width: 100%; max-width: 880px; }
.main-layout--three > .sidebar-right { grid-area: right; }
.main-layout--one,
.main-layout--home { display: block; }
.main-layout--one > .main-col { max-width: 950px; margin-inline: auto; }
.main-layout--one.main-layout--wide > .main-col { max-width: none; }
.main-layout--wide > .sidebar { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; gap: 14px; margin-top: 26px; }

/* ==========================================================================
   5. Homepage: hero, features, latest
   ========================================================================== */
.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 410px;
	overflow: hidden;
	border: 1px solid #2c4a73;
	border-radius: 14px;
	background: radial-gradient(ellipse at 78% 45%, #193657, #06152a 60%, #020a16);
}
.hero-photo {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}
.hero-photo--default { object-position: 75% 50%; }
.hero-slide { opacity: 0; transition: opacity 1.6s ease; }
.hero-slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }
.hero picture { display: contents; }
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, rgba(1, 7, 19, .1), rgba(1, 8, 22, .075) 42%, rgba(1, 9, 24, .02) 76%, rgba(1, 9, 24, 0));
	pointer-events: none;
}
.hero-content {
	text-shadow: 0 1px 14px rgba(0, 6, 18, .95), 0 0 3px rgba(0, 6, 18, .8), 0 0 28px rgba(0, 6, 18, .6);
	position: relative;
	z-index: 2;
	max-width: 770px;
	padding: 45px 5%;
}
.hero h1 {
	margin: 0 0 14px;
	font-size: clamp(36px, 4vw, 60px);
	line-height: 1.1;
	letter-spacing: -.035em;
}
.accent { color: var(--cyan); font-style: italic; }
.hero-join { display: block; margin-top: 8px; font-weight: 700; }
.hero p { max-width: 650px; margin: 0 0 22px; font-size: clamp(16px, 1.5vw, 20px); }
.buttons { display: flex; flex-wrap: wrap; gap: 14px; }

.features {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 8px;
	padding: 18px 0 26px;
	border-bottom: 1px solid var(--line);
}
.feature { display: block; padding: 8px; border-right: 1px solid #28415d; text-align: center; }
.feature:last-child { border-right: 0; }
.feature .symbol { display: block; color: #bceaff; font-size: 28px; }
.feature strong { display: block; font-size: 15px; }
.feature-text { display: block; color: var(--muted); font-size: 12px; }

.section-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin: 22px 0 16px;
}
.section-title h2 { margin: 0; font-size: clamp(24px, 2.5vw, 35px); }
.section-title h2::before {
	content: "";
	display: inline-block;
	width: 5px;
	height: 29px;
	margin-right: 12px;
	border-radius: 4px;
	background: var(--cyan);
	vertical-align: middle;
}
/* Home: no bar in front of "Latest from the Universe" (kept on the other section titles). */
#latest-title::before { display: none; }

.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-link {
	display: inline-block;
	padding: 7px 13px;
	border: 1px solid #45627f;
	border-radius: 6px;
	background: #081529;
	color: var(--text);
	font-size: 13px;
}
.filter-link.active { background: var(--blue); border-color: #00caff; }

/* ==========================================================================
   6. Cards
   ========================================================================== */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cards--listing { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 1101px) {
	.main-layout--wide .cards--listing { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.latest-empty {
	grid-column: 1 / -1;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: 8px;
	color: var(--muted);
}

.post-card {
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--line-soft);
	border-radius: 10px;
	background: var(--panel);
	transition: border-color .2s ease, transform .2s ease;
}
.post-card:hover { border-color: #29b6ed; transform: translateY(-2px); }
.post-card > a { display: block; height: 100%; }
.post-card img { display: block; width: 100%; aspect-ratio: 1.55; object-fit: cover; }
.post-card .no-image { aspect-ratio: 1.55; background: linear-gradient(135deg, #10294a, #050b19); }
.card-body { padding: 12px; }
.category { color: var(--cyan); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
.card-title {
	display: -webkit-box;
	min-height: 4.05em;
	margin: 6px 0;
	overflow: hidden;
	font-size: 16px;
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
}
.post-card time { color: #c3d0e1; font-size: 12px; }

/* ==========================================================================
   7. Sidebar and ad areas
   ========================================================================== */
.sidebar,
.sidebar-right { display: flex; flex-direction: column; gap: 12px; }
.sidebar-right { min-width: 0; align-self: start; }

.side-list { margin: 0; padding: 0; list-style: none; }
.side-list li { padding: 9px 0; border-top: 1px solid #243d5a; }
.side-list li:first-child { padding-top: 0; border-top: 0; }
.side-list li:last-child { padding-bottom: 0; }
.side-list a { display: block; font-size: 14px; line-height: 1.4; }
.side-list time { display: block; margin-top: 2px; color: #c3d0e1; font-size: 12px; }
/* Latest articles with thumbnails */
.side-list .side-thumb { display: block; overflow: hidden; border-radius: 6px; background: #0a1730; }
.side-list .side-thumb img,
.side-list .side-thumb .no-image { display: block; width: 100%; aspect-ratio: 1.55; object-fit: cover; }
.side-list .side-thumb .no-image { background: linear-gradient(135deg, #10294a, #050b19); }
.side-list .side-text a { display: block; }
/* Large thumbnails have the same fixed size in every list, whatever the width of the column. */
.side-list--thumbs-large { max-width: none; }
.side-list--thumbs-large li { display: block; padding: 12px 0; }
.side-list--thumbs-large li:first-child { padding-top: 0; }
.side-list--thumbs-large .side-text { margin-top: 8px; }
.side-list--thumbs-large .side-text a { font-size: 15px; font-weight: 600; }
.side-list--thumbs-small li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; align-items: start; }
.side-list--thumbs-small .side-thumb img,
.side-list--thumbs-small .side-thumb .no-image { aspect-ratio: 4 / 3; }
.side-list--compact li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 6px 0; }
.side-list--compact a { flex: 1; }
.side-list .count { color: var(--muted); font-size: 12px; }

.widget ul { margin: 0; padding-left: 1.1em; }
.widget li { margin-bottom: .45em; }

.ad-slot { width: 100%; max-width: 300px; margin-inline: auto; }
.ad-slot.has-ad { overflow: hidden; }
.ad-slot .widget { width: 100%; margin: 0; }
.ad-slot.is-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 250px;
	padding: 14px;
	border: 1px dashed #38516d;
	border-radius: 8px;
	background: var(--panel);
	color: #8da9c6;
	font-size: 13px;
	text-align: center;
}
.ad-slot.tall.is-placeholder { min-height: 600px; }
.ad-label { display: block; margin: 0 0 4px; color: #7592ad; font-size: 11px; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
/* Wide slots (inside articles, end of articles, news list, pages): reserved height, no layout jump. */
.ad-slot--wide { max-width: 728px; min-height: 280px; margin: 26px auto; }
.ad-slot--wide.is-placeholder { min-height: 120px; }
.entry-content .ad-slot--wide { clear: both; }
.ad-feed { grid-column: 1 / -1; }
.ad-feed .ad-slot--wide { min-height: 120px; margin: 6px auto; }
.ad-feed .ad-slot--wide.has-ad { min-height: 100px; }
.ad-slot small { color: #7592ad; font-size: 11px; }

.side-box { padding: 15px; border: 1px solid #45617f; border-radius: 8px; background: var(--panel); }
.side-box h2, .widget-title { margin: 0 0 10px; font-size: 18px; }
.side-box .event-link { display: block; padding-top: 10px; border-top: 1px solid #334b68; }
.side-box time { color: #cbd7e7; font-size: 12px; }
.side-box p { margin: 8px 0 0; }
.widget { margin-bottom: 12px; }
.follow-image { display: block; width: 100%; height: auto; margin: 0 0 12px; border-radius: 6px; }
.side-box--follow p { margin: 0 0 12px; color: #cbd7e7; font-size: 14px; line-height: 1.5; }
.side-box--follow { display: flex; align-items: center; min-height: 128px; padding: 12px 15px; }
.side-box--follow .follow-btn { flex: 1; }
.follow-image + .follow-btn { margin-top: 0; }
.follow-btn { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 11px 16px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--panel); color: #fff; font-size: 14px; font-weight: 700; }
.follow-btn:hover { border-color: var(--cyan); background: #10233f; color: #fff; }
/* Widgets of the right column (e.g. the Facebook box): one framed box, same width as the related list. */
.side-box--widgets { overflow: hidden; }
.side-box--widgets .widget { margin: 0 0 14px; padding: 0; border: 0; background: none; }
.side-box--widgets .widget:last-child { margin-bottom: 0; }
.side-box--widgets .widget-title { margin: 0 0 10px; }
.side-box--widgets iframe,
.side-box--widgets .fb_iframe_widget,
.side-box--widgets .fb_iframe_widget span,
.side-box--widgets .fb-page { max-width: 100% !important; }
.side-box--widgets iframe { display: block; border: 0; margin: 0 auto; }

/* ==========================================================================
   8. Pages, posts and listings
   ========================================================================== */
.page-header { margin-bottom: 20px; }
.page-header h1 { margin: 0 0 8px; font-size: clamp(28px, 3.5vw, 42px); }
.page-description { color: var(--muted); }

.content-page { max-width: 950px; margin: 35px auto; padding: 0 20px; }
.entry-title, .content-page h1 { margin: 0 0 8px; font-size: clamp(30px, 4vw, 48px); line-height: 1.15; }
.entry-header { margin-bottom: 18px; }
.entry-header .category { display: inline-block; margin-bottom: 8px; }
.entry-meta { margin: 0; color: var(--muted); font-size: 14px; }
.entry-thumb { margin: 0 0 22px; }
.entry-thumb img { display: block; width: 100%; border-radius: 8px; }

.entry-content { color: var(--muted); font-size: 17px; line-height: 1.7; overflow-wrap: break-word; }
.entry-content strong, .entry-content b { color: #fff; font-weight: 800; }
/* Video players and embeds (e.g. the WebTV live player) are centred in the content column. */
.entry-content iframe,
.entry-content video,
.entry-content embed,
.entry-content object { display: block; max-width: 100%; margin-inline: auto; }
.entry-content .wp-block-embed,
.entry-content .wp-block-video,
.entry-content .wp-video { margin-inline: auto; text-align: center; }
.entry-content .wp-block-embed__wrapper { display: flex; justify-content: center; }
.entry-content .wp-block-embed__wrapper > iframe { max-width: 100%; }
.entry-content > * { max-width: 100%; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin: 1.6em 0 .5em; line-height: 1.25; }
.entry-content a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { border-radius: 6px; }
.entry-content figure { margin: 1.4em 0; }
.entry-content figcaption, .wp-caption-text { margin-top: 6px; color: var(--muted); font-size: 13px; }
.entry-content blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--cyan); color: var(--muted); }
.entry-content pre { overflow-x: auto; padding: 14px; border-radius: 8px; background: #07172b; font-size: 14px; }
.entry-content table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 8px 10px; border: 1px solid var(--line); text-align: left; }
.entry-content .alignleft { float: left; margin: 0 1.2em 1em 0; }
.entry-content .alignright { float: right; margin: 0 0 1em 1.2em; }
.entry-content .aligncenter { display: block; margin-inline: auto; }
.entry-content iframe, .entry-content video { max-width: 100%; }
.entry-tags { margin-top: 24px; color: var(--muted); font-size: 14px; }

.pagination, .post-navigation, .comment-navigation { margin: 26px 0; }
.pagination .nav-links, .comment-navigation .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers {
	display: inline-block;
	padding: 7px 13px;
	border: 1px solid #45627f;
	border-radius: 6px;
	background: #081529;
}
.page-numbers.current { background: var(--blue); border-color: #00caff; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.post-navigation a { display: block; padding: 12px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--panel); }
.post-navigation .nav-next { text-align: right; }
/* Previous / Next boxes: same height, set by the one with more text. */
.post-navigation .nav-links > div { display: flex; }
.post-navigation .nav-links > div > a { flex: 1; }
.nav-label { display: block; color: var(--cyan); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }

/* ==========================================================================
   9. Comments
   ========================================================================== */
.comments-area { margin-top: 36px; }
.comments-title { font-size: 22px; }
.comment-list { padding: 0; list-style: none; }
.comment-list .children { padding-left: 22px; list-style: none; }
.comment-body { margin-bottom: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.comment-meta { color: var(--muted); font-size: 13px; }
.comment-meta .avatar { vertical-align: middle; border-radius: 50%; }
.comment-form label { display: block; margin-bottom: 4px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 9px;
	border: 1px solid #3e5874;
	border-radius: 6px;
	background: #07172b;
	color: var(--text);
	font: inherit;
}
.comment-form .submit {
	padding: 10px 22px;
	border: 1px solid #54bfff;
	border-radius: 9px;
	background: linear-gradient(#05b8f1, #0751d6);
	color: var(--text);
	font: inherit;
	font-weight: 750;
	cursor: pointer;
}

/* ==========================================================================
   10. Footer
   ========================================================================== */
.site-footer { margin-top: 55px; padding: 30px 0; border-top: 1px solid #24405e; color: #c1cddd; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.footer-inner p { margin: 0; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0; padding: 0; list-style: none; }
.footer-menu li + li::before { content: "•"; margin-right: 14px; color: var(--cyan); font-size: .8em; opacity: .7; }

/* Homepage: slimmer donation block, right under the next-event strip. */
.main-layout--home .donate--wide { margin: 18px 0 0; padding: 16px 28px; gap: 12px 40px; }
.donate-news .donate--wide { margin: 0 0 22px; }
.donate-news .event-strip { margin: 0 0 22px; }
.main-layout--home .donate--wide { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); column-gap: 16px; }
.main-layout--home .donate--wide .donate-kicker { margin-bottom: 4px; font-size: 12px; }
.main-layout--home .donate--wide .donate-title { margin-bottom: 6px; font-size: clamp(20px, 2.2vw, 27px); }
.main-layout--home .donate--wide .donate-text { margin-bottom: 12px; font-size: 15px; line-height: 1.5; }
.main-layout--home .donate--wide .donate-btn { padding: 10px 22px; }
.main-layout--home .donate--wide .donate-art { height: 100px; }
.main-layout--home .donate--wide .donate-orbit { height: 92px; }

/* Strip with the next live event, under the hero of the homepage. */
.event-strip {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 16px 34px;
	margin: 18px 0 0;
	padding: 20px 26px;
	border: 1px solid #2c4a73;
	border-radius: 14px;
	background:
		radial-gradient(70% 160% at 0% 50%, rgba(255, 76, 76, .13), transparent 60%),
		linear-gradient(135deg, #0b1d3d, #07142c);
	box-shadow: 0 10px 34px rgba(2, 8, 26, .45), inset 0 0 0 1px rgba(143, 216, 255, .05);
}
/* Featured image of the event post as background, under a dark veil so the text stays readable. */
.event-strip.has-bg {
	background:
		linear-gradient(90deg, rgba(5, 13, 30, .9), rgba(5, 13, 30, .6) 55%, rgba(5, 13, 30, .35)),
		var(--event-bg) center / cover no-repeat,
		#07142c;
}
.side-box.has-bg {
	background:
		linear-gradient(180deg, rgba(5, 13, 30, .88), rgba(5, 13, 30, .7)),
		var(--event-bg) center / cover no-repeat,
		var(--panel);
}
.event-strip-kicker { display: flex; align-items: center; gap: 9px; margin: 0 0 6px; color: #ff8c8c; font-size: 12.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.live-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 0 0 rgba(255, 77, 77, .6); animation: vth-live 1.9s ease-out infinite; }
@keyframes vth-live { 0% { box-shadow: 0 0 0 0 rgba(255, 77, 77, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(255, 77, 77, 0); } }
.event-strip-title { margin: 0; font-size: clamp(20px, 2.1vw, 27px); line-height: 1.25; }
.event-strip-title a:hover { color: var(--cyan); }
.event-strip-title--quiet { color: var(--muted); font-size: 18px; font-weight: 500; }
.event-strip-when { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 8px 0 0; color: #c9d8ec; font-size: 14px; }
.event-local { color: #8fd8ff; }
.event-countdown { display: flex; gap: 10px; }
.event-countdown[hidden], .event-local[hidden] { display: none; }
.cd-unit { display: flex; flex-direction: column; align-items: center; min-width: 66px; padding: 9px 8px 7px; border: 1px solid #335681; border-radius: 10px; background: rgba(3, 11, 25, .55); }
.cd-unit b { font-size: 28px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.cd-unit small { color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.event-countdown.is-live { align-items: center; color: #ff8c8c; font-size: 20px; font-weight: 800; }
.event-strip-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 0; }
.event-all { color: #bfe1ff; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.event-strip--empty { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 24px; }

@media (max-width: 1000px) {
	.event-strip { grid-template-columns: 1fr; }
	.event-strip-actions { flex-direction: row; align-items: center; gap: 18px; }
}
@media (max-width: 480px) {
	.cd-unit { min-width: 0; flex: 1; }
	.event-strip { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* ==========================================================================
   12. Donations
   ========================================================================== */
.donate {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 28px 40px;
	align-items: center;
	margin: 34px 0;
	padding: clamp(22px, 3vw, 38px);
	overflow: hidden;
	border: 1px solid #2c4a73;
	border-radius: 16px;
	background:
		radial-gradient(120% 150% at 88% -10%, rgba(31, 107, 255, .32), transparent 55%),
		radial-gradient(90% 130% at -5% 110%, rgba(18, 217, 245, .14), transparent 60%),
		linear-gradient(135deg, #0b1d3d, #050d22);
	box-shadow: 0 18px 50px rgba(2, 8, 26, .55), inset 0 0 0 1px rgba(143, 216, 255, .06);
}
/* A sprinkle of stars behind the text. */
.donate::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(1.2px 1.2px at 6% 18%, #fff, transparent),
		radial-gradient(1px 1px at 14% 72%, #cfe6ff, transparent),
		radial-gradient(1.4px 1.4px at 23% 38%, #fff, transparent),
		radial-gradient(1px 1px at 33% 84%, #fff, transparent),
		radial-gradient(1.2px 1.2px at 41% 12%, #bfe1ff, transparent),
		radial-gradient(1px 1px at 52% 58%, #fff, transparent),
		radial-gradient(1.4px 1.4px at 61% 26%, #fff, transparent),
		radial-gradient(1px 1px at 69% 90%, #cfe6ff, transparent),
		radial-gradient(1.2px 1.2px at 78% 48%, #fff, transparent),
		radial-gradient(1px 1px at 86% 14%, #fff, transparent),
		radial-gradient(1.4px 1.4px at 93% 70%, #bfe1ff, transparent),
		radial-gradient(1px 1px at 47% 40%, #fff, transparent);
	opacity: .55;
	pointer-events: none;
}
.donate > * { position: relative; z-index: 1; }

.donate-kicker { margin: 0 0 10px; color: var(--cyan); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.donate-title { margin: 0 0 12px; font-size: clamp(25px, 3vw, 38px); line-height: 1.15; letter-spacing: -.01em; }
.donate-text { max-width: 560px; margin: 0 0 20px; color: #d6e3f5; font-size: 16px; line-height: 1.6; }
.donate-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

.donate-btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 13px 26px;
	border-radius: 999px;
	background: linear-gradient(180deg, #ffe58a, #f4b52a);
	box-shadow: 0 0 0 1px rgba(255, 226, 122, .55), 0 10px 30px rgba(244, 181, 42, .3);
	color: #1c1400;
	font-weight: 800;
	white-space: nowrap;
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.donate-btn:hover {
	color: #1c1400;
	filter: brightness(1.06);
	transform: translateY(-1px);
	box-shadow: 0 0 0 1px rgba(255, 226, 122, .8), 0 14px 38px rgba(244, 181, 42, .42);
}
.donate-btn span { color: #b3261e; }

.donate-art { min-width: 0; }
.donate-orbit { display: block; width: 100%; height: auto; overflow: visible; }

/* Compact: at the end of an article. */
.donate--compact { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); margin: 30px 0 10px; padding: 20px 24px; }
.donate--compact .donate-title { margin-bottom: 14px; font-size: clamp(19px, 2vw, 24px); }

/* Mini: sidebar. */
.donate--mini { display: block; margin: 0; padding: 18px; }
.donate--mini .donate-title { font-size: 20px; }
.donate--mini .donate-btn { padding: 10px 20px; }
/* In the sidebar the drawing sits lower, clear of the button. */
.donate--mini { padding-bottom: 10px; }
.donate--mini .donate-art { margin-top: 20px; }
/* Comet and Earth: the drawing is slightly off to the right, nudge it back to the centre. */
.donate--mini .donate-orbit { transform: translateX(-5.1%); }
/* Sidebar donation box: heading and button centred. */
.donate--mini .donate-body { text-align: center; }
.donate--mini .donate-actions { justify-content: center; }

/* Menu entry that leads to the donations: gold text and gold dot. */

/*
 * "You are here": a small spiral galaxy (gold, slowly turning) replaces the dot on the top-level entry
 * of the current page or, when the page is in a drop-down, on the entry that contains it.
 */
.primary-nav .menu > .current-menu-item > a,
.primary-nav .menu > .current-menu-ancestor > a { align-items: center; }
.primary-nav .menu > .current-menu-item > a::before,
.primary-nav .menu > .current-menu-ancestor > a::before {
	width: 22px;
	height: 22px;
	margin: -4px 0;
	border-radius: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3CradialGradient id='arm' gradientUnits='userSpaceOnUse' cx='12' cy='12' r='11'%3E%3Cstop offset='0' stop-color='%23fff4c0'/%3E%3Cstop offset='.35' stop-color='%23ffd24a'/%3E%3Cstop offset='1' stop-color='%23ffb02e' stop-opacity='.25'/%3E%3C/radialGradient%3E%3CradialGradient id='core'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='.5' stop-color='%23fff0b0'/%3E%3Cstop offset='1' stop-color='%23ffd24a' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='halo'%3E%3Cstop offset='0' stop-color='%23ffd24a' stop-opacity='.38'/%3E%3Cstop offset='1' stop-color='%23ffd24a' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='12' cy='12' r='11.6' fill='url(%23halo)'/%3E%3Cpath d='M12.05,12.46 L12.07,12.54 L12.09,12.57 L12.10,12.60 L12.12,12.64 L12.13,12.68 L12.13,12.73 L12.12,12.79 L12.11,12.85 L12.09,12.91 L12.06,12.98 L12.02,13.05 L11.97,13.12 L11.91,13.19 L11.84,13.26 L11.76,13.32 L11.66,13.39 L11.55,13.44 L11.44,13.49 L11.31,13.53 L11.17,13.56 L11.02,13.58 L10.86,13.59 L10.70,13.58 L10.52,13.56 L10.34,13.52 L10.16,13.46 L9.98,13.39 L9.79,13.29 L9.61,13.18 L9.42,13.04 L9.25,12.88 L9.07,12.71 L8.91,12.51 L8.76,12.29 L8.63,12.05 L8.51,11.78 L8.40,11.50 L8.32,11.21 L8.26,10.89 L8.23,10.56 L8.22,10.22 L8.24,9.86 L8.29,9.50 L8.38,9.13 L8.50,8.75 L8.65,8.38 L8.84,8.00 L9.06,7.63 L9.33,7.27 L9.63,6.92 L9.97,6.58 L10.34,6.27 L10.75,5.97 L11.20,5.70 L11.68,5.46 L12.20,5.25 L12.75,5.07 L13.33,4.92 L13.27,4.57 L12.66,4.60 L12.05,4.70 L11.46,4.85 L10.90,5.04 L10.36,5.28 L9.86,5.55 L9.38,5.85 L8.95,6.19 L8.54,6.56 L8.18,6.95 L7.85,7.36 L7.56,7.78 L7.31,8.23 L7.10,8.68 L6.93,9.14 L6.80,9.60 L6.71,10.07 L6.65,10.53 L6.64,10.99 L6.66,11.44 L6.71,11.89 L6.80,12.32 L6.92,12.73 L7.07,13.13 L7.25,13.51 L7.46,13.87 L7.69,14.20 L7.94,14.51 L8.21,14.80 L8.50,15.06 L8.81,15.30 L9.13,15.50 L9.46,15.68 L9.80,15.83 L10.15,15.95 L10.50,16.04 L10.85,16.10 L11.20,16.13 L11.55,16.14 L11.89,16.11 L12.23,16.07 L12.56,15.99 L12.88,15.89 L13.18,15.77 L13.48,15.62 L13.75,15.45 L14.01,15.27 L14.26,15.06 L14.48,14.84 L14.68,14.60 L14.87,14.35 L15.03,14.09 L15.16,13.82 L15.28,13.54 L15.37,13.26 L15.44,12.97 L15.48,12.68 L15.51,12.45 Z' fill='url(%23arm)'/%3E%3Cpath d='M11.95,11.54 L11.93,11.46 L11.91,11.43 L11.90,11.40 L11.88,11.36 L11.87,11.32 L11.87,11.27 L11.88,11.21 L11.89,11.15 L11.91,11.09 L11.94,11.02 L11.98,10.95 L12.03,10.88 L12.09,10.81 L12.16,10.74 L12.24,10.68 L12.34,10.61 L12.45,10.56 L12.56,10.51 L12.69,10.47 L12.83,10.44 L12.98,10.42 L13.14,10.41 L13.30,10.42 L13.48,10.44 L13.66,10.48 L13.84,10.54 L14.02,10.61 L14.21,10.71 L14.39,10.82 L14.58,10.96 L14.75,11.12 L14.93,11.29 L15.09,11.49 L15.24,11.71 L15.37,11.95 L15.49,12.22 L15.60,12.50 L15.68,12.79 L15.74,13.11 L15.77,13.44 L15.78,13.78 L15.76,14.14 L15.71,14.50 L15.62,14.87 L15.50,15.25 L15.35,15.62 L15.16,16.00 L14.94,16.37 L14.67,16.73 L14.37,17.08 L14.03,17.42 L13.66,17.73 L13.25,18.03 L12.80,18.30 L12.32,18.54 L11.80,18.75 L11.25,18.93 L10.67,19.08 L10.73,19.43 L11.34,19.40 L11.95,19.30 L12.54,19.15 L13.10,18.96 L13.64,18.72 L14.14,18.45 L14.62,18.15 L15.05,17.81 L15.46,17.44 L15.82,17.05 L16.15,16.64 L16.44,16.22 L16.69,15.77 L16.90,15.32 L17.07,14.86 L17.20,14.40 L17.29,13.93 L17.35,13.47 L17.36,13.01 L17.34,12.56 L17.29,12.11 L17.20,11.68 L17.08,11.27 L16.93,10.87 L16.75,10.49 L16.54,10.13 L16.31,9.80 L16.06,9.49 L15.79,9.20 L15.50,8.94 L15.19,8.70 L14.87,8.50 L14.54,8.32 L14.20,8.17 L13.85,8.05 L13.50,7.96 L13.15,7.90 L12.80,7.87 L12.45,7.86 L12.11,7.89 L11.77,7.93 L11.44,8.01 L11.12,8.11 L10.82,8.23 L10.52,8.38 L10.25,8.55 L9.99,8.73 L9.74,8.94 L9.52,9.16 L9.32,9.40 L9.13,9.65 L8.97,9.91 L8.84,10.18 L8.72,10.46 L8.63,10.74 L8.56,11.03 L8.52,11.32 L8.49,11.55 Z' fill='url(%23arm)'/%3E%3Ccircle cx='3.8' cy='6.4' r='0.5' fill='%23fff0b0' opacity='.85'/%3E%3Ccircle cx='20.4' cy='17.4' r='0.5' fill='%23fff0b0' opacity='.85'/%3E%3Ccircle cx='19.2' cy='4.2' r='0.38' fill='%23fff0b0' opacity='.85'/%3E%3Ccircle cx='5.0' cy='20.0' r='0.38' fill='%23fff0b0' opacity='.85'/%3E%3Ccircle cx='21.2' cy='9.5' r='0.3' fill='%23fff0b0' opacity='.85'/%3E%3Ccircle cx='12' cy='12' r='3.4' fill='url(%23core)'/%3E%3Ccircle cx='12' cy='12' r='1.15' fill='%23ffffff'/%3E%3C/svg%3E") center / contain no-repeat;
	opacity: 1;
	transform: none;
	animation: vth-galaxy-spin 40s linear infinite;
}
@keyframes vth-galaxy-spin { to { transform: rotate(360deg); } }

/* Donations page. */
.donate-page { padding-top: 10px; }
.donate-page .donate--wide { margin-top: 26px; }
.donate-intro { max-width: 760px; margin: 38px auto; }
.tiers { margin: 44px 0; text-align: center; }
.tiers h2, .supporters h2 { margin: 0 0 20px; font-size: clamp(24px, 2.6vw, 32px); }
.tiers-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 0 0 26px; padding: 0; list-style: none; }
.tiers-list li {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 22px 20px;
	border: 1px solid var(--line-soft);
	border-radius: 14px;
	background: linear-gradient(180deg, #0d213f, #08142a);
	text-align: center;
}
.tier-amount { color: #ffd24a; font-size: 34px; font-weight: 800; line-height: 1.1; }
.tier-text { color: #d6e3f5; font-size: 15px; line-height: 1.5; }
.supporters { margin: 50px 0 20px; padding: 34px 20px; border: 1px solid #1d3558; border-radius: 16px; background: radial-gradient(100% 140% at 50% 0%, rgba(31, 107, 255, .12), transparent 70%), #050d1f; text-align: center; }
.supporters-note { margin: -8px 0 22px; color: var(--muted); }
.supporters-sky { display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: center; margin: 0 auto; padding: 0; max-width: 980px; list-style: none; }
.supporters-sky li { color: #e9f2ff; font-size: calc(15px * var(--s, 1)); white-space: nowrap; }
.supporters-sky li span { display: inline-block; margin-right: 4px; color: #ffd24a; animation: vth-twinkle 3.4s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes vth-twinkle { 0%, 100% { opacity: .45; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }

@media (max-width: 860px) {
	.donate, .donate--compact { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
	.donate-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.supporters-sky li span,
	.primary-nav .menu > .current-menu-item > a::before,
	.primary-nav .menu > .current-menu-ancestor > a::before { animation: none; }
	.donate-btn { transition: none; }
}

/* ==========================================================================
   11. Responsive
   ========================================================================== */
@media (min-width: 1101px) and (max-width: 1279px) {
	.main-layout--three {
		grid-template-columns: 300px minmax(0, 1fr);
		grid-template-areas: "left main" "right main";
		gap: 18px;
	}
	.main-layout--three > .main-col { max-width: none; }
	.main-layout--three > .sidebar-right { margin-top: 0; }
}

@media (max-width: 1100px) {
	.main-layout { display: block; }
	.sidebar-right { margin-top: 26px; }
	.side-list--thumbs-large { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; max-width: none; }
	.side-list--thumbs-large li,
	.side-list--thumbs-large li:first-child { padding: 0; border-top: 0; }
	.sidebar {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
		gap: 14px;
		align-items: start;
		margin-top: 26px;
	}
	.sidebar > * { min-width: 0; }
	/* Under the content the sidebar ads earn little: only the ads inside the content stay. */
	.sidebar .ad-slot { display: none; }
	.brand { left: 1.5%; width: 49%; }
	.utilities { right: 1.5%; gap: 9px; font-size: 13px; }
}

@media (max-width: 900px) {
	.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Homepage: the 9 latest articles stay on three columns down to tablets. */
@media (min-width: 761px) and (max-width: 900px) {
	.cards:not(.cards--listing) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Homepage "Latest from the Universe": 8 cards (4 x 2) on tablets, 8 (2 x 4) on phones. */
@media (max-width: 1100px) {
	/* Space between the donation banner and the feature icons below it. */
	.main-layout--home .main-col > .donate--wide { margin-bottom: 20px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
	.main-layout--home .cards:not(.cards--listing) { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
	.main-layout--home .cards:not(.cards--listing) .post-card:nth-child(n+9) { display: none; }
}

@media (max-width: 760px) {
	.hero::before { background: linear-gradient(180deg, rgba(1, 7, 19, .4), rgba(1, 8, 22, .28)); }
	.hero-photo--default { object-position: 78% 50%; }
	/* Masthead: natural flow instead of absolute positioning. */
	.masthead-inner {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 5px;
		height: auto;
		padding: 8px 3% 8px;
	}
	.masthead { height: auto; min-height: 0; }
	.masthead-photo { left: 0; width: 100%; object-fit: cover; object-position: 50% 50%; -webkit-mask-image: none; mask-image: none; }
	.brand { position: relative; top: auto; left: auto; width: min(calc(100% - 56px), 420px); transform: none; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .85)); }
	.utilities {
		position: absolute;
		top: 8px;
		right: 3%;
		flex-direction: column;
		align-items: flex-end;
		gap: 6px;
		padding: 0;
		background: transparent;
		font-size: 12px;
		transform: none;
	}
	.utility-link { display: none; }
	.language-switch ul { padding: 5px 7px; border-radius: 5px; }

	/* Navigation: collapsible when JavaScript is available, plain list otherwise. */
	.nav-inner { flex-wrap: wrap; gap: 8px; min-height: 0; padding: 7px 0; }
	.js .menu-toggle { display: block; padding: 6px 10px; font-size: 13px; line-height: 1.4; }
	.primary-nav { order: 3; width: 100%; }
	.js .primary-nav { display: none; }
	.js .primary-nav.open { display: block; }
	.menu { display: block; }
	.menu > li { border-bottom: 1px solid #18304c; }
	.menu > li:last-child { border-bottom: 0; }
	.menu > li > a { padding: 12px 0; }
	.menu .sub-menu { display: block; position: static; min-width: 0; padding: 0 0 8px 16px; border: 0; background: transparent; }
	.menu .sub-menu a { padding: 6px 0; color: var(--muted); font-size: 15px; white-space: normal; }
	.menu .sub-menu .sub-menu { padding: 0 0 0 16px; }
	.nav-inner > .cta { padding: 7px 10px; font-size: 12px; line-height: 1.4; border-radius: 6px; }

	/* ---- Phone refinements (0.9.39) ---- */
	.nav-donate {
		display: inline-block;
		margin-left: auto;
		padding: 7px 10px;
		border: 1px solid #d9a83a;
		border-radius: 6px;
		background: linear-gradient(#ffd24a, #f5b21b);
		color: #2a1a00;
		font-size: 12px;
		font-weight: 800;
		line-height: 1.4;
		white-space: nowrap;
	}
	.nav-donate:hover { color: #2a1a00; filter: brightness(1.08); }
	.nav-donate span { color: #b3261e; }
	.hero { min-height: 0; }
	.hero-content { padding: 28px 20px 32px; }
	.features { padding: 10px 0 14px; }
	.feature { padding: 8px 6px; }
	.feature-text { display: none; }
	.main-layout--home .donate--wide { padding: 16px 18px; }
	/* Donation block on phones and small tablets: one column, the animation below the text. */
	.main-layout--home .donate--wide { grid-template-columns: minmax(0, 1fr); }
	.main-layout--home .donate--wide .donate-art { display: block; height: auto; margin-top: 4px; }
	.main-layout--home .donate--wide .donate-orbit { height: auto; }
	.main-layout--home .donate--wide .donate-title { font-size: 21px; }
	.main-layout--home .donate--wide .donate-text { font-size: 14px; }
	.main-layout--home .cards { gap: 10px; }
	.main-layout--home .cards .post-card:nth-child(n+9) { display: none; }
	.main-layout--home .card-body { padding: 9px 10px 10px; }
	.main-layout--home .card-title { min-height: 0; font-size: 14px; }
	.main-layout--home .post-card img,
	.main-layout--home .post-card .no-image { aspect-ratio: 1.4; }
	.main-layout--three .donate--mini { display: none; }
	.side-box--follow { min-height: 0; }
	/* Category filters of "Latest from the Universe" go below the cards */
	#latest { display: flex; flex-direction: column; }
	#latest .section-title { display: contents; }
	#latest .section-title h2 { order: 0; }
	#latest .cards { order: 1; }
	#latest .filters { order: 2; margin-top: 16px; }

	.hero { min-height: 460px; }
	.hero-content { padding: 40px 20px 50px; }
	.hero h1 { font-size: clamp(30px, 7vw, 42px); }
	.hero::before { background: linear-gradient(90deg, rgba(1, 7, 19, .4), rgba(1, 7, 19, .2)); }

	.features { grid-template-columns: repeat(2, 1fr); }
	.feature:nth-child(even) { border-right: 0; }
	.section-title { display: block; }
	.filters { margin-top: 12px; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
}

/* Phones: large thumbnails in the sidebar lists become compact (image beside the title). */
@media (max-width: 600px) {
	.side-list--thumbs-large { display: block; max-width: none; }
	.side-list--thumbs-large li,
	.side-list--thumbs-large li:first-child {
		display: grid;
		grid-template-columns: 96px minmax(0, 1fr);
		gap: 12px;
		align-items: start;
		padding: 10px 0;
		border-top: 1px solid #243d5a;
	}
	.side-list--thumbs-large li:first-child { padding-top: 0; border-top: 0; }
	.side-list--thumbs-large .side-text { margin-top: 0; }
	.side-list--thumbs-large .side-thumb img,
	.side-list--thumbs-large .side-thumb .no-image { aspect-ratio: 4 / 3; }
}

@media (max-width: 480px) {
	.cards,
	.cards:not(.cards--listing) { grid-template-columns: 1fr; }
	.main-layout--home .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sidebar { display: block; }
	.sidebar > * { margin-bottom: 12px; }
	.ad-slot.tall.is-placeholder { min-height: 300px; }
}

@media (max-width: 360px) {
	.nav-inner > .cta { padding: 7px 8px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.post-card { transition: none; }
	.post-card:hover { transform: none; }
}

/*
 * Desktop: main menu centred under the banner. While the live button is shown next to it,
 * the menu keeps its previous position (left) so the two never collide.
 */
@media (min-width: 1101px) {
	.nav-inner:not(:has(> .cta)) .primary-nav { flex: 1; }
	.nav-inner:not(:has(> .cta)) .primary-nav .menu { justify-content: center; }
}

/* Single articles: editorial look (only .single-post; home and News untouched). */
.single-post .entry-header{margin-bottom:28px;padding-bottom:22px;position:relative}
.single-post .entry-header::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;border-radius:2px;background:linear-gradient(90deg,var(--cyan) 0%,var(--blue) 35%,rgba(7,98,204,0) 100%)}
.single-post .entry-header .category{padding:4px 12px;border:1px solid rgba(0,213,244,.5);border-radius:999px;background:rgba(0,213,244,.09);font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.single-post .entry-title{margin:12px 0 12px;letter-spacing:-.01em}
.single-post .entry-meta{display:flex;align-items:center;gap:8px}
.single-post .entry-meta::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--cyan);box-shadow:0 0 10px var(--cyan)}
.single-post .entry-content>p:first-of-type{font-size:20px;line-height:1.65;color:#e9f2fc}
.single-post .entry-content h2{margin:2em 0 .6em;padding-left:14px;border-left:4px solid var(--cyan);font-size:28px;color:#fff}
.single-post .entry-content h3{color:#fff}
.single-post .entry-content img{border-radius:12px;box-shadow:0 16px 44px rgba(0,0,0,.55)}
.single-post .entry-content figure{margin-block:1.8em}
.single-post .entry-content figcaption{text-align:center;font-style:italic;color:#9fb6cf}
.single-post .entry-content blockquote{position:relative;margin:1.8em 0;padding:22px 26px 22px 64px;border:1px solid var(--line);border-left:4px solid var(--cyan);border-radius:12px;background:linear-gradient(135deg,#0c1f3a,#08162b);color:#e9f2fc;font-size:19px;font-style:italic}
.single-post .entry-content blockquote::before{content:"\201C";position:absolute;left:18px;top:2px;font-size:64px;line-height:1;color:var(--cyan);font-style:normal}
.single-post .entry-content blockquote p{margin:0}
.single-post .entry-content ul{padding-left:22px}
.single-post .entry-content li::marker{color:var(--cyan)}
.single-post .entry-tags{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding-top:20px;border-top:1px solid var(--line)}
.single-post .entry-tags a{padding:4px 12px;border:1px solid var(--line-soft);border-radius:999px;background:var(--panel);font-size:13px}
@media (max-width: 760px) {
	.single-post .entry-content > p:first-of-type { font-size: 18px; }
	.single-post .entry-content h2 { font-size: 24px; }
	.single-post .entry-content blockquote { padding: 18px 18px 18px 52px; font-size: 17px; }
	.single-post .entry-content blockquote::before { left: 12px; font-size: 54px; }
}

/* Tablets and narrow windows: under the content the first two boxes (next event, donation) sit side by side,
   same size; the articles box takes the full width below, as a two-column grid. */
@media (min-width: 481px) and (max-width: 1100px) {
	.sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
	.sidebar > .side-box--articles { grid-column: 1 / -1; }
	.sidebar > .side-box--articles .side-list--thumbs-large { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
}

/* Under the content (tablets, narrow windows): the donation block at the end of posts and pages is the only
   one; the sidebar copy is hidden, and the next event takes the full width. */
@media (max-width: 1100px) {
	.single .sidebar .donate--mini,
	.page .sidebar .donate--mini { display: none; }
	.single .sidebar > .side-box--event,
	.page .sidebar > .side-box--event { grid-column: 1 / -1; }
}

/* Under the content (tablets and phones): on articles the next event comes right before the comments
   (the sidebar copy is hidden). */
.event-before-comments { display: none; }
@media (max-width: 1100px) {
	.event-before-comments { display: block; margin: 22px 0; }
	.single-post .sidebar > .side-box--event { display: none; }
}

/* Phones: text one point larger, easier to read (articles, cards, sidebar lists, dates, captions). */
@media (max-width: 480px) {
	.entry-content { font-size: 18px; }
	.entry-content figcaption, .wp-caption-text { font-size: 14px; }
	.entry-meta, .entry-tags { font-size: 15px; }
	.category { font-size: 12px; }
	.post-card h3, .post-card .card-title { font-size: 17px; }
	.post-card time, .side-list time, .side-box time { font-size: 13px; }
	.side-list a { font-size: 15px; }
	.side-list--thumbs-large .side-text a { font-size: 16px; }
	.side-box h2, .widget-title { font-size: 19px; }
	.single-post .entry-content > p:first-of-type { font-size: 19px; }
}

/* 0.9.97: sidebar Next Live Event title matches the home page strip (red dot, small caps, same colour). */
.side-box--event .event-strip-kicker { margin: 0 0 10px; }
.entry > .event-strip { margin: 0 0 24px; padding-block: 38px; min-height: 210px; }
@media (max-width: 760px) { .entry > .event-strip { padding-block: 26px; min-height: 0; } }

/* 0.9.100: reading time + author, nicer captions (single posts). */
.single-post .entry-meta { flex-wrap: wrap; }
.single-post .entry-meta-sep { opacity: .55; }
.single-post .entry-author { color: #dbe7f7; }
.single-post .entry-content figcaption, .single-post .entry-content .wp-caption-text { position: relative; margin-top: 14px; padding-top: 12px; color: #a9bfd8; font-size: 14px; }
.single-post .entry-content figcaption::before, .single-post .entry-content .wp-caption-text::before { content: ""; position: absolute; top: 0; left: 50%; width: 36px; height: 2px; margin-left: -18px; border-radius: 2px; background: var(--cyan); opacity: .8; }
/* Thumbnails of posts (home, News, sidebars): a little brighter under the mouse. */
.post-card img, .side-list .side-thumb img { transition: filter .25s ease; }
@media (hover: hover) {
	.post-card img:hover, .side-list .side-thumb img:hover { filter: brightness(1.32); }
}
@media (prefers-reduced-motion: reduce) { .post-card img, .side-list .side-thumb img { transition: none; } }

/* Desktop: the Next Live Event strip (home and News) is a bit thicker. */
@media (min-width: 1101px) { .event-strip:not(.event-strip--empty) { padding-block: 34px; min-height: 190px; } .event-strip--empty { padding-block: 26px; } }

/* Tablet / narrow desktop: on posts and pages the sidebars line up with the 880px article column (donation, event, previous/next and Latest articles share the same width). */
@media (min-width: 761px) and (max-width: 1100px) {
	.single .main-layout--three > .sidebar, .single .main-layout--three > .sidebar-right,
	.page .main-layout--three > .sidebar, .page .main-layout--three > .sidebar-right { justify-self: center; width: 100%; max-width: 880px; margin-inline: auto; }
}

/* Under 1100px the layout is a single column: centre the article column with auto margins (Safari ignores justify-self outside grids). */
@media (max-width: 1100px) {
	.main-layout--three > .main-col { margin-inline: auto; }
}

.single-post .main-col > .event-strip { margin: 30px 0 0; }

/* ==========================================================================
   Engagement: tonight in the sky, calendar reminder, share buttons (0.9.117)
   ========================================================================== */
.tonight{margin:18px 0 0;padding:16px 22px 12px;border:1px solid #2c4a73;border-radius:14px;background:linear-gradient(135deg,#0b1d3d,#07142c);min-height:178px}
.tonight-title{margin:0 0 12px;color:var(--cyan);font-size:13px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
.tonight-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 22px;opacity:0;transition:opacity .5s}
.tonight.is-ready .tonight-grid{opacity:1}
.tonight-cell{display:flex;align-items:center;justify-content:center;gap:14px;min-width:0}
.tonight-cell strong{display:block;font-size:16px;line-height:1.3}
.tonight-cell span,.tonight-cell small{display:block;color:var(--muted);font-size:13.5px;line-height:1.45}
.tonight-cell b{color:var(--text);font-weight:700}
.tonight-cell > svg{flex:none}
.tonight-planets ul,.tonight-stars ul{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 8px;margin:6px 0 0;padding:0;list-style:none}
.tonight-planets li,.tonight-stars li{padding:5px 11px;border:1px solid var(--line-soft);border-radius:999px;background:rgba(255,255,255,.04);font-size:13.5px;line-height:1.3}
.tonight-planets li small,.tonight-stars li small{display:inline;font-size:12px}
.tonight-foot{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;margin:12px 0 0;color:#9fb3cf;font-size:12px}
.tonight-loc{padding:0;border:0;background:none;color:var(--cyan);font:inherit;text-decoration:underline;cursor:pointer}
.tonight-loc[hidden]{display:none}
@media (max-width:1399px){.tonight-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tonight{min-height:0}}
@media (max-width:560px){.tonight-grid{grid-template-columns:minmax(0,1fr)}.tonight{padding:14px 16px 12px}}

.event-cal{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin-top:2px;font-size:12.5px;color:#c9d8ec}
.event-cal a{color:var(--cyan);text-decoration:underline;text-underline-offset:2px}
.event-strip-actions .event-cal{flex-basis:100%}
.side-box--event .event-cal{margin-top:8px}

.share{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:28px 0 6px;padding:14px 0 0;border-top:1px solid var(--line)}
.share-label{margin-right:4px;color:var(--muted);font-size:13px;letter-spacing:.06em;text-transform:uppercase}
.share-btn{display:inline-flex;align-items:center;gap:6px;padding:7px 14px;border:1px solid var(--line-soft);border-radius:999px;background:var(--panel);color:var(--text);font-size:13px;font-weight:600;line-height:1.2;font-family:inherit;cursor:pointer;transition:border-color .2s,background .2s}
.share-btn:hover{border-color:#29b6ed;background:#0f2442;color:var(--text)}
.share-btn[hidden]{display:none}
@media (prefers-reduced-motion:reduce){.tonight-grid{transition:none}}
/* Stars: two per row to keep the box low */
.tonight-stars ul{display:flex;flex-wrap:wrap;justify-content:center;gap:5px 6px}
.tonight-cell > div{min-width:0;max-width:100%}
.tonight-stars li{padding:3px 9px;font-size:13px;white-space:nowrap}
.tonight-stars li small{font-size:11.5px}
@media (min-width:1101px){.tonight-cell{gap:10px}}
/* Two columns and phones: each block becomes a tidy card, content aligned to the left */
@media (max-width:1399px){
	.tonight-grid{gap:12px}
	.tonight-cell{justify-content:flex-start;align-items:center;gap:16px;padding:14px 16px;border:1px solid rgba(66,97,129,.45);border-radius:12px;background:rgba(255,255,255,.03)}
	.tonight-cell > svg{width:56px;height:56px}
	.tonight-planets ul,.tonight-stars ul{justify-content:flex-start}
	.tonight-cell > div{flex:1}
}
/* Planets and stars: every label of a list has the same width (the widest one), two per row */
.tonight-planets ul,.tonight-stars ul{display:grid;grid-template-columns:repeat(2,1fr);width:max-content;max-width:100%;gap:5px 6px}
.tonight-planets li,.tonight-stars li{display:flex;align-items:baseline;justify-content:center;gap:5px;text-align:center;white-space:nowrap}
.tonight-planets li small,.tonight-stars li small{display:inline}
@media (max-width:820px){.tonight-stars ul{grid-template-columns:1fr}}
@media (max-width:400px){.tonight-planets ul{grid-template-columns:1fr}}

/* The calendar links wrap inside the actions column instead of widening it (the title was squeezed on WebTV) */
.event-strip-actions{max-width:250px}
.event-strip-actions .event-cal{flex-basis:auto;max-width:100%}
.follow-btn svg{flex:none}
/* Pages: the same fading cyan line under the title as in the articles. */
.page .entry > .entry-title{position:relative;padding-bottom:20px;margin-bottom:28px}
.page .entry > .entry-title::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;border-radius:2px;background:linear-gradient(90deg,var(--cyan) 0%,var(--blue) 35%,rgba(7,98,204,0) 100%)}
/* Pages with the event strip (WebTV): two lines of text under the title with the next live event. */
.page-next-live{display:flex;flex-direction:column;align-items:center;text-align:center;gap:5px;margin:-6px 0 22px;font-size:21px;line-height:1.4;color:var(--muted)}
.page-next-live strong{color:var(--text,#fff)}
/* Desktop with a narrow main column (1101-1499px): the event strip stacks as on tablets. */
@media (min-width:1101px) and (max-width:1499px){
	.main-col .event-strip:not(.event-strip--empty){grid-template-columns:1fr}
	.main-col .event-strip-actions{flex-direction:row;align-items:center;flex-wrap:wrap;gap:8px 18px;max-width:none}
}
.page-next-live strong a{color:inherit;text-decoration:underline;text-decoration-color:rgba(0,213,244,.55);text-underline-offset:3px}
.page-next-live strong a:hover{color:var(--cyan)}
