/* The platform's own pages: Explore and its tiles, My worlds, the new-world wizard, a world's
   settings, an account, the login, an invite, search and the secrets review, and the live faces.
   Reads tokens.css and builds on base.css and shell.css. One component per block, each under its root. */

/* The few sizes no token has: the login column, My worlds' side column, the wizard's preview column,
   the smallest card, the smallest tile cover, the invite's seal, and text that sits on a world-coloured cover. */
body.portal,
body.platform-page {
	--login-max: 24rem;
	--side-col: 20rem;
	--preview-col: 19rem;
	--card-min: 15rem;
	--tile-min: 10rem;
	--tile-min-wide: 17rem;
	--seal: 4.5rem;
	--field-min: 8rem;
}

/* ---- The portal: a column with the footer at the bottom ------------------------------------ */

body.portal {
	display: flex;
	flex-direction: column;
}

body.portal > .identity {
	align-self: flex-end;
	margin: var(--space-4) var(--gutter) 0;
}

.portal-main {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: var(--space-7);
	padding-top: var(--space-6);
	padding-bottom: var(--space-7);
}

.portal-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-2);
	text-align: center;
}

.portal-header h1 {
	font-family: var(--font-titles);
	font-size: var(--text-3xl);
	font-weight: normal;
	color: var(--accent);
}

.portal-header p {
	font-family: var(--font-prose);
	font-size: var(--text-lg);
	font-style: italic;
	color: var(--ink-muted);
}

.portal-section {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}

/* The welcome a visitor gets above the tiles. */
body.portal > .explore-hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-5);
	width: 100%;
	max-width: var(--narrow-max);
	margin-inline: auto;
	padding: var(--space-8) var(--gutter) var(--space-5);
	text-align: center;
}

.explore-hero h1 {
	font-family: var(--font-titles);
	font-size: var(--text-3xl);
	font-weight: normal;
	line-height: 1.1;
	color: var(--accent);
}

.explore-hero p {
	font-family: var(--font-prose);
	font-size: var(--text-lg);
	color: var(--ink-muted);
}

/* ---- Tiles: the worlds on Explore -------------------------------------------------------- */
/* Three fixed steps so the cards never flip while the window is resized: one column of sideways
   tiles, two, then four upright on a wide screen. A group of two stretches across the row. */

.tiles {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-5);
}

.tile {
	--tile-ink: color-mix(in srgb, var(--tile-accent, var(--accent)) 70%, var(--ink));
	display: block;
	overflow: hidden;
	border: var(--rule);
	border-top: 3px solid var(--tile-accent, var(--accent));
	border-radius: var(--radius);
	background: var(--surface);
	color: var(--ink);
	transition: background var(--ease), border-color var(--ease);
}

.tile:hover,
.tile:focus-visible {
	border-color: var(--tile-accent, var(--accent));
	background: var(--surface-open);
	color: var(--ink);
}

.tile-inner {
	display: flex;
	flex-direction: row;
	height: 100%;
}

.tile-cover {
	flex: 0 0 38%;
	min-height: var(--tile-min);
	background: var(--surface-open) center / cover;
	transition: transform 0.4s ease;
}

.tile:hover .tile-cover,
.tile:focus-visible .tile-cover {
	transform: scale(1.04);
}

/* No art yet: a wash in the world's own colour, not an empty box. */
.tile-cover-empty {
	background: linear-gradient(160deg, var(--tile-accent, var(--accent)), var(--surface-open));
	opacity: 0.55;
}

.tile-body {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	min-width: 0;
	padding: var(--space-4) var(--space-5);
}

.tile-body h2 {
	font-family: var(--font-titles);
	font-size: var(--text-xl);
	font-weight: normal;
	line-height: 1.2;
	color: var(--tile-ink);
}

.tile-setting {
	font-size: var(--text-xs);
	letter-spacing: var(--tracking-caps);
	text-transform: uppercase;
	color: var(--ink-muted);
}

.tile-blurb {
	font-family: var(--font-prose);
	font-size: var(--text-md);
	color: var(--ink-muted);
}

@media (min-width: 760px) {
	.tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1200px) {
	.tiles {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: var(--space-6);
	}

	.tiles-few > .tile {
		grid-column: span 2;
	}

	.tiles:not(.tiles-few) .tile-inner {
		flex-direction: column;
	}

	.tiles:not(.tiles-few) .tile-cover {
		flex: none;
		aspect-ratio: 4 / 3;
	}

	.tiles-few .tile-cover {
		flex: 0 0 45%;
		min-height: var(--tile-min-wide);
	}

	.tiles-few .tile-body {
		align-self: center;
		padding: var(--space-6);
	}
}

