/* Base
   ====
   A zero-specificity reset for everything inside .ee-root, so the DS component classes (one class,
   0-1-0) always win over it. The DS component CSS assumes this reset but doesn't ship it.

   Where .ee-root sits:
   - Re-skinned pages: on <body> (the page no longer loads the old Bootstrap 3 / LESS theme CSS).
   - Pages not re-skinned yet: only on the shared shell (header, menus, footer). Those pages still
     load the old theme CSS, whose element rules (a:hover, h1, ul, label…) can beat a :where() rule,
     so shell components set their own link, heading and list styles explicitly (see shell.css). */

:where(.ee-root) { text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }
:where(body.ee-root) { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }

:where(.ee-root) :where(h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol) { margin: 0; }
:where(.ee-root) :where(h1, h2, h3, h4, h5, h6) { font-family: var(--ee-font-display); font-weight: var(--ee-font-weight-heading, var(--ee-font-weight-bold)); line-height: var(--ee-leading-tight); color: inherit; }
:where(.ee-root) :where(ul, ol)[role="list"], :where(.ee-root) :where(ul, ol).ep-list-reset { list-style: none; padding: 0; }
:where(.ee-root) :where(a) { color: var(--ee-color-text-accent); text-decoration: none; }
:where(.ee-root) :where(a:hover) { color: var(--ee-color-bg-accent-hover); }
:where(.ee-root) :where(img, svg, video, canvas) { display: block; max-width: 100%; }
:where(.ee-root) :where(img) { height: auto; }
:where(.ee-root) :where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(.ee-root) :where(button) { cursor: pointer; }
:where(.ee-root) :where(table) { border-collapse: collapse; }
:where(.ee-root) :where(strong, b) { font-weight: var(--ee-font-weight-bold); }
:where(.ee-root) :where([hidden]) { display: none !important; }
:where(.ee-root) :where(:focus-visible) { outline: var(--ee-border-width-emphasis) solid var(--ee-color-border-accent); outline-offset: 2px; }

/* Icons from ds/icons.svg: <svg class="ee-icon ee-icon--md" aria-hidden="true"><use href="…/icons.svg#ee-home"/></svg> */
.ee-icon { width: var(--ee-icon-md); height: var(--ee-icon-md); flex: none; display: inline-block; vertical-align: middle; }
.ee-icon--sm { width: var(--ee-icon-sm); height: var(--ee-icon-sm); }
.ee-icon--lg { width: var(--ee-icon-lg); height: var(--ee-icon-lg); }

/* Numbers: Satoshi, tabular, as the DS FinancialValue. */
.ep-num { font-family: var(--ee-font-number); font-variant-numeric: tabular-nums; font-weight: var(--ep-num-weight, var(--ee-font-weight-bold)); }

/* Page container: the web container and gutters from the DS layout tokens. */
.ep-container { width: 100%; max-width: calc(var(--ep-page-max) + 2 * var(--ep-page-gutter)); margin-inline: auto; padding-inline: var(--ep-page-gutter); box-sizing: border-box; }
@media (max-width: 599px) { :root { --ep-page-gutter: 16px; } }

/* Visually hidden but announced. */
.ep-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Loading placeholder for panels filled over AJAX (the DS Skeleton shape). */
.ep-loading { display: grid; gap: var(--ee-spacing-3); padding: var(--ee-spacing-4) 0; }
.ep-loading::before, .ep-loading::after { content: ""; height: var(--ee-spacing-4); border-radius: var(--ee-radius-sm); background: var(--ee-color-bg-muted); animation: ep-pulse 1.2s var(--ee-ease-standard) infinite alternate; }
.ep-loading::after { width: 60%; }
@keyframes ep-pulse { from { opacity: 1; } to { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .ep-loading::before, .ep-loading::after { animation: none; } }

/* The old theme's .display-none, still toggled by shared scripts on re-skinned pages (site.js showEstimatePriceMessage
   reveals the layout's #msg-estimate-price by removing it). Without the old CSS that message always showed. */
:where(body.ee-root) .display-none { display: none; }
