@font-face {
    font-family: 'Oswald Fallback';
    src: local('Arial Narrow'), local('Arial');
    ascent-override: 92%;
    descent-override: 24%;
    line-gap-override: 0%;
    size-adjust: 92%;
}


/* Dynamic theme overrides loaded after the default styles */
html,
body,
html.uk-height-1-1,
body.uk-height-1-1 {
    background: var(--page-background-color) !important;
    background-color: var(--page-background-color) !important;
}

::selection {
    background: rgba(var(--primary-rgb), 0.22);
    color: #ffffff;
}

#tm-footer {
    background: var(--footer-bg-color) !important;
}

#tm-topbar .uk-navbar-nav > li > a,
#tm-footer .uk-subnav > * > *,
#tm-header .uk-navbar-nav > li > a,
#tm-header .uk-button-link,
#tm-header .uk-navbar-brand {
    color: var(--topbar-text-color) !important;
}

#tm-topbar .uk-navbar-nav > li > a:hover,
#tm-topbar .uk-navbar-nav > li > a:focus,
#tm-footer .uk-subnav > * > *:hover,
#tm-header .uk-navbar-nav > li > a:hover,
#tm-header .uk-button-link:hover {
    color: #ffffff !important;
}

.footer-bg {
    background: rgba(var(--primary-rgb), 0.18);
}

.pagebody,
.pagebody p,
.pagebody li,
.tm-article-content,
.tm-article-content p,
.tm-article-content li {
    color: var(--article-text-color);
}

.pagebody h1,
.pagebody h2,
.pagebody h3,
.pagebody h4,
.pagebody h5,
.pagebody h6,
.tm-article-content h1,
.tm-article-content h2,
.tm-article-content h3,
.tm-article-content h4,
.tm-article-content h5,
.tm-article-content h6 {
    color: var(--article-heading-color);
}

.pagebody a,
.tm-article-content a,
.text-theme-primary,
a.site-theme-link {
    color: var(--primary-color);
}

.bg-theme-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.theme-border-soft {
    border-color: rgba(var(--primary-rgb), 0.18);
}

.share-hub-copy-btn:hover,
.share-hub-copy-btn:focus,
.share-hub-copy-btn.is-copied {
    color: var(--primary-color) !important;
    box-shadow: 0 10px 24px rgba(var(--primary-rgb), .16);
}


:root {
    --tm-site-shell-max: 1400px;
    --tm-site-shell-gutter: clamp(18px, 2.6vw, 28px);
}

.tm-site-shell {
    width: 100%;
    max-width: calc(var(--tm-site-shell-max) + (var(--tm-site-shell-gutter) * 2));
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--tm-site-shell-gutter);
    padding-right: var(--tm-site-shell-gutter);
    box-sizing: border-box;
}

/* Desktop and mobile header refinement */
#tm-header.tm-desktop-header-shell {
    padding: 0 !important;
    margin: 0 0 12px;
    border: 0;
    background: var(--desktop-header-bg) !important;
    box-shadow: inset 0 1px 0 rgba(var(--desktop-header-border-rgb), 0.84), 0 14px 24px rgba(0,0,0,0.05);
    position: relative;
    z-index: 80;
}

#tm-header.tm-desktop-header-shell.is-sticky {
    position: sticky;
    top: 0;
    box-shadow: inset 0 1px 0 rgba(var(--desktop-header-border-rgb), 0.84), 0 14px 32px rgba(0,0,0,0.11);
}

#tm-header.tm-desktop-header-shell:after {
    content: "";
    display: block;
    width: 100%;
    height: 4px;
    background: var(--desktop-header-strip);
}

#tm-header.tm-desktop-header-shell > .tm-desktop-header-container,
#tm-header.tm-desktop-header-shell > .uk-container.tm-desktop-header-container {
    width: 100%;
    max-width: calc(var(--tm-site-shell-max) + (var(--tm-site-shell-gutter) * 2));
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--tm-site-shell-gutter);
    padding-right: var(--tm-site-shell-gutter);
    box-sizing: border-box;
}

