/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
	--sky-navy: #0A2342;
	--sky-navy-light: #123363;
	--sky-blue: #1DA1F2;
	--sky-orange: #FF6B00;
	--sky-white: #FFFFFF;
	--sky-ink: #111111;
	--sky-muted: #5B6472;
	--sky-border: #E5E8EC;
	--sky-bg-alt: #F5F7FA;

	--skyrush-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--sky-font-heading: 'Poppins', var(--skyrush-font-sans);
	--sky-font-body: var(--skyrush-font-sans);

	--sky-radius-sm: 6px;
	--sky-radius-md: 10px;
	--sky-radius-lg: 16px;

	--skyrush-color-bg: var(--sky-white);
	--skyrush-color-fg: var(--sky-ink);
	--skyrush-color-primary: var(--sky-blue);
	--skyrush-color-muted: var(--sky-muted);
	--skyrush-space-1: 0.5rem;
	--skyrush-space-2: 1rem;
	--skyrush-space-3: 1.5rem;
	--skyrush-space-4: 2rem;
}

[data-theme="dark"] {
	--sky-white: #0B0F17;
	--sky-ink: #F0F2F5;
	--sky-muted: #9AA5B4;
	--sky-border: #212A38;
	--sky-bg-alt: #121826;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--sky-white: #0B0F17;
		--sky-ink: #F0F2F5;
		--sky-muted: #9AA5B4;
		--sky-border: #212A38;
		--sky-bg-alt: #121826;
	}
}

/* ==========================================================================
   2. Reset + base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; height: auto; display: block; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	background: var(--sky-white);
	color: var(--sky-ink);
	font-family: var(--sky-font-body);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	font-family: var(--sky-font-heading);
	font-weight: 700;
	line-height: 1.2;
	margin: 0;
}

a { color: inherit; text-decoration: none; }

.container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 20px;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
}
.skip-link:focus {
	left: 0;
	z-index: 999;
	padding: var(--skyrush-space-1);
	background: var(--sky-white);
	color: var(--sky-ink);
}

.section {
	padding: 48px 0;
}
.section--alt {
	background: var(--sky-bg-alt);
}

.section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 20px;
	gap: 12px;
}
.section-head h2 {
	font-size: 22px;
	letter-spacing: -0.01em;
}
.section-head a {
	font-size: 13px;
	font-weight: 600;
	color: var(--sky-blue);
	white-space: nowrap;
}
.section-head a i { font-size: 14px; vertical-align: -1px; }

.eyebrow {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--sky-orange);
}

/* ==========================================================================
   3. Header
   ========================================================================== */
.site-header {
	background: var(--sky-navy);
	color: #fff;
	position: sticky;
	top: 0;
	z-index: 40;
}
.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
	gap: 16px;
}
.site-branding .site-title,
.site-branding .site-title a {
	font-family: var(--sky-font-heading);
	font-weight: 700;
	font-size: 19px;
	color: #fff;
	letter-spacing: -0.01em;
}
.site-branding .site-title { margin: 0; }
.site-branding .brand-accent { color: var(--sky-orange); }

.main-navigation {
	display: flex;
	align-items: center;
	gap: 4px;
}
.main-navigation ul {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
}
.main-navigation a {
	display: block;
	padding: 10px 12px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.85);
	border-radius: var(--sky-radius-sm);
}
.main-navigation a:hover { color: #fff; background: rgba(255,255,255,0.08); }

.header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}
.header-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	color: #fff;
	background: transparent;
	border: none;
	cursor: pointer;
	font-size: 16px;
}
.header-icon-btn:hover { background: rgba(255,255,255,0.1); }

