/* Dark colors apply only on screen; printing keeps the light palette. */
@media screen {
  :root[data-theme="dark"] {
    color-scheme: dark;
    /* Colori campionati dal riferimento: testo caldo, giallo dorato e fondo nero. */
    --accent-ink: #f7d17d;
    --accent: #76591f;
    --accent-deep: #59431c;
    --gold: #f7d17d;
    --theme-bg-0001: rgba(0, 0, 0, 0.0666667);
    --theme-bg-0002: rgba(0, 0, 0, 0.133333);
    --theme-bg-0003: rgba(0, 0, 0, 0.2);
    --theme-bg-0005: rgba(0, 0, 0, 0.333333);
    --theme-bg-0006: rgba(0, 0, 0, 0.4);
    --theme-bg-70243814: rgba(247, 209, 125, 0.08);
    --theme-bg-b67f14: #93712e;
    --theme-bg-ccebd5: #26452f;
    --theme-bg-d6a02f: #8b7037;
    --theme-bg-e7e4dc: #3c382f;
    --theme-bg-eee1e6: #39301e;
    --theme-bg-eeeae3: #222428;
    --theme-bg-eeeeee: #2e2e2e;
    --theme-bg-f1e7e9: #332c20;
    --theme-bg-f2f6f8: #1d262b;
    --theme-bg-f5f2eb: #24252a;
    --theme-bg-f5f2ef: #24252a;
    --theme-bg-f7eaea: #39301e;
    --theme-bg-f7f0f2: #2b271e;
    --theme-bg-f8dce4: #332b19;
    --theme-bg-f8f2e5: #312916;
    --theme-bg-f8f6f2: #222428;
    --theme-bg-f8fafb: #161c20;
    --theme-bg-ffe7a8: #584513;
    --theme-bg-ffeb59: #585013;
    --theme-bg-ffec99: #463e1b;
    --theme-bg-fff: #1b1b1c;
    --theme-bg-fff3cb: #3b300c;
    --theme-bg-fff5c9: #3b320c;
    --theme-bg-fff8df: #3b310c;
    --theme-bg-fff9e8: #3b2f0c;
    --theme-bg-fffdf7: #292820;
    --theme-bg-fffdf9: #020402;
    --theme-bg-rgba-0-0-0-0-18: rgba(0, 0, 0, 0.18);
    --theme-bg-rgba-0-0-0-0-24: rgba(0, 0, 0, 0.24);
    --theme-bg-rgba-0-0-0-0-28: rgba(0, 0, 0, 0.28);
    --theme-bg-rgba-16-29-38-0-58: rgba(20, 28, 34, 0.58);
    --theme-bg-rgba-255-255-255-0-72: rgba(27, 27, 28, 0.72);
    --theme-bg-rgba-255-255-255-0-93: rgba(27, 27, 28, 0.93);
    --theme-bg-rgba-255-255-255-0-94: rgba(27, 27, 28, 0.94);
    --theme-bg-rgba-91-35-53-0-16: rgba(100, 77, 30, 0.16);
    --theme-bg-white: #1b1b1c;
    --theme-border-a77b89: #655636;
    --theme-border-b67f14: #655434;
    --theme-border-b75c79: #776138;
    --theme-border-cbb6bd: #5b503a;
    --theme-border-d0a22a: #d0a22a;
    --theme-border-d6a02f: #615438;
    --theme-border-d9cec7: #524b47;
    --theme-border-ded7d1: #524c47;
    --theme-border-ded8d2: #514c48;
    --theme-border-e7a9b9: #776138;
    --theme-border-rgba-0-0-0-0-08: rgba(74, 74, 74, 0.08);
    --theme-border-rgba-0-0-0-0-09: rgba(74, 74, 74, 0.09);
    --theme-fg-124f2b: #bee4ce;
    --theme-fg-141414: #d4cec4;
    --theme-fg-171717: #d4cec4;
    --theme-fg-1e2c35: #d4cec4;
    --theme-fg-292421: #d4cec4;
    --theme-fg-375d77: #d4cec4;
    --theme-fg-49606f: #d4cec4;
    --theme-fg-625b5b: #d4cec4;
    --theme-fg-633c0d: #e8d3ba;
    --theme-fg-67605c: #b8b4b1;
    --theme-fg-702438: #f7d17d;
    --theme-fg-702d42: #f7d17d;
    --theme-fg-9b0808: #f7d17d;
    --theme-fg-b42318: #f7d17d;
    --theme-fg-b58936: #e1d6c1;
    --theme-fg-b8b0ab: #c4c0bd;
    --theme-fg-fff: #d4cec4;
  }
}
.theme-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.theme-choices button { flex: 1 1 80px; min-height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.theme-choices button[aria-pressed="true"] { background: var(--accent); color: var(--theme-fg-fff, #fff); border-color: var(--accent); font-weight: 700; }
.theme-choices button:focus-visible { outline: 3px solid var(--accent-ink, var(--accent)); outline-offset: 2px; }
.theme-note { font-size: 12px; line-height: 1.5; color: var(--muted); }