.tm-desktop-header {
    width: 100%;
    min-height: 72px;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 0;
    box-shadow: none;
    overflow: visible;
}

.tm-desktop-brand,
.tm-mobile-brand,
.tm-mobile-offcanvas-brand {
    text-decoration: none !important;
}

.tm-desktop-brand {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    color: var(--desktop-header-text) !important;
}

.tm-desktop-brand:hover,
.tm-desktop-brand:focus,
.tm-mobile-brand:hover,
.tm-mobile-brand:focus,
.tm-mobile-offcanvas-brand:hover,
.tm-mobile-offcanvas-brand:focus {
    color: var(--desktop-header-text) !important;
    text-decoration: none !important;
}

.tm-desktop-brand-image {
    display: block;
    width: auto;
    max-width: 320px;
    height: 44px;
    object-fit: contain;
}

.tm-desktop-brand-word,
.tm-mobile-brand-word,
.tm-mobile-offcanvas-brand span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    font-size: 32px;
    line-height: 1;
    letter-spacing: .02em;
    font-weight: 700;
    font-family: 'Oswald', 'Oswald Fallback', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
    color: var(--desktop-header-search-text);
}

.tm-desktop-header-divider {
    width: 1px;
    height: 44px;
    background: rgba(var(--desktop-header-border-rgb), 0.9);
    flex: 0 0 auto;
}

.tm-desktop-nav {
    flex: 1 1 auto;
    min-width: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
}

.tm-desktop-nav-item {
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
}

.tm-desktop-nav-link {
    display: inline-flex;
    min-height: 72px;
    box-sizing: border-box;
    align-items: center;
    gap: 8px;
    padding: 24px 12px;
    font-family: 'Oswald', 'Oswald Fallback', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;
    line-height: 1;
    letter-spacing: .02em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--desktop-header-text) !important;
    text-decoration: none !important;
}

.tm-desktop-nav-link:hover,
.tm-desktop-nav-link:focus {
    color: var(--desktop-header-text-hover) !important;
    text-decoration: none !important;
    background: transparent;
}

.tm-desktop-nav-link:hover .tm-desktop-nav-icon,
.tm-desktop-nav-link:focus .tm-desktop-nav-icon {
    color: var(--desktop-header-text-hover);
}

.tm-desktop-nav-icon {
    font-size: 14px;
    color: var(--desktop-header-text);
    opacity: 0.9;
}

.tm-desktop-nav-label {
    display: inline-block;
}

.tm-desktop-utility {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    padding-left: 8px;
}

.tm-desktop-search {
    width: 296px;
    height: 36px;
    border: 1px solid var(--desktop-header-search-border);
    background: var(--desktop-header-search-bg);
    display: inline-flex;
    align-items: center;
}

.tm-desktop-search-field {
    flex: 1 1 auto;
    width: 100%;
    height: 34px;
    border: 0;
    background: transparent;
    padding: 0 12px;
    font-size: 15px;
    color: var(--desktop-header-search-text);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}

.tm-desktop-search-field:focus,
.tm-mobile-offcanvas-search .uk-search-field:focus {
    outline: none;
}

.tm-desktop-search-field::placeholder,
.tm-mobile-offcanvas-search .uk-search-field::placeholder {
    color: rgba(var(--desktop-header-search-text-rgb), 0.55);
}

.tm-desktop-search-button,
.tm-mobile-search-link,
.tm-mobile-trigger,
.tm-mobile-dashboard-link {
    color: var(--desktop-header-accent);
}

.tm-desktop-search-button {
    width: 44px;
    height: 34px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    padding: 0;
}

.tm-desktop-search-button:hover,
.tm-desktop-search-button:focus,
.tm-mobile-search-link:hover,
.tm-mobile-search-link:focus,
.tm-mobile-trigger:hover,
.tm-mobile-trigger:focus,
.tm-mobile-dashboard-link:hover,
.tm-mobile-dashboard-link:focus {
    color: var(--desktop-header-accent);
    filter: brightness(0.92);
    outline: none;
    text-decoration: none !important;
}

