/*
 * OneShack site styles.
 * Colors come from theme.json (light). Dark mode redefines the same color tokens.
 * Every text color passes 7:1 contrast on every background it sits on, light and dark.
 */

/* ---------- Dark mode: same tokens, dark values (warm dark header and footer, dark sage page) ---------- */
:root[data-theme="dark"] {
	--wp--preset--color--page: #18201b;
	--wp--preset--color--head: #24201b;
	--wp--preset--color--card: #222a24;
	--wp--preset--color--tint: #2a332d;
	--wp--preset--color--line: #3e4a41;
	--wp--preset--color--line-2: #6b786e;
	--wp--preset--color--text: #eef0ec;
	--wp--preset--color--text-2: #c8cec6;
	--wp--preset--color--brand: #9ec5ff;
	--wp--preset--color--brand-hover: #c8ddff;
	--wp--preset--color--on-brand: #11161d;
	--wp--preset--color--onair: #ffae8a;
	--wp--preset--color--link: #ffae8a;
	--wp--preset--color--link-hover: #ffcdb5;
	--wp--preset--color--mark: #ff9a6b;
	--wp--preset--color--visited: #d6b8f7;
	--wp--preset--color--logo-one: #a8d5b5;
	--wp--preset--color--logo-wave: #9ec5ff;
	--wp--preset--color--logo-globe: #5a6e83;
	--wp--preset--color--footer: #24201b;
	--wp--preset--color--footer-line: #56655a;
	--wp--preset--color--menu-line: #56655a;
	color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--wp--preset--color--page: #18201b;
		--wp--preset--color--head: #24201b;
		--wp--preset--color--card: #222a24;
		--wp--preset--color--tint: #2a332d;
		--wp--preset--color--line: #3e4a41;
		--wp--preset--color--line-2: #6b786e;
		--wp--preset--color--text: #eef0ec;
		--wp--preset--color--text-2: #c8cec6;
		--wp--preset--color--brand: #9ec5ff;
		--wp--preset--color--brand-hover: #c8ddff;
		--wp--preset--color--on-brand: #11161d;
		--wp--preset--color--onair: #ffae8a;
		--wp--preset--color--link: #ffae8a;
		--wp--preset--color--link-hover: #ffcdb5;
		--wp--preset--color--mark: #ff9a6b;
		--wp--preset--color--visited: #d6b8f7;
		--wp--preset--color--logo-one: #a8d5b5;
		--wp--preset--color--logo-wave: #9ec5ff;
		--wp--preset--color--logo-globe: #5a6e83;
		--wp--preset--color--footer: #24201b;
		--wp--preset--color--footer-line: #56655a;
		--wp--preset--color--menu-line: #56655a;
		color-scheme: dark;
	}
}

/* editor:skip */
/*
 * ---------- High contrast (the ◐ button) ----------
 * Pure black on white (white on black in dark mode), darker lines, deeper link colors.
 * Same tokens again, so everything on the site and in the tools follows.
 */
:root[data-contrast="high"] {
	--wp--preset--color--page: #ffffff;
	--wp--preset--color--head: #ffffff;
	--wp--preset--color--card: #ffffff;
	--wp--preset--color--tint: #e8e8e8;
	--wp--preset--color--line: #5a5a5a;
	--wp--preset--color--line-2: #5a5a5a;
	--wp--preset--color--text: #000000;
	--wp--preset--color--text-2: #1c1c1c;
	--wp--preset--color--brand: #00348f;
	--wp--preset--color--brand-hover: #00266b;
	--wp--preset--color--on-brand: #ffffff;
	--wp--preset--color--onair: #7a2508;
	--wp--preset--color--link: #00348f;
	--wp--preset--color--link-hover: #00266b;
	--wp--preset--color--mark: #00348f;
	--wp--preset--color--visited: #4b2170;
	--wp--preset--color--logo-one: #000000;
	--wp--preset--color--logo-wave: #00348f;
	--wp--preset--color--logo-globe: #5a5a5a;
	--wp--preset--color--footer: #ffffff;
	--wp--preset--color--footer-line: #5a5a5a;
	--wp--preset--color--menu-line: #5a5a5a;
}
:root[data-contrast="high"][data-theme="dark"] {
	--wp--preset--color--page: #000000;
	--wp--preset--color--head: #000000;
	--wp--preset--color--card: #000000;
	--wp--preset--color--tint: #1f1f1f;
	--wp--preset--color--line: #a0a0a0;
	--wp--preset--color--line-2: #a0a0a0;
	--wp--preset--color--text: #ffffff;
	--wp--preset--color--text-2: #f0f0f0;
	--wp--preset--color--brand: #a8ccff;
	--wp--preset--color--brand-hover: #cfe2ff;
	--wp--preset--color--on-brand: #000000;
	--wp--preset--color--onair: #ffb899;
	--wp--preset--color--link: #a8ccff;
	--wp--preset--color--link-hover: #cfe2ff;
	--wp--preset--color--mark: #a8ccff;
	--wp--preset--color--visited: #e0c8ff;
	--wp--preset--color--logo-one: #ffffff;
	--wp--preset--color--logo-wave: #a8ccff;
	--wp--preset--color--logo-globe: #a0a0a0;
	--wp--preset--color--footer: #000000;
	--wp--preset--color--footer-line: #a0a0a0;
	--wp--preset--color--menu-line: #a0a0a0;
}
@media (prefers-color-scheme: dark) {
	:root[data-contrast="high"]:not([data-theme="light"]) {
		--wp--preset--color--page: #000000;
		--wp--preset--color--head: #000000;
		--wp--preset--color--card: #000000;
		--wp--preset--color--tint: #1f1f1f;
		--wp--preset--color--line: #a0a0a0;
		--wp--preset--color--line-2: #a0a0a0;
		--wp--preset--color--text: #ffffff;
		--wp--preset--color--text-2: #f0f0f0;
		--wp--preset--color--brand: #a8ccff;
		--wp--preset--color--brand-hover: #cfe2ff;
		--wp--preset--color--on-brand: #000000;
		--wp--preset--color--onair: #ffb899;
		--wp--preset--color--link: #a8ccff;
		--wp--preset--color--link-hover: #cfe2ff;
		--wp--preset--color--mark: #a8ccff;
		--wp--preset--color--visited: #e0c8ff;
		--wp--preset--color--logo-one: #ffffff;
		--wp--preset--color--logo-wave: #a8ccff;
		--wp--preset--color--logo-globe: #a0a0a0;
		--wp--preset--color--footer: #000000;
		--wp--preset--color--footer-line: #a0a0a0;
		--wp--preset--color--menu-line: #a0a0a0;
	}
}
/* Links that are plain text get underlines; the selected item gets a thicker outline. */
:root[data-contrast="high"] :is(.os-card__title, .os-toc, .os-sidelist, .os-findex) a,
:root[data-contrast="high"] :is(.os-paths__list a strong, .os-feat__link, .os-shortcuts a, .os-footer__links a, .os-crumbs a, .os-more a) { text-decoration: underline; }
:root[data-contrast="high"] :focus-visible { outline-width: 4px; }

