/* =====================================================================
   BASE — what every page of the site stands on. layouts/master.njk links it on every page, the
   landing page included, in the place where the old theme's stylesheets were (Bootstrap's CSS,
   pro.css, custom.css, eclipse.css). Only what those still did for the pages as they are, measured
   page by page and state by state (work/old_theme_removal.md), with their values written out: the
   page's box model, type and scrolling; the element defaults the pages' own resets build on (site.css
   .sx, deck.css .dk-page); the frame of the shop's dialogs, which Bootstrap's script opens and
   closes; the colours of the shop's bot check; the reduced-motion rule. The visual editor's toolbar is
   styled in layouts/master.njk (the editor's preview only); the page's ground colour is set there too,
   before any stylesheet arrives.
   ===================================================================== */

/* ---------- the page ---------- */
:root { color-scheme: dark; }
*, ::before, ::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-synthesis: none; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: 'Blauer Nue', 'Geist', system-ui, 'Segoe UI', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;   /* the bar, the store and the pages behind it bring the browser's back */
}
/* the one character of the site Blauer Nue has no glyph for, the minus sign (U+2212) on the cart's quantity buttons,
   has always come from the font the stacks name next, Geist, from Google's font server: only this character is taken
   from there, and only a page that shows it loads the file. It can go when the cart draws its minus as an icon, as the
   product page does */
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 500; font-display: swap; src: url(https://fonts.gstatic.com/s/geist/v5/gyByhwUxId8gMEwcGFU.woff2) format('woff2'); unicode-range: U+2212; }
::selection { background: #d4d4d8; color: #0a0a0a; }
/* the page's scroll bar: thin and dark (Chrome, Edge, Safari) */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #040404; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 99px; border: 2px solid #040404; }
::-webkit-scrollbar-thumb:hover { background: rgba(212, 212, 216, 0.5); }

/* ---------- elements ---------- */
img, svg { vertical-align: middle; }
button, input, select, textarea { font-family: inherit; font-size: inherit; line-height: inherit; }
[type="button"], [type="submit"], button { -webkit-appearance: button; }
[type="button"]:not(:disabled), [type="submit"]:not(:disabled), button:not(:disabled) { cursor: pointer; }
/* number fields without the browser's spin buttons (the customer area's amounts; the quantity steppers have their own) */
input[type="number"] { -moz-appearance: textfield; }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* the keyboard's ring where a page has none of its own (the landing page's name, the bot check's box, ...); a button
   clicked with the pointer shows none */
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.85); outline-offset: 3px; }
button:focus:not(:focus-visible) { outline: 0; }
table { caption-side: bottom; }
tbody, td, th, thead, tr { border-style: solid; border-width: 0; }
code { overflow-wrap: break-word; }

/* ---------- helpers ---------- */
[x-cloak] { display: none !important; }   /* SellAuth's parts that wait for Alpine stay hidden until it has run */
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

/* ---------- #app (master.njk) holds every page and its dialogs; a short page keeps its footer at the foot ---------- */
.flex-wrapper { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; }
.component, .components { position: relative; }

/* ---------- dialogs: Bootstrap's frame, which its script opens (display, .show) and closes; their look is site.css's ---------- */
.fade { transition: opacity 0.15s linear; }
.fade:not(.show) { opacity: 0; }
.modal { position: fixed; top: 0; left: 0; z-index: 1055; display: none; width: 100%; height: 100%; overflow-x: hidden; overflow-y: auto; outline: 0; }
.modal-dialog { position: relative; margin: 0.5rem; pointer-events: none; }
.modal.fade .modal-dialog { transform: translate(0, -50px); transition: transform 0.3s ease-out; }
.modal.show .modal-dialog { transform: none; }
.modal-dialog-centered { display: flex; align-items: center; min-height: calc(100% - 1rem); }
@media (min-width: 576px) {
  .modal-dialog { margin: 1.75rem auto; }
  .modal-dialog-centered { min-height: calc(100% - 3.5rem); }
}

/* ---------- the shop's bot check (altcha: the login dialog, the cart, a product's buy panel) ---------- */
:root {
  --altcha-border-width: 1px;
  --altcha-border-radius: 0.5rem;
  --altcha-color-base: rgba(255, 255, 255, 0.025);
  --altcha-color-border: rgba(255, 255, 255, 0.05);
  --altcha-color-text: #fff;
  --altcha-color-border-focus: currentColor;
  --altcha-color-error-text: #ef4444;
  --altcha-color-footer-bg: #f4f4f4;
  --altcha-max-width: 600px;
}
.grecaptcha-badge { visibility: hidden; }   /* the same check by reCAPTCHA, when the shop uses that instead */

/* ---------- the owner's content: the FAQ's answers carry the old theme's link class (theme editor > FAQ) ---------- */
.ec-faq-link { font-weight: 600; border-bottom: 1px solid rgba(212, 212, 216, 0.35); transition: color 0.25s, border-color 0.25s; }
.ec-faq-link:hover { border-bottom-color: #e4e4e7; }

/* ---------- reduced motion: every page's animations and transitions take no time, scrolling jumps; dialogs come
   without a fade or a slide ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .fade, .modal.fade .modal-dialog { transition: none; }
}