.tm-desktop-auth-link,
.tm-desktop-dashboard-link,
.tm-desktop-signout-link,
.tm-mobile-offcanvas-dashboard {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(var(--desktop-header-border-rgb), 0.95);
    color: var(--desktop-header-text) !important;
    background: transparent;
    font-family: 'Oswald', 'Oswald Fallback', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1;
    letter-spacing: .05em;
    text-transform: uppercase;
    font-weight: 500;
    text-decoration: none !important;
    white-space: nowrap;
}

.tm-desktop-dashboard-link,
.tm-mobile-offcanvas-dashboard,
.tm-mobile-dashboard-link {
    border-color: var(--desktop-header-accent);
    color: var(--desktop-header-accent) !important;
}

.tm-desktop-auth-link:hover,
.tm-desktop-auth-link:focus,
.tm-desktop-dashboard-link:hover,
.tm-desktop-dashboard-link:focus,
.tm-desktop-signout-link:hover,
.tm-desktop-signout-link:focus,
.tm-mobile-offcanvas-dashboard:hover,
.tm-mobile-offcanvas-dashboard:focus {
    text-decoration: none !important;
    filter: brightness(0.92);
}

.tm-desktop-profile {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
}

.tm-desktop-signout-link {
    gap: 8px;
    border-color: rgba(235,87,87,0.55);
    color: #ffb0b0 !important;
    background: rgba(235,87,87,0.08);
}

.tm-desktop-signout-link i {
    font-size: 14px;
}

.tm-desktop-profile-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    min-width: 0;
}

.tm-desktop-profile-name {
    display: inline-block;
    min-height: 15px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'Oswald', 'Oswald Fallback', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;
    line-height: 1;
    letter-spacing: .02em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--desktop-header-text);
}

.tm-desktop-profile-mail {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    line-height: 1.2;
    color: rgba(var(--desktop-header-text-rgb), 0.65);
}

.tm-desktop-profile-avatar {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(var(--desktop-header-border-rgb), 0.85);
    display: block;
}

.tm-header-ad-wrap {
    margin: 12px 0 22px;
}

.tm-header-ad-inner {
    width: 100%;
}

#headerAd {
    margin: 0;
}

.tm-mobile-header {
    display: none;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.tm-mobile-trigger,
.tm-mobile-search-link,
.tm-mobile-dashboard-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(var(--desktop-header-border-rgb), 0.95);
    border-radius: 999px;
    background: #ffffff;
    font-size: 18px;
    line-height: 1;
    text-decoration: none !important;
}

.tm-mobile-dashboard-link {
    width: 40px;
    height: 40px;
}

.tm-mobile-brand {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tm-mobile-brand-image,
.tm-mobile-offcanvas-brand img {
    display: block;
    width: auto;
    max-width: 200px;
    height: 32px;
    object-fit: contain;
}

.tm-mobile-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

#offcanvas .uk-offcanvas-bar {
    background: var(--header-bg-color);
    color: #ffffff;
}

#offcanvas .uk-offcanvas-close,
#offcanvas .uk-nav a,
#offcanvas .uk-nav-header,
#offcanvas .uk-comment-title,
#offcanvas .uk-comment-meta {
    color: #ffffff !important;
}

#offcanvas .uk-comment-meta,
#offcanvas .uk-nav-header {
    opacity: 0.82;
}

.tm-mobile-offcanvas-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.tm-mobile-offcanvas-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tm-mobile-offcanvas-brand img,
.tm-mobile-offcanvas-brand span {
    filter: brightness(0) invert(1);
}

.tm-mobile-offcanvas-brand span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    font-size: 24px;
}

.tm-mobile-offcanvas-close {
    color: #ffffff !important;
    text-decoration: none !important;
}

.tm-mobile-offcanvas-search {
    width: 100%;
}

