/* Salesforge rebuild, version 6, round 6: "Forge Night", the design switch. These rules apply in BOTH looks:
   the round button in the header and the two-way switch in the footer. The night design itself is night-base.css
   (generated) plus night.css (hand-made); the original design is everything else, unchanged. */

/* the light logo for the night look; shown by night.css */
.nav__logo-img--night { display: none; }

/* ---------------------------------------------------------------- header button */
.look-toggle {
  position: absolute; right: 244px; top: 50%; transform: translateY(-50%); z-index: 2;
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--gray-300); border-radius: var(--radius); background: var(--white);
  color: var(--gray-700); box-shadow: var(--shadow-xs);
  transition: border-color .2s, box-shadow .2s, color .2s, background-color .2s;
}
.look-toggle:hover { border-color: #b692f6; color: var(--violet); box-shadow: 0 0 0 4px rgba(110, 64, 215, .08); }
.look-toggle:focus-visible { outline: 2px solid #b692f6; outline-offset: 2px; }
.look-toggle svg { width: 20px; height: 20px; }
.look-toggle__sun { display: none; }
html[data-look="night"] .look-toggle__sun { display: block; }
html[data-look="night"] .look-toggle__moon { display: none; }
@media (max-width: 1199px) and (min-width: 992px) { .look-toggle { right: 188px; } }
@media (max-width: 991px) {
  .look-toggle {
    top: 10px; right: 104px; transform: none; width: 44px; height: 44px;
    border-color: transparent; background: transparent; box-shadow: none; color: var(--ink);
  }
  .look-toggle:hover { border-color: transparent; box-shadow: none; color: var(--violet); }
  .look-toggle svg { width: 24px; height: 24px; }
}
@media (max-width: 339px) { .look-toggle { display: none; } }   /* no room beside the logo: the footer switch remains */

/* ---------------------------------------------------------------- footer switch */
.look-seg {
  /* flex-wrap: in the narrow link column between 480 and about 600 px the two buttons stack instead of pushing the
     page sideways */
  display: inline-flex; flex-wrap: wrap; align-self: flex-start; gap: 2px; padding: 3px; margin-top: 4px;
  border: 1px solid var(--gray-200); border-radius: 10px; background: var(--gray-50);
}
.look-seg__btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 7px;
  font-size: 14px; line-height: 20px; font-weight: 500; color: var(--gray-500); white-space: nowrap;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.look-seg__btn:hover { color: var(--ink); }
.look-seg__btn[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(16, 24, 40, .1), 0 1px 2px rgba(16, 24, 40, .06); }
.look-seg__btn:focus-visible { outline: 2px solid #b692f6; outline-offset: 1px; }
.look-seg__btn svg { width: 16px; height: 16px; flex: none; }
.footer__hint { max-width: 230px; margin-top: 10px; font-size: 13px; line-height: 1.45; color: var(--gray-500); }
/* tablets: the Design column wraps to a second row of the footer links; give it the same air as on phones */
@media (min-width: 768px) and (max-width: 991px) { .footer__cols { row-gap: 40px; } }

/* ---------------------------------------------------------------- the change itself: a circle opens from the button */
html.look-anim::view-transition-old(root),
html.look-anim::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.look-anim::view-transition-new(root) { animation: look-reveal .62s cubic-bezier(.65, 0, .35, 1) both; }
@keyframes look-reveal {
  from { clip-path: circle(0 at var(--look-x, 50%) var(--look-y, 40px)); }
  to { clip-path: circle(150vmax at var(--look-x, 50%) var(--look-y, 40px)); }
}