.btn-subscribe {
	background: var(--sky-orange);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	padding: 9px 16px;
	border-radius: var(--sky-radius-sm);
	border: none;
}
.btn-subscribe:hover { background: #e35f00; }

.menu-toggle {
	display: none;
	background: transparent;
	border: none;
	color: #fff;
	font-size: 22px;
	cursor: pointer;
}

@media (max-width: 900px) {
	.main-navigation { display: none; width: 100%; }
	.main-navigation[data-open="true"] {
		display: block;
		position: absolute;
		top: 64px;
		left: 0;
		right: 0;
		background: var(--sky-navy);
		padding: 8px 20px 16px;
	}
	.main-navigation[data-open="true"] ul { flex-direction: column; align-items: flex-start; gap: 0; }
	.main-navigation[data-open="true"] a { width: 100%; padding: 12px 8px; }
	.menu-toggle { display: block; }
	.header-actions .btn-subscribe-label { display: none; }
}

/* ==========================================================================
   4. Hero
   ========================================================================== */
.hero {
	position: relative;
	background: var(--sky-navy);
	background-size: cover;
	background-position: center;
	color: #fff;
	padding: 72px 0 56px;
}
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10,35,66,0.55) 0%, rgba(10,35,66,0.9) 100%);
}
.hero .container { position: relative; max-width: 760px; }
.hero .eyebrow-badge {
	display: inline-block;
	background: var(--sky-orange);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 6px 12px;
	border-radius: var(--sky-radius-sm);
	margin-bottom: 16px;
}
.hero h1 {
	font-size: clamp(32px, 6vw, 52px);
	margin-bottom: 8px;
}
.hero .hero-subheading {
	font-size: clamp(16px, 2.4vw, 20px);
	font-weight: 500;
	color: rgba(255,255,255,0.9);
	margin-bottom: 14px;
}
.hero .hero-description {
	font-size: 15px;
	color: rgba(255,255,255,0.78);
	max-width: 560px;
	margin-bottom: 28px;
	line-height: 1.7;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	padding: 13px 22px;
	border-radius: var(--sky-radius-sm);
	border: 1.5px solid transparent;
}
.btn-primary { background: var(--sky-orange); color: #fff; }
.btn-primary:hover { background: #e35f00; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.1); }

/* ==========================================================================
   5. Trending topics bar + breaking news ticker
   ========================================================================== */
.trending-bar {
	background: var(--sky-navy-light);
	color: #fff;
	overflow-x: auto;
}
.trending-bar .container {
	display: flex;
	align-items: center;
	gap: 20px;
	height: 42px;
	white-space: nowrap;
}
.trending-bar .trending-label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--sky-orange);
	flex-shrink: 0;
}
.trending-bar a {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: rgba(255,255,255,0.85);
}
.trending-bar a:hover { color: #fff; }
.trending-bar i { font-size: 14px; }

.breaking-ticker {
	background: var(--sky-orange);
	color: #fff;
	overflow: hidden;
}
.breaking-ticker .container {
	display: flex;
	align-items: center;
	height: 38px;
	gap: 16px;
	padding-left: 0;
	padding-right: 0;
}
.breaking-ticker .breaking-label {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	background: rgba(0,0,0,0.15);
	height: 100%;
	padding: 0 16px;
}
.breaking-ticker .ticker-track-wrap {
	overflow: hidden;
	flex: 1;
}
.breaking-ticker .ticker-track {
	display: flex;
	gap: 40px;
	white-space: nowrap;
	animation: skyrush-ticker 32s linear infinite;
	width: max-content;
}
.breaking-ticker a { font-size: 13px; color: #fff; }
.breaking-ticker a:hover { text-decoration: underline; }
@keyframes skyrush-ticker {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

/* ==========================================================================
   6. Card primitives (shared by featured / news / entity grids)
   ========================================================================== */
.card {
	background: var(--sky-white);
	border: 0.5px solid var(--sky-border);
	border-radius: var(--sky-radius-md);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.card-media { position: relative; aspect-ratio: 16/10; background: var(--sky-bg-alt); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: var(--sky-navy);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 4px 9px;
	border-radius: var(--sky-radius-sm);
}
.card-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.card-title {
	font-family: var(--sky-font-heading);
	font-weight: 700;
	font-size: 15px;
	line-height: 1.35;
	margin: 0 0 6px;
}
.card-title a:hover { color: var(--sky-blue); }
.card-excerpt { font-size: 13px; color: var(--sky-muted); line-height: 1.6; margin: 0 0 8px; }
.card-meta { font-size: 11px; color: var(--sky-muted); margin-top: auto; text-transform: uppercase; letter-spacing: 0.02em; }

/* ==========================================================================
   7. Featured stories grid
   ========================================================================== */
.featured-grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr;
	gap: 16px;
}
.featured-grid .card--hero {
	grid-row: span 2;
}
.featured-grid .card--hero .card-media { aspect-ratio: auto; height: 100%; min-height: 320px; }
.featured-grid .card--hero .card-title { font-size: 20px; }
.featured-grid .card--hero .card-body { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%); color: #fff; }
.featured-grid .card--hero .card-excerpt { color: rgba(255,255,255,0.85); }
.featured-grid .card--hero .card-meta { color: rgba(255,255,255,0.7); }
.featured-grid .card--hero { position: relative; }

@media (max-width: 900px) {
	.featured-grid { grid-template-columns: 1fr 1fr; }
	.featured-grid .card--hero { grid-column: span 2; grid-row: auto; }
	.featured-grid .card--hero .card-media { min-height: 240px; }
}
@media (max-width: 600px) {
	.featured-grid { grid-template-columns: 1fr; }
	.featured-grid .card--hero { grid-column: auto; }
}

/* ==========================================================================
   8. Horizontal card rows (latest news, videos)
   ========================================================================== */
.card-row {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 14px;
}

/* ==========================================================================
   9. Explore by category
   ========================================================================== */
.category-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 28px;
}
.category-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	width: 88px;
}
.category-icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	border: 1.5px solid var(--sky-border);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	color: var(--sky-navy);
}
.category-item:hover .category-icon { border-color: var(--sky-orange); color: var(--sky-orange); }
.category-item span { font-size: 12px; font-weight: 600; text-align: center; }

