/* ==========================================================================
   Skydancer theme
   Tokens come from theme.json. The --skyd-* aliases are what sections read,
   so a section works on any site that sets these variables.
   Spacing runs on an 8px grid: 8, 16, 24, 32, 48, 64, 96, 128.
   ========================================================================== */

:root {
	--skyd-ink: var(--wp--preset--color--ink, #1F2A36);
	--skyd-ink-soft: var(--wp--preset--color--ink-soft, #313B46);
	--skyd-ink-deep: var(--wp--preset--color--ink-deep, #1A1C1C);
	--skyd-paper: var(--wp--preset--color--paper, #FFFFFF);
	--skyd-mist: var(--wp--preset--color--mist, #E8DCC6);
	--skyd-line: var(--wp--preset--color--line, #D0C7B5);
	--skyd-muted: var(--wp--preset--color--muted, #60676E);
	--skyd-accent: var(--wp--preset--color--accent, #E4AF0D);
	--skyd-accent-ink: var(--wp--preset--color--accent-ink, #1F2A36);
	--skyd-field-1: var(--wp--preset--color--field-1, #0E7C86);
	--skyd-field-2: var(--wp--preset--color--field-2, #7ED6D5);
	--skyd-field-3: var(--wp--preset--color--field-3, #E4572E);
	--skyd-field-4: var(--wp--preset--color--field-4, #C62828);

	--skyd-font-body: var(--wp--preset--font-family--body, system-ui, sans-serif);
	--skyd-font-heading: var(--wp--preset--font-family--heading, var(--skyd-font-body));

	--skyd-radius-sm: 4px;
	--skyd-radius-md: 8px;
	--skyd-radius-lg: 16px;
	--skyd-radius-pill: 999px;
	--skyd-shadow: 0 16px 40px rgba(31, 42, 54, 0.10);

	--skyd-content: 720px;
	--skyd-wide: 1280px;
	--skyd-gutter: 24px;
	--skyd-section-y: 64px;
	--skyd-header-h: 72px;
	--skyd-admin-bar: 0px;
}

@media (min-width: 768px) {
	:root {
		--skyd-gutter: 32px;
		--skyd-section-y: 96px;
	}
}

@media (min-width: 1200px) {
	:root {
		--skyd-gutter: 48px;
		--skyd-section-y: 128px;
		--skyd-header-h: 80px;
	}
}

.admin-bar { --skyd-admin-bar: 46px; }
@media (min-width: 783px) { .admin-bar { --skyd-admin-bar: 32px; } }

/* Base
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--skyd-header-h) + 24px);
}

body {
	margin: 0;
	background: var(--skyd-paper);
	color: var(--skyd-ink);
	font-family: var(--skyd-font-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img,
video,
svg { max-width: 100%; height: auto; }

a { color: inherit; }

:focus-visible {
	outline: 2px solid var(--skyd-accent);
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skyd-skip-link {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 100;
	padding: 8px 16px;
	background: var(--skyd-ink);
	color: var(--skyd-paper);
	border-radius: var(--skyd-radius-sm);
	transform: translateY(-200%);
}
.skyd-skip-link:focus { transform: none; }

/* Buttons
   ========================================================================== */

.skyd-button,
.wp-element-button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 24px;
	border: 1px solid transparent;
	border-radius: var(--skyd-radius-pill);
	background: var(--skyd-accent);
	color: var(--skyd-accent-ink);
	font: 500 17px/1.2 var(--skyd-font-body);
	text-decoration: none;
	cursor: pointer;
	transition: background-color 160ms ease, color 160ms ease;
}
.skyd-button:is(:hover, :focus-visible),
.wp-element-button:is(:hover, :focus-visible),
.wp-block-button__link:is(:hover, :focus-visible) {
	background: var(--skyd-field-1, #0E7C86);
	color: #FFFFFF;
}

/* Header
   ========================================================================== */

.skyd-header {
	/* Surface colors. White by default; .skyd-header--dark switches them. */
	--_hbg: var(--skyd-paper);
	--_hfg: var(--skyd-ink);
	--_hline: var(--skyd-line);
	--_hsoft: var(--skyd-muted);

	position: sticky;
	top: var(--skyd-admin-bar);
	z-index: 50;
	background: var(--_hbg);
	color: var(--_hfg);
	border-bottom: 1px solid transparent;
	transition: background-color 240ms ease, color 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}
.skyd-header--dark {
	--_hbg: var(--skyd-ink);
	--_hfg: #FFFFFF;
	--_hline: rgba(255, 255, 255, 0.12);
	--_hsoft: rgba(255, 255, 255, 0.72);
}

.skyd-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	max-width: calc(var(--skyd-wide) + 2 * var(--skyd-gutter));
	height: var(--skyd-header-h);
	margin-inline: auto;
	padding-inline: var(--skyd-gutter);
}

/* Logos
   A logo slot has a version for light backgrounds, one for dark backgrounds,
   or one version that is recolored white or black to fit the background. */

.skyd-header,
.skyd-footer {
	--_on-light: block;
	--_on-dark: none;
	--_dark-only: brightness(0);
	--_light-only: none;
}
.skyd-header--dark,
.skyd-footer {
	--_on-light: none;
	--_on-dark: block;
	--_dark-only: none;
	--_light-only: brightness(0) invert(1);
}

.skyd-brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.skyd-brand__home,
.skyd-brand__aff { display: flex; align-items: center; flex: none; }
.skyd-logo { display: block; width: auto; max-width: none; }
.skyd-logo--on-light { display: var(--_on-light); }
.skyd-logo--on-dark { display: var(--_on-dark); }
.skyd-logo--dark-only { filter: var(--_dark-only); }
.skyd-logo--light-only { filter: var(--_light-only); }
.skyd-logo--main { height: calc(var(--skyd-logo-h, 48px) * 0.8); }
.skyd-logo--aff { height: calc(var(--skyd-aff-h, 32px) * 0.75); }
.skyd-brand__divider {
	flex: none;
	width: 1px;
	height: calc(var(--skyd-logo-h, 48px) * 0.66);
	background: currentColor;
	opacity: 0.32;
}
.skyd-brand__name {
	font-family: var(--skyd-font-heading);
	font-size: 20px;
	font-weight: var(--skyd-heading-weight, 700);
	letter-spacing: calc(-0.01em * var(--skyd-heading-tracking, 1));
	text-decoration: none;
	white-space: nowrap;
}

/* On narrow phones the affiliation logo moves into the menu and the footer. */
@media (max-width: 359px) {
	.skyd-brand--header .skyd-brand__divider,
	.skyd-brand--header .skyd-brand__aff { display: none; }
}

@media (min-width: 1024px) {
	.skyd-brand { gap: 24px; }
	.skyd-logo--main { height: var(--skyd-logo-h, 48px); }
	.skyd-logo--aff { height: var(--skyd-aff-h, 32px); }
}

.skyd-brand--footer .skyd-logo--main { height: var(--skyd-logo-h, 48px); }
.skyd-brand--footer .skyd-logo--aff { height: var(--skyd-aff-h, 32px); }
.skyd-brand--footer { flex-wrap: wrap; }

.skyd-nav__aff { display: none; }
@media (max-width: 359px) {
	.skyd-nav__aff { display: flex; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--_hline); }
	.skyd-nav__aff .skyd-logo--aff { height: var(--skyd-aff-h, 32px); }
}

/* Transparent header over an opening hero: dark surface until scrolled. */
.skyd-overlay-header .skyd-header {
	position: fixed;
	inset-inline: 0;
	background: transparent;
	border-bottom-color: transparent;
	color: #FFFFFF;
}
.skyd-overlay-header .skyd-header:not(.is-scrolled):not(.is-open) {
	--_on-light: none;
	--_on-dark: block;
	--_dark-only: none;
	--_light-only: brightness(0) invert(1);
}
.skyd-overlay-header .skyd-header.is-scrolled,
.skyd-overlay-header .skyd-header.is-open {
	background: var(--_hbg);
	border-bottom-color: var(--_hline);
	color: var(--_hfg);
	box-shadow: 0 8px 24px rgba(31, 42, 54, 0.06);
}

/* Navigation */

.skyd-nav__list,
.skyd-nav__list ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.skyd-nav__list a {
	display: block;
	text-decoration: none;
	font-size: 17px;
	font-weight: 500;
}

.skyd-nav__list .is-cta > a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 8px 24px;
	border-radius: var(--skyd-radius-pill);
	background: var(--skyd-accent);
	color: var(--skyd-accent-ink);
	font-weight: 500;
	transition: background-color 160ms ease, color 160ms ease;
}
.skyd-nav__list .is-cta > a:is(:hover, :focus-visible) { background: var(--skyd-field-1, #0E7C86); color: #FFFFFF; }

.skyd-nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-right: -12px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.skyd-nav-toggle__bars,
.skyd-nav-toggle__bars::before,
.skyd-nav-toggle__bars::after {
	display: block;
	width: 24px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform 200ms ease, opacity 200ms ease;
}
.skyd-nav-toggle__bars { position: relative; }
.skyd-nav-toggle__bars::before,
.skyd-nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.skyd-nav-toggle__bars::before { top: -8px; }
.skyd-nav-toggle__bars::after { top: 8px; }
.skyd-nav-toggle[aria-expanded="true"] .skyd-nav-toggle__bars { background: transparent; }
.skyd-nav-toggle[aria-expanded="true"] .skyd-nav-toggle__bars::before { transform: translateY(8px) rotate(45deg); }
.skyd-nav-toggle[aria-expanded="true"] .skyd-nav-toggle__bars::after { transform: translateY(-8px) rotate(-45deg); }

/* Mobile menu panel */
@media (max-width: 1023px) {
	.skyd-nav {
		position: fixed;
		top: calc(var(--skyd-admin-bar) + var(--skyd-header-h));
		inset-inline: 0;
		bottom: 0;
		overflow-y: auto;
		padding: 24px var(--skyd-gutter) 48px;
		background: var(--_hbg);
		color: var(--_hfg);
		visibility: hidden;
		opacity: 0;
		transform: translateY(-8px);
		transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 200ms;
	}
	.skyd-nav.is-open {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition: opacity 200ms ease, transform 200ms ease;
	}
	.skyd-nav__list > li { border-bottom: 1px solid var(--_hline); }
	.skyd-nav__list > li > a { padding: 16px 0; font-size: 24px; font-weight: 400; }
	.skyd-nav__list .sub-menu { padding-bottom: 16px; }
	.skyd-nav__list .sub-menu a { padding: 8px 0; color: var(--_hsoft); }
	.skyd-nav__list > .is-cta { border-bottom: 0; padding-top: 24px; }
	.skyd-nav__list > .is-cta > a { min-height: 48px; font-size: 17px; }
	body.skyd-nav-open { overflow: hidden; }
}

/* Desktop menu */
@media (min-width: 1024px) {
	.skyd-nav-toggle { display: none; }
	.skyd-nav__list { display: flex; align-items: center; gap: 32px; }
	.skyd-nav__list > li { position: relative; }
	.skyd-nav__list > li > a { padding: 8px 0; }
	.skyd-nav__list > li:not(.is-cta) > a:hover { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; }

	.skyd-nav__list .sub-menu {
		position: absolute;
		top: 100%;
		left: -16px;
		min-width: 240px;
		padding: 8px;
		border-radius: var(--skyd-radius-md);
		background: var(--skyd-paper);
		color: var(--skyd-ink);
		box-shadow: var(--skyd-shadow);
		visibility: hidden;
		opacity: 0;
		transform: translateY(8px);
		transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
	}
	.skyd-nav__list li:hover > .sub-menu,
	.skyd-nav__list li:focus-within > .sub-menu {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition: opacity 160ms ease, transform 160ms ease;
	}
	.skyd-nav__list .sub-menu a { padding: 8px 16px; border-radius: var(--skyd-radius-sm); }
	.skyd-nav__list .sub-menu a:hover { background: var(--skyd-mist); }
}

/* Page layout
   ========================================================================== */

.skyd-main { display: block; }

.skyd-page-header {
	padding: var(--skyd-section-y) var(--skyd-gutter) 48px;
}
.skyd-page-header__inner {
	max-width: var(--skyd-wide);
	margin-inline: auto;
}
.skyd-page-header__title {
	max-width: 16ch;
	margin: 0;
	font-size: 40px;
}
.skyd-page-header__intro {
	max-width: 56ch;
	margin: 24px 0 0;
	color: var(--skyd-muted);
	font-size: 18px;
}
@media (min-width: 768px) {
	.skyd-page-header__title { font-size: 56px; }
	.skyd-page-header__intro { font-size: 20px; }
}

/* Content column. Regular blocks sit in the reading column; wide and full blocks break out. */
.skyd-content > * {
	max-width: min(var(--skyd-content), 100% - 2 * var(--skyd-gutter));
	margin-inline: auto;
}
.skyd-content > .alignwide { max-width: min(var(--skyd-wide), 100% - 2 * var(--skyd-gutter)); }
.skyd-content > .alignfull { max-width: none; }
.skyd-content > .alignfull:first-child { margin-top: 0; }

.skyd-content--prose { padding-bottom: var(--skyd-section-y); }

/* Prose
   ========================================================================== */

.skyd-content--prose > * { margin-block: 0; }
.skyd-content--prose > * + * { margin-top: 24px; }
.skyd-content--prose > :is(h2, h3, h4) { margin-top: 48px; }
.skyd-content--prose > :is(h2, h3, h4) + * { margin-top: 16px; }

.skyd-content--prose h2 { font-size: 32px; }
.skyd-content--prose h3 { font-size: 24px; }
.skyd-content--prose h4 { font-size: 20px; }
@media (min-width: 768px) {
	.skyd-content--prose h2 { font-size: 40px; }
	.skyd-content--prose h3 { font-size: 32px; }
	.skyd-content--prose h4 { font-size: 24px; }
}

.skyd-content--prose :is(p, li) { font-size: 18px; line-height: 1.6; }
@media (min-width: 768px) {
	.skyd-content--prose :is(p, li) { font-size: 19px; }
}

/* Links in text: the text color with an underline. On hover, a gold
   highlight sweeps in behind the words from left to right. */
.skyd-content--prose a,
.skyd-link {
	color: var(--skyd-ink);
	text-decoration-line: underline;
	text-decoration-color: currentColor;
	text-decoration-thickness: 1px;
	text-underline-offset: 5px;
	background-image: linear-gradient(var(--skyd-accent, #E4AF0D), var(--skyd-accent, #E4AF0D));
	background-repeat: no-repeat;
	background-position: 0 0;
	background-size: 0% 100%;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	transition: background-size 280ms ease;
}
.skyd-content--prose a:is(:hover, :focus-visible),
.skyd-link:is(:hover, :focus-visible) { background-size: 100% 100%; outline: none; }

.skyd-content--prose :is(ul, ol) { padding-left: 24px; }
.skyd-content--prose li + li { margin-top: 8px; }
.skyd-content--prose li::marker { color: var(--skyd-muted); }

.skyd-content--prose :is(blockquote, .wp-block-quote) {
	position: relative;
	margin-inline: auto;
	padding: 48px 0 0;
	border: 0;
	font-size: 24px;
	line-height: 1.4;
	font-weight: 500;
	letter-spacing: -0.01em;
}
.skyd-content--prose :is(blockquote, .wp-block-quote)::before {
	content: "“";
	position: absolute;
	top: -8px;
	left: 0;
	color: var(--skyd-accent);
	font-size: 80px;
	line-height: 1;
	font-weight: 700;
}
.skyd-content--prose :is(blockquote, .wp-block-quote) p { font-size: inherit; line-height: inherit; }
.skyd-content--prose :is(blockquote, .wp-block-quote) cite {
	display: block;
	margin-top: 16px;
	color: var(--skyd-muted);
	font-size: 17px;
	font-style: normal;
	font-weight: 400;
}

.skyd-content--prose :is(figure, .wp-block-image) img { display: block; border-radius: var(--skyd-radius-md); }
.skyd-content--prose figcaption,
.skyd-post__image figcaption {
	margin-top: 8px;
	color: var(--skyd-muted);
	font-size: 17px;
}

.skyd-content--prose hr {
	height: 1px;
	margin-block: 48px;
	border: 0;
	background: var(--skyd-line);
}

.skyd-content--prose table { width: 100%; border-collapse: collapse; font-size: 17px; }
.skyd-content--prose :is(th, td) { padding: 12px 16px; border-bottom: 1px solid var(--skyd-line); text-align: left; }
.skyd-content--prose th { font-weight: 600; }

.skyd-content--prose code {
	padding: 2px 4px;
	border-radius: var(--skyd-radius-sm);
	background: var(--skyd-mist);
	font-size: 0.9em;
}

/* Single post
   ========================================================================== */

.skyd-post__header {
	max-width: min(var(--skyd-content), 100% - 2 * var(--skyd-gutter));
	margin: 0 auto;
	padding-top: 64px;
	padding-bottom: 48px;
}
@media (min-width: 1200px) { .skyd-post__header { padding-top: 96px; } }

.skyd-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
	color: var(--skyd-muted);
	font-size: 17px;
	font-weight: var(--skyd-eyebrow-weight, 400);
	letter-spacing: var(--skyd-eyebrow-tracking, 0.2em);
	text-transform: uppercase;
}
.skyd-crumbs a { text-decoration: none; }
.skyd-crumbs a:hover { color: var(--skyd-ink); }

.skyd-post__title { margin: 0; font-size: 40px; }
@media (min-width: 768px) { .skyd-post__title { font-size: 56px; } }

.skyd-post__dek {
	margin: 24px 0 0;
	color: var(--skyd-muted);
	font-size: 20px;
	line-height: 1.5;
}
@media (min-width: 768px) { .skyd-post__dek { font-size: 24px; } }

.skyd-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 24px 0 0;
	color: var(--skyd-muted);
	font-size: 17px;
}
.skyd-meta__sep { opacity: 0.6; }

.skyd-post__image {
	max-width: min(var(--skyd-wide), 100% - 2 * var(--skyd-gutter));
	margin: 0 auto 64px;
}
.skyd-post__image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--skyd-radius-lg);
}

.skyd-post__tags,
.skyd-post__after {
	max-width: min(var(--skyd-content), 100% - 2 * var(--skyd-gutter));
	margin: 0 auto 64px;
}

.skyd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.skyd-tags a {
	display: inline-block;
	padding: 4px 16px;
	border: 1px solid var(--skyd-line);
	border-radius: var(--skyd-radius-pill);
	font-size: 17px;
	text-decoration: none;
}
.skyd-tags a:hover { border-color: var(--skyd-ink); }

.skyd-post__after {
	padding: 32px;
	border-radius: var(--skyd-radius-lg);
	background: var(--skyd-ink);
	color: var(--skyd-paper);
}
.skyd-post__after .skyd-widget__title { margin: 0 0 8px; font-size: 24px; }
.skyd-post__after p { margin: 0 0 16px; }

.skyd-related {
	padding: 0 var(--skyd-gutter) var(--skyd-section-y);
}
.skyd-related__inner {
	max-width: var(--skyd-wide);
	margin-inline: auto;
	padding-top: 56px;
	border-top: 1px solid color-mix(in srgb, var(--skyd-ink) 20%, transparent);
}
.skyd-related__title { margin: 0 0 32px; font-size: 32px; }

/* Cards and archive
   ========================================================================== */

.skyd-archive {
	max-width: calc(var(--skyd-wide) + 2 * var(--skyd-gutter));
	margin-inline: auto;
	padding: 0 var(--skyd-gutter) var(--skyd-section-y);
}

.skyd-grid {
	display: grid;
	gap: 48px 32px;
	grid-template-columns: 1fr;
}
@media (min-width: 640px) { .skyd-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .skyd-grid { grid-template-columns: repeat(3, 1fr); } }

.skyd-card { display: flex; flex-direction: column; gap: 24px; }
.skyd-card__body { display: flex; flex-direction: column; gap: 8px; }

.skyd-card__media {
	display: block;
	overflow: hidden;
	border-radius: var(--skyd-radius-md);
	background: var(--skyd-mist);
	aspect-ratio: 16 / 10;
}
.skyd-card__media img,
.skyd-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 400ms ease;
}
.skyd-card:hover .skyd-card__media img { transform: scale(1.03); }
.skyd-card__placeholder {
	background:
		linear-gradient(160deg, var(--skyd-ink-soft), var(--skyd-ink));
}

.skyd-card__cat {
	margin: 0;
	color: var(--skyd-muted);
	font-size: 17px;
	font-weight: var(--skyd-eyebrow-weight, 400);
	letter-spacing: var(--skyd-eyebrow-tracking, 0.2em);
	text-transform: uppercase;
}
.skyd-card__title { margin: 0; font-size: 24px; line-height: 1.1; }
.skyd-card__title a { text-decoration: none; }
.skyd-card__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.skyd-card__excerpt { margin: 0; color: var(--skyd-muted); font-size: 17px; line-height: 1.6; }
.skyd-card .skyd-meta { margin-top: 8px; }

.skyd-card--featured { margin-bottom: 64px; }
@media (min-width: 1024px) {
	.skyd-card--featured {
		display: grid;
		grid-template-columns: 7fr 5fr;
		align-items: center;
		gap: 48px;
	}
	.skyd-card--featured .skyd-card__media { aspect-ratio: 3 / 2; border-radius: var(--skyd-radius-lg); }
	.skyd-card--featured .skyd-card__body { display: flex; flex-direction: column; gap: 16px; }
	.skyd-card--featured .skyd-card__title { font-size: 40px; }
	.skyd-card--featured .skyd-card__excerpt { font-size: 18px; }
}
.skyd-card--featured .skyd-card__body { display: flex; flex-direction: column; gap: 16px; }

.pagination { margin-top: 64px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	height: 48px;
	padding: 0 16px;
	border: 1px solid var(--skyd-line);
	border-radius: var(--skyd-radius-pill);
	text-decoration: none;
	font-weight: 600;
}
.pagination .page-numbers.current { background: var(--skyd-ink); border-color: var(--skyd-ink); color: var(--skyd-paper); }

.skyd-empty { color: var(--skyd-muted); }

.search-form { display: flex; gap: 8px; }
.search-form .search-field {
	flex: 1;
	min-height: 48px;
	padding: 8px 16px;
	border: 1px solid var(--skyd-line);
	border-radius: var(--skyd-radius-pill);
	font: inherit;
}
.search-form .search-submit {
	min-height: 48px;
	padding: 8px 24px;
	border: 0;
	border-radius: var(--skyd-radius-pill);
	background: var(--skyd-ink);
	color: var(--skyd-paper);
	font: 600 17px/1 var(--skyd-font-body);
	cursor: pointer;
}

/* Footer
   ========================================================================== */

.skyd-footer {
	background: var(--skyd-ink);
	color: var(--skyd-paper);
}

.skyd-footer__inner,
.skyd-footer__bottom {
	max-width: calc(var(--skyd-wide) + 2 * var(--skyd-gutter));
	margin-inline: auto;
	padding-inline: var(--skyd-gutter);
}

.skyd-footer__inner {
	display: grid;
	gap: 48px;
	padding-block: 64px;
}
@media (min-width: 1024px) {
	.skyd-footer__inner { grid-template-columns: 4fr 8fr; padding-block: 96px; }
}

.skyd-footer__tagline {
	max-width: 32ch;
	margin: 16px 0 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: 17px;
}

.skyd-footer__list,
.skyd-footer__list ul { margin: 0; padding: 0; list-style: none; }
.skyd-footer__list {
	display: grid;
	gap: 32px;
	grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .skyd-footer__list { grid-template-columns: repeat(4, 1fr); } }
.skyd-footer__list > li > a { font-weight: 400; }
.skyd-footer__list a { text-decoration: none; font-size: 17px; }
.skyd-footer__list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.skyd-footer__list .sub-menu { display: grid; gap: 8px; margin-top: 16px; }
.skyd-footer__list .sub-menu a { color: rgba(255, 255, 255, 0.72); }

.skyd-footer__bottom {
	padding-block: 0 32px;
	color: rgba(255, 255, 255, 0.64);
	font-size: 16px;
}
.skyd-footer__legal { margin-bottom: 16px; }
.skyd-footer__legal p { margin: 0 0 8px; }
.skyd-footer__copy { margin: 0; }

/* Motion
   ========================================================================== */

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


/* Article layout: contents list beside the text on wide screens
   ========================================================================== */

.skyd-article { padding-bottom: var(--skyd-section-y); }
.skyd-toc {
	max-width: min(var(--skyd-content), 100% - 2 * var(--skyd-gutter));
	margin: 0 auto 48px;
}
.skyd-toc__details { padding: 0; }
.skyd-toc__label {
	color: var(--skyd-muted);
	font-size: var(--skyd-eyebrow-size, 17px);
	font-weight: var(--skyd-eyebrow-weight, 400);
	letter-spacing: var(--skyd-eyebrow-tracking, 0.2em);
	text-transform: uppercase;
	cursor: pointer;
}
.skyd-toc__list { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; counter-reset: none; }
.skyd-toc__list a { color: var(--skyd-ink); font-size: 17px; line-height: 1.4; text-decoration: none; }
.skyd-toc__list a:hover,
.skyd-toc__list a[aria-current="true"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

@media (min-width: 1200px) {
	/* The header spans the list and the text column, so the title starts
	   where the list starts and there is no empty square beside it. */
	.skyd-post--toc .skyd-post__header { max-width: calc(240px + 64px + var(--skyd-content)); }
	.skyd-post--toc .skyd-post__title { max-width: 960px; }
	.skyd-post--toc .skyd-post__dek { max-width: var(--skyd-content); }
	.skyd-post--toc .skyd-post__image { max-width: calc(240px + 64px + var(--skyd-content)); }
	.skyd-post--toc .skyd-article {
		display: grid;
		grid-template-columns: 240px minmax(0, var(--skyd-content));
		justify-content: center;
		align-items: start;
		gap: 64px;
		padding-inline: var(--skyd-gutter);
	}
	.skyd-post--toc .skyd-toc { position: sticky; top: calc(var(--skyd-header-h) + var(--skyd-admin-bar) + 32px); max-width: none; margin: 0; }
	.skyd-post--toc .skyd-toc__details { padding: 0; }
	.skyd-post--toc .skyd-toc__label { pointer-events: none; list-style: none; }
	.skyd-post--toc .skyd-toc__label::-webkit-details-marker { display: none; }
	.skyd-post--toc .skyd-article__body > * { max-width: none; }
	/* The list and the first block of the article start on the same line. */
	.skyd-post--toc .skyd-article__body > :first-child { margin-top: 0 !important; }
}

/* Author box */
.skyd-author {
	display: flex;
	gap: 24px;
	align-items: flex-start;
	margin-top: 64px !important;
	padding-top: 32px;
	border-top: 1px solid color-mix(in srgb, var(--skyd-ink) 20%, transparent);
}
.skyd-author__photo { flex: none; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.skyd-author__name { margin: 0 0 8px; font-family: var(--skyd-font-heading); font-size: 20px; font-weight: var(--skyd-heading-weight, 700); }
.skyd-author__bio { margin: 0; color: var(--skyd-ink); font-size: 17px; line-height: 1.6; }

/* Tables in articles: a dark header row, soft rows, no rules */
.skyd-content--prose .wp-block-table { overflow-x: auto; }
.skyd-content--prose table { border-radius: var(--skyd-radius-md); overflow: hidden; }
.skyd-content--prose :is(th, td) { padding: 16px; border: 0; vertical-align: top; line-height: 1.5; }
.skyd-content--prose thead th,
.skyd-content--prose tr:first-child th { background: var(--skyd-ink); color: var(--skyd-paper); font-weight: 600; }
.skyd-content--prose tbody tr:nth-child(odd) td { background: var(--skyd-mist); }
.skyd-content--prose tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--skyd-mist) 45%, var(--skyd-paper)); }
.skyd-content--prose td:first-child { font-weight: 600; }
.skyd-content--prose .wp-block-table figcaption { font-size: 17px; }
.skyd-content--prose .wp-block-table :is(table, thead, tbody, tfoot, tr, th, td) { border: 0; }
.skyd-content--prose > .skyd-table-hint { margin-top: 8px; color: var(--skyd-muted); font-size: 17px; }
.skyd-content--prose > .skyd-table-hint[hidden] { display: none; }

/* Diagrams and images in articles fill the text column */
.skyd-content--prose .wp-block-image { margin-block: 48px; }
.skyd-content--prose .wp-block-image img { width: 100%; height: auto; }

/* On a phone, wide tables scroll sideways instead of squeezing their columns */
@media (max-width: 767px) {
	.skyd-content--prose .wp-block-table table { min-width: 600px; }
}
/* Diagrams: add the class is-diagram to an image block. Square diagrams stay
   a readable size on a wide screen and fill the width on a phone. */
.skyd-content--prose .wp-block-image.is-diagram img { max-width: 560px; margin-inline: auto; border-radius: 0; }
.skyd-content--prose .wp-block-image.is-diagram figcaption { text-align: center; }

/* Headings: tight line spacing everywhere */
h1, h2, h3, h4, h5, h6 { line-height: 1.1; }

/* Diagrams fill the text column */
.skyd-content--prose .wp-block-image.is-diagram img { max-width: 100%; }
