/* Easy Electric Phase 3 — shared chassis.
   Loaded after the protected release styles.  This file intentionally changes
   presentation only; calculator state, form contracts, and theme storage stay intact. */

@font-face {
  font-family: "Covington Expanded";
  src: url("../fonts/covington/covington.exp.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Covington Expanded";
  src: url("../fonts/covington/covington.exp-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ee-p3-orange: #FC4C02;
  --ee-p3-orange-ink: #B83600;
  --ee-p3-cream: #F6E8D7;
  --ee-p3-black: #0D1117;
  --ee-p3-paper: #FFF8ED;
  --ee-p3-dim: #665F57;
  --ee-p3-line-dark: rgba(13, 17, 23, .22);
  --ee-p3-line-light: rgba(246, 232, 215, .22);
  --ee-p3-display: "Covington Expanded", CovingtonEE, "Covington EE", Rockwell, Georgia, serif;
  --ee-p3-body: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --ee-p3-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --ee-p3-gutter: clamp(16px, 4vw, 64px);
  --ee-p3-frame: min(1320px, calc(100vw - (var(--ee-p3-gutter) * 2)));
  --ee-p3-instrument-frame: min(1240px, calc(100vw - (var(--ee-p3-gutter) * 2)));
}

html {
  scroll-padding-top: 76px;
  background: var(--ee-p3-cream);
}

body {
  font-family: var(--ee-p3-body);
}

.ee-nojs-notice {
  width: var(--ee-p3-instrument-frame);
  margin: 16px auto;
  padding: 14px 16px;
  border: 1px solid var(--ee-p3-black);
  background: var(--ee-p3-cream);
  color: var(--ee-p3-black);
  font: 700 14px/1.45 var(--ee-p3-body);
}

.ee-nojs-notice a { color: inherit; font-weight: 800; }

body[data-ee-route] {
  --ee-p3-shell-surface: var(--ee-p3-cream);
  --ee-p3-shell-ink: var(--ee-p3-black);
  --ee-p3-shell-line: var(--ee-p3-line-dark);
  --ee-p3-shell-button: var(--ee-p3-paper);
  --ee-p3-shell-button-ink: var(--ee-p3-black);
}

body[data-ee-route="tools"],
body[data-ee-route="bend"],
body[data-ee-route="calc"] {
  --ee-p3-shell-surface: var(--ee-p3-black);
  --ee-p3-shell-ink: var(--ee-p3-cream);
  --ee-p3-shell-line: var(--ee-p3-line-light);
  --ee-p3-shell-button: #171B20;
  --ee-p3-shell-button-ink: var(--ee-p3-cream);
}

.ee-site-shell,
body[data-ee-route] .ee-site-shell,
html[data-ee-theme="prime"] body[data-ee-route] .ee-site-shell,
html[data-ee-theme="dark"] body[data-ee-route] .ee-site-shell {
  min-height: 64px;
  color: var(--ee-p3-shell-ink);
  background: var(--ee-p3-shell-surface);
  border-bottom: 1px solid var(--ee-p3-shell-line);
  box-shadow: none;
}

.ee-site-shell::after,
body[data-ee-route] .ee-site-shell::after {
  display: none;
}

.ee-site-shell__inner {
  width: var(--ee-p3-frame);
  min-height: 64px;
  gap: 16px;
}

.ee-site-shell__mark {
  width: min(185px, 40vw);
  height: 40px;
}

.ee-site-shell__tool,
.ee-site-shell .ee-site-shell__tool {
  color: currentColor;
  opacity: .6;
  font: 800 10px/1.15 var(--ee-p3-mono);
  letter-spacing: .08em;
}

.ee-site-shell__actions {
  gap: 8px;
}

.ee-shell-btn,
.ee-site-shell .ee-shell-btn,
.tools-topnav a {
  min-height: 44px;
  border: 1px solid currentColor !important;
  border-radius: 0;
  background: var(--ee-p3-shell-button) !important;
  color: var(--ee-p3-shell-button-ink) !important;
  box-shadow: 2px 2px 0 currentColor !important;
  font: 800 10px/1 var(--ee-p3-mono);
  letter-spacing: .065em;
  text-transform: uppercase;
  transition: transform 60ms linear, box-shadow 60ms linear, background 120ms linear, color 120ms linear;
}

.ee-shell-btn:hover,
.ee-site-shell .ee-shell-btn:hover,
.tools-topnav a:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 currentColor !important;
}

.ee-shell-btn:active,
.ee-site-shell .ee-shell-btn:active,
.tools-topnav a:active {
  transform: translate(2px, 2px);
  box-shadow: none !important;
}

.ee-site-shell .ee-shell-btn--call,
.ee-site-shell .ee-tools[open] > summary.ee-shell-btn,
.tools-topnav .tools-topnav__call {
  background: var(--ee-p3-orange) !important;
  border-color: var(--ee-p3-orange) !important;
  color: var(--ee-p3-black) !important;
  box-shadow: 2px 2px 0 var(--ee-p3-black) !important;
}

.ee-theme-toggle {
  width: 44px;
  min-width: 44px;
  box-shadow: none !important;
}

.ee-tools-panel,
html[data-ee-theme="prime"] .ee-tools-panel,
html[data-ee-theme="dark"] .ee-tools-panel,
html[data-theme="dark"] .ee-tools-panel {
  border: 1px solid var(--ee-p3-shell-line);
  border-radius: 0;
  background: var(--ee-p3-shell-surface);
  color: var(--ee-p3-shell-ink);
  box-shadow: 4px 4px 0 var(--ee-p3-black);
}

body[data-ee-route="tools"] .ee-tools-panel,
body[data-ee-route="bend"] .ee-tools-panel,
body[data-ee-route="calc"] .ee-tools-panel {
  box-shadow: 4px 4px 0 var(--ee-p3-orange);
}

.ee-tools-panel__head,
html[data-ee-theme="prime"] .ee-tools-panel__head,
html[data-ee-theme="dark"] .ee-tools-panel__head {
  min-height: 44px;
  border-color: var(--ee-p3-shell-line);
  color: inherit;
  font: 800 10px/1 var(--ee-p3-mono);
}

.ee-tool-link,
html[data-ee-theme="prime"] .ee-tool-link,
html[data-ee-theme="dark"] .ee-tool-link,
html[data-theme="dark"] .ee-tool-link {
  min-height: 68px;
  border-color: var(--ee-p3-shell-line);
  border-radius: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
}

.ee-tool-link:hover,
.ee-tool-link:focus-visible,
html[data-ee-theme="prime"] .ee-tool-link:hover,
html[data-ee-theme="dark"] .ee-tool-link:hover {
  transform: none;
  border-color: var(--ee-p3-orange);
  background: color-mix(in srgb, var(--ee-p3-orange) 9%, transparent);
  box-shadow: inset 3px 0 0 var(--ee-p3-orange);
}

.ee-tool-link[aria-current="page"],
html[data-ee-theme="prime"] .ee-tool-link[aria-current="page"],
html[data-ee-theme="dark"] .ee-tool-link[aria-current="page"] {
  border-color: var(--ee-p3-orange);
  background: color-mix(in srgb, var(--ee-p3-orange) 12%, transparent);
  box-shadow: inset 3px 0 0 var(--ee-p3-orange);
}

.ee-tool-link b {
  font: 800 10px/1 var(--ee-p3-mono);
  letter-spacing: .06em;
}

.ee-tool-link span,
html[data-ee-theme="prime"] .ee-tool-link span,
html[data-ee-theme="dark"] .ee-tool-link span {
  color: currentColor;
  opacity: .62;
  font: 650 11px/1.2 var(--ee-p3-body);
}

.ee-site-footer,
.home-footer.ee-site-footer {
  border-top: 1px solid rgba(246, 232, 215, .25);
  background: var(--ee-p3-black);
  color: var(--ee-p3-cream);
}

.ee-site-footer::before {
  height: 1px;
  background: var(--ee-p3-orange);
  opacity: 1;
}

.ee-site-footer__inner {
  width: var(--ee-p3-frame);
  padding: 22px 0;
  font: 750 11px/1.5 var(--ee-p3-mono);
  letter-spacing: .055em;
}

.ee-site-footer a {
  min-height: 44px;
}

body[data-ee-route] :focus-visible {
  outline: 3px solid var(--ee-p3-orange) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 2px var(--ee-p3-cream), 0 0 0 5px var(--ee-p3-black) !important;
}

body[data-ee-route] button,
body[data-ee-route] input,
body[data-ee-route] select,
body[data-ee-route] textarea {
  font-family: inherit;
}

body[data-ee-route] button,
body[data-ee-route] [role="button"] {
  -webkit-tap-highlight-color: transparent;
}

body[data-ee-route] .ee-p3-press,
body[data-ee-route] .home-btn,
body[data-ee-route] .tools-support__actions a,
body[data-ee-route] #previewLink {
  transition: transform 60ms linear, box-shadow 60ms linear, background 120ms linear, color 120ms linear;
}