/* The Dark/Light button shows what it switches to: a moon and "Dark mode", or a sun and "Light mode". */
:root[data-theme="light"] .os-themebtn .os-tolight,
:root[data-theme="dark"] .os-themebtn .os-todark { display: none; }
@media (prefers-color-scheme: light) {
	:root:not([data-theme="dark"]) .os-themebtn .os-tolight { display: none; }
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .os-themebtn .os-todark { display: none; }
}
/* /editor:skip */

/* Short names for the tokens. */
:root {
	--os-page: var(--wp--preset--color--page);
	--os-card: var(--wp--preset--color--card);
	--os-tint: var(--wp--preset--color--tint);
	--os-line: var(--wp--preset--color--line);
	--os-text: var(--wp--preset--color--text);
	--os-text-2: var(--wp--preset--color--text-2);
	--os-brand: var(--wp--preset--color--brand);
	--os-brand-hover: var(--wp--preset--color--brand-hover);
	--os-on-brand: var(--wp--preset--color--on-brand);
	--os-onair: var(--wp--preset--color--onair);
	--os-visited: var(--wp--preset--color--visited);
	--os-footer: var(--wp--preset--color--footer);
	--os-footer-line: var(--wp--preset--color--footer-line);
	--os-head: var(--wp--preset--color--head);
	--os-line-2: var(--wp--preset--color--line-2);
	--os-menu-line: var(--wp--preset--color--menu-line, var(--wp--preset--color--line-2));
	--os-link: var(--wp--preset--color--link);
	--os-link-hover: var(--wp--preset--color--link-hover);
	--os-mark: var(--wp--preset--color--mark);
	--os-logo-one: var(--wp--preset--color--logo-one);
	--os-logo-wave: var(--wp--preset--color--logo-wave);
	--os-logo-globe: var(--wp--preset--color--logo-globe);
	--os-logo-shack: var(--wp--preset--color--brand);
	--os-serif: var(--wp--preset--font-family--heading);
	--os-mono: var(--wp--preset--font-family--mono);
	--os-radius: 12px;
	--os-sticky-top: 96px;
}

/* ---------- Basics ---------- */
/* Jumps to a heading, a dictionary word or a Q-code land just below what stays at the top of the window.
   (Set on the targets, not on the page, so focusing a button in the top strip or menu row never scrolls the page.) */
.os-main :is([id], .os-tool, .os-q) { scroll-margin-top: var(--os-sticky-top); }
body {
	background: var(--os-page);
	color: var(--os-text);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
body::before {
	content: "";
	position: fixed;
	inset: 0 0 auto;
	height: env(safe-area-inset-top, 0px);
	z-index: 30;
	background: var(--os-head);
}
.wp-site-blocks > * { margin-block-start: 0; }
:where(h1, h2, h3) { text-wrap: balance; }
a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--os-brand); outline-offset: 2px; border-radius: 4px; }
.os-wrap {
	max-width: 75rem;
	margin-inline: auto;
	padding-left: max(16px, env(safe-area-inset-left, 0px));
	padding-right: max(16px, env(safe-area-inset-right, 0px));
	box-sizing: border-box;
}
.os-main { display: block; }
.os-eyebrow {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--os-onair);
}
.os-intro { color: var(--os-text-2); max-width: 60ch; margin-top: 6px; }
.os-sub { font-size: 1.28rem; line-height: 1.45; color: var(--os-text-2); max-width: 42ch; margin: 0; }
.os-more { margin: 0; font-weight: 700; white-space: nowrap; }
.os-empty { color: var(--os-text-2); }
.os-preview-note {
	border: 1px dashed var(--os-line);
	border-radius: 8px;
	padding: 8px 12px;
	font-size: 0.9rem;
	color: var(--os-text-2);
}

/* ---------- Top strip: five shortcuts at left; text size, dark mode, high contrast and UTC clock at right ---------- */
.os-utilbar { background: var(--os-head); border-bottom: 1px solid var(--os-menu-line); }
.os-utilbar__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; padding-block: 6px; }
.os-shortcuts ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 22px; }
.os-shortcuts a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--os-text);
	font-weight: 700;
	font-size: 1rem;
	text-decoration: none;
}
.os-shortcuts a:hover { color: var(--os-link); text-decoration: underline; }
.os-shortcuts a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--os-mark); text-decoration-thickness: 3px; text-underline-offset: 0.35em; }
.os-reading { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 8px; margin-left: auto; }
.os-tsize { display: flex; align-items: center; gap: 6px; }
.os-reading__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.os-ts {
	min-width: 44px;
	min-height: 44px;
	padding: 0 8px;
	border: 1.5px solid var(--os-line-2);
	background: var(--os-card);
	color: var(--os-text);
	border-radius: 8px;
	font-family: inherit;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}
.os-ts[data-ts="-1"] { font-size: 0.95rem; }
.os-ts[data-ts="0"] { font-size: 1rem; }
.os-ts[data-ts="1"] { font-size: 1.05rem; }
.os-ts:hover:not(:disabled) { border-color: var(--os-brand); color: var(--os-brand); }
.os-ts[aria-pressed="true"] { border-color: var(--os-brand); color: var(--os-brand); }
.os-ts:disabled { opacity: 0.45; cursor: default; }
.os-iconbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 44px;
	min-width: 44px;
	padding: 0 12px;
	border: 1.5px solid var(--os-line-2);
	border-radius: 8px;
	background: var(--os-card);
	color: var(--os-text);
	font: inherit;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
}
.os-iconbtn:hover { border-color: var(--os-brand); color: var(--os-brand); }
.os-iconbtn svg { width: 18px; height: 18px; flex: none; }
.os-iconbtn[aria-pressed="true"] { border-color: var(--os-brand); background: var(--os-tint); color: var(--os-brand); }
.os-clock {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 4px 0 8px;
	color: var(--os-text);
	font-family: var(--os-mono);
	font-variant-numeric: tabular-nums;
	font-size: 1rem;
	font-weight: 600;
	white-space: nowrap;
}
/* Less room: the Dark Mode and High Contrast buttons show their pictures only (the words stay for screen readers). */
@container osstrip (max-width: 70rem) {
	.os-iconbtn .os-lbl { display: none; }
	.os-iconbtn { padding: 0; }
}
.os-utilbar { container-type: inline-size; container-name: osstrip; }

/* ---------- Header: name row (logo, tagline, Search) and the main menu row ---------- */
.os-header { background: var(--os-head); }
/*
 * Laptops and desktops: while you scroll, the top strip (shortcuts, A− A A+, Dark Mode, High Contrast,
 * UTC clock) and the main menu row stay at the top of the window; the name row (logo, tagline, Search)
 * scrolls away under the strip. The site script measures the two rows into --os-strip-h and --os-name-h
 * (they change with the text size); the numbers below are only a starting point before it runs.
 * Phones: nothing stays put.
 */
