/* One stylesheet at a stable path, on purpose: a copy of a page kept for an
   outage still finds it after a new deploy. No inline styles, so the CSP can
   stay at style-src 'self'. */

@font-face {
	font-family: 'Parkinsans';
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url('/fonts/parkinsans-latin-ext-wght-normal.woff2') format('woff2');
	unicode-range:
		U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
		U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
		U+A720-A7FF;
}

@font-face {
	font-family: 'Parkinsans';
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url('/fonts/parkinsans-latin-wght-normal.woff2') format('woff2');
	unicode-range:
		U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
		U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	color-scheme: light dark;

	/* Norcube's palette, as on norcube.com. */
	--paper: #ffffff;
	--wash: #f7f8fc;
	--wash-2: #eef0f7;
	--fog: #dfe2ec;
	--stone: #6b7280;
	--slate: #3d4252;
	--ink: #0f1221;
	--link: #3b33c7;
	--glow: #eeedfc;

	--tone-ok: #10b981;
	--tone-warn: #fbbf24;
	--tone-partial: #ef4444;
	--tone-major: #dc2626;
	--tone-neutral: #8a8f9c;

	--text-ok: #059669;
	--text-warn: #b45309;
	--text-partial: #dc2626;
	--text-major: #dc2626;
	--text-neutral: #5d6270;

	--mark-ok: #10b981;
	--mark-warning: #fbbf24;
	--mark-minor: rgb(220 38 38 / 35%);
	--mark-partial: rgb(220 38 38 / 70%);
	--mark-major: #dc2626;
	--mark-unknown: #b4b8c6;
	--mark-no-data: rgb(107 114 128 / 15%);

	--shadow: 0 1px 2px rgb(15 18 33 / 6%), 0 8px 24px -12px rgb(15 18 33 / 12%);
}

@media (prefers-color-scheme: dark) {
	:root {
		--paper: #0f1221;
		--wash: #171a2e;
		--wash-2: #1e2238;
		--fog: #2a2e45;
		--stone: #9398a8;
		--slate: #c5c9d6;
		--ink: #eef0f7;
		--link: #b3acff;
		--glow: #1b1a42;

		--tone-ok: #10b981;
		--tone-warn: #fbbf24;
		--tone-partial: #ef4444;
		--tone-major: #dc2626;

		--text-ok: #34d399;
		--text-warn: #fbbf24;
		--text-partial: #f87171;
		--text-major: #f87171;
		--text-neutral: #a0a5b4;

		--mark-ok: #10b981;
		--mark-warning: #fbbf24;
		--mark-minor: rgb(239 68 68 / 45%);
		--mark-partial: rgb(220 38 38 / 70%);
		--mark-major: #dc2626;
		--mark-unknown: #565b70;
		--mark-no-data: rgb(156 163 175 / 15%);

		--shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px -12px rgb(0 0 0 / 50%);
	}
}

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

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

body {
	margin: 0;
	overflow-x: clip;
	background:
		radial-gradient(56rem 26rem at 82% -8rem, var(--glow), transparent 70%) no-repeat,
		var(--paper);
	color: var(--ink);
	font-family:
		'Parkinsans',
		ui-sans-serif,
		-apple-system,
		BlinkMacSystemFont,
		'Segoe UI',
		Roboto,
		Arial,
		sans-serif;
	font-size: 1rem;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
	margin: 0;
}

ul,
ol {
	padding: 0;
	list-style: none;
}

a {
	color: var(--link);
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
}

a:focus-visible,
summary:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
	border-radius: 2px;
}

.sheet {
	max-width: 46rem;
	margin-inline: auto;
	padding: 1.75rem 1rem 2.5rem;
}

@media (min-width: 40rem) {
	.sheet {
		padding: 3rem 1.5rem 3.5rem;
	}
}

.notice {
	margin-bottom: 1.5rem;
	padding: 0.5rem 0.75rem;
	border-radius: 0.375rem;
	background: var(--wash);
	color: var(--slate);
	font-size: 0.875rem;
}

.page-name {
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: -0.005em;
}

