/* Homepage signature. The font is served locally; no third-party requests. */
@font-face {
  font-family: "Tolf Freedom";
  src: url("assets/fonts/italianno-tolf-freedom.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
html[data-tolf-ui="home"] .topbar-inner,
html[data-tolf-ui="home"] body.account-authenticated .topbar-inner { column-gap: 24px; }
.freedom-motto {
  flex: 0 0 auto;
  margin: 0;
  padding: 0 0 3px;
  color: var(--text);
  font-family: "Tolf Freedom", "Apple Chancery", "Segoe Script", cursive;
  font-size: 48px;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}
@media (min-width: 801px) {
  /* Reserve the Russian label width in every language, including the status dot. */
  html[data-tolf-ui="home"] body .top-actions .authenticated-account-status {
    display: inline-grid;
    grid-template-columns: 8px auto;
    column-gap: 7px;
    flex: 0 0 auto;
    width: max-content;
    min-width: max-content;
    max-width: none;
    justify-content: center;
  }
  html[data-tolf-ui="home"] .authenticated-account:not([hidden]) .authenticated-account-status::before {
    grid-column: 1;
    grid-row: 1;
    margin-right: 0;
  }
  html[data-tolf-ui="home"] .authenticated-account-name {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }
  html[data-tolf-ui="home"] .authenticated-account-status::after {
    content: "Личный кабинет";
    visibility: hidden;
    grid-column: 2;
    grid-row: 1;
    white-space: nowrap;
    pointer-events: none;
  }
}
@media (min-width: 701px) and (max-width: 900px) {
  .freedom-motto { font-size: 42px; }
}
@media (max-width: 700px) {
  html[data-tolf-ui="home"] .topbar-inner,
  html[data-tolf-ui="home"] body.account-authenticated .topbar-inner {
    display: grid;
    height: auto;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: 42px 42px;
    column-gap: 24px;
    row-gap: 6px;
    padding-block: 6px;
  }
  html[data-tolf-ui="home"] .topbar-inner > .brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }
  html[data-tolf-ui="home"] .freedom-motto {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    font-size: clamp(36px, 6.8vw, 44px);
  }
  html[data-tolf-ui="home"] .top-actions,
  html[data-tolf-ui="home"] body.account-authenticated .top-actions {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 6px;
    width: 100%;
    min-width: 0;
    justify-content: flex-end;
    align-items: center;
  }
  html[data-tolf-ui="home"] .authenticated-account:not([hidden]),
  html[data-tolf-ui="home"] body.account-authenticated .authenticated-account:not([hidden]) { display: contents; }
  html[data-tolf-ui="home"] .authenticated-account-status { order: 1; flex: 1 1 auto; min-width: 0; max-width: none; }
  html[data-tolf-ui="home"] .top-actions .language { order: 2; }
  html[data-tolf-ui="home"] .authenticated-account-logout { order: 3; }
}
