/* rtl-of 1aa54284610416bcf4f0ae5f35b2c3a9 */
.courses_filters__activities {
    justify-content: flex-end !important;
}

.courses_filters__activities .lms_courses.search {
    display: none !important;
}

.courses_filters .courses_filters__activities .stm_lms_courses_grid__sort select.no-search {
    flex-basis: auto;
}

.stm-lms-wishlist i,
.stm-lms-wishlist i.stmlms-heart-3 {
    line-height: 30px !important;
}

.stm-lms-template-page.page .aw-entry__container {
    grid-template-columns: minmax(0, 100%);
}

.stm-lms-template-page.page .entry-content,
body:not(.masterstudy-theme) .stm-lms-wrapper.user-account-page:not(.stm-lms-wrapper--gradebook),
body:not(.theme-ms-lms-starter-theme) .stm-lms-wrapper.user-account-page:not(.stm-lms-wrapper--gradebook),
body:not(.masterstudy-theme) .stm-lms-wrapper.user-account-page:not(.stm-lms-wrapper--gradebook) .container,
body:not(.theme-ms-lms-starter-theme) .stm-lms-wrapper.user-account-page:not(.stm-lms-wrapper--gradebook) .container {
    max-width: 100% !important;
}

span.ms-lms-authorization-icon,
.stm_lms_account_dropdown .dropdown button {
    background: transparent !important;
    color: var(--aw-color-primary);
}

/* Own SVG, not the MS icon font: its glyph codes move between plugin releases (3.7.54 turned ours into a paper plane). */
.ms-lms-authorization-icon svg { display: block; }
/* MS auth-links.css draws a 30px badge with a 10px right margin, meant for icon plus text; the header shows the icon only. */
.aw-header span.ms-lms-authorization-icon {
    width: auto;
    height: auto;
    margin-left: 0;
}

/* .aw-header outranks a.ms-lms-authorization{display:inline-block} in auth-links.css, which loads after this file. */
.aw-header a.ms-lms-authorization {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
}

/* Accessible touch target for login link on mobile (WCAG 2.5.8) */
@media (max-width: 991px) {
    .aw-header a.ms-lms-authorization {
        min-width: 44px;
        min-height: 44px;
    }
}
/* Narrow phones: keep the 44px target but take only the old 22px+4px of the row, the icons already crowd the logo at 320. */
@media (max-width: 600px) {
    .aw-header__inner-mobile .aw-header__col.aw-col-right > a.ms-lms-authorization {
        margin: 0 -7px 0 -11px !important;
    }
}
/* Below 375 the logo plus four icons do not fit the row; a smaller logo keeps the search icon off it. */
@media (max-width: 374px) {
    .aw-header__inner-mobile .aw-header__logo img {
        width: 48px;
        height: 48px;
    }
    .aw-header__inner-mobile .aw-header__search-toggle {
        margin-left: -10px;
    }
}

.aw-entry__header-title,
.aw-entry__header .aw-entry__title {
    max-width: 1056px !important;
}

@media (min-width: 992px) {
    .page:not(.stm-lms-template-page) .aw-sidebar-disabled .entry-content {
        max-width: 1056px !important;
    }
}

.post-type-archive-lp_course .aw-main-content,
.single-lp_course .aw-main-content {
    grid-template-columns: minmax(0, 1fr) !important;
}

.aw-entry__content-wrap,
.learnpress-profile .aw-entry__content-wrap {
    width: 100% !important;
}

.aw-link-login {
    position: relative;
}

/* profile */
.aw-link-login.has_sub_info>.profile {
    padding: 0 !important;
    position: relative;
}

.aw-link-login .profile {
    border-style: none;
    color: var(--e-global-color-accent);
    fill: var(--e-global-color-accent);
    background-color: var(--e-global-color-5f782af);
    border-radius: 0px 0px 0px 0px;
}

.aw-link-login.has_sub_info.show>.profile img {
    border-color: var(--aw-body-primary-color);
}

.aw-link-login.has_sub_info>.profile img {
    max-width: 44px;
    border: 2px solid #fff;
    padding: 2px;
    position: relative;
    border-radius: 50%;
}