.logo {
	display: block;
	width: auto;
	max-width: min(16rem, 100%);
	height: 2rem;
	object-fit: contain;
	object-position: left;
}

/* A page with both logos carries both, and shows the one that suits the mode. */
.logo-dark {
	display: none;
}

@media (prefers-color-scheme: dark) {
	.logo-light {
		display: none;
	}

	.logo-dark {
		display: block;
	}
}

.page-name a {
	color: inherit;
	text-decoration: none;
}

.page-name a:hover {
	text-decoration: underline;
}

.page-description {
	max-width: 36rem;
	margin-top: 0.125rem;
	color: var(--stone);
	font-size: 0.9375rem;
}

.delayed {
	margin-top: 1rem;
	padding: 0.5rem 0.75rem;
	border-left: 3px solid var(--tone-warn);
	background: var(--wash);
	font-size: 0.9375rem;
}

.delayed[hidden] {
	display: none;
}

.tone-ok {
	--tone: var(--tone-ok);
	--text: var(--text-ok);
}

.tone-warn {
	--tone: var(--tone-warn);
	--text: var(--text-warn);
}

.tone-partial {
	--tone: var(--tone-partial);
	--text: var(--text-partial);
}

.tone-major {
	--tone: var(--tone-major);
	--text: var(--text-major);
}

.tone-neutral {
	--tone: var(--tone-neutral);
	--text: var(--text-neutral);
}

/* A line of facts with a small dot between them. The container clips each line's
   first dot, so a line that wraps never starts with a stray one. */
.alarm-facts,
.incident-meta,
.incident-summary {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.0625rem 0.9375rem;
	overflow: hidden;
}

.alarm-facts > *,
.incident-meta > *,
.incident-summary > * {
	position: relative;
}

.alarm-facts > *::before,
.incident-meta > *::before,
.incident-summary > *::before {
	content: '';
	position: absolute;
	top: 0.625em;
	left: -0.5625rem;
	width: 0.1875rem;
	height: 0.1875rem;
	border-radius: 50%;
	background: color-mix(in srgb, var(--stone) 70%, transparent);
}

/* ---- Sections: each part of the page says what it is ---- */

main .section-title {
	font-size: 1.375rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0 1rem;
	margin-bottom: 0.75rem;
}

.section-note {
	color: var(--stone);
	font-size: 0.875rem;
}

.services-head {
	margin-top: 3.5rem;
	margin-bottom: 0;
}

.hero > .section-title {
	margin-top: 3rem;
}

/* ---- The top of the page ---- */

.hero {
	margin-top: 2.75rem;
}