/* ---- A platform page: its frame and head ----------------------------------------------- */

.platform-main {
	display: flex;
	flex-direction: column;
	gap: var(--space-6);
	width: 100%;
	max-width: var(--wide-max);
	margin-inline: auto;
	padding: var(--space-6) var(--gutter) var(--space-8);
}

.platform-main.narrow {
	max-width: var(--narrow-max);
}

.platform-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--space-4);
}

.platform-head > div {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	min-width: 0;
}

.platform-head h1 {
	font-family: var(--font-titles);
	font-size: var(--text-2xl);
	font-weight: normal;
	color: var(--accent);
}

.platform-head .crumbs {
	font-size: var(--text-sm);
}

.platform-head .bio {
	font-family: var(--font-prose);
	font-size: var(--text-prose);
}

/* A message above a form or a card: the same hairline mark as a notice, in the danger colour. */
body.portal .login-error,
.platform-main .login-error {
	padding: var(--space-2) var(--space-4);
	border-left: 3px solid var(--danger);
	background: color-mix(in srgb, var(--danger) 10%, transparent);
	font-size: var(--text-sm);
	text-align: left;
}

@media (max-width: 760px) {
	.platform-head > .button,
	.platform-head > .actions {
		flex: 1 0 100%;
	}

	.platform-head > .actions .button {
		flex: 1;
	}
}

/* Settings, People & invites, Linked worlds: one row of tabs under the world's name. */
.tabs {
	display: flex;
	gap: var(--space-2);
	margin-top: calc(-1 * var(--space-3));
	border-bottom: var(--rule);
	overflow-x: auto;
}

/* A shared least width, so short tabs ("Issues") line up with long ones instead of each taking its word's width. */
.tabs a {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	min-width: 7rem;
	padding: var(--space-2) 0;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	color: var(--ink-muted);
	font-weight: 600;
	white-space: nowrap;
}

.tabs a:hover,
.tabs a[aria-current="page"] {
	color: var(--ink);
}

.tabs a[aria-current="page"] {
	border-bottom-color: var(--accent);
}

/* Admin: a row per world you run, its colour on the left, what needs you, then the way into its admin. */
.admin-worlds .member {
	padding-left: var(--space-3);
	border-left: 3px solid var(--card-accent, var(--accent));
}

.admin-world-links {
	display: flex;
	flex: 1 0 100%;
	flex-wrap: wrap;
	gap: var(--space-2);
}

/* ---- My worlds ------------------------------------------------------------------------- */

.me-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--side-col);
	gap: var(--space-6);
	align-items: start;
}

.me-worlds {
	display: flex;
	flex-direction: column;
	gap: var(--space-6);
	min-width: 0;
}

.me-worlds > section {
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}

.me-side {
	display: flex;
	flex-direction: column;
	gap: var(--space-5);
}

.world-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(var(--card-min), 1fr));
	gap: var(--space-5);
}

/* A world as a card: its cover in its colour, then its name and the ways in. */
.world-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: var(--rule);
	border-radius: var(--radius);
	background: var(--surface);
	transition: border-color var(--ease);
}

.world-card:hover {
	border-color: var(--card-accent, var(--accent));
}

.world-card-cover {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 9;
	border-bottom: 2px solid var(--card-accent, var(--accent));
	background: linear-gradient(135deg, var(--card-accent, var(--accent)), color-mix(in srgb, var(--card-accent, var(--accent)) 40%, var(--on-accent))) center / cover;
}

.world-card-initial {
	font-family: var(--font-titles);
	font-size: var(--text-3xl);
	color: var(--on-dark);
}

.world-card-cover .role {
	position: absolute;
	top: var(--space-2);
	right: var(--space-2);
	background: color-mix(in srgb, var(--on-accent) 70%, transparent);
	color: var(--on-dark);
}

.world-card-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	padding: var(--space-4);
}

.world-card-body h3 {
	font-family: var(--font-titles);
	font-size: var(--text-lg);
	font-weight: normal;
	color: color-mix(in srgb, var(--card-accent, var(--accent)) 70%, var(--ink));
}

.world-card-body p {
	font-size: var(--text-sm);
}

/* Manage, and what needs whoever runs the world, at the foot of its card. */
.world-card-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2);
	margin-top: auto;
	padding-top: var(--space-2);
}

/* No world yet: one dashed invitation to make the first. */
.empty-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-2);
	padding: var(--space-7) var(--space-5);
	border: 1px dashed var(--line-strong);
	border-radius: var(--radius);
	text-align: center;
	color: var(--ink);
	transition: border-color var(--ease), background var(--ease);
}

