/*
 * TAG Legal Desk v2.1: F3 Calm mode (package wp1_core). Set by js/v21_calm.js as data-calm="on" on the root.
 * The canopy is misted halfway towards the page colour and the grain is off (the same values as the art kit's FL-40
 * calm.css, so the desk looks the same with or without the art); text goes up one step without changing the saved
 * Text size; the streak ember and Wren hide. Nothing here touches the welfare band, a job, the email paper or a hard
 * stop. Motion is handled by data-motion="reduced", which Calm sets while it is on. Nothing animates here.
 */

/* Text one step up: 100 to 112, 112 to 125 (125 stays 125). */
:root[data-calm="on"][data-text="100"] { font-size: 112%; }
:root[data-calm="on"][data-text="112"] { font-size: 125%; }

/* The canopy, misted (FL-40). High contrast has no canopy, so it stays exactly as it is. */
:root[data-calm="on"] { --mesh-1: #E2EAE1; --mesh-2: #EAE8DF; --mesh-3: #E3EAEC; }
:root[data-theme="dark"][data-calm="on"] { --mesh-1: #121D14; --mesh-2: #181812; --mesh-3: #12181C; }
:root[data-theme="eucalypt"][data-calm="on"] { --mesh-1: #D8E5D6; --mesh-2: #E2EADA; --mesh-3: #DCE8DF; }
:root[data-theme="harbour"][data-calm="on"] { --mesh-1: #DAE5F0; --mesh-2: #DDEAEB; --mesh-3: #E2E8F1; }
:root[data-theme="wattle_gold"][data-calm="on"] { --mesh-1: #EEE7CE; --mesh-2: #EBEADC; --mesh-3: #F2EAD6; }
:root[data-theme="night_shift"][data-calm="on"] { --mesh-1: #101522; --mesh-2: #13131E; --mesh-3: #0D161E; }
:root[data-theme="reef"][data-calm="on"] { --mesh-1: #D8ECEA; --mesh-2: #ECEAE2; --mesh-3: #DCEAF0; }
:root[data-theme="high_contrast"][data-calm="on"] { --mesh-1: #FFFFFF; --mesh-2: #FFFFFF; --mesh-3: #FFFFFF; }
:root[data-calm="on"] body::before { display: none; }

/* The streak ember and Wren hide (a host marks Wren with data-v21-calm="hide"). */
:root[data-calm="on"] .ember,
:root[data-calm="on"] [data-v21-calm="hide"] { display: none !important; }

/* The Settings row: the switch and its words. */
.v21-calm-label { display: inline-flex; align-items: center; gap: 8px; }
.v21-calm-glyph { display: inline-flex; align-items: center; color: var(--brand-text); }
.v21-calm-glyph:empty { display: none; }
.v21-calm-row .set-hint { max-width: 36ch; }