.verdict-line {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.status-orb {
	flex: none;
	width: clamp(2.25rem, 5.5vw, 3rem);
	height: clamp(2.25rem, 5.5vw, 3rem);
	margin-inline: 0.375rem 0.25rem;
	border-radius: 50%;
	box-shadow: 0 0 0 0.375rem color-mix(in srgb, var(--tone) 16%, transparent);
}

.status-orb-disc {
	fill: var(--tone);
}

/* White doesn't read on amber: the dashboard uses a dark mark here too. */
.status-orb.tone-warn .status-orb-mark {
	stroke: #451a03;
}

.status-orb-mark {
	fill: none;
	stroke: #ffffff;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.verdict {
	font-size: clamp(2rem, 6vw, 3rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

.checked {
	margin-top: 0.75rem;
	color: var(--stone);
	font-size: 0.9375rem;
}

.alarms {
	margin-top: 0.75rem;
	border-top: 1px solid var(--fog);
}

.alarm {
	display: grid;
	grid-template-columns: 0.5rem minmax(0, 1fr);
	gap: 0.875rem;
	padding-block: 1rem;
	border-bottom: 1px solid var(--fog);
}

.alarm > .status-dot {
	margin-top: 0.5rem;
}

.alarm-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0 1rem;
}

.alarm-title,
main .alarm-title {
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.012em;
}

.alarm-facts {
	margin-top: 0.125rem;
	color: var(--stone);
	font-size: 0.875rem;
}

.alarm-facts strong {
	color: var(--slate);
	font-weight: 600;
}

.alarm-latest {
	max-width: 38rem;
	margin-top: 0.5rem;
	white-space: pre-line;
	text-wrap: pretty;
}

.alarm-latest p + p {
	margin-top: 0.5rem;
}

.alarm-latest .alarm-when {
	margin-top: 0.125rem;
	color: var(--stone);
	font-size: 0.8125rem;
}

.alarm-more {
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.alarm-more:hover {
	text-decoration: underline;
}

.alarm-lines strong {
	font-weight: 700;
}

.alarm-source {
	max-width: 38rem;
	margin-top: 0.125rem;
	color: var(--stone);
	font-size: 0.875rem;
	text-wrap: pretty;
}

/* ---- The trace: each day is a mark, and downtime makes it taller ---- */

.overview {
	margin-top: 3.5rem;
}

.bars {
	display: flex;
	align-items: stretch;
	gap: 1px;
	height: 2rem;
}

@media (min-width: 40rem) {
	.bars {
		gap: 2px;
	}
}

.bars-large {
	height: 2.5rem;
}

/* The whole column answers the pointer, so a short mark is as easy to hit as a tall one. */
.bars .day {
	position: relative;
	display: flex;
	flex: 1 1 0;
	align-items: stretch;
	min-width: 0;
}

.bars .day::after {
	content: '';
	width: 100%;
	border-radius: 1px;
	background: var(--fill, var(--mark-no-data));
}

/* The strip reads as one rounded shape, cut into days. */
.bars .day:first-child::after {
	border-radius: 0.4375rem 1px 1px 0.4375rem;
}

.bars .day:last-child::after {
	border-radius: 1px 0.4375rem 0.4375rem 1px;
}

/* Pointing at a day quiets the others, as on the dashboard. */
.bars .day::after {
	transition: opacity 120ms ease;
}

.bars-active .day::after {
	opacity: 0.5;
}

.bars-active .day-active::after {
	opacity: 1;
}

.bars:focus-visible {
	outline: 2px solid var(--link);
	outline-offset: 3px;
	border-radius: 0.375rem;
}

/* ---- The day tooltip: the dashboard's card, shared by every day ---- */

.tip {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 10;
	width: 15rem;
	max-width: calc(100vw - 1rem);
	border: 1px solid var(--fog);
	border-radius: 0.625rem;
	background: var(--paper);
	box-shadow:
		0 1px 2px rgb(15 18 33 / 6%),
		0 12px 28px -10px rgb(15 18 33 / 24%);
	color: var(--stone);
	font-size: 0.8125rem;
	line-height: 1.45;
	opacity: 0;
	transform: translateY(4px) scale(0.97);
	transform-origin: bottom center;
	transition:
		opacity 120ms ease,
		transform 120ms ease,
		visibility 120ms;
	visibility: hidden;
}

.tip-below {
	transform: translateY(-4px) scale(0.97);
	transform-origin: top center;
}

.tip-open {
	opacity: 1;
	transform: none;
	visibility: visible;
}

.tip-section {
	padding: 0.5625rem 0.75rem;
}

.tip-section + .tip-section {
	border-top: 1px solid var(--fog);
}

.tip-title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.tip-dot {
	flex: none;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--fill, var(--mark-no-data));
}

/* The chart's paler reds say how long; next to the words, the dot just says down. */
.tip.grade-minor .tip-dot,
.tip.grade-partial .tip-dot {
	background: var(--mark-major);
}

.tip-label {
	color: var(--ink);
	font-size: 0.875rem;
	font-weight: 500;
}

.tip-date {
	margin-top: 0.0625rem;
}

.tip-fact {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}

.tip-fact + .tip-fact {
	margin-top: 0.25rem;
}

.tip-fact-value {
	color: var(--ink);
	font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
	.tip,
	.bars .day::after {
		transition: none;
	}

	.tip,
	.tip-below {
		transform: none;
	}
}

.grade-ok {
	--fill: var(--mark-ok);
}

.grade-warning {
	--fill: var(--mark-warning);
}

.grade-minor {
	--fill: var(--mark-minor);
}

.grade-partial {
	--fill: var(--mark-partial);
}

.grade-major {
	--fill: var(--mark-major);
}

.grade-unknown {
	--fill: var(--mark-unknown);
}

.grade-no-data {
	--fill: var(--mark-no-data);
}

.bars-axis {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 0.3125rem;
	color: var(--stone);
	font-size: 0.8125rem;
}

.bars-uptime {
	color: var(--slate);
	font-weight: 500;
}

.bars-note {
	display: flex;
	flex-wrap: wrap;
	gap: 0 1rem;
	margin-top: 0.3125rem;
	color: var(--stone);
	font-size: 0.8125rem;
}

/* ---- Words for a status ---- */

.status-dot {
	display: inline-block;
	flex: none;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--tone);
	box-shadow: 0 0 0 0.1875rem color-mix(in srgb, var(--tone) 18%, transparent);
}

.status-word {
	display: inline-flex;
	align-items: center;
	gap: 0.4375rem;
	color: var(--text);
	font-size: 0.9375rem;
	font-weight: 500;
	white-space: nowrap;
}

/* Fine is the normal state, so it stays quiet and trouble stands out. */
.status-word.tone-ok {
	color: var(--stone);
	font-weight: 400;
}

/* ---- Sections ---- */

main h2 {
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: -0.015em;
}

main > .ungrouped {
	margin-top: 0.75rem;
}

.group {
	margin-top: 1.5rem;
}

.group[hidden],
.component[hidden] {
	display: none;
}

.finder {
	margin-top: 2rem;
}

.finder[hidden],
.finder-empty[hidden] {
	display: none;
}

.finder input {
	width: 100%;
	max-width: 22rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--fog);
	border-radius: 0.5rem;
	background: var(--paper);
	color: var(--ink);
	font: inherit;
	font-size: 0.9375rem;
}

