/* Made by scripts/build-look.mjs (tokens.css + plain.css). Don't edit: change the files in look/ and run it again. */
/* The look kit's colours: Atlas's own, and no others.
   MADE BY scripts/sync-look.mjs FROM ATLAS (src/lib/styles/palette.css). NEVER EDIT: change Atlas, then run "npm run sync-look". */
:root {
	--lapis: #233a8c;
	--ink: #1b1e2b;
	--paper: #f6f7fa;
	/* The module's own visual identity (the logo's colour). It is NOT The Custodian's: use --discipline-pink for them. */
	--tyrian: #6b2d5c;
	--orpiment: #8f6200;
	--malachite: #2a7560;

	/* THE COLOUR CODE (UF1; CLAUDE.md, "The Analysis Station"): one cyan and one pink, and no near-values.
	   Cyan is Those Who Might Have Been: their hints, their glitches, their signal, and The Slate, which is their device.
	   Pink is The Discipline and The Custodian. Transparent tints (glows, washes, scanlines) are made from these with
	   color-mix(in srgb, var(--those-cyan) 40%, transparent), never with a new hex or rgba value. The same two values are in
	   src/lib/palette.ts for the code-drawn pictures that cannot read a variable; a test keeps the two in step. */
	--those-cyan: #5ff2e6;
	--discipline-pink: #ff7ab8;

	/* THE CAST'S COLOURS (DL1; docs/STORY.md, "The cast"): one token for each character, beside the cyan and the pink. No
	   townsperson uses the cyan or the pink, and the Stranger has no colour. Colour is never the only way to tell who is
	   speaking: the name is always there in words. The same values are in src/lib/palette.ts (CAST), and
	   scripts/palette.test.mjs keeps the two in step and keeps every pair apart. */
	--architect-yellow: #f2c230;
	--listener-orange: #d97757;
	--archivist-parchment: #e9dcc0;
	--archivist-sepia: #7a5a3a;
	--trader-green: var(--malachite);
	--envoy-blue: #5c82c9;
	--guard-oxblood: #7a2e2e;
	--builder-stone: #8c8a84;
	--scribe-violet: #5e3a87;
	/* The Gatekeeper's (ER1b, 18 November 2026): weathered bronze, the guardian of the way between worlds. */
	--gatekeeper-bronze: #a6803f;
	/* The Librarian's (LB1, 23 November 2026): moss green, the cloth of a library's book bindings. */
	--librarian-moss: #739a3c;

	/* TEXT TINTS. No base colour passes as text on both the navy text box (#161d28) and The Atlas's paper (#f3e7c9), so each
	   has a tint for each ground: the smallest mix towards white (on navy) or black (on paper) that reaches 4.5:1, made
	   with color-mix from the one token and never as a new hex. The test works each mix out and measures it. */
	--those-on-navy: var(--those-cyan);
	--those-on-paper: color-mix(in srgb, var(--those-cyan) 47%, black);
	--discipline-on-navy: var(--discipline-pink);
	--discipline-on-paper: color-mix(in srgb, var(--discipline-pink) 62%, black);
	--architect-on-navy: var(--architect-yellow);
	--architect-on-paper: color-mix(in srgb, var(--architect-yellow) 52%, black);
	--listener-on-navy: var(--listener-orange);
	--listener-on-paper: color-mix(in srgb, var(--listener-orange) 71%, black);
	--archivist-on-navy: var(--archivist-parchment);
	--archivist-on-paper: color-mix(in srgb, var(--archivist-parchment) 47%, black);
	--archivist-sepia-on-navy: color-mix(in srgb, var(--archivist-sepia) 77%, white);
	--archivist-sepia-on-paper: var(--archivist-sepia);
	--trader-on-navy: color-mix(in srgb, var(--trader-green) 81%, white);
	--trader-on-paper: color-mix(in srgb, var(--trader-green) 99%, black);
	--envoy-on-navy: color-mix(in srgb, var(--envoy-blue) 98%, white);
	--envoy-on-paper: color-mix(in srgb, var(--envoy-blue) 80%, black);
	--guard-on-navy: color-mix(in srgb, var(--guard-oxblood) 65%, white);
	--guard-on-paper: var(--guard-oxblood);
	--builder-on-navy: var(--builder-stone);
	--builder-on-paper: color-mix(in srgb, var(--builder-stone) 75%, black);
	--scribe-on-navy: color-mix(in srgb, var(--scribe-violet) 67%, white);
	--scribe-on-paper: var(--scribe-violet);
	--gatekeeper-on-navy: var(--gatekeeper-bronze);
	--gatekeeper-on-paper: color-mix(in srgb, var(--gatekeeper-bronze) 77%, black);
	--librarian-on-navy: var(--librarian-moss);
	--librarian-on-paper: color-mix(in srgb, var(--librarian-moss) 73%, black);
}