@media (min-width: 800px) {
	.os-part-strip {
		position: sticky;
		top: calc(env(safe-area-inset-top, 0px) + var(--wp-admin--admin-bar--height, 0px));
		z-index: 21;
	}
	header.os-part-header {
		position: sticky;
		top: calc(env(safe-area-inset-top, 0px) + var(--wp-admin--admin-bar--height, 0px) + var(--os-strip-h, 57px) - var(--os-name-h, 152px));
		z-index: 20;
	}
}
.os-header__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding-block: 18px 16px; }
/* Flex and grid rows: no stacked-text gaps between their items. */
.os-header__row > *, .os-utilbar__row > *, .os-menurow > .os-wrap > *, .os-hero__grid > *, .os-paths > *, .os-footer > .os-wrap > *, .os-findex > * { margin-block: 0; }
.os-brandbox { display: grid; gap: 8px; justify-items: start; min-width: 0; flex: 0 1 auto; }
.os-brandbox > * { margin: 0; }

/* The logo: the globe badge is the O, then "ne" and "Shack", with "O" in Morse code under the name. */
.os-brand__link { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 7px; text-decoration: none; color: inherit; }
.os-brand__link:hover { text-decoration: none; }
.os-wm { display: inline-flex; align-items: baseline; font-family: var(--os-serif); font-weight: 800; font-size: 3rem; line-height: 1; letter-spacing: -0.01em; }
.os-wm__o { width: 0.9em; height: 0.9em; display: inline-block; position: relative; top: 0.1em; margin-right: 0.02em; flex: none; }
.os-wm__o svg { display: block; width: 100%; height: 100%; }
.os-wm__one { color: var(--os-logo-one); }
.os-wm__shack { color: var(--os-logo-shack); }
.os-globebadge .b-ring { stroke: var(--os-logo-one); }
.os-globebadge .b-mast { fill: var(--os-logo-one); }
.os-globebadge .b-wave { stroke: var(--os-logo-wave); }
.os-globebadge .b-globe { stroke: var(--os-logo-globe); }
.os-morse { display: flex; align-items: center; gap: 4px; padding-left: 2px; }
.os-morse i { display: block; height: 6px; border-radius: 999px; background: var(--os-logo-one); }
.os-morse .dah { width: 20px; }
.os-morse .dit { width: 6px; }
.os-morse b { display: block; width: 10px; }
.os-tagline {
	font-family: var(--os-serif);
	font-weight: 400;
	font-size: 1.15rem;
	line-height: 1.3;
	color: var(--os-text-2);
	text-wrap: balance;
	max-width: 30rem;
}

/* Header search: a "Search" button that opens a box to its left (WordPress's own Search block). */
.os-hsearch { margin: 0 0 0 auto; flex: none; }
.os-hsearch .wp-block-search__inside-wrapper { border: 0; padding: 0; gap: 8px; }
.os-hsearch .wp-block-search__input {
	min-height: 48px;
	border: 2px solid var(--os-line-2);
	border-radius: 10px;
	background: var(--os-card);
	color: var(--os-text);
	font: inherit;
	font-size: 1.05rem;
	padding: 0 14px;
}
.os-hsearch .wp-block-search__input::placeholder { color: var(--os-text-2); opacity: 1; }
.os-hsearch .wp-block-search__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	line-height: 1;
	min-height: 48px;
	min-width: 48px;
	margin: 0;
	padding: 0 16px;
	border: 2px solid var(--os-line-2);
	border-radius: 10px;
	background: var(--os-card);
	color: var(--os-text);
	font: inherit;
	font-size: 1.05rem;
	font-weight: 700;
}
.os-hsearch .wp-block-search__button svg { width: 22px; height: 22px; min-width: 22px; fill: currentColor; }
.os-hsearch .wp-block-search__button:hover { border-color: var(--os-brand); color: var(--os-brand); background: var(--os-card); }

/* Main menu row: the six sections, left-aligned, no dropdowns; a red-orange line under the page you are on. */
.os-menurow > .os-wrap { display: flex; align-items: center; gap: 0 20px; }
.os-menurow .os-nav { flex: 1 1 auto; min-width: 0; }
/* Search in the menu row: hidden until the name row (with its own Search) has scrolled away. */
.os-msearch { display: none; }
@media (min-width: 800px) {
	html.os-name-gone .os-msearch { display: block; }
	.os-msearch .wp-block-search__input { width: 14rem !important; }
}
@media (max-width: 1099px) {
	.os-msearch .os-hsearch__lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.os-msearch .wp-block-search__button { padding: 0; }
	.os-msearch .wp-block-search__input { width: 11rem !important; }
}
@media (max-width: 919px) {
	.os-msearch .wp-block-search__input { width: 7.5rem !important; }
	.os-menurow > .os-wrap { gap: 0 10px; }
}
.os-menurow { background: var(--os-head); border-top: 2px solid var(--os-menu-line); border-bottom: 2px solid var(--os-menu-line); }
.os-nav ul { list-style: none; margin: 0 0 0 -2px; padding: 0; display: flex; flex-wrap: wrap; gap: 0 2.75rem; }
.os-nav a {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 56px;
	padding: 0 2px;
	color: var(--os-text);
	font-weight: 700;
	font-size: 1.22rem;
	line-height: 1.2;
	text-decoration: none;
}
.os-nav a:hover { color: var(--os-link); }
.os-nav a:hover::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: currentColor; }
.os-nav a[aria-current="page"]::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 6px;
	height: 3px;
	border-radius: 2px;
	background: var(--os-mark);
}
@media (max-width: 899px) {
	.os-nav ul { gap: 0 1.6rem; }
}

/* Phones: logo and tagline at left, the Search button (picture only) at right; the box opens full width
   under the name; the six sections become a 3 x 2 grid; the shortcuts are left out of the top strip. */