.finder input:focus-visible {
	outline: 2px solid var(--link);
	outline-offset: 1px;
}

.finder-empty {
	margin-top: 0.75rem;
	color: var(--stone);
}

.components {
	border-top: 1px solid var(--fog);
}

.group-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.125rem 0.75rem;
	padding-bottom: 0.625rem;
	cursor: pointer;
	list-style: none;
}

.group-head::-webkit-details-marker {
	display: none;
}

/* A chevron that turns when the group opens. */
.group-head::before {
	content: '';
	align-self: center;
	width: 0.4375rem;
	height: 0.4375rem;
	margin-right: 0.0625rem;
	border-right: 2px solid var(--stone);
	border-bottom: 2px solid var(--stone);
	transform: rotate(-45deg);
}

details[open] > .group-head::before {
	transform: rotate(45deg);
}

.group-count {
	color: var(--stone);
	font-size: 0.875rem;
}

.group-head .status-word {
	margin-left: auto;
}

.group-description {
	max-width: 38rem;
	margin-top: 0.125rem;
	color: var(--stone);
	font-size: 0.9375rem;
}

/* One line per component, so thirty of them still fit: the name beside its days and
   uptime, and a status only when it isn't fine. Rows line up, so a bad spell reads
   straight down the page. */
.component {
	display: grid;
	gap: 0.25rem 1.25rem;
	align-items: center;
	padding-block: 0.6875rem;
	border-bottom: 1px solid var(--fog);
}

@media (min-width: 40rem) {
	.component {
		grid-template-columns: 11rem minmax(0, 1fr);
	}
}

.component-label {
	min-width: 0;
}

.component-label .status-word {
	margin-top: 0.125rem;
	font-size: 0.8125rem;
	white-space: normal;
}