body[data-ee-route] .home-btn:active,
body[data-ee-route] .tools-support__actions a:active,
body[data-ee-route] #previewLink:active {
  transform: translate(2px, 2px);
  box-shadow: none !important;
}

@media (max-width: 720px) {
  html { scroll-padding-top: 64px; }

  .ee-site-shell,
  body[data-ee-route] .ee-site-shell {
    min-height: 56px;
  }

  .ee-site-shell__inner {
    width: min(100% - 24px, 1320px);
    min-height: 56px;
    gap: 6px;
  }

  .ee-site-shell__mark { width: 132px; height: 34px; }
  .ee-site-shell__tool { display: none; }
  .ee-site-shell .ee-shell-btn { min-width: 44px; min-height: 44px; padding-inline: 9px; }
  .ee-site-shell .ee-shell-btn--text { display: none; }

  body.ee-menu-open { overflow: hidden; }

  .ee-menu-open .ee-tools-panel {
    position: fixed;
    inset: 56px 0 0;
    width: auto;
    max-height: none;
    padding: 12px;
    grid-template-columns: 1fr;
    overflow: auto;
    z-index: 1200;
    animation: none;
  }

  .ee-menu-open .ee-tools-panel__contact { grid-template-columns: 1fr 1fr; }
  .ee-menu-open .ee-tool-link { min-height: 72px; }
  .ee-menu-open .ee-tools-panel__head { padding-inline: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .ee-site-shell,
  .ee-site-footer,
  .mobile-dock,
  .ee-skip-link { display: none !important; }
}