@media (max-width: 599px) {
	.os-shortcuts { display: none; }
	.os-utilbar__row { padding-block: 4px; }
	.os-reading { margin-left: 0; width: 100%; justify-content: space-between; gap: 6px; }
	.os-iconbtn .os-lbl { display: none; }
	.os-iconbtn { padding: 0; }
	.os-header__row { flex-wrap: nowrap; align-items: flex-start; gap: 10px 12px; padding-block: 14px 12px; }
	.os-header__row:has(.os-hsearch:not(.wp-block-search__searchfield-hidden)) { flex-wrap: wrap; }
	.os-hsearch:not(.wp-block-search__searchfield-hidden) { flex-basis: 100%; order: 3; }
	.os-hsearch:not(.wp-block-search__searchfield-hidden) .wp-block-search__inside-wrapper { width: 100% !important; }
	.os-hsearch:not(.wp-block-search__searchfield-hidden) .wp-block-search__input { flex: 1 1 auto; min-width: 0; width: auto !important; }
	.os-hsearch .os-hsearch__lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.os-hsearch .wp-block-search__button { padding: 0; }
	.os-wm { font-size: min(2.2rem, 10.5vw); }
	.os-brand__link { gap: 6px; }
	.os-morse i { height: 5px; }
	.os-morse .dah { width: 15px; }
	.os-morse .dit { width: 5px; }
	.os-morse b { width: 8px; }
	.os-tagline { font-size: 1.02rem; }
	.os-menurow { border-width: 1px; }
	.os-menurow > .os-wrap { padding: 0; }
	.os-nav ul { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
	.os-nav li { border-right: 1px solid var(--os-line-2); border-bottom: 1px solid var(--os-line-2); }
	.os-nav li:nth-child(3n) { border-right: 0; }
	.os-nav li:nth-child(n+4) { border-bottom: 0; }
	.os-nav a { justify-content: center; text-align: center; min-height: 52px; padding: 4px; font-size: min(1.1rem, 5.2vw); }
	.os-nav a[aria-current="page"]::after { left: 22%; right: 22%; bottom: 5px; }
	.os-nav a:hover::after { display: none; }
	.os-clock { font-size: 0.9rem; padding: 0 2px; }
}
@media (max-width: 359px) {
	.os-ts { min-width: 40px; padding: 0 4px; }
	.os-clock { font-size: 0.82rem; }
}

/* ---------- Buttons and button rows ---------- */
.os-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 20px;
	border-radius: 10px;
	border: 2px solid var(--os-brand);
	background: var(--os-brand);
	color: var(--os-on-brand);
	font-weight: 700;
	font-size: 1.05rem;
	text-decoration: none;
	box-sizing: border-box;
}
.os-btn:hover { background: var(--os-brand-hover); border-color: var(--os-brand-hover); color: var(--os-on-brand); text-decoration: none; }
.os-btn--outline { background: var(--os-card); color: var(--os-brand); }
.os-btn--outline:hover { background: var(--os-tint); color: var(--os-brand-hover); }
.os-pagerow { display: flex; flex-wrap: wrap; gap: 8px; }
.os-pagerow a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 16px;
	border-radius: 999px;
	border: 1.5px solid var(--os-line);
	background: var(--os-card);
	color: var(--os-text);
	font-weight: 600;
	font-size: 0.98rem;
	text-decoration: none;
}
.os-pagerow a:hover { border-color: var(--os-link); color: var(--os-link); }
.os-pagerow a[aria-current="page"] { background: var(--os-brand); border-color: var(--os-brand); color: var(--os-on-brand); }
@media (min-width: 1000px) {
	/* Big sections use the side list on laptops instead of a long button row. */
	.os-doc:has(.os-sidelist) ~ * .os-pagerow.is-many,
	.os-dochead:has(+ .os-doc .os-sidelist) .os-pagerow.is-many { display: none; }
}
@media (max-width: 599px) {
	.os-pagerow { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.75rem, 1fr)); gap: 6px; }
	.os-pagerow a { justify-content: center; text-align: center; padding: 4px 8px; font-size: 0.92rem; line-height: 1.25; border-radius: 12px; }
	.os-pagerow--topics { grid-template-columns: repeat(auto-fit, minmax(4.9rem, 1fr)); }
	.os-pagerow--topics a { font-size: 0.85rem; padding: 4px; }
}

/* ---------- Bands and headings ---------- */
.os-band { padding-block: 44px; }
.os-band + .os-band { padding-top: 8px; }
/* A band that holds article cards stays hidden until there are articles to show. */
.os-band--cards:not(:has(.os-cards)) { display: none; }
.os-bandhead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.os-bandhead > * { margin: 0; }
.os-bandhead h2 { margin: 0; }

/* ---------- Home ---------- */
/*
 * Home opening: the welcome, search and two buttons; beside them the quick callsign lookup and
 * Meet a Ham (from the OneShack Tools plugin). Three columns where there is room; with less room
 * the welcome runs across the top with the two tools side by side below; one column on phones.
 * "Room" is measured in rem, so it follows the A− A A+ text size: larger text switches to the
 * two-row layout sooner, and the search box's hint always fits.
 */
.os-hero { padding-block: 44px 28px; container-type: inline-size; container-name: oshero; }
.os-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.os-hero__grid > * { min-width: 0; margin: 0; }
@container oshero (min-width: 47.5rem) {
	.os-hero__grid.has-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.os-hero__grid.has-tools > .os-hero__main { grid-column: 1 / -1; }
}
@container oshero (min-width: 74rem) {
	.os-hero__grid.has-tools { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 0.85fr); }
	.os-hero__grid.has-tools > .os-hero__main { grid-column: auto; padding-right: 8px; }
	.os-hero__grid.has-tools .os-hero__title { font-size: clamp(2.3rem, 3.1vw, 3rem); }
}
.os-hero__main > * + * { margin-top: 14px; }
.os-hero__title { font-size: var(--wp--preset--font-size--hero); max-width: 16ch; margin: 0; }
.os-lede { font-size: 1.25rem; color: var(--os-text-2); max-width: 40ch; }
.os-hero__main > .os-bigsearch { margin-top: 22px; }
.os-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.os-hero__main > .os-hero__actions { margin-top: 18px; }

/* Home: start where you are (a slim band on the page color, between two lines, just below the opening) */
.os-startrow { padding: 0 !important; border-top: 1px solid var(--os-menu-line); border-bottom: 1px solid var(--os-menu-line); container-type: inline-size; container-name: osstart; }
.os-startrow + .os-band { padding-top: 44px; }
.os-paths { display: grid; gap: 6px 24px; align-items: start; padding-block: 16px; }
.os-paths > * { margin: 0; }
.os-paths__title { font-size: 1.2rem; padding-top: 10px; }
.os-paths__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px 18px; grid-template-columns: minmax(0, 1fr); }
.os-paths__list a { display: grid; gap: 2px; height: 100%; box-sizing: border-box; padding: 10px 12px; margin-inline: -12px; border-radius: 10px; color: var(--os-text-2); text-decoration: none; font-size: 0.98rem; }
.os-paths__list a:hover { background: var(--os-card); }
.os-paths__list strong { color: var(--os-link); font-size: 1.05rem; }
.os-paths__list a:hover strong { text-decoration: underline; }
@container osstart (min-width: 47.5rem) { .os-paths__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } .os-paths__list a { margin-inline: 0; } }
@container osstart (min-width: 74rem) { .os-paths { grid-template-columns: auto minmax(0, 1fr); } .os-paths__title { white-space: nowrap; } }