.empty-card:hover {
	border-color: var(--accent);
	background: var(--accent-soft);
	color: var(--ink);
}

.empty-icon {
	font-size: var(--text-2xl);
	color: var(--accent);
}

.recent,
.shortcuts {
	display: flex;
	flex-direction: column;
	padding: 0;
	list-style: none;
}

.recent {
	gap: var(--space-2);
}

.recent li {
	display: flex;
	flex-direction: column;
	padding-left: var(--space-3);
	border-left: 2px solid var(--card-accent, var(--accent));
}

.recent a {
	font-weight: 600;
}

.recent .muted {
	font-size: var(--text-xs);
}

.shortcuts li {
	padding: var(--space-1) 0;
	border-bottom: var(--rule);
	font-size: var(--text-sm);
}

.shortcuts li:last-child {
	border-bottom: 0;
}

.shortcuts a::before {
	content: "\203A  ";
	color: var(--accent);
}

@media (max-width: 760px) {
	.me-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---- The new-world wizard --------------------------------------------------------------- */

.wizard {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--preview-col);
	gap: var(--space-6);
	align-items: start;
}

.wizard-steps {
	display: flex;
	flex-direction: column;
	gap: var(--space-5);
	min-width: 0;
}

.wizard-preview {
	position: sticky;
	top: calc(var(--control-h) + var(--space-6));
	display: flex;
	flex-direction: column;
	gap: var(--space-4);
}

.step > h2 {
	justify-content: flex-start;
}

.step-no {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: calc(var(--control-h) - var(--space-2));
	height: calc(var(--control-h) - var(--space-2));
	border-radius: var(--radius-round);
	background: var(--accent);
	color: var(--on-accent);
	font-size: var(--text-xs);
	font-weight: 700;
}

/* A campaign is played in a world and starts as a notebook; a world starts as a setting. */
.wizard:not(.is-campaign) .campaign-only,
.wizard.is-campaign .world-only {
	display: none;
}

/* Choices: one of a few, each a boxed sentence. The chosen one is marked in the accent. */
.platform-main .choices {
	display: grid;
	gap: var(--space-2);
}

.platform-main .choices.two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.platform-main .choice {
	display: flex;
	align-items: flex-start;
	gap: var(--space-3);
	padding: var(--space-3) var(--space-4);
	border: var(--rule);
	border-radius: var(--radius);
	background: var(--paper);
	font-size: var(--text-md);
	font-weight: normal;
	letter-spacing: normal;
	text-transform: none;
	color: var(--ink);
	cursor: pointer;
	transition: border-color var(--ease), background var(--ease);
}

.platform-main .choice:hover {
	border-color: var(--accent);
}

.platform-main .choice:has(input:checked) {
	border-color: var(--accent);
	background: var(--accent-soft);
}

.platform-main .choice input {
	flex: none;
	margin: var(--space-1) 0 0;
}

.choice-body {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	min-width: 0;
}

.choice-body .muted {
	font-size: var(--text-sm);
}

/* The address: the fixed part and the field read as one box. */
.platform-main .slug-field,
.platform-main .address {
	display: flex;
	align-items: stretch;
	overflow: hidden;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	background: var(--paper);
	transition: border-color var(--ease);
}

.platform-main .slug-field:focus-within,
.platform-main .address:focus-within {
	border-color: var(--accent);
	outline: 2px solid var(--accent-soft);
}

.platform-main .slug-prefix,
.platform-main .address > .muted {
	display: flex;
	align-items: center;
	padding-left: var(--space-3);
	font-size: var(--text-sm);
	white-space: nowrap;
	color: var(--ink-faint);
}

.platform-main .slug-field input,
.platform-main .address input {
	flex: 1;
	min-width: 0;
	padding-left: var(--space-1);
	border: 0;
	background: transparent;
}

.platform-main .slug-field input:focus-visible,
.platform-main .address input:focus-visible {
	outline: 0;
}

/* Colour swatches: round, the chosen one ringed in its own colour; the last is any colour at all. */
.platform-main .swatches {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
}

.platform-main .swatch {
	position: relative;
	display: block;
	width: var(--control-h);
	height: var(--control-h);
	border: 2px solid var(--paper);
	border-radius: var(--radius-round);
	outline: 1px solid var(--line-strong);
	background: var(--swatch);
	cursor: pointer;
	transition: transform var(--ease), outline-color var(--ease);
}

.platform-main .swatch:hover {
	transform: scale(1.08);
}

.platform-main .swatch:has(input:checked) {
	outline: 2px solid var(--swatch, var(--accent));
	outline-offset: 1px;
}