/* Atlas values with no token: the few values Atlas keeps in a component rather than in its palette.
   Each was found in the file named above it (the table in scripts/sync-look.mjs). */
:root {
	/* src/lib/styles/ui.css */
	--font: Verdana, Geneva, 'DejaVu Sans', sans-serif;
	/* src/lib/components/slate/SlateWindow.svelte */
	--slate-stone: #565c6c;
	--slate-stone-light: #7c8396;
	--slate-stone-dark: #3b404e;
	--slate-gold: #e2b350;
	--slate-gold-dark: #8f6200;
	--slate-screen: #0f1530;
	--slate-rule: #1e2a52;
	--slate-light: #d7fbf6;
	--slate-text: #e4e7f0;
	--slate-quiet: #9fb0d4;
	--slate-panel: #141c3d;
	--slate-lock-top: #3a3f4b;
	--slate-lock-foot: #2e323c;
	--slate-lock-shade: #23262e;
	--slate-lock-edge: #5a6172;
	--slate-lock-ink: #c3c9d8;
	/* src/lib/components/TextBox.svelte */
	--box-fill: #0e131c;
	--box-cream: #f6efdc;
	--box-tone: #c9bfa6;
	--box-inner-line: rgba(243, 231, 201, 0.16);
	--box-shadow: rgba(0, 0, 0, 0.35);
	--box-bracket: #f3e7c9;
	/* src/lib/styles/ui.css */
	--atlas-paper: #f3e7c9;
	--atlas-paper-edge: #d8c193;
	/* src/lib/styles/access.css */
	--focus-ring: #ffd54a;
	--hc-black: #000;
	--hc-white: #fff;
	--hc-yellow: #ffe600;
}

/* The four threads (src/lib/pages/threads.css), for the plain pages. */
:root {
	--thread-recognition: #6b2d5c;
	--thread-exchange: #8f6200;
	--thread-order: #233a8c;
	--thread-edges: #2a7560;
	--thread-method: #4a5068;
	--thread-recognition-text: #6b2d5c;
	--thread-exchange-text: #6b4a00;
	--thread-order-text: #233a8c;
	--thread-edges-text: #236350;
	--thread-method-text: #4a5068;
	/* On a dark ground (Module Pages' Dark theme, and a note's tip, MP1) each is mixed with white, never given a new colour. */
	--thread-recognition-on-dark: color-mix(in srgb, var(--thread-recognition) 30%, white);
	--thread-exchange-on-dark: color-mix(in srgb, var(--thread-exchange) 35%, white);
	--thread-order-on-dark: color-mix(in srgb, var(--thread-order) 30%, white);
	--thread-edges-on-dark: color-mix(in srgb, var(--thread-edges) 35%, white);
	--thread-method-on-dark: color-mix(in srgb, var(--thread-method) 25%, white);
}

