/*
 * FSX Simulator Info - modern, mobile-first layer.
 * Written small-screen first; wider layouts are added with min-width queries.
 * Uses system fonts only (no external font requests).
 */

:root {
	--ink: #0f1c2e;
	--ink-soft: #3d4c61;
	--muted: #5d6b80;
	--bg: #eef2f7;
	--surface: #ffffff;
	--line: #d9e1ec;
	--sky: #0a5fb4;
	--sky-dark: #084a8c;
	--sky-deep: #0b2a4a;
	--sky-tint: #e6f0fb;
	--amber: #f2a516;
	--radius: 14px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgba(15, 28, 46, .06), 0 6px 20px rgba(15, 28, 46, .06);
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	--wrap: 1180px;
	--gutter: 16px;
}

/* ---------- Base ---------- */

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

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

body,
body.custom-background {
	margin: 0;
	background-color: var(--bg) !important;
	background-image: none !important;
	color: var(--ink);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.65;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

#page {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	background: transparent;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
}

#page p {
	margin: 0 0 1.1em;
	text-align: left;
}

#page a {
	color: var(--sky);
	text-decoration: none;
	transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}

#page a:hover {
	color: var(--sky-dark);
}

#page a:focus-visible,
#page button:focus-visible,
#page input:focus-visible,
#page textarea:focus-visible,
#page select:focus-visible {
	outline: 3px solid var(--amber);
	outline-offset: 2px;
}

#page h1,
#page h2,
#page h3,
#page h4,
#page h5,
#page h6 {
	font-family: var(--font);
	color: var(--ink);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -.01em;
	margin: 0 0 .6em;
}

#page img,
#page video,
#page iframe,
#page embed,
#page object {
	max-width: 100%;
}

#page img {
	height: auto;
	border: 0;
}

#page ins.adsbygoogle {
	max-width: 100%;
}

.clear {
	clear: both;
}

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

.screen-reader-text:focus {
	clip-path: none;
	height: auto;
	width: auto;
	margin: 0;
	left: 8px;
	top: 8px;
	z-index: 100000;
	padding: 12px 16px;
	background: #fff;
	color: var(--ink) !important;
	border-radius: var(--radius-sm);
}

/* ---------- Header ---------- */

.site-header {
	background: var(--sky-deep);
	color: #fff;
}

.site-header .site-branding {
	position: relative;
	display: flex;
	align-items: flex-end;
	height: auto !important;
	min-height: clamp(128px, 30vw, 240px);
	margin: 0;
	padding: 0;
	background-color: var(--sky-deep) !important;
	background-size: cover !important;
	background-position: 50% 45% !important;
	background-repeat: no-repeat;
}

.site-header .site-branding::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(11, 42, 74, .10) 0%, rgba(11, 42, 74, .55) 55%, rgba(11, 42, 74, .92) 100%);
}

.site-title-group {
	position: relative;
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 16px var(--gutter);
}

#page .site-title {
	margin: 0;
	font-size: clamp(1.6rem, 6vw, 2.75rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -.02em;
}

#page .site-title a,
#page .site-title a:hover {
	color: #fff;
	text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}

#page .site-description {
	margin: 6px 0 0;
	font-size: .95rem;
	font-weight: 400;
	color: rgba(255, 255, 255, .85);
}

#page .site-description:empty {
	display: none;
}

/* ---------- Navigation (mobile first: collapsed) ---------- */

.navigation-main {
	background: var(--sky-deep);
	border-top: 3px solid var(--amber);
}

.navigation-main > div,
.navigation-main .menu-toggle {
	max-width: var(--wrap);
	margin: 0 auto;
}

#page .menu-toggle {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	width: 100%;
	min-height: 52px;
	padding: 0 var(--gutter);
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: #fff;
	font: 600 1rem/1 var(--font);
	letter-spacing: .02em;
	text-align: left;
	cursor: pointer;
}