.platform-main .swatch:has(input:focus-visible) {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.platform-main .swatch input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	opacity: 0;
	cursor: pointer;
}

.platform-main .swatch.custom {
	background: conic-gradient(in hsl longer hue, red, red);
}

.platform-main .swatch.custom input[type="color"] {
	inset: calc(-1 * var(--space-2));
	width: calc(var(--control-h) + var(--space-4));
	height: calc(var(--control-h) + var(--space-4));
}

/* Heading fonts, each shown in itself. */
.platform-main .font-choices {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(var(--card-min), 1fr));
	gap: var(--space-2);
}

.platform-main .font-choice {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: var(--space-1);
	padding: var(--space-3) var(--space-4);
	border: var(--rule);
	border-radius: var(--radius);
	font-weight: normal;
	letter-spacing: normal;
	text-transform: none;
	color: var(--ink);
	cursor: pointer;
	transition: border-color var(--ease), background var(--ease);
}

.platform-main .font-choice:has(input:checked) {
	border-color: var(--accent);
	background: var(--accent-soft);
}

.platform-main .font-choice:has(input:focus-visible) {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.platform-main .font-choice input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.font-sample {
	overflow: hidden;
	font-size: var(--text-lg);
	line-height: 1.2;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.platform-main .font-choice .muted {
	font-size: var(--text-xs);
}

@media (max-width: 860px) {
	.wizard {
		grid-template-columns: minmax(0, 1fr);
	}

	/* On a phone the button follows the form, the last thing filled in; the preview card goes. */
	.wizard-preview {
		position: static;
		order: 1;
	}

	.wizard-preview .world-card,
	.wizard-preview .section-heading {
		display: none;
	}

	.platform-main .choices.two {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---- A world's settings --------------------------------------------------------------- */

.platform-main fieldset.plain {
	display: contents;
}

/* The rarely needed fields, folded. */
.platform-main details.more {
	display: flex;
	flex-direction: column;
	gap: var(--flow);
}

.platform-main details.more > summary {
	align-self: flex-start;
	font-size: var(--text-sm);
	color: var(--accent-ink);
}

/* Two fields side by side, label over each. */
.platform-main .edge-when {
	display: flex;
	gap: var(--space-4);
}

.platform-main .edge-when > label {
	flex: 1;
}

/* People, maps, files, links, characters: one ruled row each, the controls at the end. */
.members,
.invites {
	display: flex;
	flex-direction: column;
	padding: 0;
	list-style: none;
}

.member {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-3);
	padding: var(--space-3) 0;
	border-bottom: var(--rule);
}

.member:last-child {
	border-bottom: 0;
}

.member-name {
	flex: 1 1 var(--field-min);
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.member-name .muted {
	font-size: var(--text-xs);
	overflow-wrap: anywhere;
}

.member-role {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2);
}

.member-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2);
}

.member-form input,
.member-form select {
	width: auto;
	min-height: calc(var(--control-h) - var(--space-2));
	font-size: var(--text-sm);
}

.member-form input {
	flex: 1 1 var(--field-min);
	min-width: 0;
}

.member > details {
	flex: 1 0 100%;
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.member > details > summary {
	align-self: flex-start;
}

/* Making an invite: a few short choices in a row, the button at the end. */
.invite-form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: var(--space-4);
}

.invite-form > label,
.invite-characters {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
}

.invite-form > label,
.invite-characters .field-name {
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: var(--tracking-caps);
	text-transform: uppercase;
	color: var(--ink-muted);
}

.invite-form select {
	width: auto;
}

.invite-characters .picks {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-1) var(--space-4);
	min-height: var(--control-h);
}

.invite-characters .picks label {
	display: flex;
	align-items: center;
	gap: var(--space-1);
	font-size: var(--text-sm);
	color: var(--ink);
}

.invites li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2) var(--space-3);
	padding: var(--space-3) 0;
	border-top: var(--rule);
}

.invite-link {
	flex: 1 1 100%;
	display: flex;
	gap: var(--space-2);
}

.invite-link input {
	flex: 1;
	min-width: 0;
	font-family: var(--font-mono);
	font-size: var(--text-sm);
}

.invites .muted {
	flex: 1;
	font-size: var(--text-sm);
}

@media (max-width: 760px) {
	.member-form,
	.member-role {
		flex: 1 0 100%;
	}

	.invite-form > label,
	.invite-characters,
	.invite-form select,
	.invite-form .button {
		width: 100%;
	}
}

/* ---- An invite --------------------------------------------------------------------------- */