/* ==========================================================================
   10. Entity showcase (popular aircraft / top airlines / major airports)
   ========================================================================== */
.entity-columns {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.entity-col-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 12px;
}
.entity-col-head h3 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.entity-col-head a { font-size: 12px; font-weight: 600; color: var(--sky-blue); }
.entity-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.entity-thumb {
	flex: 0 0 auto;
	width: 84px;
	text-align: center;
}
.entity-thumb-img {
	width: 84px;
	height: 84px;
	border-radius: var(--sky-radius-md);
	overflow: hidden;
	background: var(--sky-bg-alt);
	border: 0.5px solid var(--sky-border);
}
.entity-thumb-img img { width: 100%; height: 100%; object-fit: cover; }
.entity-thumb span {
	display: block;
	font-size: 11px;
	font-weight: 600;
	margin-top: 6px;
	line-height: 1.3;
}

@media (max-width: 900px) {
	.entity-columns { grid-template-columns: 1fr; gap: 32px; }
}

/* ==========================================================================
   11. Newsletter card
   ========================================================================== */
.newsletter-card {
	background: var(--sky-navy);
	color: #fff;
	border-radius: var(--sky-radius-lg);
	padding: 40px 32px;
	text-align: center;
}
.newsletter-card h2 { font-size: 22px; margin-bottom: 8px; }
.newsletter-card p { color: rgba(255,255,255,0.8); font-size: 14px; margin-bottom: 20px; }
.newsletter-form {
	display: flex;
	gap: 8px;
	max-width: 420px;
	margin: 0 auto;
	flex-wrap: wrap;
	justify-content: center;
}
.newsletter-form input[type="email"] {
	flex: 1;
	min-width: 200px;
	padding: 12px 14px;
	border-radius: var(--sky-radius-sm);
	border: none;
	font-size: 14px;
}
.newsletter-form button {
	background: var(--sky-orange);
	color: #fff;
	border: none;
	padding: 12px 20px;
	border-radius: var(--sky-radius-sm);
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	cursor: pointer;
}
.newsletter-form button:hover { background: #e35f00; }
.newsletter-note { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 10px; }
.newsletter-status { font-size: 13px; margin-top: 12px; padding: 8px 12px; border-radius: var(--sky-radius-sm); display: inline-block; }
.newsletter-status--success { background: rgba(255,255,255,0.15); color: #fff; }
.newsletter-status--error { background: rgba(255,255,255,0.15); color: #ffb4a3; }

/* ==========================================================================
   12. Follow us
   ========================================================================== */
.follow-section {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	align-items: start;
}
.follow-links { display: flex; flex-wrap: wrap; gap: 12px; }
.follow-link {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--sky-bg-alt);
	border-radius: var(--sky-radius-md);
	padding: 12px 16px;
	min-width: 110px;
}
.follow-link i { font-size: 20px; color: var(--sky-navy); }
.follow-link .follow-count { display: block; font-weight: 700; font-size: 14px; }
.follow-link .follow-label { display: block; font-size: 11px; color: var(--sky-muted); }
.about-blurb h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 8px; }
.about-blurb p { font-size: 14px; color: var(--sky-muted); line-height: 1.7; margin-bottom: 10px; }
.about-blurb a { font-size: 13px; font-weight: 600; color: var(--sky-blue); }

@media (max-width: 700px) {
	.follow-section { grid-template-columns: 1fr; }
}

/* ==========================================================================
   13. Footer
   ========================================================================== */
.site-footer {
	background: var(--sky-navy);
	color: rgba(255,255,255,0.75);
	padding: 48px 0 20px;
}
.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 32px;
	margin-bottom: 32px;
}
.footer-brand .site-title { color: #fff; font-family: var(--sky-font-heading); font-weight: 700; font-size: 18px; }
.footer-brand p { font-size: 13px; margin: 12px 0 0; line-height: 1.7; max-width: 260px; }
.footer-col h4 { font-size: 12px; color: #fff; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 13px; }
.footer-col a:hover { color: #fff; }
.footer-navigation ul { list-style: none; display: flex; gap: 16px; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-social { display: flex; gap: 10px; margin-top: 4px; }
.footer-social a {
	width: 32px; height: 32px; border-radius: 50%;
	background: rgba(255,255,255,0.08);
	display: flex; align-items: center; justify-content: center;
	font-size: 14px; color: #fff;
}
.footer-bottom {
	border-top: 0.5px solid rgba(255,255,255,0.15);
	padding-top: 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 12px;
}

@media (max-width: 900px) {
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	.footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   14. Generic pages (single/page/archive/search/404) — unbranded content area
   ========================================================================== */
.site-main { max-width: 900px; margin: 0 auto; padding: 32px 20px; }
.entry-title { font-family: var(--sky-font-heading); font-size: 28px; margin-bottom: 12px; }
.entry-content, .entry-summary { font-size: 16px; line-height: 1.75; color: var(--sky-ink); }
.entry-meta, .page-title { color: var(--sky-muted); }

.skyrush-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: var(--skyrush-space-1);
	list-style: none;
	padding: 0;
	margin: var(--skyrush-space-2) 0;
	font-size: 13px;
}
.skyrush-breadcrumbs a { color: var(--sky-blue); }
.skyrush-breadcrumbs a:hover { text-decoration: underline; }

/* ==========================================================================
   15. Article page (single.php) + shared sidebar
   ========================================================================== */
.site-main--article .container,
.article-layout { max-width: 1180px; margin: 0 auto; padding: 32px 20px; }
.article-layout {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 40px;
	align-items: start;
}
.article-cat-badge {
	display: inline-block;
	background: var(--sky-navy);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 5px 10px;
	border-radius: var(--sky-radius-sm);
	margin-bottom: 12px;
}
.article-body .entry-title { font-size: 30px; margin-bottom: 12px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--sky-muted); margin-bottom: 16px; }
.article-meta-dot { color: var(--sky-border); }
.article-share { display: flex; gap: 8px; margin-bottom: 20px; }
.article-share a {
	width: 32px; height: 32px; border-radius: 50%;
	border: 0.5px solid var(--sky-border);
	display: flex; align-items: center; justify-content: center;
	color: var(--sky-navy); font-size: 14px;
}
.article-share a:hover { background: var(--sky-bg-alt); }
.article-featured-image { border-radius: var(--sky-radius-md); overflow: hidden; margin-bottom: 24px; }
.article-body .entry-content { font-size: 16px; line-height: 1.8; }
.article-body .entry-content h2 { font-size: 22px; margin: 32px 0 12px; }
.article-body .entry-content h3 { font-size: 18px; margin: 24px 0 10px; }
.article-body .entry-content p { margin: 0 0 16px; }
.article-body .entry-content ul,
.article-body .entry-content ol { margin: 0 0 16px; padding-left: 22px; }

.article-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 80px; }
.sidebar-card { background: var(--sky-bg-alt); border-radius: var(--sky-radius-md); padding: 18px; }
.sidebar-card h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 14px; }
.toc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.toc-list .toc-level-h3 { padding-left: 14px; }
.toc-list a { color: var(--sky-muted); }
.toc-list a:hover { color: var(--sky-blue); }

.related-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.related-list a { display: flex; align-items: center; gap: 10px; }
.related-list--stacked a { align-items: flex-start; flex-direction: column; gap: 2px; }
.related-thumb { width: 52px; height: 52px; border-radius: var(--sky-radius-sm); overflow: hidden; flex-shrink: 0; background: var(--sky-white); }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-title { display: block; font-size: 13px; font-weight: 600; line-height: 1.4; }
.related-date { display: block; font-size: 11px; color: var(--sky-muted); margin-top: 2px; }

.numbered-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: none; }
.numbered-list li { display: flex; align-items: flex-start; gap: 10px; }
.numbered-badge {
	flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
	background: var(--sky-navy); color: #fff;
	font-size: 11px; font-weight: 700;
	display: flex; align-items: center; justify-content: center;
}
.numbered-list a { font-size: 13px; font-weight: 600; line-height: 1.4; }
.numbered-list a:hover { color: var(--sky-blue); }
.tracker-embed iframe { width: 100%; border-radius: var(--sky-radius-sm); }

