@charset "utf-8";

:root {
  color-scheme: light dark;
  --cyan: #15769d;
  --slate: #5e7483;
  --indigo: #4a5792;
  --button: #4a5792;
  --button-hover: #3d497e;
  --bg: #f5f7f8;
  --header: #e5ebef;
  --surface: #ffffff;
  --text: #202a33;
  --muted: #62717c;
  --line: #cfd7dd;
  --focus: #147aa3;
  --success-bg: #e5f2eb;
  --success-text: #245c40;
  --error-bg: #f7e8e8;
  --error-text: #863737;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --cyan: #73bfdc;
    --slate: #9eb0bb;
    --indigo: #a1abd9;
    --button: #566390;
    --button-hover: #626fa0;
    --bg: #111820;
    --header: #18222b;
    --surface: #1c2730;
    --text: #e8edf1;
    --muted: #aab5bd;
    --line: #35424c;
    --focus: #68bddd;
    --success-bg: #173226;
    --success-text: #a9d7be;
    --error-bg: #402326;
    --error-text: #eab4b6;
  }
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #f5f7f8;
  background: var(--bg);
  color: #202a33;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.55;
}

main {
  display: block;
}

@supports (--miksiuk-css-variables: yes) {
  body {
    display: flex;
    flex-direction: column;
  }

  main {
    flex: 1;
  }
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

button,
input {
  color: inherit;
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.5rem 0.7rem;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #cfd7dd;
  border-bottom: 1px solid var(--line);
  background: #e5ebef;
  background: var(--header);
}

.site-header__inner {
  display: flex;
  width: calc(100% - 1rem);
  width: min(90rem, calc(100% - 1rem));
  max-width: 90rem;
  min-height: 4.25rem;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
  margin-right: auto;
  margin-inline: auto;
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: 8.5rem;
  height: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}

.primary-nav a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.primary-nav a:hover {
  color: var(--indigo);
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.primary-nav a + a {
  margin-left: 1.5rem;
}

@supports (gap: 1rem) {
  .primary-nav a + a {
    margin-left: 0;
  }
}

.account-menu {
  position: relative;
  flex: 0 0 auto;
  margin-left: 1.25rem;
}

@supports (gap: 1rem) {
  .account-menu {
    margin-left: 0;
  }
}

.account-menu__trigger,
.account-menu__fallback {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.account-menu__trigger {
  display: none;
  anchor-name: --account-menu-trigger;
}

.avatar {
  display: inline-block;
  display: grid;
  flex: 0 0 auto;
  overflow: hidden;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar--small {
  width: 2.625rem;
  height: 2.625rem;
}

.avatar--large {
  width: 4.5rem;
  height: 4.5rem;
}

.chevron {
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 120ms ease;
}

.account-menu:has(.account-panel:popover-open) .chevron {
  transform: rotate(180deg);
}

.account-panel {
  display: none;
  position: fixed;
  inset: auto;
  top: 4.8rem;
  right: max(0.5rem, calc((100vw - 90rem) / 2));
  width: min(20rem, calc(100vw - 1rem));
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: var(--surface);
  box-shadow: 0 6px 18px rgba(25, 38, 49, 0.14);
}

.account-panel::backdrop {
  background: transparent;
}

@supports selector(:popover-open) {
  .account-menu__fallback {
    display: none;
  }

  .account-menu__trigger {
    display: flex;
  }

  .account-panel:popover-open {
    display: block;
  }
}

@supports (position-anchor: --account-menu-trigger) {
  .account-panel {
    position-anchor: --account-menu-trigger;
    top: calc(anchor(bottom) + 0.55rem);
    right: anchor(right);
  }
}

.account-panel__identity {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0 0 1rem;
}

.account-panel__identity div {
  display: grid;
  min-width: 0;
  line-height: 1.35;
}

.account-panel__identity strong,
.account-panel__identity span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-panel__identity strong {
  font-size: 1rem;
  white-space: nowrap;
}

.account-panel__identity span {
  color: var(--muted);
  font-size: 0.85rem;
}

.account-panel form,
.account-page__contents form {
  margin: 0.4rem 0 0;
}

.account-page h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.account-page__contents {
  max-width: 20rem;
}

.button {
  display: inline-flex;
  min-height: 2.55rem;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  cursor: pointer;
  font-weight: 650;
  text-decoration: none;
}

.button--primary {
  background: #4a5792;
  background: var(--button);
  color: #fff;
}

.button--primary:hover {
  background: #3d497e;
  background: var(--button-hover);
}

.button--quiet {
  width: 100%;
  border-color: #cfd7dd;
  border-color: var(--line);
  background: transparent;
}

.button--quiet:hover {
  background: #e5ebef;
  background: var(--header);
}

.button--full {
  width: 100%;
}

.page-shell {
  width: calc(100% - 1rem);
  width: min(62rem, calc(100% - 1rem));
  max-width: 62rem;
  margin-left: auto;
  margin-right: auto;
  margin-inline: auto;
  padding-top: 1.75rem;
  padding-bottom: 2.5rem;
  padding-block: 1.75rem 2.5rem;
}

.page-shell--home {
  padding-top: clamp(1.75rem, 4vh, 2.75rem);
}

.page-shell--narrow {
  max-width: 50rem;
  width: min(50rem, calc(100% - 1rem));
}

.page-shell--article {
  max-width: 43rem;
  width: min(43rem, calc(100% - 1rem));
}

.flash {
  max-width: 40rem;
  margin: 0 auto 1rem;
  padding: 0.65rem 0.8rem;
  border-left: 3px solid currentColor;
  font-size: 0.9rem;
}

.flash--success {
  background: var(--success-bg);
  color: var(--success-text);
}

.flash--error {
  background: var(--error-bg);
  color: var(--error-text);
}

.home-search {
  text-align: center;
}

.home-search h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 2.8rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.home-search > p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.search {
  display: flex;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  width: 100%;
  width: min(40rem, 100%);
  max-width: 40rem;
  min-height: 3.35rem;
  align-items: stretch;
  margin: 1.5rem auto 0;
  border: 1px solid #cfd7dd;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  background: #ffffff;
  background: var(--surface);
}

.search:focus-within {
  border-color: var(--focus);
  outline: 2px solid color-mix(in srgb, var(--focus) 20%, transparent);
}

.search svg {
  width: 1.15rem;
  height: 1.15rem;
  align-self: center;
  margin-left: 0.9rem;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-width: 1.8;
}

.search input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  border: 0;
  outline: 0;
  background: transparent;
}

.search input::placeholder {
  color: var(--muted);
  opacity: 0.9;
}

.search button {
  padding: 0 1.1rem;
  padding-inline: 1.1rem;
  border: 0;
  border-left: 1px solid #cfd7dd;
  border-left: 1px solid var(--line);
  border-radius: 0 0.22rem 0.22rem 0;
  background: #4a5792;
  background: var(--button);
  color: #fff;
  cursor: pointer;
  font-weight: 650;
}

.search button:hover {
  background: #3d497e;
  background: var(--button-hover);
}

.announcements {
  width: 100%;
  width: min(40rem, 100%);
  max-width: 40rem;
  margin: 1.75rem auto 0;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.6rem;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.text-link,
.back-link {
  color: var(--indigo);
  font-size: 0.9rem;
  font-weight: 600;
  text-underline-offset: 0.2rem;
}

.announcement-list {
  border-top: 1px solid #cfd7dd;
  border-top: 1px solid var(--line);
}

.announcement-item {
  display: block;
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr) 1.5rem;
  align-items: start;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #cfd7dd;
  border-bottom: 1px solid var(--line);
}

.announcement-item__meta {
  display: flex;
  flex-direction: column;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.announcement-item__meta span {
  color: var(--cyan);
  font-weight: 700;
}

.announcement-item--slate .announcement-item__meta span {
  color: var(--slate);
}

.announcement-item--indigo .announcement-item__meta span {
  color: var(--indigo);
}

.announcement-item__content h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 680;
  line-height: 1.35;
}

.announcement-item__content {
  margin-top: 0.25rem;
}

.announcement-item__content h3 a {
  text-decoration: none;
}

.announcement-item__content h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.announcement-item__content p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.announcement-item__arrow {
  display: inline-block;
  align-self: center;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 1.15rem;
  text-align: right;
  text-decoration: none;
}

.announcement-item__arrow:hover {
  color: var(--indigo);
}

@supports (display: grid) {
  .announcement-item__content,
  .announcement-item__arrow {
    margin-top: 0;
  }
}

.page-intro {
  margin-bottom: 1.35rem;
}

.page-intro h1,
.article h1,
.empty-state h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.page-intro p {
  max-width: 40rem;
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.back-link {
  display: inline-block;
  margin-bottom: 1.25rem;
}

.article {
  padding: 0;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-bottom: 0.65rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.article__meta span {
  color: var(--indigo);
  font-weight: 700;
}

.article__summary {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.article section {
  margin-top: 1.75rem;
}

.article h2 {
  margin: 0 0 0.6rem;
  font-size: 1.3rem;
}

.article section p,
.article section ul {
  margin-block: 0.75rem;
}

.article section p,
.article section li {
  color: var(--muted);
}

.article section a {
  color: #4a5792;
  color: var(--indigo);
  font-weight: 600;
  text-underline-offset: 0.18rem;
}

.article-figure {
  margin: 1.25rem 0;
}

.article-figure img {
  width: 100%;
  height: auto;
  border: 1px solid #cfd7dd;
  border: 1px solid var(--line);
  background: #e5ebef;
  background: var(--header);
}

.article-figure picture {
  display: block;
}

.article-figure figcaption {
  margin-top: 0.4rem;
  color: #62717c;
  color: var(--muted);
  font-size: 0.85rem;
}

.empty-state {
  padding-block: 2rem;
}

.error-code {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.empty-state p:not(.error-code) {
  margin: 0.8rem 0 1.5rem;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid #cfd7dd;
  border-top: 1px solid var(--line);
  background: #e5ebef;
  background: var(--header);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  width: calc(100% - 1rem);
  width: min(90rem, calc(100% - 1rem));
  max-width: 90rem;
  min-height: 4rem;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
  margin-right: auto;
  margin-inline: auto;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer__inner p {
  margin: 0 0 0 0.65rem;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0.75rem;
  white-space: nowrap;
}

.language-switcher > * + * {
  margin-left: 0.3rem;
}

.language-switcher [aria-current="page"] {
  font-weight: 700;
}

@supports (gap: 1rem) {
  .site-footer__inner p {
    margin-left: 0;
  }

  .language-switcher > * + * {
    margin-left: 0;
  }
}

.site-footer__privacy {
  margin-left: auto;
}

@media (max-width: 46rem) {
  .site-header__inner {
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    padding-block: 0.55rem;
  }

  .brand img {
    width: 7.6rem;
  }

  .account-menu {
    margin-left: auto;
  }

  .primary-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 1.25rem;
    margin: 0;
    padding-top: 0.25rem;
  }

  .account-panel {
    top: 4.25rem;
    right: 0.5rem;
  }

  @supports (position-anchor: --account-menu-trigger) {
    .account-panel {
      top: calc(anchor(bottom) + 0.55rem);
      right: anchor(right);
    }
  }

  .page-shell,
  .page-shell--narrow,
  .page-shell--article {
    width: min(100% - 0.75rem, 62rem);
  }

  .page-shell--home {
    padding-top: 1.5rem;
  }

  .announcement-item {
    grid-template-columns: minmax(0, 1fr) 1.5rem;
    gap: 0.35rem 0.75rem;
  }

  .announcement-item__meta {
    grid-column: 1 / -1;
    flex-direction: row;
    gap: 0.75rem;
  }

  .announcement-item__content {
    grid-column: 1;
  }

  .announcement-item__arrow {
    grid-column: 2;
    grid-row: 2;
  }

  .site-footer__inner {
    width: min(100% - 0.75rem, 90rem);
  }
}

@media (max-width: 28rem) {
  .primary-nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .search {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .search button {
    grid-column: 1 / -1;
    min-height: 2.75rem;
    border-top: 1px solid var(--line);
    border-left: 0;
    border-radius: 0 0 0.22rem 0.22rem;
  }

  .site-footer__inner {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