/* Home: Explore the Shack, and the Tools page: clean white boxes, our own line icon above a bold title. */
.os-feat { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.os-feat > * { margin: 0 !important; }
@media (min-width: 640px) { .os-feat { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .os-feat { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.os-feat__box {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 26px 22px 22px;
	background: var(--os-card);
	border: 1px solid var(--os-line);
	border-radius: var(--os-radius);
	text-align: center;
}
.os-feat__box > * { margin: 0; }
.os-feat__box:hover { border-color: var(--os-link); }
.os-icon { width: 44px; height: 44px; color: var(--os-onair); flex: none; }
.os-feat__title { font-family: var(--os-serif); font-size: 1.28rem; font-weight: 700; line-height: 1.25; margin-top: 6px !important; }
.os-feat__text { color: var(--os-text-2); font-size: 1rem; max-width: 30ch; }
.os-feat__more { margin-top: auto !important; padding-top: 6px; }
.os-feat__link { font-weight: 700; color: var(--os-link); text-decoration: none; }
.os-feat__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--os-radius); }
.os-feat__box:hover .os-feat__link { text-decoration: underline; }
/* Tools page: the tool boxes copied into the page get the same look (the icon comes from the theme). */
.os-prose .os-card--icon { align-items: center; text-align: center; padding: 26px 22px 22px; }
.os-prose .os-card--icon .os-icon { margin-bottom: 4px; }
.os-prose .os-card--icon .os-card__title { font-family: var(--os-serif); font-size: 1.28rem; }
.os-prose .os-card--icon .os-card__blurb { max-width: 30ch; }

/* Big search box (home, search page, page not found) */
.os-bigsearch { margin-top: 26px; max-width: 36rem; }
.os-bigsearch .wp-block-search__label { font-weight: 700; margin-bottom: 8px; }
.os-bigsearch .wp-block-search__inside-wrapper { display: flex; gap: 8px; border: 0; padding: 0; }
.os-bigsearch .wp-block-search__input {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 56px;
	padding: 0 14px;
	border: 2px solid var(--os-text-2);
	border-radius: 10px;
	background: var(--os-card);
	color: var(--os-text);
	font: inherit;
	font-size: 1.1rem;
	text-overflow: ellipsis;
}
.os-bigsearch .wp-block-search__input::placeholder { color: var(--os-text-2); opacity: 1; text-overflow: ellipsis; }
.os-bigsearch .wp-block-search__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	min-height: 56px;
	margin: 0;
	padding: 0 22px;
	border: 2px solid var(--os-brand);
	border-radius: 10px;
	background: var(--os-brand);
	color: var(--os-on-brand);
	font: inherit;
	font-size: 1.05rem;
	font-weight: 700;
}
.os-bigsearch .wp-block-search__button:hover { background: var(--os-brand-hover); border-color: var(--os-brand-hover); }
@media (max-width: 599px) {
	.os-bigsearch .wp-block-search__inside-wrapper { flex-wrap: wrap; }
	.os-bigsearch .wp-block-search__input, .os-bigsearch .wp-block-search__button { flex: 1 1 100%; }
}

/* ---------- Card grid: one rule, 1/2/3/4 columns by width ---------- */
.os-cards, .os-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.os-grid > * { margin: 0; }
@media (min-width: 640px) { .os-cards, .os-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .os-cards, .os-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .os-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.os-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px;
	background: var(--os-card);
	border: 1px solid var(--os-line);
	border-radius: var(--os-radius);
}
.os-card > * { margin: 0; }
.os-card:hover { border-color: var(--os-link); }
.os-card__label { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--os-onair); }
.os-card__title { font-family: var(--os-serif); font-size: 1.25rem; font-weight: 700; }
.os-card__title a { color: var(--os-text); text-decoration: none; }
.os-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--os-radius); }
.os-card:hover .os-card__title a { color: var(--os-link); text-decoration: underline; }
.os-card__by { font-size: 0.95rem; font-weight: 600; color: var(--os-text-2); }
.os-card__blurb { font-size: 0.98rem; color: var(--os-text-2); }
.os-card__meta { margin-top: auto !important; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.92rem; color: var(--os-text-2); }
.os-pagination { margin-top: 28px; }
.os-pagination ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.os-pagination a, .os-pagination span.current {
	display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center;
	padding: 0 12px; border: 1.5px solid var(--os-line); border-radius: 10px; background: var(--os-card); color: var(--os-text); text-decoration: none; font-weight: 600;
}
.os-pagination span.current { background: var(--os-brand); border-color: var(--os-brand); color: var(--os-on-brand); }

/* ---------- Tables ---------- */
.wp-block-table { overflow-x: auto; border: 1px solid var(--os-line); border-radius: var(--os-radius); background: var(--os-card); margin-inline: 0; }
.wp-block-table table { border-collapse: collapse; width: 100%; font-size: 1rem; }
.wp-block-table th, .wp-block-table td { text-align: left; padding: 10px 16px; border: 0; border-top: 1px solid var(--os-line); vertical-align: top; }
.wp-block-table thead { border: 0; }
.wp-block-table thead th { background: var(--os-tint); border-top: 0; font-size: 0.88rem; letter-spacing: 0.04em; text-transform: uppercase; }
.wp-block-table figcaption { text-align: left; padding: 10px 16px; margin: 0; }
.os-table--bands td:nth-child(n+2) { font-family: var(--os-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Guides and articles ---------- */
.os-dochead { padding-block: 28px 8px; display: grid; gap: 16px; }
.os-dochead > * { margin: 0; }
.os-dochead .wp-block-post-title, .os-dochead h1 { margin: 0; }
.os-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 0.95rem; color: var(--os-text-2); }
.os-crumbs li + li::before { content: "\203A"; margin: 0 8px 0 4px; color: var(--os-text-2); }
.os-crumbs a { color: var(--os-text-2); }
.os-crumbs a:hover { color: var(--os-link); }
.os-crumbs [aria-current] { color: var(--os-text); font-weight: 600; }
.os-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.98rem; color: var(--os-text-2); margin: 0; }
.os-meta__kind { font-weight: 700; color: var(--os-onair); letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.85rem; align-self: center; }
.os-meta__by { font-weight: 700; color: var(--os-text); }

.os-doc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 20px 64px; }
.os-doc > * { margin: 0; }
.os-doc__main { min-width: 0; max-width: 46rem; }
/* Long-reading pages (articles and guides, the ones with a side column): the text sits on a white
   reading panel on the sage page; the side column stays on the sage. */
.os-doc:has(.os-aside) .os-doc__main {
	max-width: 52rem;
	box-sizing: border-box;
	padding: 2.25rem 2.75rem 2.75rem;
	background: var(--os-card);
	border: 1px solid var(--os-line);
	border-radius: 14px;
}
body.os-landing .os-doc .os-doc__main { padding: 0; background: none; border: 0; border-radius: 0; }
@media (max-width: 599px) {
	.os-doc:has(.os-aside) .os-doc__main { padding: 22px 18px 26px; border-radius: 12px; }
	.os-doc:has(.os-aside) .is-style-keypoints { padding: 16px 16px 16px 14px; }
}
.os-aside { order: -1; }
@media (min-width: 1000px) {
	.os-doc:has(.os-aside) { grid-template-columns: minmax(0, 52rem) 17rem; justify-content: space-between; gap: 40px; }
	.os-aside { order: 0; }
	.os-aside__inner { position: sticky; top: calc(var(--os-sticky-top) + 8px); display: grid; gap: 18px; }
}
.os-aside__inner > * { margin: 0; }