.menu-toggle-icon {
	position: relative;
	display: block;
	width: 22px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: background-color .2s ease;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
	content: "";
	position: absolute;
	left: 0;
	width: 22px;
	height: 2px;
	border-radius: 2px;
	background: #fff;
	transition: transform .2s ease;
}

.menu-toggle-icon::before { transform: translateY(-7px); }
.menu-toggle-icon::after { transform: translateY(7px); }

.navigation-main.toggled .menu-toggle-icon { background: transparent; }
.navigation-main.toggled .menu-toggle-icon::before { transform: rotate(45deg); }
.navigation-main.toggled .menu-toggle-icon::after { transform: rotate(-45deg); }

#page .navigation-main ul {
	display: none;
	list-style: none;
	margin: 0;
	padding: 0;
}

#page .navigation-main.toggled ul {
	display: block;
}

#page .navigation-main li {
	display: block;
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
	border-top: 1px solid rgba(255, 255, 255, .12);
}

#page .navigation-main a {
	display: block;
	padding: 14px var(--gutter);
	color: #fff;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.3;
}

#page .navigation-main a:hover,
#page .navigation-main .current-menu-item > a,
#page .navigation-main .current_page_item > a,
#page .navigation-main .current-menu-ancestor > a {
	background: rgba(255, 255, 255, .10);
	color: #fff;
}

#page .navigation-main ul ul a {
	padding-left: calc(var(--gutter) + 18px);
	font-weight: 400;
	color: rgba(255, 255, 255, .9);
}

#page .navigation-main ul ul ul a {
	padding-left: calc(var(--gutter) + 36px);
}

/* ---------- Main layout ---------- */

.site-main {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 18px;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 18px var(--gutter) 40px;
}

.site-main > * {
	min-width: 0;
}

/* Old clearfix pseudo-elements would become stray grid/flex items. */
.site-main::before,
.site-main::after,
.site-content::before,
.site-content::after,
.content-area::before,
.content-area::after,
.widget-area::before,
.widget-area::after,
.featured-content::before,
.featured-content::after,
.featured-content-secondary::before,
.featured-content-secondary::after,
.site-content > article::before,
.site-content > article::after,
.featured-content article::before,
.featured-content article::after,
.navigation-paging::before,
.navigation-paging::after,
.navigation-post::before,
.navigation-post::after,
.related-content article::before,
.related-content article::after {
	content: none !important;
	display: none !important;
}

.content-area,
.site-content {
	width: auto;
	float: none;
	margin: 0;
	padding: 0;
}

.site-content {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
}

.site-content > * {
	min-width: 0;
}

/* ---------- Shared pieces ---------- */

#page .entry-title {
	margin: 0;
	font-size: 1.15rem;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

#page .entry-title a {
	color: var(--ink);
}

#page .entry-title a:hover {
	color: var(--sky);
}

#page .entry-meta {
	font-family: var(--mono);
	font-size: .78rem;
	line-height: 1.5;
	letter-spacing: .01em;
	color: var(--muted);
}

#page .entry-meta a {
	color: var(--muted);
	text-decoration: underline;
	text-decoration-color: var(--line);
	text-underline-offset: 3px;
}

#page .entry-meta a:hover {
	color: var(--sky);
	text-decoration-color: currentColor;
}

#page .entry-summary {
	color: var(--ink-soft);
	font-size: .97rem;
}

#page .entry-summary p:last-child {
	margin-bottom: 0;
}

#page .entry-thumbnail {
	position: relative;
	margin: 0;
	line-height: 0;
}

#page .entry-thumbnail img {
	display: block;
	width: 100%;
	border-radius: var(--radius-sm);
	object-fit: cover;
}