/* Fine needs no words on every row: the group and the headline already say it. */
.component-label .status-word.tone-ok {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.component-data {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 4.25rem;
	gap: 0 0.875rem;
	align-items: center;
}

.component-data .bars {
	height: 1.5rem;
}

.component-data .bars-note {
	margin-top: 0;
	justify-content: flex-end;
	text-align: right;
}

/* A healthy row's history is in its marks; the words are for touch, on the row itself. */
.component-data .bars-note span:not(.bars-uptime) {
	display: none;
}

.component-name {
	overflow: hidden;
	font-size: 0.9375rem;
	font-weight: 500;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.component-description,
.component-uptime {
	color: var(--stone);
	font-size: 0.875rem;
}

.component-uptime {
	margin-top: 0.25rem;
}

/* ---- Incidents ---- */

.view-title {
	margin-top: 2.5rem;
	font-size: clamp(1.875rem, 5.5vw, 2.75rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.026em;
}

.sheet-error .view-title {
	margin-top: 0;
}

.empty {
	max-width: 38rem;
	margin-top: 0.75rem;
	color: var(--slate);
}

.incident-meta {
	margin-top: 0.125rem;
	color: var(--stone);
	font-size: 0.9375rem;
}

.view-title + .incident-meta {
	margin-top: 0.75rem;
}

.incident-meta strong {
	color: var(--ink);
	font-weight: 600;
}

.incident-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 2.5rem;
	margin-top: 1.25rem;
	font-size: 0.9375rem;
}

.incident-facts dt {
	color: var(--stone);
	font-size: 0.8125rem;
}

.affected {
	margin-top: 2.25rem;
}

.affected + section,
.incident-facts + section {
	margin-top: 2.25rem;
}

.affected ul {
	margin-top: 0.5rem;
}

.affected li {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.125rem 1rem;
	padding-block: 0.5rem;
	border-top: 1px solid var(--fog);
}

.timeline {
	margin-top: 0.75rem;
}

.update {
	position: relative;
	padding-bottom: 1.25rem;
	padding-left: 1.125rem;
	border-left: 1px solid var(--fog);
}

.update:last-child {
	padding-bottom: 0;
}

.update::before {
	content: '';
	position: absolute;
	top: 0.5rem;
	left: -0.25rem;
	width: 0.4375rem;
	height: 0.4375rem;
	border-radius: 50%;
	background: var(--tone-neutral);
}

.update:first-child::before {
	background: var(--ink);
}

.update-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 0.75rem;
}

.update-head strong {
	font-weight: 600;
}

.update-head time {
	color: var(--stone);
	font-size: 0.875rem;
}

.update-body {
	max-width: 38rem;
	margin-top: 0.125rem;
	color: var(--slate);
	white-space: pre-line;
}

/* ---- History ---- */

main > section[aria-labelledby='past-heading'] {
	margin-top: 3.5rem;
}

.history {
	margin-top: 0.5rem;
}

.history-item {
	padding-block: 0.75rem;
	border-top: 1px solid var(--fog);
}

.history-item > a {
	font-weight: 600;
	text-decoration: none;
}

.history-item > a:hover {
	text-decoration: underline;
}

.month {
	margin-top: 2.25rem;
}

/* ---- Badges: no boxes, only the rules between rows ---- */

.badge-hero {
	margin-top: 1.5rem;
}

.badge-hero img,
.badge-row img {
	display: block;
	max-width: 100%;
	height: 20px;
}

.badge-code {
	display: grid;
	grid-template-columns: 5.5rem minmax(0, 1fr);
	gap: 0.5rem 1rem;
	margin-top: 1rem;
	font-size: 0.875rem;
}

.badge-code dt {
	color: var(--stone);
}

.badge-code code {
	display: block;
	overflow-wrap: anywhere;
	color: var(--slate);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.8125rem;
	line-height: 1.5;
	user-select: all;
}

.badge-hint {
	margin-top: 1rem;
	color: var(--stone);
	font-size: 0.875rem;
}

.badge-row {
	padding-block: 0.875rem;
	border-top: 1px solid var(--fog);
}

.badge-row-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.375rem 1rem;
}

.badge-row-name {
	font-weight: 600;
}

.badge-row summary {
	gap: 0.5rem;
	width: fit-content;
	margin-top: 0.375rem;
	color: var(--stone);
	font-size: 0.875rem;
}

@media (max-width: 30rem) {
	.badge-code {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.125rem;
	}

	.badge-code dd + dt {
		margin-top: 0.5rem;
	}
}

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

.colophon {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.625rem 1.5rem;
	margin-top: 4.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--fog);
	color: var(--stone);
	font-size: 0.875rem;
}