@media (max-width: 900px) {
	.article-layout { grid-template-columns: 1fr; }
	.article-sidebar { position: static; }
}

/* ==========================================================================
   16. Listing page (archive.php)
   ========================================================================== */
.listing-layout {
	max-width: 1180px;
	margin: 0 auto;
	padding: 32px 20px;
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 40px;
	align-items: start;
}
.listing-main .page-title { font-size: 26px; margin-bottom: 6px; }
.listing-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 20px; }

@media (max-width: 900px) {
	.listing-layout { grid-template-columns: 1fr; }
}

/* ==========================================================================
   17. Entity detail pages (Aircraft / Airline / Airport)
   ========================================================================== */
.entity-detail .entity-hero {
	background: var(--sky-navy);
	color: #fff;
}
.entity-hero-media { aspect-ratio: 21/9; overflow: hidden; }
.entity-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.entity-hero-body { max-width: 1180px; margin: 0 auto; padding: 24px 20px 28px; }
.entity-hero-body h1 { font-size: 30px; margin: 6px 0 16px; }
.entity-hero-body .eyebrow { color: var(--sky-orange); }

.entity-stat-row { display: flex; flex-wrap: wrap; gap: 24px; }
.entity-stat { display: flex; flex-direction: column; gap: 2px; }
.entity-stat-value { font-size: 18px; font-weight: 700; font-family: var(--sky-font-heading); }
.entity-stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em; color: rgba(255,255,255,0.65); }

