.portal-brand {
  display: inline-flex;
  flex: 0 1 280px;
  width: 280px;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  flex-direction: row;
  align-items: center;
  line-height: 1;
}
.portal-brand > .portal-brand__logo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 360 / 64;
  object-fit: contain;
}
.portal-brand--footer { width: min(280px, 100%); margin-bottom: 20px; }
.footer-grid > div { min-width: 0; }
.portal-tools { flex-shrink: 0; }
.portal-brand:focus-visible { outline: 2px solid #d99aae; outline-offset: 5px; }
@media (max-width: 1199px) {
  .portal-header { gap: 20px; }
  .portal-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--night);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
  }
  .portal-nav.is-open { max-height: 420px; padding-block: 20px; }
  .portal-nav a { padding: 12px 0; }
  .nav-toggle { display: block; }
  .portal-tools { margin-left: auto; }
}
@media (max-width: 700px) {
  .portal-header { gap: 12px; }
  .portal-brand { flex-basis: 224px; width: 224px; }
  .portal-brand--footer { width: min(280px, 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .portal-nav { transition: none; }
}