#page .button-primary,
#page button,
#page input[type="submit"],
#page input[type="button"],
#page input[type="reset"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 20px;
	border: 0;
	border-radius: 999px;
	background: var(--sky);
	box-shadow: none;
	color: #fff;
	font: 600 1rem/1 var(--font);
	text-shadow: none;
	cursor: pointer;
	transition: background-color .15s ease, transform .15s ease;
}

#page .button-primary:hover,
#page button:hover,
#page input[type="submit"]:hover,
#page input[type="button"]:hover,
#page input[type="reset"]:hover {
	background: var(--sky-dark);
	color: #fff;
}

#page .button-primary:active,
#page input[type="submit"]:active {
	transform: translateY(1px);
}

#page input[type="text"],
#page input[type="email"],
#page input[type="url"],
#page input[type="password"],
#page input[type="search"],
#page input[type="tel"],
#page input[type="number"],
#page select,
#page textarea {
	width: 100%;
	max-width: 100%;
	min-height: 46px;
	padding: 10px 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: #fff;
	box-shadow: none;
	color: var(--ink);
	font: 400 16px/1.4 var(--font);
}

#page textarea {
	min-height: 140px;
}

/* ---------- Home: lead story ---------- */

.featured-content {
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
}

.featured-content article {
	position: relative;
	display: grid;
	gap: 14px;
	padding: 22px 18px;
	border-radius: var(--radius);
	background:
		radial-gradient(120% 140% at 100% 0%, rgba(242, 165, 22, .22) 0%, rgba(242, 165, 22, 0) 45%),
		linear-gradient(140deg, #0b2a4a 0%, #0a4b8d 100%);
	box-shadow: var(--shadow);
	color: #fff;
	overflow: hidden;
}

#page .featured-content .entry-title {
	font-size: clamp(1.5rem, 6vw, 2.4rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.02em;
}

#page .featured-content .entry-title a,
#page .featured-content .entry-title a:hover {
	color: #fff;
}

#page .featured-content .entry-summary {
	color: rgba(255, 255, 255, .88);
	font-size: 1rem;
}

#page .featured-content .button-primary {
	background: var(--amber);
	color: #1a1300;
}

#page .featured-content .button-primary:hover {
	background: #ffbb33;
	color: #1a1300;
}

/* ---------- Home: secondary stories ---------- */

.featured-content-secondary {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
}

.featured-content-secondary > .clear {
	display: none;
}

.featured-content-secondary article {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: auto;
	float: none;
	margin: 0;
	padding: 16px;
	border: 1px solid var(--line);
	border-top: 3px solid var(--sky);
	border-radius: var(--radius);
	background: var(--surface);
}

#page .featured-content-secondary .entry-title {
	font-size: 1.08rem;
}

#page .featured-content-secondary .entry-summary p {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	line-clamp: 4;
	overflow: hidden;
	font-size: .93rem;
}

#page .entry-thumbnail-category {
	position: absolute;
	left: 8px;
	bottom: 8px;
	padding: 4px 8px;
	border-radius: 999px;
	background: rgba(11, 42, 74, .85);
	font: 600 .7rem/1.2 var(--mono);
	color: #fff;
}

#page .entry-thumbnail-category a {
	color: #fff;
}

/* ---------- Post lists (home, archives, search) ---------- */

.blog .site-content > article,
.archive .site-content > article,
.search .site-content > article {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 8px 14px;
	align-items: start;
	margin: 0;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	transition: border-color .15s ease, box-shadow .15s ease;
}

.blog .site-content > article:hover,
.archive .site-content > article:hover,
.search .site-content > article:hover {
	border-color: #b9c8dc;
	box-shadow: var(--shadow);
}

.blog .site-content > article.has-post-thumbnail,
.archive .site-content > article.has-post-thumbnail,
.search .site-content > article.has-post-thumbnail {
	grid-template-columns: 104px minmax(0, 1fr);
}

.blog .site-content > article .entry-thumbnail,
.archive .site-content > article .entry-thumbnail,
.search .site-content > article .entry-thumbnail {
	grid-column: 1;
	grid-row: 1;
	float: none;
	width: auto;
	margin: 0;
}

