/* --------------------------------------------------------------------------
   Editorial header tools (oenzy-aligned): subscribe, dark switcher, info panel
   -------------------------------------------------------------------------- */

:root {
    --nt-off-canvas-sidebar-width: 450px;
    --easing-easeOutCirc: cubic-bezier(0, 0.55, 0.45, 1);
    --easing-easeOutCubic: cubic-bezier(0.33, 1, 0.68, 1);
}

.site-header__toolbar--editorial {
    align-items: center;
}

.site-header__toolbar--editorial .nt-line-divider {
    display: none;
    width: 2px;
    height: 14px;
    color: var(--bs-border-color, #e5e7eb);
}

@media (min-width: 992px) {
    .site-header__toolbar--editorial .nt-line-divider {
        display: inline-flex;
    }
}

/* Subscribe button — oenzy pill */
.site-header__subscribe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.432rem 1rem;
    border-radius: 100px;
    background-color: var(--primary-color, #3b82f6);
    color: #fff !important;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    text-decoration: none !important;
    border: none;
    transition:
        color 0.5s var(--easing-easeOutCubic),
        background-color 0.5s var(--easing-easeOutCubic),
        transform 0.5s var(--easing-easeOutCubic);
}

.site-header__subscribe-btn:hover,
.site-header__subscribe-btn:focus-visible {
    color: #fff !important;
    background-color: color-mix(in srgb, var(--primary-color, #3b82f6) 82%, #000);
    outline: none;
}

.mobile-nav-drawer__subscribe .site-header__subscribe {
    display: flex;
    width: 100%;
}

.mobile-nav-drawer__subscribe .site-header__subscribe-btn {
    width: 100%;
}

/* Header subscribe modal */
.pet-subscribe-modal-wrap.modal.show {
    display: block;
}

.pet-subscribe-modal-dialog {
    max-width: 28rem;
}

.pet-subscribe-modal {
    border: none;
    border-radius: calc(var(--border-radius, 12px) * 1.1);
    box-shadow: var(--box-shadow-lg, 0 18px 48px rgba(15, 23, 42, 0.16));
    overflow: hidden;
    background: var(--card-bg, var(--surface-color, #fff));
}

.pet-subscribe-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.1rem 1.25rem 0.35rem;
}

.pet-subscribe-modal__title {
    color: var(--text-color);
    font-weight: 700;
}

.pet-subscribe-modal__close {
    box-shadow: none;
}

.pet-subscribe-modal__body {
    padding: 0.5rem 1.25rem 1.35rem;
}

.pet-subscribe-modal__desc {
    font-size: 0.9rem;
    line-height: 1.6;
}

.pet-subscribe-modal__form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--primary-color) 18%, transparent);
}

/* Dark mode switcher — oenzy capsule */
.dark-mode-switcher {
    --nt-dark-light-switcher-size: 24px;
    --nt-dark-light-switcher-gap: 4px;
    --nt-dark-light-switcher-background-color: #f2f2f2;
    --nt-dark-light-switcher-active-background-color: #fff;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

@media (min-width: 992px) {
    .dark-mode-switcher {
        --nt-dark-light-switcher-size: 24px;
        --nt-dark-light-switcher-gap: 6px;
    }
}

.dark-mode-switcher .switcher-wrap {
    align-items: center;
    background-color: var(--nt-dark-light-switcher-background-color);
    border-radius: 50px;
    column-gap: var(--nt-dark-light-switcher-gap);
    display: inline-flex;
    justify-content: center;
    line-height: 1;
    padding: 4px;
    position: relative;
    transition: 0.6s cubic-bezier(0, 0.55, 0.45, 1);
}

/* .dark-mode-switcher .switcher-wrap::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 4px;
    width: var(--nt-dark-light-switcher-size);
    height: var(--nt-dark-light-switcher-size);
    border-radius: 50%;
    background-color: var(--nt-dark-light-switcher-active-background-color);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
    transition: transform 0.6s cubic-bezier(0, 0.55, 0.45, 1);
    z-index: 0;
} */

.dark-mode-switcher .light-icon,
.dark-mode-switcher .dark-icon {
    align-items: center;
    border-radius: 50%;
    height: var(--nt-dark-light-switcher-size);
    width: var(--nt-dark-light-switcher-size);
    justify-content: center;
    position: relative;
    z-index: 1;
    display: flex;
}

.dark-mode-switcher .light-icon {
    color: var(--gray-500, #858184);
    display: none;
}

.dark-mode-switcher .dark-icon {
    color: #4f535c;
    display: flex;
}

.dark-mode-switcher .theme-icon {
    width: 16px;
    height: 16px;
    display: block;
}

html.dark-mode-active .dark-mode-switcher {
    --nt-dark-light-switcher-background-color: rgba(94, 94, 94, 0.29);
    --nt-dark-light-switcher-active-background-color: rgba(255, 255, 255, 0.12);
}

html.dark-mode-active .dark-mode-switcher .dark-icon {
    display: none;
}

html.dark-mode-active .dark-mode-switcher .light-icon {
    display: flex;
    background-color: transparent;
    color: #e0d9e0;
}

html.dark-mode-active .dark-mode-switcher .switcher-wrap::before {
    transform: translateX(calc(100% + var(--nt-dark-light-switcher-gap)));
}

/* Info panel (nt-off-canvas-sidebar) */
.nt-overlay-box {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 13, 13, 0.6);
    opacity: 0;
    transition: opacity 0.8s var(--easing-easeOutCubic);
    z-index: 1040;
}

.nt-overlay-box.active {
    opacity: 1;
}

.nt-off-canvas-sidebar {
    height: 100%;
    width: 90%;
    max-width: var(--nt-off-canvas-sidebar-width);
    max-height: 100%;
    position: fixed;
    z-index: 1050;
    top: 0;
    right: 0;
    transition: transform 1s var(--easing-easeOutCirc);
    transform: translateX(100%);
    pointer-events: none;
}

.nt-off-canvas-sidebar.active {
    transform: translateX(0);
    pointer-events: auto;
}

.nt-off-canvas-sidebar__container {
    background-color: var(--surface-color, #ffffff);
    color: var(--text-color, #2d3436);
    height: 100%;
    overflow: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.nt-off-canvas-sidebar__container::-webkit-scrollbar {
    width: 0;
    height: 0;
}

html.dark-mode-active .nt-off-canvas-sidebar__container {
    background-color: var(--card-bg, var(--surface-color, #1a1a2e));
}

.nt-off-canvas-sidebar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.nt-off-canvas-sidebar__brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    max-width: calc(100% - 3rem);
}

.nt-off-canvas-sidebar__brand .theme-logo-image {
    max-height: 40px;
    width: auto;
}

.nt-off-canvas-sidebar__brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nt-off-canvas-sidebar__close {
    color: #858184;
}

.nt-off-canvas-sidebar__body {
    display: flex;
    flex-direction: column;
    gap: clamp(1.25rem, 3vw, 2rem);
}

.nt-off-canvas-sidebar__heading {
    margin: 0 0 0.75rem;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-color, #2d3436);
}

.nt-off-canvas-sidebar__heading--social {
    margin-bottom: 1rem;
}

.nt-off-canvas-sidebar__text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-600, #4b5563);
}

.nt-off-canvas-sidebar__text a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.nt-off-canvas-sidebar__figure {
    margin: 0;
    overflow: hidden;
    border-radius: 16px;
}

.nt-off-canvas-sidebar__figure img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.nt-oenzy-social-media {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.social-media-link {
    align-items: center;
    color: inherit;
    display: inline-flex;
    height: var(--social-media-size, 2.5rem);
    width: var(--social-media-size, 2.5rem);
    justify-content: center;
    border-radius: 50%;
    background: var(--gray-100, #f3f4f6);
    text-decoration: none;
    transition: all 0.5s var(--easing-easeOutCubic);
}

.social-media-link i {
    font-size: 1.1rem;
    line-height: 1;
}

.social-media-link:hover,
.social-media-link:focus-visible {
    color: #fff;
    background: var(--primary-color);
    outline: none;
}

html.dark-mode-active .social-media-link {
    background: color-mix(in srgb, var(--dark-background-color, #1a1a2e) 85%, #fff 15%);
    color: var(--dark-text-color, #e2e8f0);
}

html.dark-mode-active .social-media-link:hover,
html.dark-mode-active .social-media-link:focus-visible {
    background: var(--primary-color);
    color: #fff;
}

body.nt-offcanvas-active {
    overflow: hidden;
}

.nt-off-canvas-sidebar-open .theme-icon {
    width: 1.375rem;
    height: 1.375rem;
}

.header-search-toggle .theme-icon {
    width: 1.25rem;
    height: 1.25rem;
}
