/* Palette-only preferences. No default-mode typography, geometry or motion overrides. */
.tt-theme { color:inherit; font:11px/1.2 HelveticaNeueBold,Arial,sans-serif; text-transform:uppercase; border-top:1px solid currentColor; padding-block:12px; }
.tt-theme label { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:0; }
.tt-theme label>span { opacity:.65; }
.tt-theme select { min-height:44px; max-width:170px; width:auto; padding:8px 32px 8px 12px; border:1px solid currentColor; border-radius:999px; color:inherit; background-color:transparent; font:12px/1.2 HelveticaNeueLight,Arial,sans-serif; cursor:pointer; text-transform:none; }
.tt-theme select:focus-visible { outline:2px solid currentColor; outline-offset:4px; }
.tt-theme option { color:CanvasText; background:Canvas; }
menu.menu>.tt-theme { margin-top:24px; color-scheme:light; }
.tp-nav>.tt-theme { margin-top:28px; max-width:470px; color-scheme:light; }
#tetri-widget .tw-dock>.tt-theme { margin-inline:24px; color-scheme:dark; }
.ds-main>.tt-theme { margin-top:40px; max-width:470px; }
html[data-tetri-theme="dark"] { color-scheme:dark; }

html[data-tetri-theme="light"]:not([data-a11y-contrast="high"]) {
  color-scheme:light;
  --c-obsidian-dust:#f3f5f6;
  --c-obsidian-dust-50:rgba(243,245,246,.5);
  --c-obsidian-dust-20:rgba(243,245,246,.2);
  --c-obsidian-dust-6:rgba(243,245,246,.06);
  --c-obsidian-dust-1:rgba(243,245,246,.01);
  --c-soft-concrete:#071725;
  --c-soft-concrete-20:rgba(7,23,37,.2);
  --c-soft-concrete-6:rgba(7,23,37,.06);
  --c-soft-concrete-1:rgba(7,23,37,.01);
  --tt-accent-ink:#176f69;
}
html[data-tetri-theme="light"]:not([data-a11y-contrast="high"]) body { background:#f3f5f6; color:#071725; }
html[data-tetri-theme="light"]:not([data-a11y-contrast="high"]) .tp-page {
  --tp-surface:#f3f5f6;
  --tp-text:#071725;
  --tp-muted:#46565e;
  --tp-line:rgba(7,23,37,.2);
  --tp-accent:#176f69;
}
/* Photographs retain their original pixels and white-on-dark presentation. */
html[data-tetri-theme="light"]:not([data-a11y-contrast="high"]) :is(.hero,.chapter-1 .sect-1,.chapter-2 .sect-1,.chapter-3 .sect-1,.chapter-4 .sect-1,.chapter-5 .sect-1,.sect-3-sticky) {
  --c-obsidian-dust:#0b0b0b;
  --c-obsidian-dust-50:rgba(11,11,11,.5);
  --c-obsidian-dust-20:rgba(11,11,11,.2);
  --c-obsidian-dust-6:rgba(11,11,11,.06);
  --c-obsidian-dust-1:rgba(11,11,11,.01);
  --c-soft-concrete:#f1f1f1;
  --c-soft-concrete-20:rgba(241,241,241,.2);
  --c-soft-concrete-6:rgba(241,241,241,.06);
  --c-soft-concrete-1:rgba(241,241,241,.01);
  --tt-accent-ink:#81d8d0;
  color:#f1f1f1;
}
html[data-tetri-theme="light"]:not([data-a11y-contrast="high"]) :is(.tp-hero,.tp-header-over,.tp-lightbox,.tc-lightbox) {
  --tp-text:#f1f1f1;
  --tp-muted:rgba(241,241,241,.65);
  --tp-line:rgba(241,241,241,.25);
  color:#f1f1f1;
}
html[data-tetri-theme="light"]:not([data-a11y-contrast="high"]) .tp-hero { --tp-accent:#81d8d0; }
html[data-tetri-theme="light"]:not([data-a11y-contrast="high"]) .tp-nav { --tp-accent:#81d8d0; }
html[data-tetri-theme="light"]:not([data-a11y-contrast="high"]) .tp-lightbox { --tp-surface:#0b0b0b; }
html[data-tetri-theme="light"]:not([data-a11y-contrast="high"]):not([data-tetri-theme-photo="true"]) .header .logo-white { opacity:0; }
html[data-tetri-theme="light"]:not([data-a11y-contrast="high"]):not([data-tetri-theme-photo="true"]) .header .logo-black { opacity:1; }
html[data-tetri-theme="light"]:not([data-a11y-contrast="high"]):not([data-tetri-theme-photo="true"]) .header .logo.black .logo-white { opacity:1; }
html[data-tetri-theme="light"]:not([data-a11y-contrast="high"]):not([data-tetri-theme-photo="true"]) .header .logo.black .logo-black { opacity:0; }
html[data-tetri-theme="light"]:not([data-a11y-contrast="high"])[data-tetri-theme-photo="true"] .header {
  --c-soft-concrete:#f1f1f1; --c-soft-concrete-20:rgba(241,241,241,.2); --c-soft-concrete-6:rgba(241,241,241,.06); --c-soft-concrete-1:rgba(241,241,241,.01);
  --c-obsidian-dust:#0b0b0b; --c-obsidian-dust-20:rgba(11,11,11,.2); --c-obsidian-dust-6:rgba(11,11,11,.06); --c-obsidian-dust-1:rgba(11,11,11,.01);
  color:#f1f1f1;
}
html[data-tetri-theme="light"]:not([data-a11y-contrast="high"])[data-tetri-theme-photo="true"] .header .logo-white { opacity:1; }
html[data-tetri-theme="light"]:not([data-a11y-contrast="high"])[data-tetri-theme-photo="true"] .header .logo-black { opacity:0; }
html[data-tetri-theme="light"]:not([data-a11y-contrast="high"]) .header .burger-wrap.open .burger span { background:#f1f1f1; }
html[data-tetri-theme="light"]:not([data-a11y-contrast="high"]) body .text-shine[data-v-0235e11e] { --base:var(--tt-accent-ink); background-image:linear-gradient(90deg,var(--tt-accent-ink) 0%,var(--tt-accent-ink) calc(50% - var(--shine-size)/2),#758890 50%,#c6d0d6 calc(50% + var(--shine-size)/2),var(--tt-accent-ink) 100%); }
html[data-tetri-theme="light"]:not([data-a11y-contrast="high"]) :is(menu.menu,.tp-nav)>.tt-theme { color-scheme:dark; }
html[data-tetri-theme="light"]:not([data-a11y-contrast="high"]) :is(.form-close .icon,.btn .icon) path[fill] { fill:var(--c-obsidian-dust); }
html[data-tetri-theme="light"]:not([data-a11y-contrast="high"]) .form-close:hover .icon path[fill] { fill:var(--c-soft-concrete); }
html[data-tetri-theme="light"]:not([data-a11y-contrast="high"]) .item-plus path { stroke:currentColor; }

html[data-tetri-theme="light"]:not([data-a11y-contrast="high"]) :is(.tetri-route-hub,.tetri-credits) { background:#f3f5f6; color:#071725; border-color:rgba(7,23,37,.2); }
html[data-tetri-theme="light"]:not([data-a11y-contrast="high"]) .tetri-route-hub h2 strong { color:#176f69; }
html[data-tetri-theme="light"]:not([data-a11y-contrast="high"]) :is(.tetri-route-hub nav a,.tetri-credits a) { color:inherit; border-color:rgba(7,23,37,.2); }
html[data-tetri-theme="light"]:not([data-a11y-contrast="high"]) .ds-page { --ds-surface:#f3f5f6; --ds-text:#071725; }
html[data-tetri-theme="light"]:not([data-a11y-contrast="high"]) .ds-page .ds-title strong { color:#176f69; }

html[data-tetri-theme="light"]:not([data-a11y-contrast="high"]) #tetri-widget { --tw-bg:#f3f5f6; --tw-fg:#071725; --tw-accent:#176f69; --tw-chrome:#758890; }
html[data-tetri-theme="light"]:not([data-a11y-contrast="high"]) #tetri-widget .tw-dock>.tt-theme { color-scheme:light; }
html[data-tetri-theme="light"]:not([data-a11y-contrast="high"]) #tetri-widget .tw-status { color:#176f69; background:rgba(243,245,246,.9); }
html[data-tetri-theme="light"]:not([data-a11y-contrast="high"]) #tetri-widget .tw-note { color:#46565e; }
html[data-tetri-theme="light"]:not([data-a11y-contrast="high"]) #tetri-widget .tw-question::placeholder { color:#46565e; }

html[data-tetri-theme="light"]:not([data-a11y-contrast="high"]) :is(.tmj-player,.tmj-questions,.tmj-mini:not([hidden])) { background:#e6edef; color:#071725; border-color:rgba(7,23,37,.25); }
html[data-tetri-theme="light"]:not([data-a11y-contrast="high"]) .tmj-player select { background:#f3f5f6; color:#071725; border-color:rgba(7,23,37,.3); }
html[data-tetri-theme="light"]:not([data-a11y-contrast="high"]) :is(.tmj-player button:not([data-tmj-play]):hover,.tmj-reader-controls button:hover) { color:#176f69; border-color:#176f69; }
html[data-tetri-theme="light"]:not([data-a11y-contrast="high"]) :is(.tmj-section [data-tmj-read],.tmj-source,.tmj-player-status,.tmj-mini-actions a) { color:#374b55; }
html[data-tetri-theme="light"]:not([data-a11y-contrast="high"]) :is(.tmj-section [data-tmj-read] strong,.tmj-section h3) { color:#071725; }
html[data-tetri-theme="light"]:not([data-a11y-contrast="high"]) :is(.tmj-chapters a span,.tmj-chapters a[aria-current],.tmj-section-head .tp-label,.tmj-section dt,.tmj-reading-section h2,.tmj-questions h3,.tmj-mini-copy>span) { color:#176f69; }
