/* PortusSophia™ Jekyll shell polish v1.0.0
 * Loaded after jekyll-shell.css.
 */

/* Restrained navigation motion. */
.anchor-menu > summary.menu-trigger svg {
  transform-origin: 50% 48%;
  transition: transform 160ms ease;
}

.anchor-menu > summary.menu-trigger:hover svg,
.anchor-menu > summary.menu-trigger:focus-visible svg {
  transform: translateY(-0.08rem) rotate(-4deg) scale(1.035);
}

.anchor-menu[open] > summary.menu-trigger svg {
  transform: rotate(4deg);
}

.anchor-menu-panel .nav-list a {
  position: relative;
  background-image: linear-gradient(90deg, rgba(240, 181, 63, 0.12), rgba(240, 181, 63, 0));
  background-position: 0 0;
  background-repeat: no-repeat;
  background-size: 0 100%;
  transition:
    background-size 170ms ease,
    border-color 170ms ease,
    color 170ms ease,
    transform 170ms ease;
}

.anchor-menu-panel .nav-list a:hover,
.anchor-menu-panel .nav-list a:focus-visible {
  border-left-color: var(--ps-gold, #f0b53f);
  background-size: 100% 100%;
  color: var(--ps-navy, #0d1b2a);
  transform: translateX(0.28rem);
}

.anchor-menu-panel .nav-list a[aria-current="page"] {
  border-left-color: var(--ps-gold, #f0b53f);
  background-size: 42% 100%;
  font-weight: 720;
}

@media (prefers-reduced-motion: reduce) {
  .anchor-menu > summary.menu-trigger svg,
  .anchor-menu-panel .nav-list a {
    transition: none;
  }

  .anchor-menu > summary.menu-trigger:hover svg,
  .anchor-menu > summary.menu-trigger:focus-visible svg,
  .anchor-menu[open] > summary.menu-trigger svg,
  .anchor-menu-panel .nav-list a:hover,
  .anchor-menu-panel .nav-list a:focus-visible {
    transform: none;
  }
}

/* Three compact stacked footer bands. */
.footer-inner {
  padding-block: 0;
}

.footer-band {
  width: 100%;
}

.footer-band + .footer-band {
  border-top: 1px solid rgba(204, 204, 204, 0.28);
}

.footer-refrain-band {
  padding: 0;
}

.footer-refrain-band .shell {
  display: grid;
  min-height: 3.15rem;
  place-items: center;
}

.footer-refrain {
  margin: 0;
  color: var(--ps-gold, #f0b53f);
  font-size: clamp(1.18rem, 1.65vw, 1.48rem);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.footer-site-band {
  padding: 0;
}

.footer-directory {
  display: grid;
  width: min(calc(100% - 2.5rem), var(--shell, 76rem));
  margin-inline: auto;
  padding-block: 0.65rem;
  grid-template-columns: minmax(18rem, 0.95fr) minmax(0, 2.05fr);
  gap: clamp(1rem, 1.8vw, 1.45rem);
  align-items: center;
}

.footer-identity {
  text-align: left;
}

.footer-name,
.footer-role {
  max-width: 28rem;
  margin-inline: 0;
}

.footer-name {
  margin-block: 0;
  font-size: clamp(0.96rem, 1.08vw, 1.06rem);
  line-height: 1.15;
}

.footer-role {
  margin-block: 0.24rem 0;
  font-size: 0.78rem;
  line-height: 1.3;
}

.footer-panels {
  display: grid;
  width: 100%;
  margin: 0;
  grid-template-columns: repeat(3, max-content);
  justify-content: space-between;
  gap: clamp(1.15rem, 2vw, 2rem);
  text-align: left;
}

.footer-panel {
  justify-items: start;
  gap: 0.16rem;
}

.footer-panel-label {
  margin-bottom: 0.04rem;
  line-height: 1.15;
}

.footer-panel a {
  line-height: 1.22;
  text-underline-offset: 0.18em;
}

.footer-rights-band {
  padding: 0;
}

.footer-rights {
  display: flex;
  min-height: 1.95rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0;
  padding: 0;
  border-top: 0;
  color: var(--ps-grey, #cccccc);
  font-size: 0.73rem;
  line-height: 1.05;
  text-align: center;
}

.footer-rights a::before {
  content: none;
}

@media (max-width: 52rem) {
  .footer-directory {
    width: min(calc(100% - 2rem), 36rem);
    padding-block: 0.85rem;
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .footer-identity,
  .footer-panels {
    text-align: center;
  }

  .footer-name,
  .footer-role {
    margin-inline: auto;
  }

  .footer-panels {
    grid-template-columns: repeat(3, max-content);
    justify-content: space-between;
    gap: 0.75rem;
  }

  .footer-panel {
    justify-items: center;
  }
}

@media (max-width: 34rem) {
  .footer-refrain-band .shell {
    min-height: 2.8rem;
  }

  .footer-panels {
    grid-template-columns: 1fr;
    justify-content: center;
  }

  .footer-rights {
    display: grid;
    min-height: 0;
    padding-block: 0.42rem;
    justify-items: center;
    gap: 0.18rem;
  }
}