/* Module Pages' own variables (src/lib/pages/site.css), for the plain pages (.plain), and in High Contrast. */
.plain {
	--mp-paper: #f6f7fa;
	--mp-panel: #ffffff;
	--mp-ink: #1b1e2b;
	--mp-muted: #4a5068;
	--mp-rule: #dce0ea;
	--mp-edge: #b9c0d0;
	--mp-lapis: #233a8c;
	--mp-soft: #dde3f4;
	--mp-softer: #eef1fa;
	--mp-accent: #233a8c;
	--mp-on-accent: #ffffff;
	--mp-good: #236350;
	--mp-good-soft: #e3f1eb;
	--mp-warm: #8f6200;
	--mp-warm-text: #6b4a00;
	--mp-warm-soft: #fbf5e6;
	--mp-tip-bg: #1b1e2b;
	--mp-tip-ink: #ffffff;
	--mp-tip-link: #c9d4ff;
}
html.hc .plain {
	--mp-paper: #000000;
	--mp-panel: #000000;
	--mp-ink: #ffffff;
	--mp-muted: #ffffff;
	--mp-rule: #ffffff;
	--mp-edge: #ffffff;
	--mp-lapis: #ffffff;
	--mp-soft: #000000;
	--mp-softer: #000000;
	--mp-accent: #ffe600;
	--mp-on-accent: #000000;
	--mp-good: #ffffff;
	--mp-tick: #ffffff;
	--mp-cross: #ffffff;
	--mp-good-soft: #000000;
	--mp-warm: #ffffff;
	--mp-warm-text: #ffffff;
	--mp-warm-soft: #000000;
	--mp-tip-bg: #000000;
	--mp-tip-ink: #ffffff;
	--mp-tip-link: #ffe600;
}
@media (prefers-contrast: more) {
	.plain {
		--mp-paper: #000000;
		--mp-panel: #000000;
		--mp-ink: #ffffff;
		--mp-muted: #ffffff;
		--mp-rule: #ffffff;
		--mp-edge: #ffffff;
		--mp-lapis: #ffffff;
		--mp-soft: #000000;
		--mp-softer: #000000;
		--mp-accent: #ffe600;
		--mp-on-accent: #000000;
		--mp-good: #ffffff;
		--mp-tick: #ffffff;
		--mp-cross: #ffffff;
		--mp-good-soft: #000000;
		--mp-warm: #ffffff;
		--mp-warm-text: #ffffff;
		--mp-warm-soft: #000000;
		--mp-tip-bg: #000000;
		--mp-tip-ink: #ffffff;
		--mp-tip-link: #ffe600;
	}
}

/* The look kit: the plain pages (tutor, setup, admin, rules, guide and glossary). They are staff tools and
   reference pages in the Module Pages style, and they never become a game. Everything is under .plain, so
   nothing here can touch a Slate. The values are Module Pages' own (--mp-…, copied from Atlas's
   src/lib/pages/site.css into look/tokens.css by scripts/sync-look.mjs); there is no colour of the kit's own.
   Put class="plain" on <body> (or on the page's root). High Contrast: class="hc" on <html>, or the device's own. */

.plain {
	margin: 0;
	min-height: 100%;
	background: var(--mp-paper);
	color: var(--mp-ink);
	font:
		16px/1.6 Verdana,
		'DejaVu Sans',
		sans-serif;
	text-align: left;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}
.plain *,
.plain *::before,
.plain *::after {
	box-sizing: border-box;
}
.plain .wrap,
.plain > main {
	display: block;
	max-width: 1280px;
	margin: 0 auto;
	padding: 18px 24px 40px;
}
.plain .narrow {
	max-width: 760px;
}
.plain a {
	color: var(--mp-lapis);
}
.plain h1,
.plain h2,
.plain h3 {
	color: var(--mp-lapis);
	line-height: 1.3;
	margin: 1.2em 0 0.4em;
}
.plain h1 {
	font-size: 1.6em;
	margin-top: 0.4em;
}
.plain h2 {
	font-size: 1.25em;
}
.plain h3 {
	font-size: 1.05em;
}
.plain p {
	margin: 0 0 0.7em;
}
.plain :focus-visible {
	outline: 3px solid var(--mp-lapis);
	outline-offset: 2px;
}

/* The bar across the top: the pages every game has. */
.plain .bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 18px;
	padding: 10px 24px;
	background: var(--mp-panel);
	border-bottom: 1px solid var(--mp-rule);
}
.plain .bar .name {
	font-weight: 700;
	color: var(--mp-lapis);
	margin-right: auto;
}
.plain .bar a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 6px;
	font-weight: 700;
	text-decoration: none;
}
.plain .bar a[aria-current] {
	text-decoration: underline;
	text-underline-offset: 5px;
	text-decoration-thickness: 3px;
}

/* A panel, a caption, a notice. */
.plain .card,
.plain .panel {
	background: var(--mp-panel);
	border: 1px solid var(--mp-rule);
	border-radius: 6px;
	padding: 16px 22px;
	margin: 0 0 14px;
}
.plain .card.mine {
	border: 2px solid var(--mp-lapis);
}
.plain .card > h2:first-child,
.plain .card > h3:first-child,
.plain .panel > h2:first-child,
.plain .panel > h3:first-child {
	margin-top: 0;
}
.plain .cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 14px;
}
.plain .cards > .card {
	margin: 0;
}
.plain .cap {
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mp-muted);
	margin: 0 0 6px;
	font-weight: 400;
}
.plain .muted {
	color: var(--mp-muted);
}
.plain .small {
	font-size: 14px;
}
.plain .notice {
	background: var(--mp-soft);
	border-left: 4px solid var(--mp-lapis);
	padding: 10px 16px;
	margin: 0 0 14px;
	font-size: 15px;
}
.plain .notice b {
	color: var(--mp-lapis);
	margin-right: 6px;
}
.plain .notice.warn {
	background: var(--mp-warm-soft);
	border-left-color: var(--mp-warm);
	color: var(--mp-ink);
}
.plain .notice.warn b {
	color: var(--mp-warm-text);
}
.plain .tag {
	display: inline-block;
	border: 1px solid var(--mp-edge);
	border-radius: 999px;
	padding: 1px 10px;
	font-size: 13px;
	font-weight: 700;
	background: var(--mp-paper);
	color: var(--mp-ink);
	white-space: nowrap;
}