.tm-mobile-offcanvas-search .uk-search-field {
    width: 100%;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    border-radius: 10px;
    padding: 0 14px;
    box-sizing: border-box;
}

.tm-mobile-offcanvas-cta,
.tm-mobile-offcanvas-section,
.tm-mobile-offcanvas-user {
    padding-top: 4px;
}

.tm-mobile-offcanvas-dashboard {
    margin-top: 12px;
}

.tm-mobile-offcanvas-primary-links > li > a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tm-mobile-offcanvas-link-icon {
    width: 16px;
    text-align: center;
}

@media (max-width: 1399px) {
    .tm-desktop-brand-image {
        max-width: 270px;
        height: 40px;
    }

    .tm-desktop-nav-link {
        padding-left: 10px;
        padding-right: 10px;
        font-size: 14px;
    }

    .tm-desktop-search {
        width: 254px;
    }
}

@media (max-width: 1220px) {
    .tm-desktop-header {
        gap: 16px;
    }

    .tm-desktop-brand-image {
        max-width: 220px;
        height: 36px;
    }

    .tm-desktop-nav-link {
        padding-left: 8px;
        padding-right: 8px;
        font-size: 13px;
    }

    .tm-desktop-nav-icon {
        font-size: 12px;
    }

    .tm-desktop-search {
        width: 220px;
    }

    .tm-desktop-profile-name {
        max-width: 118px;
    }
}

@media (max-width: 767px) {
    #tm-header.tm-desktop-header-shell {
        margin-bottom: 10px;
    }

    .tm-desktop-header {
        display: none !important;
    }

    .tm-mobile-header {
        display: flex;
    }

    .tm-header-ad-wrap {
        margin-top: 8px;
        margin-bottom: 18px;
    }
}


/* Footer v2 rebuild */
#tm-footer.tm-footer-v2 {
    position: relative;
    overflow: hidden;
    margin-top: 56px;
    padding: 0 !important;
    font-size: 14px;
    line-height: 1.7;
    background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(0, 0, 0, 0) 16%), var(--footer-bg-color) !important;
    color: rgba(255, 255, 255, 0.88);
}

#tm-footer.tm-footer-v2:before {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.06), rgba(var(--primary-rgb), 0.28), rgba(var(--primary-rgb), 0.06));
}

.tm-footer-v2__ad-wrap {
    margin-top: 28px;
}

.tm-footer-v2__ad {
    margin: 0 auto;
}

.tm-footer-v2__ad img,
.tm-footer-v2__ad iframe,
.tm-footer-v2__ad video {
    max-width: 100%;
}

.tm-footer-v2__main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr);
    gap: 32px;
    padding: 56px 0 36px;
}

.tm-footer-v2__col {
    min-width: 0;
}

.tm-footer-v2__title {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.96);
}

.tm-footer-v2__title--sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.tm-footer-v2__subtitle {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.58);
}

.tm-footer-v2__subgroup + .tm-footer-v2__subgroup {
    margin-top: 18px;
}

.tm-footer-v2__list,
.tm-footer-v2__social-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tm-footer-v2__item + .tm-footer-v2__item,
.tm-footer-v2__social-item + .tm-footer-v2__social-item {
    margin-top: 10px;
}

.tm-footer-v2__link,
.tm-footer-v2__social-link,
.tm-footer-v2__brand-link {
    text-decoration: none !important;
}

.tm-footer-v2__link {
    color: rgba(255, 255, 255, 0.82);
    transition: color .2s ease, transform .2s ease;
}

.tm-footer-v2__link:hover,
.tm-footer-v2__link:focus,
.tm-footer-v2__social-link:hover .tm-footer-v2__social-label,
.tm-footer-v2__social-link:focus .tm-footer-v2__social-label,
.tm-footer-v2__brand-link:hover .tm-footer-v2__brand-word,
.tm-footer-v2__brand-link:focus .tm-footer-v2__brand-word {
    color: var(--primary-color);
}

