/* Opaque canvas and chrome color for the local page theme. */
html[data-zx-page-palette] {
  --zx-page-color: #f7f2e6;
  background-color: var(--zx-page-color);
}
html[data-zx-page-palette]:is([data-zx-theme="dark"],[data-zx-theme="eclipse"]) { --zx-page-color: #05080d; }
html[data-zx-page-palette="home"] { --zx-page-color: #f4f0e6; }
html[data-zx-page-palette="home"]:is([data-zx-theme="dark"],[data-zx-theme="eclipse"]) { --zx-page-color: #0b1017; }
html[data-zx-page-palette="compare"] { --zx-page-color: #f7f9f0; }
html[data-zx-page-palette="compare"]:is([data-zx-theme="dark"],[data-zx-theme="eclipse"]) { --zx-page-color: #0a1010; }
html[data-zx-page-palette="aboard"] { --zx-page-color: #f3eee2; }
html[data-zx-page-palette="aboard"][data-theme="dark"] { --zx-page-color: #0b0f0d; }
html[data-zx-page-palette="a2"] { --zx-page-color: #0a0812; }
html[data-zx-page-palette="claim"] { --zx-page-color: #ffffff; }
@media (prefers-color-scheme: dark) {
  html[data-zx-page-palette="claim"] { --zx-page-color: #10151c; }
}
html[data-zx-page-palette] body { background-color: var(--zx-page-color); }

footer a:not(:has(img, picture, svg)),
a[href="/changelog.txt"],
.compare-body main a:not(.compare-sr) {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  box-sizing: border-box;
  max-inline-size: 100%;
}

.gal-one img.amani-drawn.amani-drawn {
  inline-size: 128px !important;
  block-size: 128px !important;
  max-inline-size: 100%;
}

/* 0.9.19 (Levi's walk, 26.11.2026): the end of every page is centred. On a phone ZIONX sits right under the eye and the
   lists of links stand centred as a group. Both themes; desktop columns keep their layout. */
@media (max-width: 599px) {
  html body footer.foot .foot-grid { justify-items: center; text-align: center; }
  html body footer.foot .foot-grid > * { justify-self: center; width: 100%; }
  html body footer.foot .foot-grid > .foot-art-mid { width: auto; margin-bottom: -16px; }
  html body footer.foot .foot-name { display: flex; justify-content: center; }
  html body footer.foot .foot-right { align-items: center; }
  html body footer.foot .foot-right > .foot-links { align-self: center; }
  html body footer.foot .foot-links ul, html body footer.foot .foot-toggles { align-items: center; }
  html body footer.foot p:has(.cartoons) { justify-content: center; }
  html body footer.foot :is(.space-cap, .sky-credit, .zx-legal-line, figcaption, blockquote, .zq-text) { text-align: center; }
}
html body footer.foot:not(:has(.foot-grid)) .wrap, html body footer.fl-foot .wrap, html body footer.compare-foot .compare-frame,
html body footer:not([class]) { text-align: center; }
html body footer.fl-foot ul, html body footer.compare-foot nav { justify-content: center; margin-inline: auto; }
@media (max-width: 599px) {
  html body footer.foot .foot-links a { display: inline-block; text-align: center; padding-block: 10px; min-height: 44px; box-sizing: border-box; }
  html body footer.foot .foot-grid figure.zq blockquote { border-inline-start: 0; padding-inline-start: 0; }
}
html body footer.compare-foot .compare-frame { justify-content: center; }
/* K52: header light/dark switch */
.fd-bar>.fd-theme{display:inline-grid;place-items:center;flex:0 0 auto;width:44px;min-width:44px;height:44px;margin:0;padding:0;border:1px solid transparent;border-radius:8px;background:none;color:inherit;font:inherit;line-height:1;box-shadow:none;cursor:pointer}
.fd-bar>.fd-theme:hover{border-color:currentColor}
.fd-bar>.fd-theme:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.fd-bar>.fd-theme svg{display:block;width:22px;height:22px}
.fd-bar>.fd-theme .fd-sun{display:none}
html:is([data-zx-theme="dark"],[data-zx-theme="eclipse"]) .fd-bar>.fd-theme .fd-sun{display:block}
html:is([data-zx-theme="dark"],[data-zx-theme="eclipse"]) .fd-bar>.fd-theme .fd-moon{display:none}
