/*
 * The broker's copy.
 *
 * Loaded with media="print", so this file needs no wrapping at-rule.
 *
 * People take these to a transitaire, so the sheet has to carry the exchange
 * rate, its date and the legal basis: a quote without them cannot be checked by
 * anyone, which makes it worthless at a counter.
 *
 * Monochrome. Separation comes from rules and weight, never from colour — a
 * fax, a photocopy and a black-and-white laser all have to stay readable.
 */

/*
 * The second selector is not decoration, and it has to be this exact shape.
 * The dark palette is applied by `.acc-calc:not([data-acc-theme='light'])`
 * inside a prefers-color-scheme query, which still matches when printing. A
 * bare `.acc-calc` is (0,1,0) and loses to it, so a reader on a dark desktop
 * would print a black sheet. Repeating the selector matches its (0,2,0) and
 * wins on order, because this sheet loads after the tokens.
 */
.acc-calc,
.acc-calc:not([data-acc-theme='light']) {
	--acc-bg: #ffffff;
	--acc-page: #ffffff;
	--acc-muted: #ffffff;
	--acc-fg: #000000;
	--acc-muted-fg: #333333;
	--acc-placeholder: #666666;
	--acc-border: #999999;
	--acc-border-strong: #666666;

	--acc-accent: #000000;
	--acc-accent-hover: #000000;
	--acc-accent-soft: #ffffff;
	--acc-accent-fg: #ffffff;

	--acc-ok-bg: #ffffff;
	--acc-ok-fg: #000000;
	--acc-ok-border: #999999;

	--acc-warn-bg: #ffffff;
	--acc-warn-fg: #000000;
	--acc-warn-border: #666666;

	--acc-err: #000000;
	--acc-err-bg: #ffffff;
	--acc-err-fg: #000000;
	--acc-err-border: #666666;

	--acc-shadow-sm: none;
	--acc-shadow-lift: none;
	--acc-selected: none;

	max-inline-size: none;
	font-size: 10.5pt;
	color: #000000;
	background: #ffffff;
}

/* Inputs are not evidence. */
.acc-calc .acc-form,
.acc-calc .acc-rail,
.acc-calc .acc-nav,
.acc-calc .acc-btn,
.acc-calc .acc-listbox,
.acc-calc .acc-noscript {
	display: none;
}

.acc-calc .acc-shell {
	padding-block: 0;
	padding-inline: 0;
}

.acc-calc .acc-results {
	min-block-size: 0;
}

.acc-calc .acc-headline {
	padding: 0 0 10pt;
	border-block-end: 1pt solid #000000;
	border-radius: 0;
	background: #ffffff;
}

.acc-calc .acc-headline__value {
	font-size: 20pt;
	color: #000000;
}

.acc-calc .acc-panel,
.acc-calc .acc-cliff,
.acc-calc .acc-stop {
	margin-block-end: 10pt;
	padding: 8pt;
	border: 0.5pt solid #666666;
	border-radius: 0;
	background: #ffffff;
	break-inside: avoid;
}

.acc-calc .acc-note {
	border: 0.5pt solid #666666;
	background: #ffffff;
	break-inside: avoid;
}

/*
 * The tax detail needs no print rules at all. Layout is driven by
 * @container, and a printed page is far wider than the 34rem switch, so the
 * aligned table is what a sheet already gets.
 */
.acc-calc .acc-cliff__grid {
	grid-template-columns: 1fr 1fr;
}

/* Rate, date and legal basis: the part a broker actually checks. */
.acc-calc .acc-meta {
	margin-block-start: 10pt;
	padding-block-start: 6pt;
	border-block-start: 0.5pt solid #000000;
	font-size: 9pt;
	color: #000000;
}