.aw-link-login.has_sub_info>.profile .author {
    text-transform: capitalize;
    padding-right: 8px;
    /* display: inline-flex; */
    display: none;
    align-items: center;
}

/* user-info */
.aw-link-login.has_sub_info .user-info {
    position: absolute;
    margin: 0;
    list-style: none;
    background: var(--aw-bg-sub-info-user, #fff);
    padding: 10px 15px;
    text-align: right;
    width: max-content;
    left: 0;
    z-index: 3;
    display: none;
    top: auto;
    min-width: 250px;
    box-shadow: 0 4px 25px 0 rgba(0, 0, 0, 0.1);
    border-radius: var(--aw-border-radius-item, 0)
}

.aw-link-login.has_sub_info .user-info li {
    list-style: none;
    padding: 8px 0;
    display: block
}

.aw-link-login.has_sub_info .user-info li a {
    padding: 0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
    float: none !important
}

.aw-link-login.has_sub_info .user-info li a i {
    min-width: 20px;
    color: var(--aw-body-primary-color, #ffb606);
    display: inline-flex;
    justify-content: center
}

.aw-link-login.has_sub_info .user-info li a .author {
    font-size: var(--aw-font-h5-font-size)
}

.aw-link-login.has_sub_info .user-info li.menu-item-user a {
    flex-direction: column;
    border-bottom: 1px solid var(--aw-border-color, #eee) !important;
    padding: 12px !important
}

.aw-link-login.has_sub_info .user-info li.menu-item-user a img {
    max-width: 80px;
    border-radius: 50%
}

#toolbar .aw-link-login.has_sub_info .user-info {
    --aw-bg-sub-info-user: var(--aw-bg-color-toolbar);
    --aw-text-color-sub-info-user: var(--aw-link-color-toolbar)
}

.navbar-nav .aw-link-login.has_sub_info .user-info {
    --aw-bg-sub-info-user: var(--aw-sub-menu-bg-color);
    --aw-text-color-sub-info-user: var(--aw-sub-menu-text-color);
    box-shadow: 0 1px 5px -1px rgba(0, 0, 0, 0.3);
    -webkit-box-shadow: 0 1px 5px -1px rgba(0, 0, 0, 0.3)
}

/* Default featured image: darken overlay so white text is readable */
.aw-overlay-background:has(.default-featured-img)::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

/* The dimming layer sat over the title too and greyed the white text into the photo. */
.aw-entry__header .aw-overlay-content {
    z-index: 2;
}

/* Force white text on overlay with inverse scheme (overrides nm theme h1 color) */
.aw-entry__header-standard h1,
.aw-entry__header-standard .aw-entry__title,
.aw-entry__header-standard .aw-entry__meta,
.aw-entry__header-standard .aw-entry__meta a,
.aw-entry__header-standard .aw-entry__category a,
.aw-entry__header-standard,
.aw-overlay-content[data-scheme="inverse"] h1,
.aw-overlay-content[data-scheme="inverse"] .aw-entry__title,
.aw-overlay-content[data-scheme="inverse"] .aw-entry__meta,
.aw-overlay-content[data-scheme="inverse"] .aw-entry__meta a,
.aw-overlay-content[data-scheme="inverse"] {
    color: #fff !important;
}

/* ─── Homepage posts list ───────────────────────────────────────── */
.aw-homepage-posts__list {
    margin: 0 0 20px;
}
.aw-homepage-posts__item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.aw-homepage-posts__item:first-child {
    padding-top: 0;
}
.aw-homepage-posts__item:last-child {
    border-bottom: none;
}
.aw-homepage-posts__item:hover {
    background: #fafaf8;
}
.aw-homepage-posts__thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}
.aw-homepage-posts__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.aw-homepage-posts__body {
    flex: 1;
    min-width: 0;
}
.aw-homepage-posts__title-link {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px;
    line-height: 1.35;
}
.aw-homepage-posts__item:hover .aw-homepage-posts__title-link {
    color: #dc9814;
}
.aw-homepage-posts__meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 4px;
}
.aw-homepage-posts__excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}
@media (max-width: 640px) {
    .aw-homepage-posts__thumb {
        width: 60px;
        height: 60px;
    }
}