.entity-tabs { max-width: 1180px; margin: 0 auto; padding: 28px 20px 48px; }
.tab-buttons { display: flex; gap: 4px; border-bottom: 0.5px solid var(--sky-border); margin-bottom: 24px; overflow-x: auto; }
.tab-buttons button {
	background: transparent; border: none; cursor: pointer;
	padding: 10px 16px; font-size: 13px; font-weight: 700;
	text-transform: uppercase; letter-spacing: 0.02em;
	color: var(--sky-muted); border-bottom: 2px solid transparent;
	white-space: nowrap;
}
.tab-buttons button[aria-selected="true"] { color: var(--sky-navy); border-bottom-color: var(--sky-orange); }
.tab-panel .entry-content { font-size: 15px; line-height: 1.8; max-width: 760px; }

.specs-table { width: 100%; border-collapse: collapse; max-width: 560px; }
.specs-table tr { border-bottom: 0.5px solid var(--sky-border); }
.specs-table th, .specs-table td { text-align: left; padding: 12px 8px; font-size: 14px; }
.specs-table th { color: var(--sky-muted); font-weight: 600; width: 40%; }
.specs-table td { font-weight: 600; }

.entity-mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; }
.entity-mini-card { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.entity-mini-card img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--sky-radius-md); background: var(--sky-bg-alt); border: 0.5px solid var(--sky-border); }
.entity-mini-card span { font-size: 12px; font-weight: 600; }

