/* Footer easter-egg theme picker (assets/js/theme-egg.js). Kept neutral so it reads on any theme. */
[data-theme-egg] {
  cursor: default; /* no hint: it's a secret */
}

[data-theme-egg]:focus-visible {
  outline: 1px dotted rgba(255, 255, 255, 0.4);
  outline-offset: 4px;
}

.egg-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1004;
  width: min(340px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: 20px 20px 16px;
  background: #fff;
  color: #141414;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.45);
  font-family: var(--f-sans);
}

.egg-panel[hidden] {
  display: none;
}

.egg-x {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 22px;
  line-height: 1;
  background: none;
  border: none;
  color: #141414;
  cursor: pointer;
}

.egg-h {
  font-family: var(--f-italiana);
  font-size: 22px;
  margin: 0 0 6px;
}

.egg-sub {
  font-size: 13px;
  line-height: 1.5;
  color: #6b6b6b;
  margin: 0 0 14px;
}

.egg-foot {
  margin: 12px 0 0;
}

.egg-list {
  display: grid;
  gap: 6px;
}

.egg-theme {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  font: inherit;
  font-size: 14px;
  text-align: left;
  color: #141414;
  background: #f6f5f2;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 7px 10px;
  cursor: pointer;
}

.egg-theme[aria-pressed="true"] {
  background: #fff;
  border-color: #141414;
  box-shadow: 0 0 0 1px #141414;
}

.egg-accent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 13px;
}

.egg-accent label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.egg-color {
  width: 34px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: none;
  cursor: pointer;
}

.egg-accent-reset {
  font: inherit;
  font-size: 12px;
  color: #6b6b6b;
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
}

.egg-chips {
  display: inline-flex;
  flex: none;
}

.egg-chips span {
  width: 16px;
  height: 22px;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.egg-chips span + span {
  margin-left: -1px;
}

/* ── "Light chrome" themes: white top and bottom bars, black text ── */
html.egg-light-chrome #site-nav {
  background: #fff;
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

html.egg-light-chrome .nav-link .n1 {
  color: rgba(17, 17, 17, 0.78);
}

html.egg-light-chrome .nav-link .n2,
html.egg-light-chrome .nav-brand-name {
  color: #111;
}

html.egg-light-chrome .nav-brand-sub {
  color: rgba(17, 17, 17, 0.5);
}

html.egg-light-chrome .nav-inquire {
  color: #111;
  border-color: rgba(17, 17, 17, 0.4);
}

html.egg-light-chrome .nav-inquire:hover {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

html.egg-light-chrome .nav-hamburger span {
  background: #111;
}

html.egg-light-chrome .nav-mobile-menu,
html.egg-light-chrome .nav-dropdown-menu,
html.egg-light-chrome .nav-dropdown-menu::before {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.1);
}

html.egg-light-chrome .mob-item,
html.egg-light-chrome .dropdown-item {
  color: #111;
}

html.egg-light-chrome .mob-sub {
  color: rgba(17, 17, 17, 0.55);
}

html.egg-light-chrome .site-footer {
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

html.egg-light-chrome .f-name {
  color: rgba(17, 17, 17, 0.75);
}

html.egg-light-chrome .f-links a {
  color: rgba(17, 17, 17, 0.6);
}

html.egg-light-chrome .f-loc {
  color: rgba(17, 17, 17, 0.4);
}

.egg-accent label span { line-height: 1.25; }
.egg-hex { font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: #6b6b6b; margin-left: 4px; cursor: copy; }
.egg-accent-btns { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.egg-accent-add {
  font: inherit; font-size: 12px; color: #141414; background: #fff;
  border: 1px solid #141414; padding: 3px 9px; cursor: pointer;
}
.egg-accent-add:hover { background: #141414; color: #fff; }
.egg-del { margin-left: auto; padding: 0 4px; color: #8a8a8a; font-size: 16px; line-height: 1; }
.egg-del:hover { color: #141414; }

/* Phones: a bottom sheet that never outgrows the visible screen, with a big close button that
   stays put while the list scrolls. (Tapping outside it also closes it: theme-egg.js.) */
@media (max-width: 640px) {
  .egg-panel {
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-height: 72vh;
    max-height: 72dvh;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
  }

  .egg-x {
    position: sticky;
    top: 0;
    float: right;
    z-index: 1;
    width: 44px;
    height: 44px;
    margin: -10px -10px 0 8px;
    font-size: 30px;
    background: #fff;
    border-radius: 50%;
  }

  .egg-h { font-size: 20px; }

  .egg-theme { padding: 11px 12px; }
}
