@font-face {
  font-family: 'Euclid Circular B';
  src: url('/system/fonts/EuclidCircularB-Light-WebXL.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Euclid Circular B';
  src: url('/system/fonts/EuclidCircularB-Light-WebXL.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Euclid Circular B';
  src: url('/system/fonts/EuclidCircularB-Regular-WebXL.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Euclid Circular B';
  src: url('/system/fonts/EuclidCircularB-RegularItalic-WebXL.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Euclid Circular B';
  src: url('/system/fonts/EuclidCircularB-Medium-WebXL.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Euclid Circular B';
  src: url('/system/fonts/EuclidCircularB-MediumItalic-WebXL.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Euclid Circular B';
  src: url('/system/fonts/EuclidCircularB-Semibold-WebXL.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Euclid Circular B';
  src: url('/system/fonts/EuclidCircularB-SemiboldItalic-WebXL.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Euclid Circular B';
  src: url('/system/fonts/EuclidCircularB-Bold-WebXL.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Euclid Circular B';
  src: url('/system/fonts/EuclidCircularB-BoldItalic-WebXL.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

* {
  font-family: 'Euclid Circular B', system-ui, -apple-system, sans-serif !important;
}

.column-link--logo .logo {
    visibility: hidden;
}

.column-link--logo, .column-link--logo:hover, 
.column-link--logo:focus, .column-link--logo:active, 
.ui__header__logo {
    background-size: contain;
    background-repeat: no-repeat;
    padding: 5px;
    margin: 10px;
}

body.theme-mastodon-light .column-link--logo, 
body.theme-mastodon-light .column-link--logo:hover, 
body.theme-mastodon-light .column-link--logo:focus, 
body.theme-mastodon-light .column-link--logo:active, 
body.theme-mastodon-light .ui__header__logo {
    background-image: url("/system/black.svg");
}

body.theme-default .column-link--logo, 
body.theme-default .column-link--logo:hover, 
body.theme-default .column-link--logo:focus, 
body.theme-default .column-link--logo:active, 
body.theme-default .ui__header__logo,
body.theme-contrast .column-link--logo, 
body.theme-contrast .column-link--logo:hover, 
body.theme-contrast .column-link--logo:focus, 
body.theme-contrast .column-link--logo:active, 
body.theme-contrast .ui__header__logo {
    background-image: url("/system/white.svg");
}

body.theme-system .column-link--logo, 
body.theme-system .column-link--logo:hover, 
body.theme-system .column-link--logo:focus, 
body.theme-system .column-link--logo:active, 
body.theme-system .ui__header__logo {
    background-image: url("/system/black.svg");
}

@media (prefers-color-scheme: dark) {
    body.theme-system .column-link--logo, 
    body.theme-system .column-link--logo:hover, 
    body.theme-system .column-link--logo:focus, 
    body.theme-system .column-link--logo:active, 
    body.theme-system .ui__header__logo {
        background-image: url("/system/white.svg");
    }
}

@media (prefers-color-scheme: light) {
    body.theme-system .column-link--logo, 
    body.theme-system .column-link--logo:hover, 
    body.theme-system .column-link--logo:focus, 
    body.theme-system .column-link--logo:active, 
    body.theme-system .ui__header__logo {
        background-image: url("/system/black.svg"); /* Light (чёрный) */
    }
}

.drawer__inner__mastodon img {
    display: none;
}

.drawer__inner__mastodon {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

body.theme-mastodon-light .drawer__inner__mastodon {
    background-image: url("/system/black.svg");
}

body.theme-default .drawer__inner__mastodon,
body.theme-contrast .drawer__inner__mastodon {
    background-image: url("/system/white.svg");
}

body.theme-system .drawer__inner__mastodon {
    background-image: url("/system/black.svg");
}

@media (prefers-color-scheme: dark) {
    body.theme-system .drawer__inner__mastodon {
        background-image: url("/system/white.svg");
    }
}

@media (prefers-color-scheme: light) {
    body.theme-system .drawer__inner__mastodon {
        background-image: url("/system/black.svg");
    }
}