/* ─── CTA blocks after content ──────────────────────────────────── */
.aw-cta-block {
    margin: 40px 0;
    padding: 32px;
    background: linear-gradient(-135deg, #fdf6e3 0%, #faf8f2 100%);
    border: 1px solid #e8dfc8;
    border-radius: 12px;
    text-align: center;
}
.aw-cta-block--natal {
    background: linear-gradient(-135deg, #1a1a2e 0%, #16213e 100%);
    border-color: #2a2a4a;
}
.aw-cta-block--natal .aw-cta-block__title,
.aw-cta-block--natal .aw-cta-block__text {
    color: #e8e6df;
}
.aw-cta-block__icon {
    font-size: 36px;
    margin-bottom: 12px;
}
.aw-cta-block__title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #1a1a1a;
}
.aw-cta-block__text {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin: 0 0 20px;
    max-width: 560px;
    margin-right: auto;
    margin-left: auto;
}
.aw-cta-block__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.aw-cta-block__btn {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
}
.aw-cta-block__btn--primary {
    background: #8a5e00; /* a11y: white on #dc9814 was 2.45:1; #8a5e00 = 5.7:1 */
    color: #fff;
}
.aw-cta-block__btn--primary:hover {
    background: #6f4b00;
    color: #fff;
}
.aw-cta-block__btn--secondary {
    background: #fff;
    color: #333;
    border: 1px solid #d4d2cc;
}
.aw-cta-block__btn--secondary:hover {
    border-color: #dc9814;
    color: #dc9814;
}
.aw-cta-block--natal .aw-cta-block__btn--secondary {
    background: transparent;
    border-color: rgba(255,255,255,0.3);
    color: #e8e6df;
}
.aw-cta-block--natal .aw-cta-block__btn--secondary:hover {
    border-color: #dc9814;
    color: #dc9814;
}
@media (max-width: 640px) {
    .aw-cta-block { padding: 24px 16px; }
    .aw-cta-block__actions { flex-direction: column; align-items: center; }
    .aw-cta-block__btn { width: 100%; justify-content: center; }
}

/* Share buttons */
.aw-share {
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin: 24px 0 8px;
    padding: 18px 20px;
    background: #f9f8f5;
    border-radius: 10px;
    border: 1px solid #e8e6df;
}
.aw-share__label {
    font-size: 15px;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}
.aw-share__btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    color: #555;
    border: 1px solid #e0ded8;
    transition: background 0.2s, color 0.2s, transform 0.15s, border-color 0.2s;
    text-decoration: none;
}
.aw-share__btn:hover {
    background: var(--share-color, #333);
    color: #fff;
    border-color: var(--share-color, #333);
    transform: scale(1.1);
}
.aw-share__btn svg {
    display: block;
}


/* Hide login/register text in header (keep icon only) */
.aw-header .ms-lms-authorization-title {
    display: none;
}

/* Language switcher — compact disclosure */
.aw-lang {
    position: relative;
    margin-right: 12px;
    font-family: inherit;
}
.aw-lang__toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 8px;
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: var(--aw-color-secondary, #6E6E6E);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
    cursor: pointer;
    transition: background 140ms ease, color 140ms ease;
}
.aw-lang__toggle:hover,
.aw-lang.is-open .aw-lang__toggle {
    background: rgba(0, 0, 0, 0.05);
    color: var(--aw-color-primary, #1D1D1D);
}
.aw-lang__caret {
    opacity: 0.65;
    transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.aw-lang.is-open .aw-lang__caret {
    transform: rotate(-180deg);
    opacity: 1;
}

.aw-lang__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 100;
    min-width: 188px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    box-shadow: 0 14px 36px -12px rgba(0, 0, 0, 0.18),
                0 2px 6px -2px rgba(0, 0, 0, 0.06);
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
    transform-origin: top left;
    pointer-events: none;
    /* visibility keeps the closed list out of the Tab order; delayed so the fade-out still plays */
    visibility: hidden;
    transition: opacity 160ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 160ms cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0s linear 160ms;
}
.aw-lang.is-open .aw-lang__menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    visibility: visible;
    transition-delay: 0s;
}
.aw-lang__option { margin: 0; padding: 0; }
.aw-lang__row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    color: var(--aw-color-primary, #1D1D1D);
    font-size: 13px;
    line-height: 1.2;
    text-decoration: none;
    transition: background 100ms ease;
}
a.aw-lang__row:hover { background: rgba(0, 0, 0, 0.045); }
.aw-lang__opt-code {
    flex-shrink: 0;
    width: 22px;
    color: var(--aw-color-secondary, #8a8a8a);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.aw-lang__opt-name {
    flex-grow: 1;
    font-weight: 500;
}
.aw-lang__option.is-active .aw-lang__row {
    background: rgba(0, 0, 0, 0.05);
    cursor: default;
}
.aw-lang__option.is-active .aw-lang__opt-code { color: var(--aw-color-primary, #1D1D1D); }
.aw-lang__option.is-active .aw-lang__opt-name { font-weight: 600; }
.aw-lang__check {
    flex-shrink: 0;
    margin-right: auto;
    color: var(--aw-color-accent, #d4a44a);
}

[data-scheme="dark"] .aw-lang__toggle { color: rgba(255, 255, 255, 0.65); }
[data-scheme="dark"] .aw-lang__toggle:hover,
[data-scheme="dark"] .aw-lang.is-open .aw-lang__toggle {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
[data-scheme="dark"] .aw-lang__menu {
    background: rgba(20, 20, 22, 0.92);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 36px -10px rgba(0, 0, 0, 0.55),
                0 2px 6px -2px rgba(0, 0, 0, 0.3);
}
[data-scheme="dark"] .aw-lang__row { color: rgba(255, 255, 255, 0.9); }
[data-scheme="dark"] a.aw-lang__row:hover { background: rgba(255, 255, 255, 0.07); }
[data-scheme="dark"] .aw-lang__opt-code { color: rgba(255, 255, 255, 0.5); }
[data-scheme="dark"] .aw-lang__option.is-active .aw-lang__row { background: rgba(255, 255, 255, 0.07); }
[data-scheme="dark"] .aw-lang__option.is-active .aw-lang__opt-code { color: #fff; }

@media (max-width: 480px) {
    .aw-lang { margin-right: 0; }
    .aw-lang__toggle { padding: 6px 6px; font-size: 12px; }
    .aw-lang__menu { left: -6px; min-width: 172px; }
}

/* ===== Daily Calendar — single + archive + home widget ===== */

.aw-cal-single { font-family: inherit; }
.aw-cal-single__head {
    margin: 0 0 20px;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--aw-color-border, #E4E4E4);
}
.aw-cal-single__author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--aw-color-secondary, #6E6E6E);
    margin-bottom: 12px;
}
.aw-cal-single__author-name { color: var(--aw-color-primary, #1D1D1D); font-weight: 600; }
.aw-cal-single__author-sep { opacity: 0.5; }
.aw-cal-single__tg {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #229ED9;
    text-decoration: none;
    font-weight: 500;
}
.aw-cal-single__tg:hover { text-decoration: underline; }
.aw-cal-single__tg-icon { vertical-align: -2px; }

.aw-cal-single__title {
    margin: 0 0 8px;
    font-size: clamp(26px, 3.5vw, 38px);
    line-height: 1.18;
    font-weight: 700;
    color: var(--aw-color-primary, #1D1D1D);
}
.aw-cal-single__date {
    display: block;
    font-size: 14px;
    color: var(--aw-color-secondary, #6E6E6E);
}

.aw-cal-single__media {
    margin: 22px auto 28px;
    max-width: 480px;
    text-align: center;
}
.aw-cal-single__media img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.aw-cal-single__body {
    font-size: 16px;
    line-height: 1.72;
    color: var(--aw-color-primary, #1D1D1D);
}
.aw-cal-single__body p { margin: 0 0 1em; }

.aw-cal-single__related {
    margin: 30px 0;
    padding: 16px 18px;
    background: rgba(0, 0, 0, 0.03);
    border-right: 3px solid var(--aw-color-accent, #d4a44a);
    border-radius: 4px;
}
.aw-cal-single__related-title {
    margin: 0 0 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--aw-color-secondary, #6E6E6E);
    font-weight: 700;
}
.aw-cal-single__related-list { list-style: none; margin: 0; padding: 0; }
.aw-cal-single__related-list li { margin: 4px 0; }
.aw-cal-single__related-list a {
    color: var(--aw-color-primary, #1D1D1D);
    text-decoration: none;
    font-weight: 500;
}
.aw-cal-single__related-list a:hover { color: var(--aw-color-accent, #d4a44a); }
.aw-cal-single__related-list span { font-weight: 400; color: var(--aw-color-secondary, #6E6E6E); }

.aw-cal-single__cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 36px 0 28px;
}
.aw-cal-single__cta-tg,
.aw-cal-single__cta-consult {
    padding: 22px 22px 24px;
    border-radius: 12px;
    text-align: center;
}
.aw-cal-single__cta-tg {
    background: linear-gradient(-135deg, rgba(34, 158, 217, 0.08), rgba(34, 158, 217, 0.18));
    border: 1px solid rgba(34, 158, 217, 0.25);
}
.aw-cal-single__cta-consult {
    background: linear-gradient(-135deg, rgba(212, 164, 74, 0.10), rgba(212, 164, 74, 0.22));
    border: 1px solid rgba(212, 164, 74, 0.32);
}
.aw-cal-single__cta strong,
.aw-cal-single__cta p {
    display: block;
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--aw-color-primary, #1D1D1D);
}
.aw-cal-single__cta-btn {
    display: inline-block;
    padding: 10px 22px;
    background: #229ED9;
    color: #fff !important;
    border-radius: 999px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    transition: background 140ms ease, transform 140ms ease;
}
.aw-cal-single__cta-btn:hover { background: #1c87b8; transform: translateY(-1px); }
.aw-cal-single__cta-btn--alt { background: var(--aw-color-accent, #d4a44a); }
.aw-cal-single__cta-btn--alt:hover { background: #b88a37; }

.aw-cal-single__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 22px;
    margin-top: 28px;
    border-top: 1px solid var(--aw-color-border, #E4E4E4);
    font-size: 14px;
}
.aw-cal-single__nav-link {
    color: var(--aw-color-secondary, #6E6E6E);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background 140ms ease, color 140ms ease;
}
.aw-cal-single__nav-link:hover { background: rgba(0,0,0,0.04); color: var(--aw-color-primary, #1D1D1D); }
.aw-cal-single__nav-link--archive { font-weight: 600; }

@media (max-width: 640px) {
    .aw-cal-single__cta { grid-template-columns: 1fr; }
    .aw-cal-single__nav { flex-wrap: wrap; }
}

/* Archive */
.aw-cal-archive__head { margin: 0 0 28px; text-align: center; }
.aw-cal-archive__title {
    margin: 0 0 8px;
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 700;
}
.aw-cal-archive__sub {
    margin: 0;
    font-size: 15px;
    color: var(--aw-color-secondary, #6E6E6E);
}
.aw-cal-archive__tg-link {
    color: #229ED9;
    font-weight: 600;
    text-decoration: none;
    margin-right: 4px;
}
.aw-cal-archive__tg-link:hover { text-decoration: underline; }

.aw-cal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    margin: 0 0 28px;
}
.aw-cal-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--aw-color-border, #E4E4E4);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.aw-cal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.18);
    border-color: rgba(0, 0, 0, 0.15);
}
.aw-cal-card__media {
    aspect-ratio: 16 / 10;
    background-color: #f4f0fa;
    background-size: cover;
    background-position: center;
}
.aw-cal-card__body { padding: 14px 16px 16px; }
.aw-cal-card__date {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--aw-color-secondary, #6E6E6E);
    margin-bottom: 6px;
}
.aw-cal-card__title {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--aw-color-primary, #1D1D1D);
}
.aw-cal-card__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.aw-cal-card__chip {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(0,0,0,0.05);
    border-radius: 999px;
    font-size: 11px;
    color: var(--aw-color-secondary, #6E6E6E);
}
.aw-cal-archive__pager { text-align: center; margin-top: 12px; }

/* Dark scheme */
[data-scheme="dark"] .aw-cal-card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
[data-scheme="dark"] .aw-cal-card__title { color: #fff; }
[data-scheme="dark"] .aw-cal-card__chip { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); }
[data-scheme="dark"] .aw-cal-single__title { color: #fff; }
[data-scheme="dark"] .aw-cal-single__related { background: rgba(255,255,255,0.04); }
[data-scheme="dark"] .aw-cal-single__related-list a { color: rgba(255,255,255,0.9); }

/* Home widget — «Астрокалендар щодня від AstroWay» */
.aw-cal-widget {
    margin: 60px auto;
    padding: 32px 24px 28px;
    max-width: 1200px;
    background: linear-gradient(-160deg, rgba(212, 164, 74, 0.04), rgba(34, 158, 217, 0.04));
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}
.aw-cal-widget__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 22px;
}
.aw-cal-widget__title {
    margin: 0;
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 700;
}
.aw-cal-widget__archive-link {
    font-size: 14px;
    color: var(--aw-color-secondary, #6E6E6E);
    text-decoration: none;
    font-weight: 500;
}
.aw-cal-widget__archive-link:hover { color: var(--aw-color-accent, #d4a44a); }
.aw-cal-widget__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 18px;
    margin-bottom: 22px;
}
.aw-cal-widget__cta {
    text-align: center;
    padding: 14px 16px;
    background: rgba(34, 158, 217, 0.08);
    border-radius: 10px;
    font-size: 14px;
    color: var(--aw-color-secondary, #6E6E6E);
}
.aw-cal-widget__cta strong { color: var(--aw-color-primary, #1D1D1D); }
.aw-cal-widget__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 10px;
    padding: 8px 18px;
    /* darker Telegram blue — #229ED9 gave only 3.01:1 with white text */
    background: #1877a3;
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: background 140ms ease;
}
.aw-cal-widget__cta-btn:hover { background: #15678c; color: #fff; }

@media (max-width: 600px) {
    .aw-cal-widget { margin: 40px 16px; padding: 24px 18px 22px; }
    .aw-cal-widget__cta-btn { display: block; margin: 12px auto 0; max-width: 240px; justify-content: center; }
}

/* ===== CPT Archives Widget ===== */
.aw-cpt-archives { list-style: none; margin: 0; padding: 0; }
.aw-cpt-archives__group { margin: 0 0 18px; padding: 0; }
.aw-cpt-archives__group:last-child { margin-bottom: 0; }
.aw-cpt-archives__group-title {
    margin: 0 0 8px;
    padding: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--aw-color-secondary, #6E6E6E);
    display: flex;
    align-items: center;
    gap: 6px;
}
.aw-cpt-archives__icon { font-size: 14px; line-height: 1; }
.aw-cpt-archives__list { list-style: none; margin: 0; padding: 0; }
.aw-cpt-archives__item { margin: 0; padding: 0; }
.aw-cpt-archives__item a {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    padding: 6px 0;
    color: var(--aw-color-primary, #1D1D1D);
    text-decoration: none;
    border-bottom: 1px dashed transparent;
    transition: color 140ms ease, border-color 140ms ease;
}
.aw-cpt-archives__item a:hover {
    color: var(--aw-color-accent, #d4a44a);
    border-bottom-color: rgba(212, 164, 74, 0.4);
}
.aw-cpt-archives__count {
    font-size: 11px;
    font-weight: 600;
    color: var(--aw-color-secondary, #8a8a8a);
    background: rgba(0, 0, 0, 0.04);
    padding: 1px 8px;
    border-radius: 999px;
    min-width: 22px;
    text-align: center;
}
[data-scheme="dark"] .aw-cpt-archives__item a { color: rgba(255,255,255,0.85); }
[data-scheme="dark"] .aw-cpt-archives__count { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6); }
/* Header tap targets on phones: the burger was 21x21 and the language toggle 28x20.
   An invisible hit area grows them to ~44px without moving the icons; neighbours are not overlapped. */
@media (max-width: 991px) {
    .aw-header__offcanvas-toggle {
        position: relative;
    }
    .aw-header__offcanvas-toggle::after {
        content: '';
        position: absolute;
        inset: -12px;
    }
    .aw-header .aw-lang__toggle::after {
        content: '';
        position: absolute;
        inset: -12px -2px;
    }
}