/*
 * Ledgable — look base (templates-1203). Loaded with every template, Plain included.
 *
 * The reader's black & white switch, and the greyscale rules every template shares. Colours come only from
 * tokens; greyscale.css sets those tokens to black on white under `.ledgable-grey`.
 */

/* The reader's switch: small, out of the way, top right of the ledger. */
.ledgable .ledgable-greyswitch {
	float: right;
	position: relative;
	z-index: 2;
	margin: 0 0 0.5rem 0.75rem;
	padding: 0.2rem 0.6rem;
	border: 1.5px solid var(--ledgable-edge-strong);
	border-radius: 999px;
	background: var(--ledgable-paper);
	color: var(--ledgable-ink);
	font: 600 0.75rem/1.3 var(--ledgable-font-ui);
	cursor: pointer;
}

.ledgable .ledgable-greyswitch:hover,
.ledgable .ledgable-greyswitch:focus-visible {
	border-color: var(--ledgable-ink);
}

/* ------------------------------------------------------------- greyscale */

/* Links read as links without colour: underlined; card titles and buttons by weight and frame instead. */
.ledgable-grey .ledgable a {
	color: var(--ledgable-ink);
	text-decoration-line: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

.ledgable-grey .ledgable :is(.ledgable-card__link, .ledgable-onpage__link, .ledgable-tabs__tab, .ledgable-tabs__subtab, .ledgable-chip, .ledgable-item__chip, .ledgable-cloud__tag, .ledgable-chipcard__site) {
	text-decoration-line: none;
}

.ledgable-grey .ledgable .ledgable-card__title {
	font-weight: 700;
}

/* Fills become outlines; nothing sits on a grey. */
.ledgable-grey .ledgable mark,
.ledgable-grey .ledgable .ledgable-player__cue.is-now {
	background: var(--ledgable-paper);
	box-shadow: none;
	outline: 1.5px solid var(--ledgable-ink);
}

.ledgable-grey .ledgable :is(.ledgable-card, .ledgable-chipcard, .ledgable-player, .ledgable-stat, .ledgable-inissue) {
	box-shadow: none;
	border: 1.5px solid var(--ledgable-ink);
}

.ledgable-grey .ledgable .ledgable-greyswitch {
	border-color: var(--ledgable-ink);
}

.ledgable-grey .ledgable :is(.ledgable-header__meta, .ledgable-card__meta, .ledgable-landing__stamp, .ledgable-pick__n) {
	color: var(--ledgable-ink);
}
