:root {
  --site-shell-bg: rgba(255, 255, 255, .96);
  --site-shell-text: #172322;
  --site-shell-muted: #53615f;
  --site-shell-line: #d8e0de;
  --site-shell-accent: #087f78;
  --site-shell-accent-soft: #e5f5f3;
  --site-footer-bg: #0a2523;
  --site-footer-text: #edf7f5;
  --site-footer-muted: #aec4c0;
  --site-shell-ease: cubic-bezier(.2, 0, 0, 1);
}

html.dark {
  --site-shell-bg: rgba(16, 27, 26, .97);
  --site-shell-text: #edf3f1;
  --site-shell-muted: #a8b5b2;
  --site-shell-line: #31413e;
  --site-shell-accent: #64d8ce;
  --site-shell-accent-soft: #163936;
}

html { -webkit-font-smoothing: antialiased; }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--site-shell-line);
  background: var(--site-shell-bg);
  color: var(--site-shell-text);
  box-shadow: 0 1px 0 rgba(15, 35, 33, .05);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  display: flex;
  width: min(1200px, calc(100% - 48px));
  min-height: 68px;
  align-items: center;
  gap: 24px;
  margin: 0 auto;
}

.site-brand {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: var(--site-shell-text);
  text-decoration: none;
  transition: color 160ms var(--site-shell-ease), transform 160ms var(--site-shell-ease);
}

.site-brand__mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 9px;
  background: var(--site-shell-accent);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}

.site-brand__mark svg,
.site-icon-button svg {
  width: 20px;
  height: 20px;
}

.site-brand__name {
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.site-brand__name span { color: var(--site-shell-accent); }

.site-nav {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: stretch;
  justify-content: flex-end;
  gap: 24px;
}

.site-nav__link,
.site-nav > a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--site-shell-muted);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms var(--site-shell-ease), transform 160ms var(--site-shell-ease);
}

.site-nav__link::after,
.site-nav > a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--site-shell-accent);
  content: "";
  opacity: 0;
  transform: scaleX(.6);
  transition: opacity 160ms var(--site-shell-ease), transform 160ms var(--site-shell-ease);
}

.site-nav__link:hover,
.site-nav__link:focus-visible,
.site-nav > a:hover,
.site-nav > a:focus-visible,
.site-nav__link.is-active,
.site-nav > a[aria-current="page"] { color: var(--site-shell-accent); }

.site-nav__link.is-active,
.site-nav > a[aria-current="page"] { font-weight: 750; }

.site-nav__link.is-active::after,
.site-nav > a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-header__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.site-icon-button {
  display: inline-grid;
  width: 42px;
  min-width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--site-shell-muted);
  cursor: pointer;
  transition: color 160ms var(--site-shell-ease), background-color 160ms var(--site-shell-ease), transform 160ms var(--site-shell-ease);
}

.site-icon-button:hover,
.site-icon-button:focus-visible {
  background: var(--site-shell-accent-soft);
  color: var(--site-shell-accent);
}

.site-brand:active,
.site-nav a:active,
.site-icon-button:active,
.site-footer a:active,
.site-footer button:active { transform: scale(.96); }

.site-menu-button { display: none; }

.site-mobile-nav {
  border-top: 1px solid var(--site-shell-line);
  background: var(--site-shell-bg);
}

.site-mobile-nav__inner {
  display: grid;
  width: min(100% - 32px, 1200px);
  margin: 0 auto;
  padding: 8px 0 18px;
}

.site-mobile-nav__link {
  display: flex;
  min-height: 48px;
  align-items: center;
  border-bottom: 1px solid var(--site-shell-line);
  color: var(--site-shell-muted);
  font-size: .95rem;
  font-weight: 650;
  text-decoration: none;
}

.site-mobile-nav__link.is-active { color: var(--site-shell-accent); }

.site-mobile-nav__secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 16px;
}

.site-mobile-nav__secondary a {
  min-height: 40px;
  color: var(--site-shell-muted);
  font-size: .82rem;
  font-weight: 600;
}

.site-notifications__count {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  border: 2px solid var(--site-shell-bg);
  border-radius: 999px;
  background: var(--site-shell-accent);
  color: #fff;
  font-size: .65rem;
  font-weight: 750;
}