.colophon nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.25rem;
}

/* The links wrap on a phone, and these rows are what a thumb has to tell apart. */
@media (max-width: 30rem) {
	.colophon nav {
		row-gap: 0.5rem;
	}
}

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

.colophon a:hover {
	color: var(--ink);
	text-decoration: underline;
}

.powered {
	display: inline-flex;
	align-items: center;
	gap: 0.4375rem;
}

.powered img {
	display: block;
}

/* ---- Language: a small menu at the top, opened without any script ---- */

.masthead {
	position: relative;
}

/* Beside the page's name on a wide screen, above it on a narrow one. There the form's panel
   takes the row's whole width, wherever its control happens to be. */
.masthead-tools {
	position: relative;
	display: flex;
	justify-content: flex-end;
	gap: 1.125rem;
	margin-bottom: 1.25rem;
}

@media (min-width: 40rem) {
	.masthead {
		padding-right: 15rem;
	}

	.masthead-tools {
		position: absolute;
		top: 0.125rem;
		right: 0;
		z-index: 3;
		margin-bottom: 0;
	}
}

.languages,
.subscribe {
	position: relative;
	color: var(--stone);
	font-size: 0.875rem;
}

.languages[open],
.subscribe[open] {
	z-index: 4;
}

.languages summary,
.subscribe > summary {
	display: flex;
	align-items: center;
	gap: 0.4375rem;
	cursor: pointer;
	list-style: none;
}

.languages summary::-webkit-details-marker,
.subscribe > summary::-webkit-details-marker {
	display: none;
}

.languages-globe {
	flex: none;
	width: 1rem;
	height: 1rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.languages summary:hover,
.subscribe > summary:hover,
.languages[open] > summary,
.subscribe[open] > summary {
	color: var(--ink);
}

.languages summary::after,
.subscribe > summary::after {
	content: '';
	width: 0.375rem;
	height: 0.375rem;
	margin-top: -0.1875rem;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
}

/* While open, the summary reaches over the whole page, so a click anywhere closes
   the menu, without a script. */
.languages[open] > summary::before,
.subscribe[open] > summary::before {
	content: '';
	position: fixed;
	inset: 0;
	z-index: 3;
	cursor: default;
}

.languages nav {
	position: absolute;
	z-index: 4;
	top: calc(100% + 0.375rem);
	right: 0;
	display: grid;
	min-width: 9rem;
	padding: 0.25rem;
	border: 1px solid var(--fog);
	border-radius: 0.625rem;
	background: var(--paper);
	box-shadow: 0 8px 24px -8px rgb(15 18 33 / 22%);
}

.languages a {
	padding: 0.3125rem 0.5rem;
	border-radius: 0.375rem;
	color: var(--slate);
	text-decoration: none;
}

.languages a:hover {
	background: var(--wash);
	color: var(--ink);
}

.languages a[aria-current] {
	color: var(--ink);
	font-weight: 600;
}

/* ---- Email updates: the same kind of menu, with a form in it, and pages of their own ---- */

.subscribe {
	position: static;
}

.subscribe-panel {
	position: absolute;
	z-index: 4;
	top: calc(100% + 0.375rem);
	right: 0;
	left: 0;
	padding: 1rem;
	border: 1px solid var(--fog);
	border-radius: 0.625rem;
	background: var(--paper);
	box-shadow: 0 8px 24px -8px rgb(15 18 33 / 22%);
	color: var(--slate);
}

@media (min-width: 40rem) {
	.subscribe {
		position: relative;
	}

	.subscribe-panel {
		left: auto;
		width: 21rem;
	}
}

.subscribe-lead {
	margin: 0 0 0.875rem;
	line-height: 1.45;
}

.subscribe-label {
	display: block;
	margin-bottom: 0.375rem;
	color: var(--ink);
	font-size: 0.8125rem;
	font-weight: 600;
}

.subscribe-row {
	display: flex;
	gap: 0.5rem;
}

.subscribe-row input,
.subscription button,
.subscribe-row button {
	font: inherit;
	font-size: 0.875rem;
}

.subscribe-row input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0.5rem 0.625rem;
	border: 1px solid var(--fog);
	border-radius: 0.5rem;
	background: var(--paper);
	color: var(--ink);
}

