:root {
  --ph-work-banner: linear-gradient(105deg,#142237,#203957 68%,#23483e);
  --ph-work-gold-line: #8c744e;
  --ph-work-gold-action: linear-gradient(#f2d59e,#d4aa61);
  --ph-work-gold-text: #302315;
}

.footer .ph-footer-choice {
  --footer-paper: #fff;
  --footer-ink: #384961;
  --footer-line: #d6e1ee;
  --footer-hover: #edf4fb;
  position: relative;
}
.theme--dark .footer .ph-footer-choice {
  --footer-paper: #152235;
  --footer-ink: #ecf0f7;
  --footer-line: #45566e;
  --footer-hover: #243951;
}
.footer .ph-footer-choice > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--footer-line);
  border-radius: 8px;
  background: var(--footer-paper);
  color: var(--footer-ink);
  cursor: pointer;
  font-weight: 650;
  white-space: nowrap;
  list-style: none;
}
.footer .ph-footer-choice > summary::-webkit-details-marker { display: none; }
.footer .ph-footer-choice > summary::after {
  content: "";
  width: 5px;
  height: 5px;
  border-block-start: 1px solid;
  border-inline-end: 1px solid;
  transform: translateY(1px) rotate(-45deg);
}
.footer .ph-footer-choice[open] > summary::after { transform: translateY(-1px) rotate(135deg); }
.footer .ph-footer-choice > summary:hover,
.footer .ph-footer-choice[open] > summary { background: var(--footer-hover); }
.footer .ph-footer-choice :is(summary,a):focus-visible { outline: 2px solid #5794db; outline-offset: 2px; }
html body .footer .ph-footer-options {
  position: absolute;
  inset-inline-end: 0;
  bottom: calc(100% + 7px);
  z-index: 5;
  min-width: 136px;
  padding: 5px;
  margin: 0;
  list-style: none;
  border: 1px solid var(--footer-line);
  border-radius: 9px;
  background: var(--footer-paper);
  box-shadow: 0 8px 24px #0b162b38;
}
.footer .ph-footer-options > li { margin: 0; padding: 0; list-style: none; }
html body .footer .ph-footer-options a {
  display: block;
  padding: 7px 11px;
  border-radius: 5px;
  color: var(--footer-ink) !important;
  text-decoration: none;
  white-space: nowrap;
}
.footer .ph-footer-options a:hover,
.footer .ph-footer-options a[aria-current="true"] { background: var(--footer-hover); }
.footer .ph-footer-options a[aria-current="true"] { font-weight: 750; }
.footer .ph-footer-options a[aria-current="true"]::after { content: "✓"; margin-inline-start: 8px; }
html body #panel > .footer:has(.ph-footer-choice[open]) { z-index: 131 !important; }

html:is(.phide-expanded,:has(body.mode--scratchpad .ph-pad-ready)) body #panel > .footer {
  position: fixed !important;
  inset: auto 0 0;
  z-index: 130 !important;
  display: block !important;
  margin: 0 !important;
  overflow: visible !important;
}
html:has(body.mode--scratchpad .ph-pad-ready) { overflow: hidden !important; }

@media (max-width: 768px) {
  html:is(.phide-expanded,:has(body.mode--scratchpad .ph-pad-ready)) body #panel > .footer .footer__extra-link {
    display: grid !important;
    justify-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    padding: 5px 0 !important;
  }
  html:is(.phide-expanded,:has(body.mode--scratchpad .ph-pad-ready)) body #panel > .footer .footer__extra-link > div {
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  html:is(.phide-expanded,:has(body.mode--scratchpad .ph-pad-ready)) body #panel > .footer .footer__extra-link > div > ol {
    justify-content: center !important;
    gap: 5px !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  html:is(.phide-expanded,:has(body.mode--scratchpad .ph-pad-ready)) body #panel > .footer .ph-footer-brand { font-size: 11px !important; }
  html:is(.phide-expanded,:has(body.mode--scratchpad .ph-pad-ready)) body #panel > .footer .ph823-powered-line {
    text-align: center !important;
    font-size: 10px !important;
  }
  .footer .ph-footer-choice > summary { font-size: 12px !important; }
}