.blog .site-content > article .entry-thumbnail img,
.archive .site-content > article .entry-thumbnail img,
.search .site-content > article .entry-thumbnail img {
	aspect-ratio: 4 / 3;
}

.blog .site-content > article.has-post-thumbnail .entry-header,
.archive .site-content > article.has-post-thumbnail .entry-header,
.search .site-content > article.has-post-thumbnail .entry-header {
	grid-column: 2;
	align-self: center;
}

.blog .site-content > article .entry-summary,
.blog .site-content > article .entry-meta,
.archive .site-content > article .entry-summary,
.archive .site-content > article .entry-meta,
.search .site-content > article .entry-summary,
.search .site-content > article .entry-meta {
	grid-column: 1 / -1;
}

.blog .site-content > article .entry-summary p,
.archive .site-content > article .entry-summary p,
.search .site-content > article .entry-summary p {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
}

/* ---------- Archive / search heading ---------- */

.page-header {
	margin: 0;
	padding: 18px;
	border-left: 4px solid var(--amber);
	border-radius: var(--radius-sm);
	background: var(--surface);
}

#page .page-header .page-title {
	margin: 0;
	font-size: clamp(1.35rem, 5vw, 1.9rem);
}

.taxonomy-description {
	margin-top: 8px;
	color: var(--ink-soft);
}

/* ---------- Single posts and pages ---------- */

.single .site-content > article,
.page .site-content > article,
.error404 .site-content > article,
.site-content > .no-results,
.site-content > .error-404 {
	margin: 0;
	padding: 22px 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
}

body.single #page .site-content > article > .entry-header .entry-title,
body.page #page .site-content > article > .entry-header .entry-title,
body.attachment #page .site-content > article > .entry-header .entry-title {
	margin: 0 0 10px;
	font-size: clamp(1.55rem, 6vw, 2.35rem);
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: -.02em;
}

.single .entry-header,
.page .entry-header {
	margin: 0 0 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--line);
}

.single .site-content > article > footer.entry-meta {
	margin-top: 22px;
	padding-top: 14px;
	border-top: 1px solid var(--line);
}

#page .entry-content {
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--ink);
	overflow-wrap: break-word;
}

#page .entry-content > *:last-child {
	margin-bottom: 0;
}

#page .entry-content a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

#page .entry-content h1 { font-size: 1.6rem; margin-top: 1.4em; }
#page .entry-content h2 { font-size: 1.4rem; margin-top: 1.4em; }
#page .entry-content h3 { font-size: 1.2rem; margin-top: 1.3em; }
#page .entry-content h4,
#page .entry-content h5,
#page .entry-content h6 { font-size: 1.05rem; margin-top: 1.2em; }

#page .entry-content ul,
#page .entry-content ol,
#page .comment-content ul,
#page .comment-content ol {
	margin: 0 0 1.1em;
	padding-left: 1.4em;
}

#page .entry-content ul,
#page .comment-content ul { list-style: disc; }
#page .entry-content ol,
#page .comment-content ol { list-style: decimal; }

#page .entry-content li {
	margin-bottom: .35em;
}

#page .entry-content blockquote {
	margin: 0 0 1.1em;
	padding: 12px 16px;
	border-left: 4px solid var(--sky);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	background: var(--sky-tint);
	color: var(--ink-soft);
	font-style: normal;
}

#page .entry-content pre,
#page .entry-content code,
#page .comment-content code {
	font-family: var(--mono);
	font-size: .9em;
}

#page .entry-content code {
	padding: 2px 6px;
	border-radius: 4px;
	background: var(--bg);
}

#page .entry-content pre {
	margin: 0 0 1.1em;
	padding: 14px;
	border-radius: var(--radius-sm);
	background: #0f1c2e;
	color: #e8eef7;
	overflow-x: auto;
	white-space: pre;
}