.tm-footer-v2__social-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tm-footer-v2__social-item + .tm-footer-v2__social-item {
    margin-top: 0;
}

.tm-footer-v2__social-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.82);
}

.tm-footer-v2__social-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.92);
    transition: background .2s ease, color .2s ease, transform .2s ease;
    flex: 0 0 auto;
}

.tm-footer-v2__social-link:hover .tm-footer-v2__social-icon,
.tm-footer-v2__social-link:focus .tm-footer-v2__social-icon {
    background: rgba(var(--primary-rgb), 0.18);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.tm-footer-v2__social-label {
    color: rgba(255, 255, 255, 0.82);
    transition: color .2s ease;
}

.tm-footer-v2__brand {
    margin-bottom: 16px;
}

.tm-footer-v2__brand-link {
    display: inline-flex;
    align-items: center;
}

.tm-footer-v2__logo {
    display: block;
    width: auto;
    max-width: 220px;
    max-height: 52px;
    object-fit: contain;
}

.tm-footer-v2__brand-word {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    font-size: 30px;
    line-height: 1;
    letter-spacing: .02em;
    font-weight: 700;
    font-family: 'Oswald', 'Oswald Fallback', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
    color: rgba(255, 255, 255, 0.96);
    transition: color .2s ease;
}

.tm-footer-v2__about-text,
.tm-footer-v2__empty {
    margin: 0;
    font-size: 14px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.72);
    max-width: 36ch;
}

.tm-footer-v2__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 0 20px;
}

.tm-footer-v2__copyright {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.56);
}

@media (max-width: 1199px) {
    .tm-footer-v2__main {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
        padding: 48px 0 34px;
    }

    .tm-footer-v2__title {
        margin-bottom: 12px;
        font-size: 12px;
    }

    .tm-footer-v2__subtitle {
        margin-bottom: 8px;
        font-size: 11px;
    }

    .tm-footer-v2__item + .tm-footer-v2__item,
    .tm-footer-v2__social-item + .tm-footer-v2__social-item {
        margin-top: 8px;
    }

    .tm-footer-v2__link,
    .tm-footer-v2__social-label,
    .tm-footer-v2__about-text,
    .tm-footer-v2__empty {
        font-size: 13px;
        line-height: 1.7;
    }

    .tm-footer-v2__social-link {
        gap: 10px;
    }

    .tm-footer-v2__social-icon {
        width: 30px;
        height: 30px;
    }

    .tm-footer-v2__logo {
        max-width: 160px;
        max-height: 42px;
    }

    .tm-footer-v2__about-text,
    .tm-footer-v2__empty {
        max-width: none;
    }
}

@media (max-width: 767px) {
    #tm-footer.tm-footer-v2 {
        margin-top: 44px;
    }

    .tm-footer-v2__col--genres,
    .tm-footer-v2__col--pages {
        display: none;
    }

    .tm-footer-v2__main {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 42px 0 28px;
    }

    .tm-footer-v2__col--about {
        order: 1;
    }

    .tm-footer-v2__col--social {
        order: 2;
    }

    .tm-footer-v2__social-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
        align-items: center;
    }

    .tm-footer-v2__social-link {
        gap: 8px;
    }

    .tm-footer-v2__social-icon {
        width: 32px;
        height: 32px;
    }

    .tm-footer-v2__social-label {
        font-size: 13px;
        line-height: 1.3;
    }

    .tm-footer-v2__logo {
        max-width: 180px;
        max-height: 44px;
    }

    .tm-footer-v2__about-text,
    .tm-footer-v2__empty {
        max-width: none;
    }

    .tm-footer-v2__bottom {
        padding: 14px 0 18px;
    }
}


.sidebar-profile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-profile-signout {
    background: rgba(235,87,87,0.12) !important;
    border: 1px solid rgba(235,87,87,0.28) !important;
    color: #ffd4d4 !important;
}

.sidebar-profile-signout:hover,
.sidebar-profile-signout:focus {
    background: rgba(235,87,87,0.2) !important;
    color: #fff !important;
}