/* "On this page": a fold-out on phones, an open box on laptops. */
.os-toc { border: 1px solid var(--os-line); border-radius: var(--os-radius); background: var(--os-card); padding: 6px 14px; }
.os-toc summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
.os-toc[open] { padding-bottom: 12px; }
.os-toc ol, .os-sidelist ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.os-toc a, .os-sidelist a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--os-text); text-decoration: none; font-size: 0.98rem; line-height: 1.35; }
.os-toc a:hover, .os-sidelist a:hover { background: var(--os-tint); color: var(--os-link); }
.os-sidelist a[aria-current="page"] { background: var(--os-tint); color: var(--os-link); font-weight: 700; box-shadow: inset 3px 0 0 var(--os-mark); }
.os-sidelist { border: 1px solid var(--os-line); border-radius: var(--os-radius); background: var(--os-card); padding: 14px; }
.os-aside__title { margin: 0 0 8px; font-family: var(--os-serif); font-size: 1.1rem; font-weight: 700; color: var(--os-text); }
@media (min-width: 1000px) {
	.os-toc { padding: 14px 18px 12px; }
	.os-toc summary { min-height: 0; margin-bottom: 8px; font-family: var(--os-serif); font-size: 1.1rem; font-weight: 700; color: var(--os-text); cursor: default; list-style: none; pointer-events: none; }
	.os-toc summary::-webkit-details-marker { display: none; }
	.os-sidelist { display: block; }
}
@media (max-width: 999px) { .os-sidelist { display: none; } }
.os-aside__pdf { width: 100%; }

/* Reading text */
.os-prose { font-size: var(--wp--preset--font-size--prose); line-height: 1.7; }
.os-prose > * { margin-block: 0; }
.os-prose > * + * { margin-top: 1.05em; }
.os-prose h2 { margin-top: 2em; }
.os-prose h3 { margin-top: 1.6em; }
.os-prose h2 + *, .os-prose h3 + * { margin-top: 0.6em; }
.os-prose ul, .os-prose ol { padding-left: 1.3em; }
.os-prose li + li { margin-top: 0.4em; }
.os-prose a { color: var(--os-link); text-decoration: underline; }
.os-prose a:hover { color: var(--os-link-hover); }
.os-prose a:visited { color: var(--os-visited); }
.os-prose a[href*="ecfr.gov"] { font-family: var(--os-mono); font-size: 0.92em; overflow-wrap: anywhere; }
.os-prose a.os-rule { white-space: nowrap; }
.os-prose figure { margin-inline: 0; }
.os-prose .wp-block-image img { border: 1px solid var(--os-line); border-radius: var(--os-radius); background: #ffffff; height: auto; }
.os-prose figcaption, .os-prose .wp-element-caption { font-size: 1rem; color: var(--os-text-2); margin-top: 10px; text-align: left; }
.os-prose figcaption strong { color: var(--os-text); }
.os-prose .os-checked, .os-prose p.has-small-font-size { color: var(--os-text-2); }

/* Key points box and notice box (block styles of the Group block) */
.is-style-keypoints { background: var(--os-tint); border: 1px solid var(--os-line); border-radius: var(--os-radius); padding: 20px 24px; }
.os-prose > .is-style-keypoints:first-child { margin-bottom: 2em; }
.is-style-keypoints > * { margin: 0; }
.is-style-keypoints h2, .is-style-keypoints .os-keypoints__title { margin: 0 0 10px; font-size: 0.85rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--os-onair); font-family: inherit; }
.is-style-keypoints ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.is-style-keypoints li + li { margin-top: 0; }
.is-style-keypoints li::marker { color: var(--os-onair); }
.os-notice, .is-style-notice { border: 1px solid var(--os-line); border-radius: var(--os-radius); background: var(--os-card); padding: 16px 18px; font-size: 1rem; margin-top: 2em; }
.os-notice p { margin: 0; }
.os-notice p + p { margin-top: 0.6em; }

/* Articles landing */
.os-listing { padding-block: 20px 56px; display: grid; gap: 24px; }
.os-listing > * { margin: 0; }
.os-featured { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; border: 1px solid var(--os-line); border-radius: var(--os-radius); background: var(--os-card); padding: 18px 20px; }
.os-featured > * { margin: 0; }
.os-featured__name { margin: 2px 0; font-weight: 700; font-size: 1.15rem; }
.os-featured .os-intro { margin-top: 2px; }
.os-band--more { padding-top: 0; }

/* Search results and page not found */
.os-results__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.os-results__list > li { padding: 18px 20px; border: 1px solid var(--os-line); border-radius: var(--os-radius); background: var(--os-card); }
.os-results__title { font-size: 1.2rem; margin: 0 0 6px; }
.os-results__text { color: var(--os-text-2); margin: 0; }
.os-results__text .wp-block-post-excerpt__more-text { display: none; }
/* Search: matching dictionary words and Q-codes (1.0.4) */
.os-sterms { display: grid; gap: 22px; }
.os-sterms > * { margin: 0; }
.os-sterms__group { display: grid; gap: 10px; border: 1px solid var(--os-line); border-radius: var(--os-radius); background: var(--os-card); padding: 18px 20px; }
.os-sterms__group > * { margin: 0; }
.os-sterms__head { font-size: 1.25rem; margin: 0; }
.os-sterms__head span { font-weight: 400; color: var(--os-text-2); }
.os-sterms__list { margin: 0; display: grid; gap: 0; }
.os-sterms__list > div { padding: 10px 0; border-top: 1px solid var(--os-line); }
.os-sterms__list > div:first-child { border-top: 0; padding-top: 0; }
.os-sterms__list dt { font-weight: 700; font-size: 1.1rem; }
.os-sterms__list dd { margin: 3px 0 0; color: var(--os-text-2); }
.os-sterms__code { font-family: var(--os-mono); }
.os-sterms__more { font-weight: 700; }
.os-notfound { padding-bottom: 56px; }

/* Contact band */
.os-contact { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; padding: 28px; border-radius: var(--os-radius); background: var(--os-card); border: 1px solid var(--os-line); }
.os-contact > * { margin: 0; }
.os-contact h2 { margin: 0; }
.os-addr {
	display: inline-block;
	padding: 8px 12px;
	border: 1px solid var(--os-line);
	border-radius: 8px;
	background: var(--os-card);
	color: var(--os-text);
	font-family: var(--os-mono);
	font-weight: 700;
	font-size: 1.05rem;
	text-decoration: none;
	user-select: all;
}