#page .entry-content pre code {
	padding: 0;
	background: none;
}

#page .entry-content table {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0 0 1.1em;
	border-collapse: collapse;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

#page .entry-content th,
#page .entry-content td {
	padding: 8px 10px;
	border: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

#page .entry-content th {
	background: var(--bg);
	font-weight: 600;
}

#page .entry-content img {
	border-radius: var(--radius-sm);
}

#page .entry-content iframe[src*="youtube"],
#page .entry-content iframe[src*="youtu.be"],
#page .entry-content iframe[src*="vimeo"] {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: var(--radius-sm);
}

#page .wp-caption {
	max-width: 100%;
	margin-bottom: 1.1em;
	padding: 0;
	border: 0;
	background: none;
}

#page .wp-caption-text,
#page .gallery-caption {
	margin: 6px 0 0;
	font-size: .85rem;
	color: var(--muted);
	text-align: left;
}

#page .alignleft,
#page .alignright {
	float: none;
	display: block;
	margin: 0 0 1em;
}

#page .aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

#page .page-links {
	clear: both;
	margin-top: 1.2em;
	font-family: var(--mono);
	font-size: .85rem;
}

#page .gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 0 0 1.1em;
}

#page .gallery .gallery-item {
	width: auto !important;
	float: none !important;
	margin: 0 !important;
}

#page .gallery br {
	display: none;
}

#page .gallery img {
	width: 100%;
	border: 0 !important;
}

/* ---------- Related posts ---------- */

.related-content {
	margin: 0;
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
}

#page .related-content-title,
#page .comments-title,
#page .comment-reply-title,
#page .widget-title {
	margin: 0 0 12px;
	padding: 0;
	border: 0;
	background: none;
	font: 700 .8rem/1.3 var(--mono);
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

#page .related-content-title::before,
#page .comments-title::before,
#page .comment-reply-title::before,
#page .widget-title::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 3px;
	margin-right: 8px;
	border-radius: 2px;
	background: var(--amber);
	vertical-align: middle;
}

.related-content article {
	display: flex;
	align-items: center;
	gap: 12px;
	width: auto;
	float: none;
	margin: 0;
	padding: 10px 0;
	border-top: 1px solid var(--line);
}

.related-content .entry-thumbnail {
	flex: 0 0 50px;
}

body #page .site-content .related-content .entry-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0;
}

.related-content .entry-header {
	margin: 0;
	padding: 0;
	border: 0;
}

/* ---------- Paging ---------- */

.navigation-paging,
.navigation-post {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: space-between;
	margin: 0;
	padding: 0;
}

.navigation-paging .nav-previous,
.navigation-paging .nav-next,
.navigation-post .nav-previous,
.navigation-post .nav-next {
	float: none;
	width: auto;
	max-width: 100%;
	flex: 1 1 240px;
}

.navigation-paging .nav-next,
.navigation-post .nav-next {
	text-align: right;
}

#page .navigation-paging a,
#page .navigation-post a {
	display: block;
	min-height: 46px;
	padding: 12px 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--ink);
	font-size: .95rem;
	font-weight: 600;
	line-height: 1.35;
}

#page .navigation-paging a:hover,
#page .navigation-post a:hover {
	border-color: var(--sky);
	color: var(--sky);
}

/* ---------- Comments ---------- */

.comments-area {
	margin: 0;
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
}

#page .comment-list,
#page .commentlist,
#page .comment-list .children,
#page .commentlist .children {
	list-style: none;
	margin: 0;
	padding: 0;
}

#page .comment-list .children,
#page .commentlist .children {
	margin-left: 14px;
	padding-left: 12px;
	border-left: 2px solid var(--line);
}

#page article.comment,
#page li.pingback {
	margin: 0 0 14px;
	padding: 14px;
	border-radius: var(--radius-sm);
	background: var(--bg);
	overflow-wrap: anywhere;
}