/* Buttons: one or two words, 44 high at least. */
.plain button,
.plain .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 9px 18px;
	border: 2px solid var(--mp-accent);
	border-radius: 4px;
	background: var(--mp-panel);
	color: var(--mp-lapis);
	font:
		700 15px Verdana,
		'DejaVu Sans',
		sans-serif;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
}
.plain button.primary,
.plain .button.primary {
	background: var(--mp-accent);
	color: var(--mp-on-accent);
}
.plain button.danger,
.plain .button.danger {
	border-color: var(--thread-recognition);
	color: var(--thread-recognition-text);
}
.plain button.small,
.plain .button.small {
	font-size: 13px;
	padding: 6px 12px;
}
.plain .btns {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 0 0 12px;
}

/* Fields. */
.plain label {
	display: block;
	font-weight: 700;
	font-size: 14px;
	margin: 0 0 10px;
}
.plain input[type='text'],
.plain input[type='number'],
.plain input[type='password'],
.plain input:not([type]),
.plain select,
.plain textarea {
	display: block;
	width: 100%;
	min-height: 44px;
	margin-top: 4px;
	border: 1.5px solid var(--mp-edge);
	border-radius: 4px;
	padding: 8px 10px;
	font:
		15px/1.5 Verdana,
		'DejaVu Sans',
		sans-serif;
	color: var(--mp-ink);
	background: var(--mp-panel);
}
.plain form {
	max-width: 520px;
}

/* Tables. */
.plain table {
	width: 100%;
	border-collapse: collapse;
	background: var(--mp-panel);
	font-size: 14px;
	margin: 0 0 14px;
}
.plain th,
.plain td {
	padding: 8px 10px;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--mp-rule);
}
.plain thead th {
	border-bottom: 2px solid var(--mp-edge);
	color: var(--mp-muted);
	font-size: 13px;
}
.plain .scroll {
	overflow-x: auto;
}
.plain .err {
	color: var(--thread-recognition-text);
	font-weight: 700;
}
.plain .sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* High Contrast: the variables change in look/tokens.css; a button is yellow, and an error says so in white. */
html.hc .plain .err,
html.hc .plain button.danger,
html.hc .plain .button.danger {
	color: var(--mp-ink);
	border-color: var(--mp-ink);
}
html.hc .plain button,
html.hc .plain .button {
	background: var(--mp-accent);
	color: var(--mp-on-accent);
	border-color: var(--mp-ink);
}
html.hc .plain .card,
html.hc .plain .panel,
html.hc .plain .notice {
	border: 2px solid var(--mp-ink);
}

@media (prefers-reduced-motion: reduce) {
	.plain *,
	.plain *::before,
	.plain *::after {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
}
@media (max-width: 700px) {
	.plain .wrap,
	.plain > main {
		padding: 14px 14px 32px;
	}
	.plain .card,
	.plain .panel {
		padding: 14px 16px;
	}
	.plain .bar {
		padding: 8px 14px;
	}
}
/* The rulebook prints cleanly: black on white, no bar, no buttons, nothing cut across a page. */
@media print {
	.plain {
		background: none;
		color: var(--hc-black);
		font-size: 11pt;
	}
	.plain .bar,
	.plain .no-print,
	.plain button,
	.plain .button {
		display: none !important;
	}
	.plain .card,
	.plain .panel,
	.plain .notice {
		border: 1px solid var(--hc-black);
		background: none;
		break-inside: avoid;
	}
	.plain h1,
	.plain h2,
	.plain h3 {
		color: var(--hc-black);
		break-after: avoid;
	}
	.plain a {
		color: var(--hc-black);
	}
}