.subscribe-row input::placeholder {
	color: var(--stone);
}

.subscribe-row input:focus-visible {
	border-color: var(--link);
	outline: 2px solid var(--glow);
	outline-offset: 0;
}

.subscribe-row button,
.subscription button {
	flex: none;
	padding: 0.5rem 0.875rem;
	border: 0;
	border-radius: 0.5rem;
	background: var(--link);
	color: var(--paper);
	font-weight: 600;
	cursor: pointer;
}

.subscribe-row button:hover,
.subscription button:hover {
	filter: brightness(1.12);
}

.subscribe-row button:focus-visible,
.subscription button:focus-visible {
	outline: 2px solid var(--link);
	outline-offset: 2px;
}

.subscribe-some {
	margin-top: 0.875rem;
	border-top: 1px solid var(--fog);
}

.subscribe-some summary {
	justify-content: space-between;
	padding-top: 0.75rem;
	color: var(--slate);
	font-size: 0.875rem;
}

/* A disclosure with a chevron in place of the browser's triangle. */
.subscribe-some summary,
.badge-row summary {
	display: flex;
	align-items: center;
	cursor: pointer;
	list-style: none;
}

.subscribe-some summary::-webkit-details-marker,
.badge-row summary::-webkit-details-marker {
	display: none;
}

.subscribe-some summary::after,
.badge-row summary::after {
	content: '';
	width: 0.375rem;
	height: 0.375rem;
	margin: -0.1875rem 0.125rem 0 0;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
}

.subscribe-some[open] summary::after,
.badge-row details[open] summary::after {
	margin-top: 0.1875rem;
	transform: rotate(-135deg);
}

.subscribe-some summary:hover,
.badge-row summary:hover {
	color: var(--ink);
}

.subscribe-hint {
	margin: 0.375rem 0 0;
	color: var(--stone);
	font-size: 0.8125rem;
}

.subscribe-some ul {
	display: grid;
	gap: 0.0625rem;
	max-height: 13rem;
	margin: 0.5rem -0.5rem -0.25rem;
	padding: 0;
	overflow-y: auto;
	list-style: none;
}

.subscribe-some label {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	padding: 0.375rem 0.5rem;
	border-radius: 0.375rem;
	color: var(--ink);
	font-size: 0.875rem;
	cursor: pointer;
}

.subscribe-some label:hover {
	background: color-mix(in srgb, var(--link) 7%, transparent);
}

.subscribe-some input {
	display: grid;
	flex: none;
	place-items: center;
	width: 1rem;
	height: 1rem;
	margin: 0;
	border: 1.5px solid var(--stone);
	border-radius: 0.25rem;
	background: transparent;
	cursor: pointer;
	appearance: none;
}

.subscribe-some input::after {
	content: '';
	width: 0.25rem;
	height: 0.5rem;
	margin-top: -0.125rem;
	border-right: 1.75px solid var(--paper);
	border-bottom: 1.75px solid var(--paper);
	transform: rotate(45deg) scale(0);
}

.subscribe-some input:checked {
	border-color: var(--link);
	background: var(--link);
}

.subscribe-some input:checked::after {
	transform: rotate(45deg) scale(1);
}

.subscribe-some input:focus-visible {
	outline: 2px solid var(--link);
	outline-offset: 2px;
}

.subscription {
	max-width: 32rem;
}

.subscription .view-title {
	margin-bottom: 0.625rem;
}

.subscription-body {
	margin: 0 0 1.5rem;
	color: var(--slate);
	line-height: 1.55;
}

.subscription-problem {
	margin: 0 0 1.25rem;
	color: var(--text-major);
	font-weight: 500;
}

.subscription .subscribe-form {
	font-size: 0.875rem;
}

.subscription-back {
	margin: 1.75rem 0 0;
	color: var(--stone);
	font-size: 0.875rem;
}

.subscription-back a {
	color: var(--link);
}

.subscription-back span {
	margin: 0 0.375rem;
}