#page .comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
}

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

#page .comment-author .says {
	display: none;
}

#page .comment-meta {
	margin: 4px 0 8px;
	font: 400 .75rem/1.4 var(--mono);
	color: var(--muted);
}

#page .comment-meta a {
	color: var(--muted);
}

#page .comment-content p:last-child {
	margin-bottom: 0;
}

#page .reply {
	margin-top: 8px;
	font-size: .9rem;
	font-weight: 600;
}

#page .comment-respond {
	margin-top: 18px;
}

#page .comment-form label {
	display: block;
	margin-bottom: 4px;
	font-size: .9rem;
	font-weight: 600;
}

#page .comment-form p {
	margin-bottom: 14px;
}

#page .comment-form .comment-form-cookies-consent label {
	display: inline;
	font-weight: 400;
}

#page .comment-notes,
#page .logged-in-as,
#page .form-allowed-tags {
	font-size: .88rem;
	color: var(--muted);
}

/* ---------- Sidebar ---------- */

.widget-area {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
	align-content: start;
	width: auto;
	float: none;
	margin: 0;
	padding: 0;
	background: none;
}

#page .widget {
	margin: 0;
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	font-size: .95rem;
	line-height: 1.5;
	overflow-wrap: anywhere;
	overflow: hidden;
}

#page .widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

#page .widget li {
	margin: 0;
	padding: 9px 0;
	border-top: 1px solid var(--line);
}

#page .widget li:first-child {
	padding-top: 0;
	border-top: 0;
}

#page .widget li:last-child {
	padding-bottom: 0;
}

#page .widget ul ul {
	margin-top: 9px;
	padding-left: 14px;
}

#page .widget ul ul li:first-child {
	padding-top: 9px;
	border-top: 1px solid var(--line);
}

#page .tagcloud {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

#page .tagcloud a {
	display: inline-block;
	padding: 5px 10px;
	border-radius: 999px;
	background: var(--sky-tint);
	color: var(--sky-dark);
	font-size: .82rem !important;
	line-height: 1.3;
}

#page .tagcloud a:hover {
	background: var(--sky);
	color: #fff;
}

#page .search-form,
#page .searchform {
	display: flex;
	gap: 8px;
}

#page .search-form label,
#page .searchform label {
	flex: 1 1 auto;
	min-width: 0;
}

/* ---------- Footer ---------- */

.site-footer {
	margin: 0;
	padding: 26px var(--gutter);
	border-top: 3px solid var(--amber);
	background: var(--sky-deep);
	color: rgba(255, 255, 255, .8);
	text-align: center;
}

#page .site-footer .site-info {
	max-width: var(--wrap);
	margin: 0 auto;
	font: 400 .8rem/1.6 var(--mono);
	letter-spacing: .02em;
}

#page .site-footer a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- 600px and up ---------- */