.invite-card {
	align-items: center;
	padding: var(--space-7) var(--space-5);
	border-top: 3px solid var(--card-accent, var(--accent));
	text-align: center;
}

.invite-card h1 {
	font-family: var(--font-titles);
	font-size: var(--text-3xl);
	font-weight: normal;
	color: color-mix(in srgb, var(--card-accent, var(--accent)) 70%, var(--ink));
}

.invite-blurb {
	max-width: var(--prose-max);
	font-family: var(--font-prose);
	font-size: var(--text-lg);
	font-style: italic;
}

.invite-seal {
	display: grid;
	place-items: center;
	width: var(--seal);
	height: var(--seal);
	border-radius: var(--radius-round);
	background: linear-gradient(135deg, var(--card-accent, var(--accent)), color-mix(in srgb, var(--card-accent, var(--accent)) 45%, var(--on-accent)));
	color: var(--on-dark);
	font-family: var(--font-titles);
	font-size: var(--text-2xl);
}

/* ---- Logging in, signing up, a lost password ----------------------------------------------- */

body.login-page .portal-main {
	flex: 1;
	justify-content: center;
	align-items: center;
	max-width: var(--login-max);
	gap: var(--space-5);
	text-align: center;
}

body.login-page .portal-header h1 {
	font-size: var(--text-2xl);
}

body.login-page .portal-header p {
	font-family: var(--font-ui);
	font-size: var(--text-sm);
	font-style: normal;
}

/* The form: one column on a surface, every field the same width. */
body.portal .login {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	width: 100%;
	padding: var(--space-5);
	border: var(--rule);
	border-radius: var(--radius);
	background: var(--surface);
	text-align: left;
}

body.portal .login > label {
	margin-top: var(--space-3);
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: var(--tracking-caps);
	text-transform: uppercase;
	color: var(--ink-muted);
}

body.portal .login > label:first-of-type {
	margin-top: 0;
}

body.portal .login > .button {
	margin-top: var(--space-3);
}

body.portal .login-aside,
body.portal .login-back {
	font-size: var(--text-sm);
	text-align: center;
	color: var(--ink-muted);
}

body.portal .login-aside a,
body.portal .login-back a {
	color: var(--accent-ink);
}

body.portal .account-message {
	align-items: center;
	gap: var(--space-4);
	text-align: center;
}

/* ---- Search, and the secrets review in its chrome ------------------------------------------- */

.portal-main > .search {
	display: flex;
	gap: var(--space-2);
	width: 100%;
	max-width: var(--narrow-max);
}

.portal-main > .search input {
	flex: 1;
	min-width: 0;
}

.portal-main .search-hint,
.portal-main .search-count {
	font-size: var(--text-sm);
	color: var(--ink-muted);
}

.search-world {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
}

.search-world h2 {
	padding-bottom: var(--space-1);
	border-bottom: var(--rule-strong);
	font-family: var(--font-titles);
	font-size: var(--text-lg);
	font-weight: normal;
	color: var(--accent);
}

.search-world ul {
	display: flex;
	flex-direction: column;
	gap: var(--space-3);
	padding: 0;
	list-style: none;
}

.search-world li {
	padding-left: var(--space-3);
	border-left: 2px solid transparent;
	transition: border-color var(--ease);
}

.search-world li:hover {
	border-left-color: var(--accent);
}

.search-world li > a {
	font-weight: 600;
}

.search-kind {
	margin-left: var(--space-2);
	font-size: var(--text-xs);
	font-weight: normal;
	letter-spacing: var(--tracking-caps);
	text-transform: uppercase;
	color: var(--ink-faint);
}

.search-snippet {
	display: block;
	font-size: var(--text-sm);
	color: var(--ink-muted);
}

.portal-main mark {
	padding: 0 0.1em;
	border-radius: var(--radius);
	background: var(--accent-soft);
	color: inherit;
}

/* Which world, and whom it is written for: plain links, the chosen one in the accent. */
.secrets-filter {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-1) var(--space-4);
	font-size: var(--text-sm);
}

.secrets-filter a {
	color: var(--ink-muted);
}

.secrets-filter a.active {
	color: var(--accent-ink);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: var(--underline-offset);
}

.secrets-world {
	gap: var(--space-4);
}

.secrets-page-entry {
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
}

.secrets-page-entry h3 {
	font-size: var(--text-md);
}


/* The crumbs over a settings page read as one muted line, links included. */
.platform-main .crumbs a {
	color: inherit;
}

/* People */
/* The one thing a player may do here, leaving, sits alone at the end of the list, out of the way of the owner-side forms. */
body.world-people .card > form.leave {
	align-self: flex-end;
}