.site-notifications__panel {
  position: absolute;
  z-index: 70;
  top: calc(100% + 8px);
  right: 0;
  width: min(340px, calc(100vw - 24px));
  overflow: hidden;
  border: 1px solid var(--site-shell-line);
  border-radius: 14px;
  background: var(--site-shell-bg);
  color: var(--site-shell-text);
  box-shadow: 0 18px 50px rgba(3, 20, 18, .22);
}

.site-notifications__heading,
.site-notifications__footer,
.site-notifications__item > span:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-notifications__heading,
.site-notifications__footer { padding: 12px 16px; }
.site-notifications__heading { border-bottom: 1px solid var(--site-shell-line); }
.site-notifications__heading p { margin: 0; font-size: .875rem; font-weight: 750; }
.site-notifications__heading button,
.site-notifications__footer a { color: var(--site-shell-accent); font-size: .75rem; font-weight: 700; }
.site-notifications__footer { border-top: 1px solid var(--site-shell-line); }
.site-notifications__footer button { color: var(--site-shell-muted); font-size: .75rem; }
.site-notifications__list { max-height: 380px; overflow-y: auto; }
.site-notifications__empty { margin: 0; padding: 18px 16px; color: var(--site-shell-muted); font-size: .85rem; }
.site-notifications__item { display: grid; width: 100%; gap: 5px; padding: 13px 16px; border-bottom: 1px solid var(--site-shell-line); text-align: left; }
.site-notifications__item:hover,
.site-notifications__item.is-unread { background: var(--site-shell-accent-soft); }
.site-notifications__item strong { font-size: .84rem; }
.site-notifications__item small { color: var(--site-shell-muted); font-size: .68rem; }
.site-notifications__item > span:last-child { color: var(--site-shell-muted); font-size: .8rem; }

.site-footer {
  margin-top: auto;
  border-top: 3px solid #64d8ce;
  background: var(--site-footer-bg);
  color: var(--site-footer-text);
}

.site-footer__inner {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 30px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: clamp(30px, 5vw, 70px);
}

.site-footer .site-brand { color: var(--site-footer-text); }
.site-footer__brand > p { max-width: 310px; margin: 16px 0 0; color: var(--site-footer-muted); font-size: .9rem; line-height: 1.65; text-wrap: pretty; }
.site-footer h2 { margin: 4px 0 14px; color: var(--site-footer-text); font-size: .76rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 5px; }
.site-footer a,
.site-footer button { display: inline-flex; min-height: 38px; align-items: center; color: var(--site-footer-muted); font-size: .87rem; text-decoration: none; transition: color 160ms var(--site-shell-ease), transform 160ms var(--site-shell-ease); }
.site-footer a:hover,
.site-footer a:focus-visible,
.site-footer button:hover,
.site-footer button:focus-visible { color: #76e1d7; text-decoration: underline; text-underline-offset: 4px; }
.site-footer__areas { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .13); }
.site-footer__areas > div { display: flex; flex-wrap: wrap; gap: 2px 22px; }
.site-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 34px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .13); }
.site-footer__bottom p { margin: 0; color: var(--site-footer-muted); font-size: .82rem; }
.site-footer__bottom > div { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer__disclaimer { max-width: 760px; margin: 16px 0 0; color: #829d98; font-size: .72rem; line-height: 1.6; text-wrap: pretty; }

@media (max-width: 1023px) {
  .site-nav { display: none; }
  .site-header__inner { justify-content: space-between; }
  .site-menu-button { display: inline-grid; }
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .site-header__inner,
  .site-footer__inner { width: min(100% - 32px, 1200px); }
  .site-header__inner { min-height: 62px; gap: 10px; }
  .site-brand__mark { width: 34px; height: 34px; }
  .site-brand__name { font-size: .98rem; }
  .site-header__actions { gap: 2px; }
  .site-icon-button { width: 40px; min-width: 40px; height: 40px; }
  .site-footer__inner { padding-top: 38px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer__bottom { align-items: flex-start; flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-brand,
  .site-nav__link,
  .site-nav > a,
  .site-icon-button,
  .site-footer a,
  .site-footer button { transition: none; }
}
