/* Shared framing. Pixel sizes keep the brand identical across the public and
   internal pages, which deliberately use different content font sizes. */
.site-page {
  --site-header-height: 64px;
  --shell-fg: #0c0c0b;
  --shell-bg: #f6f6f4;
  --shell-muted: #5a5a56;
  --shell-line: #e2e2de;
  --shell-line-strong: #cfcfcc;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  margin: 0;
  padding-top: var(--site-header-height);
}

.site-page > main {
  flex: 1 0 auto;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
}

.site-page .site-header,
.site-page .site-footer {
  font: 400 13px/1.6 "DM Sans", Arial, sans-serif;
  color: var(--shell-muted);
  background: var(--shell-bg);
  letter-spacing: 0;
}

.site-page .site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: block;
  margin: 0;
  border-bottom: 1px solid var(--shell-line);
}

.site-header__inner,
.site-footer__inner {
  width: 100%;
  max-width: 1116px;
  margin: 0 auto;
  box-sizing: border-box;
}

.site-header__inner {
  min-height: calc(var(--site-header-height) - 1px);
  padding: 6px 27px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-page .site-brand {
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--shell-fg);
  text-decoration: none;
}

.site-brand .mark__uh {
  display: inline-flex;
  align-items: baseline;
  gap: 1.4px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1.54px;
}

.site-brand .mark__name {
  font-size: 10px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 3px;
  text-indent: 3px;
}

.site-header__navigation,
.site-navigation,
.site-session {
  display: flex;
  align-items: center;
}
.site-header__navigation { gap: 28px; min-width: 0; }
.site-navigation { gap: 22px; }
.site-session { gap: 14px; min-width: 0; }
.site-session__name {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-navigation a {
  color: var(--shell-muted);
  text-decoration: none;
}
.site-navigation [aria-current="page"] {
  color: var(--shell-fg);
  font-weight: 600;
}

.site-page .site-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin: 0;
  padding: 6px 14px;
  border: 1px solid var(--shell-line-strong);
  border-radius: 6px;
  background: transparent;
  color: var(--shell-fg);
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.site-page .site-login:hover { border-color: var(--shell-muted); }
.site-header a:focus-visible,
.site-header button:focus-visible,
.site-footer a:focus-visible {
  outline: 2px solid var(--shell-fg);
  outline-offset: 3px;
}

.site-page .site-footer {
  flex: 0 0 auto;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--shell-line);
  animation: none;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 13px 27px;
}
.site-footer .footer__left {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 15px;
}
.site-footer :is(.tagline, .lang) {
  margin: 0;
  font: inherit;
  color: inherit;
}
.site-footer .tagline { font-weight: 600; color: var(--shell-fg); }
.site-footer .legal-nav {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}
.site-footer a { color: var(--shell-fg); text-decoration: none; }
.site-footer .legal-nav__sep { opacity: .45; }
.site-footer .lang { justify-self: end; display: flex; gap: 6px; }
.site-footer__mail {
  justify-self: center;
  border-bottom: 1px solid var(--shell-line-strong);
}
.site-header__navigation[hidden] { display: none !important; }

@media (max-width: 700px) {
  .site-header__inner { padding-right: 18px; padding-left: 18px; gap: 16px; }
  .site-footer__inner {
    grid-template-columns: 1fr auto;
    gap: 9px 16px;
    padding: 13px 18px;
  }
  .site-footer__mail { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 600px) {
  .site-page--internal { --site-header-height: 104px; }
  .site-page--internal .site-header__inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
    padding-top: 8px;
    padding-bottom: 9px;
  }
  .site-page--internal .site-brand { justify-self: start; }
  .site-page--internal .site-header__navigation { display: contents; }
  .site-page--internal .site-session { grid-column: 2; grid-row: 1; justify-self: end; }
  .site-page--internal .site-session__name { display: none; }
  .site-page--internal .site-navigation { grid-column: 1 / -1; grid-row: 2; gap: 18px; font-size:12px; }
}

@media (prefers-color-scheme: dark) {
  .site-page {
    --shell-fg: #f2f2f0;
    --shell-bg: #121211;
    --shell-muted: #9b9b95;
    --shell-line: #2e2e2b;
    --shell-line-strong: #3d3d39;
  }
}

@media print {
  .site-page { display: block; min-height: 0; padding-top: 0; }
  .site-page .site-header,
  .site-page .site-footer { display: none !important; }
}