@media (min-width: 600px) {
	:root {
		--gutter: 24px;
	}

	.site-main {
		gap: 22px;
		padding-top: 24px;
	}

	.featured-content article {
		padding: 32px 30px;
	}

	.featured-content article.has-post-thumbnail {
		grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
		align-items: center;
		column-gap: 26px;
	}

	.featured-content article.has-post-thumbnail .entry-thumbnail {
		grid-row: 1 / span 2;
	}

	.featured-content-secondary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.blog .site-content > article,
	.archive .site-content > article,
	.search .site-content > article {
		padding: 20px;
		gap: 8px 20px;
	}

	.blog .site-content > article.has-post-thumbnail,
	.archive .site-content > article.has-post-thumbnail,
	.search .site-content > article.has-post-thumbnail {
		grid-template-columns: 200px minmax(0, 1fr);
	}

	.blog .site-content > article.has-post-thumbnail .entry-thumbnail,
	.archive .site-content > article.has-post-thumbnail .entry-thumbnail,
	.search .site-content > article.has-post-thumbnail .entry-thumbnail {
		grid-row: 1 / span 3;
	}

	.blog .site-content > article.has-post-thumbnail .entry-thumbnail img,
	.archive .site-content > article.has-post-thumbnail .entry-thumbnail img,
	.search .site-content > article.has-post-thumbnail .entry-thumbnail img {
		aspect-ratio: 220 / 126;
	}

	.blog .site-content > article.has-post-thumbnail .entry-header,
	.blog .site-content > article.has-post-thumbnail .entry-summary,
	.blog .site-content > article.has-post-thumbnail .entry-meta,
	.archive .site-content > article.has-post-thumbnail .entry-header,
	.archive .site-content > article.has-post-thumbnail .entry-summary,
	.archive .site-content > article.has-post-thumbnail .entry-meta,
	.search .site-content > article.has-post-thumbnail .entry-header,
	.search .site-content > article.has-post-thumbnail .entry-summary,
	.search .site-content > article.has-post-thumbnail .entry-meta {
		grid-column: 2;
		align-self: start;
	}

	#page .entry-title {
		font-size: 1.25rem;
	}

	.single .site-content > article,
	.page .site-content > article,
	.error404 .site-content > article {
		padding: 32px 36px;
	}

	.comments-area,
	.related-content {
		padding: 24px 28px;
	}

	#page .alignleft {
		float: left;
		max-width: 50%;
		margin: .3em 1.4em 1em 0;
	}

	#page .alignright {
		float: right;
		max-width: 50%;
		margin: .3em 0 1em 1.4em;
	}

	#page .gallery {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.widget-area {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ---------- 820px and up: horizontal menu ---------- */

@media (min-width: 820px) {
	#page .menu-toggle {
		display: none;
	}

	.navigation-main > div {
		padding: 0 calc(var(--gutter) - 14px);
	}

	#page .navigation-main ul,
	#page .navigation-main.toggled ul {
		display: flex;
		flex-wrap: wrap;
	}

	#page .navigation-main li {
		position: relative;
		border-top: 0;
	}

	#page .navigation-main a {
		padding: 16px 14px;
		font-size: .95rem;
		white-space: nowrap;
	}

	#page .navigation-main ul ul,
	#page .navigation-main.toggled ul ul {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 60;
		min-width: 230px;
		padding: 6px 0;
		border-radius: 0 0 var(--radius-sm) var(--radius-sm);
		background: var(--sky-deep);
		box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
	}

	#page .navigation-main li:hover > ul,
	#page .navigation-main li:focus-within > ul {
		display: block;
	}

	#page .navigation-main ul ul ul {
		top: 0;
		left: 100%;
	}

	#page .navigation-main ul ul a,
	#page .navigation-main ul ul ul a {
		padding: 10px 16px;
		white-space: normal;
	}
}

/* ---------- 1000px and up: content plus sidebar ---------- */

@media (min-width: 1000px) {
	.site-main {
		grid-template-columns: minmax(0, 1fr) 300px;
		gap: 26px 30px;
		padding-top: 30px;
		padding-bottom: 60px;
	}

	.site-main > * {
		grid-column: 1 / -1;
	}

	.site-main > #primary {
		grid-column: 1;
	}

	.site-main > #secondary {
		grid-column: 2;
	}

	.site-main:not(:has(#secondary)) > #primary {
		grid-column: 1 / -1;
	}

	.widget-area {
		grid-template-columns: minmax(0, 1fr);
	}

	.featured-content-secondary {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.featured-content article {
		padding: 44px 44px;
	}

	#page .featured-content .entry-summary {
		max-width: 62ch;
		font-size: 1.06rem;
	}

	#page .entry-content {
		font-size: 1.1rem;
	}
}

/* ---------- Motion preferences ---------- */

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

	#page *,
	#page *::before,
	#page *::after {
		transition: none !important;
		animation: none !important;
	}
}