@media (max-width: 700px) {
	.entity-stat-row { gap: 16px; }
}

/* ==========================================================================
   18. Flight distance calculator (tool page)
   ========================================================================== */
.tool-card { background: var(--sky-bg-alt); border-radius: var(--sky-radius-lg); padding: 24px; }
.tool-field-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: end; margin-bottom: 16px; }
.tool-field { position: relative; display: flex; flex-direction: column; gap: 6px; }
.tool-field label { font-size: 12px; font-weight: 600; color: var(--sky-muted); }
.tool-field input {
	padding: 11px 12px;
	border-radius: var(--sky-radius-sm);
	border: 0.5px solid var(--sky-border);
	background: var(--sky-white);
	font-size: 14px;
	color: var(--sky-ink);
}
.tool-swap {
	width: 36px; height: 36px; border-radius: 50%;
	border: 0.5px solid var(--sky-border);
	background: var(--sky-white);
	color: var(--sky-navy);
	cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	margin-bottom: 2px;
}
.tool-suggestions {
	position: absolute;
	top: 100%; left: 0; right: 0;
	background: var(--sky-white);
	border: 0.5px solid var(--sky-border);
	border-radius: var(--sky-radius-sm);
	margin-top: 4px;
	z-index: 10;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.tool-suggestion-item {
	display: block;
	width: 100%;
	text-align: left;
	padding: 10px 12px;
	font-size: 13px;
	background: transparent;
	border: none;
	cursor: pointer;
	color: var(--sky-ink);
}
.tool-suggestion-item:hover { background: var(--sky-bg-alt); }
.tool-calculate:disabled { opacity: 0.5; cursor: not-allowed; }
.tool-results { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.tool-result { background: var(--sky-white); border-radius: var(--sky-radius-md); padding: 16px; text-align: center; }
.tool-result-value { display: block; font-size: 24px; font-weight: 700; font-family: var(--sky-font-heading); color: var(--sky-navy); }
.tool-result-label { display: block; font-size: 12px; color: var(--sky-muted); margin-top: 4px; }
.tool-note { font-size: 12px; color: var(--sky-muted); margin-top: 12px; line-height: 1.6; }

@media (max-width: 560px) {
	.tool-field-row { grid-template-columns: 1fr; }
	.tool-swap { justify-self: center; transform: rotate(90deg); }
}

/* ==========================================================================
   19. Video pages
   ========================================================================== */
.video-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.video-filters a {
	font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em;
	padding: 8px 14px; border-radius: var(--sky-radius-sm);
	background: var(--sky-bg-alt); color: var(--sky-muted);
}
.video-filters a.is-active { background: var(--sky-navy); color: #fff; }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 32px; }
.video-card-media { position: relative; aspect-ratio: 16/9; border-radius: var(--sky-radius-md); overflow: hidden; background: var(--sky-bg-alt); }
.video-card-media img { width: 100%; height: 100%; object-fit: cover; }
.video-play-icon {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	font-size: 40px; color: #fff;
	background: rgba(10,35,66,0.25);
}
.video-duration {
	position: absolute; bottom: 8px; right: 8px;
	background: rgba(0,0,0,0.75); color: #fff;
	font-size: 11px; font-weight: 600;
	padding: 2px 6px; border-radius: 4px;
}
.video-card-title { display: block; margin-top: 8px; font-size: 13px; font-weight: 600; line-height: 1.4; }

.article-video-embed { margin-bottom: 24px; border-radius: var(--sky-radius-md); overflow: hidden; }
.article-video-embed iframe { width: 100%; aspect-ratio: 16/9; }