/* ---------- Footer: light ---------- */
.os-footer { background: var(--os-footer); border-top: 2px solid var(--os-menu-line); margin-top: 24px; color: var(--os-text); }
.os-findex { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; padding-block: 44px 28px; }
@media (min-width: 760px) { .os-findex { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .os-findex { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.os-findex__head { font-family: var(--os-serif); font-size: 1.12rem; font-weight: 700; margin: 0 0 8px; }
.os-findex__head a { color: var(--os-text); text-decoration: none; }
.os-findex ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.os-findex ul a { display: inline-block; padding: 3px 0; color: var(--os-text-2); text-decoration: none; font-size: 0.97rem; }
.os-findex ul a:hover { color: var(--os-link); text-decoration: underline; }
.os-findex__head a:hover { color: var(--os-link); text-decoration: underline; }
.os-footer__bottom { display: grid; gap: 14px; border-top: 1px solid var(--os-footer-line); padding-block: 20px 32px; }
.os-footer__legal { color: var(--os-text-2); font-size: 0.95rem; max-width: 75ch; }
.os-footer__bottom > * { margin: 0; }
.os-footer__exp { color: var(--os-text-2); max-width: 52ch; }
.os-footer__links { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.os-footer__links a { font-weight: 700; color: var(--os-link); }
.os-footer__contact .os-addr { font-size: 0.95rem; padding: 4px 8px; }

/* ---------- Back to top ---------- */
.os-totop {
	position: fixed;
	right: calc(16px + env(safe-area-inset-right, 0px));
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	z-index: 25;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 18px;
	border: 2px solid var(--os-brand);
	border-radius: 999px;
	background: var(--os-card);
	color: var(--os-brand);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.os-totop svg { width: 18px; height: 18px; }
.os-totop[hidden] { display: none; }
.os-totop.is-lane { right: auto; bottom: auto; padding: 0 14px; }
.os-totop__label { white-space: nowrap; }
/* When it sits at the bottom right, leave room under the footer so it covers no text. */
.os-totop-corner .os-footer__bottom { padding-bottom: 88px; }

/* ---------- Print ---------- */
/* ---------- Page parts copied from the first OneShack site (1.0.2) ---------- */
.os-box, .os-callout {
	background: var(--os-card);
	border: 1px solid var(--os-line);
	border-radius: var(--os-radius);
	padding: 20px 22px;
}
.os-callout { background: var(--os-tint); }
.os-box > *, .os-callout > *, .os-cell > *, .os-split__media > *, .os-split__text > * { margin-block: 0; }
.os-box > * + *, .os-callout > * + *, .os-cell > * + *, .os-split__media > * + *, .os-split__text > * + * { margin-top: 0.75em; }
.os-box > :first-child, .os-callout > :first-child, .os-cell > :first-child, .os-split__media > :first-child, .os-split__text > :first-child, .os-card > :first-child { margin-top: 0 !important; }
.os-box h2, .os-callout h2 { font-size: 1.35rem; }
.os-box h3, .os-cell h3, .os-callout h3 { font-size: 1.15rem; margin-top: 1.2em; }
.os-box h2 + *, .os-box h3 + *, .os-cell h3 + *, .os-callout h2 + * { margin-top: 0.5em; }
.os-prose :is(.os-box, .os-callout, .os-cell, .os-split__text) > :is(h2, h3, h4) { margin-top: 1.2em; }
.os-prose .os-card__label + :is(h2, h3, h4) { margin-top: 0.35em; }
.os-grid .os-box, .os-grid .os-cell { min-width: 0; }
@media (min-width: 960px) { .os-grid.os-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Inside a page, grids follow the width of the text column, not the window. */
.os-doc__main { container-type: inline-size; container-name: osmain; }
.os-prose .os-grid { grid-template-columns: minmax(0, 1fr); }
@container osmain (min-width: 540px) { .os-prose .os-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container osmain (min-width: 860px) { .os-prose .os-grid:not(.os-grid--two) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container osmain (min-width: 1100px) { .os-prose .os-grid.os-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Landing pages with no side column use the full width for their cards; reading text keeps a comfortable line length. */
.os-doc:not(:has(.os-aside)) .os-doc__main { max-width: none; }
.os-doc:not(:has(.os-aside)) .os-prose > :is(p, ul, ol, h2, h3, h4, h5, .wp-block-table, .wp-block-image, .wp-block-quote, .os-dl, .os-tip, .os-building, .is-style-keypoints, .os-legend, .os-figure) { max-width: 46rem; }

/* Link cards inside pages look like the home page cards, not like underlined text links. */
.os-prose .os-card__title a, .os-prose .os-card__title a:visited { color: var(--os-text); text-decoration: none; }
.os-prose .os-card:hover .os-card__title a { color: var(--os-link); text-decoration: underline; }
.os-prose .os-card__title { font-family: var(--os-serif); font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
.os-prose .os-card__label, .os-prose .os-card__by, .os-prose .os-card__blurb { line-height: 1.45; }
.os-card--accent { border: 2px solid var(--os-brand); }
.os-split { display: grid; gap: 18px; }
@media (min-width: 720px) { .os-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; } }
.os-tip { background: var(--os-tint); border-left: 4px solid var(--os-brand); border-radius: 8px; padding: 12px 16px; }
.os-note { color: var(--os-onair); font-weight: 700; }
.os-meta-line { color: var(--os-text-2); font-weight: 600; }
.os-tablenote, .os-figcap { font-size: 0.95rem; color: var(--os-text-2); }
.os-building { background: var(--os-tint); border: 1.5px dashed var(--os-brand); border-radius: var(--os-radius); padding: 14px 18px; font-weight: 600; }
.os-title-note { display: inline-block; margin-left: 0.35em; font-size: 0.5em; font-weight: 600; color: var(--os-text-2); vertical-align: 0.2em; }

/* Letter and word pairs (the phonetic alphabet). */
.os-prose .os-pairs, .os-pairs {
	list-style: none;
	margin-inline: 0;
	padding: 14px 18px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px 16px;
	border: 1px solid var(--os-line);
	border-radius: var(--os-radius);
	background: var(--os-card);
}
@media (min-width: 640px) { .os-prose .os-pairs, .os-pairs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.os-prose .os-pairs li + li { margin-top: 0; }
.os-pairs strong { display: inline-block; min-width: 1.7em; color: var(--os-brand); font-family: var(--os-mono); }

/* "Jump to" rows and small page groups (Packet, Digital voice). */
.os-jump, .os-subnav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.os-jump strong, .os-subnav strong { margin-right: 4px; }
.os-prose .os-jump a, .os-prose .os-subnav a, .os-jump a, .os-subnav a {
	display: inline-flex; align-items: center; min-height: 40px; padding: 4px 14px;
	border: 1.5px solid var(--os-line); border-radius: 999px; background: var(--os-card);
	color: var(--os-text); text-decoration: none; font-size: 0.98rem; font-weight: 600;
}
.os-prose .os-jump a:hover, .os-prose .os-subnav a:hover { border-color: var(--os-brand); color: var(--os-brand); }
.os-prose .os-subnav a[aria-current="page"] { background: var(--os-tint); border-color: var(--os-brand); color: var(--os-brand); }

/* Lists of terms: rules, "At a glance", call areas. */
.os-dl { margin: 0; }
.os-dl > div { padding: 10px 0; border-top: 1px solid var(--os-line); }
.os-dl > div:first-child { border-top: 0; padding-top: 0; }
.os-dl dt { font-weight: 700; }
.os-dl dd { margin: 3px 0 0; }
.os-dl--glance > div { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: 2px 12px; }
.os-dl--glance dt { font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--os-text-2); padding-top: 0.15em; }
.os-dl--glance dd { margin: 0; }
@media (max-width: 479px) { .os-dl--glance > div { grid-template-columns: minmax(0, 1fr); } }
.os-dl--rules { border: 1px solid var(--os-line); border-radius: var(--os-radius); background: var(--os-card); padding: 6px 18px; }
.os-dl--rules > div, .os-dl--rules > div:first-child { padding: 12px 0; }
.os-dl--rules dt a { font-family: var(--os-mono); margin-right: 8px; }
.os-dl--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.os-dl--grid > div:nth-child(2) { border-top: 0; padding-top: 0; }

/* Charts, maps and drawings: always on a white card, because their colors are fixed. */
.os-svg { display: block; width: 100%; height: auto; }
.os-figure { margin-inline: 0; background: #ffffff; color: #18212f; border: 1px solid var(--os-line); border-radius: var(--os-radius); padding: 14px 16px; }
.os-figure > * + * { margin-top: 10px; }
.os-figure figcaption, .os-figure .os-muted { color: #3f4b5c; font-size: 0.95rem; }
.os-prose .os-figure a, .os-prose .os-figure a:visited { color: #8a2a07; }
.os-figure figcaption { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.os-bandcard > div:first-child { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.os-bandcard > div:first-child > div { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.95rem; }
.os-bandcard h4 { margin: 0; font-size: 1.25rem; color: #18212f; }
.os-mono { font-family: var(--os-mono); font-variant-numeric: tabular-nums; }
.os-legend { background: var(--os-card); border: 1px solid var(--os-line); border-radius: var(--os-radius); padding: 12px 16px; }
.os-legend > div { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: 0.98rem; }
.os-legend span:has(> .os-swatch), .os-figure span:has(> .os-swatch) { display: inline-flex; align-items: center; gap: 8px; }
.os-legend .os-muted { color: var(--os-text-2); }
.os-swatch { display: inline-block; width: 28px; height: 16px; border-radius: 3px; flex: none; }
.os-split__media .os-svg { background: #ffffff; border: 1px solid var(--os-line); border-radius: 10px; }

/* Dictionary. */
.os-dict__tools { display: grid; gap: 10px; background: var(--os-card); border: 1px solid var(--os-line); border-radius: var(--os-radius); padding: 16px 18px; }
.os-dict__tools[hidden] { display: none; }
.os-dict__label { font-weight: 700; }
.os-dict__q { width: 100%; min-height: 48px; font: inherit; font-size: 1.05rem; padding: 8px 14px; border: 2px solid var(--os-line); border-radius: 10px; background: var(--os-card); color: var(--os-text); }
.os-dict__q:focus { outline: 3px solid var(--os-brand); outline-offset: 1px; border-color: var(--os-brand); }
.os-dict__filters { display: flex; flex-wrap: wrap; gap: 8px; }
.os-dict__filter { min-height: 44px; padding: 6px 16px; border: 1.5px solid var(--os-line); border-radius: 999px; background: var(--os-card); color: var(--os-text); font: inherit; font-weight: 700; cursor: pointer; }
.os-dict__filter[aria-pressed="true"] { background: var(--os-brand); border-color: var(--os-brand); color: var(--os-on-brand); }
.os-dict__count { margin: 0; color: var(--os-text-2); font-size: 0.95rem; }
.os-dict__az { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.os-prose .os-dict__az a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; border: 1.5px solid var(--os-line); border-radius: 8px; background: var(--os-card); color: var(--os-text); text-decoration: none; font-weight: 700; }
.os-prose .os-dict__az a:hover { border-color: var(--os-brand); color: var(--os-brand); }
.os-prose .os-dict__az a[aria-disabled="true"] { color: var(--os-text-2); border-style: dashed; pointer-events: none; }

.os-prose .os-dict__letter { font-size: 1.6rem; margin: 1.4em 0 0.3em; padding-bottom: 4px; border-bottom: 2px solid var(--os-line); }
.os-dict__list { margin: 0; }
.os-dict__entry { padding: 12px 0; border-top: 1px solid var(--os-line); }
.os-dict__list > .os-dict__entry:first-child { border-top: 0; }
.os-dict__entry dt { font-weight: 700; }
.os-dict__entry dfn { font-style: normal; }
.os-dict__also { font-weight: 400; color: var(--os-text-2); }
.os-dict__entry dd { margin: 4px 0 0; }
.os-dict__entry:target { background: var(--os-tint); padding-inline: 14px 10px; box-shadow: inset 4px 0 0 var(--os-mark), inset 0 2px 0 var(--os-mark), inset 0 -2px 0 var(--os-mark); }
/* Q-Codes page: the code you came for (from a search result) is highlighted. */
.wp-block-table tr.os-qrow:target > * { background: var(--os-tint); box-shadow: inset 0 2px 0 var(--os-mark), inset 0 -2px 0 var(--os-mark); }
.wp-block-table tr.os-qrow:target > th:first-child { box-shadow: inset 4px 0 0 var(--os-mark), inset 0 2px 0 var(--os-mark), inset 0 -2px 0 var(--os-mark); }
.os-dict__entry[hidden], .os-dict__group[hidden] { display: none; }

button.os-btn { font: inherit; cursor: pointer; }
button.os-btn[hidden] { display: none; }

@media print {
	:root, :root[data-theme] {
		--wp--preset--color--page: #ffffff;
		--wp--preset--color--card: #ffffff;
		--wp--preset--color--tint: #eaf0f8;
		--wp--preset--color--line: #d8d3c6;
		--wp--preset--color--text: #18212f;
		--wp--preset--color--text-2: #3f4b5c;
		--wp--preset--color--brand: #1a4783;
		--wp--preset--color--onair: #8f2c08;
		color-scheme: light;
	}
	.os-part-strip, .os-part-header, .os-part-footer, .os-aside, .os-band--more, .os-totop, .os-pagerow, .os-crumbs, .os-dict__tools, .os-dict__az, .os-jump, .os-subnav { display: none !important; }
	body { background: #ffffff; color: #000000; }
	.os-doc { display: block; padding: 0; }
	.os-prose a { color: #000000; }
}

@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; transition: none !important; }
}
