/* NetworkUstad Author Portal — site navigation and contributor entry points. */
.nu-author-portal-menu-item > .nu-author-portal-menu-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 5px 0 5px 8px;
    padding: 9px 15px !important;
    border: 1px solid #08766f;
    border-radius: 7px;
    background: #075c56;
    color: #fff !important;
    font-weight: 700 !important;
    line-height: 1.25;
    text-decoration: none !important;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.nu-author-portal-menu-item > .nu-author-portal-menu-link:hover,
.nu-author-portal-menu-item.current-menu-item > .nu-author-portal-menu-link {
    border-color: #064a45;
    background: #064a45;
    color: #fff !important;
    transform: translateY(-1px);
}
.nu-author-login-menu-item > .nu-author-login-menu-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 5px 0 5px 7px;
    padding: 8px 14px !important;
    border: 1px solid #08766f;
    border-radius: 7px;
    background: #fff;
    color: #0d746d !important;
    font-size: 12px;
    font-weight: 800 !important;
    line-height: 1.25;
    text-decoration: none !important;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.nu-author-login-menu-item > .nu-author-login-menu-link:hover {
    background: #eaf7f5;
    color: #075c56 !important;
    transform: translateY(-1px);
}
.ast-mobile-popup-content .nu-author-portal-menu-item > .nu-author-portal-menu-link,
.ast-builder-menu-mobile .nu-author-portal-menu-item > .nu-author-portal-menu-link,
#ast-mobile-header .nu-author-portal-menu-item > .nu-author-portal-menu-link,
.ast-mobile-popup-content .nu-author-login-menu-item > .nu-author-login-menu-link,
.ast-builder-menu-mobile .nu-author-login-menu-item > .nu-author-login-menu-link,
#ast-mobile-header .nu-author-login-menu-item > .nu-author-login-menu-link {
    justify-content: flex-start;
    margin: 7px 0;
    padding: 12px 15px !important;
    border-radius: 8px;
}

.nu-author-footer-cta {
    position: relative;
    z-index: 1;
    padding: 26px 20px;
    background: #07191e;
    color: #fff;
}
.nu-author-footer-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(1160px, 100%);
    margin: 0 auto;
}
.nu-author-footer-eyebrow {
    display: inline-block;
    margin: 0 0 8px;
    color: #75d8d0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1.4;
    text-transform: uppercase;
}
.nu-author-footer-copy h2 {
    margin: 0 0 6px;
    color: #fff !important;
    font-size: clamp(18px, 2.4vw, 24px);
    font-weight: 800;
    line-height: 1.25;
}
.nu-author-footer-copy p {
    margin: 0;
    color: rgba(255,255,255,.76);
    font-size: 13px;
    line-height: 1.6;
}
.nu-author-cta-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid #38b8ad;
    border-radius: 7px;
    background: #075c56;
    color: #fff !important;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.3;
    text-decoration: none !important;
    transition: background .18s ease, transform .18s ease;
}
.nu-author-cta-button:hover {
    background: #064a45;
    color: #fff !important;
    transform: translateY(-1px);
}
.nu-author-cta-button span { font-size: 18px; line-height: 1; }
.nu-author-footer-actions { display: flex; flex: 0 0 auto; align-items: center; flex-direction: column; gap: 9px; }
.nu-author-footer-login { color: rgba(255,255,255,.78) !important; font-size: 12px; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.nu-author-footer-login:hover { color: #fff !important; }

.nu-author-article-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 28px 0 32px;
    padding: 18px 20px;
    border: 1px solid #d6e9e8;
    border-left: 4px solid #0f8f87;
    border-radius: 10px;
    background: #f5fbfa;
}
.nu-author-article-cta .nu-author-footer-eyebrow { margin-bottom: 5px; color: #08766f; }
.nu-author-article-cta-copy p {
    margin: 0;
    color: #334155;
    font-size: 13px;
    line-height: 1.55;
}
.nu-author-article-cta-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border-radius: 7px;
    background: #075c56;
    color: #fff !important;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.35;
    text-decoration: none !important;
}
.nu-author-article-cta-link:hover { background: #064a45; color: #fff !important; }

@media (max-width: 767px) {
    .nu-author-footer-cta { padding: 23px 16px; }
    .nu-author-footer-cta-inner { align-items: flex-start; flex-direction: column; gap: 15px; }
    .nu-author-footer-actions { width: 100%; }
    .nu-author-cta-button { width: 100%; }
    .nu-author-article-cta { align-items: flex-start; flex-direction: column; padding: 16px; }
    .nu-author-article-cta-link { width: 100%; justify-content: center; }
}

/* Header authentication controls: clear visitor actions and signed-in account dropdown. */
.nu-header-auth-item,
.nu-header-account-item {
    display: flex;
    align-items: center;
    margin: 0 0 0 8px !important;
}
.nu-header-auth-item > .nu-header-login-link,
.nu-header-auth-item > .nu-header-signup-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 16px !important;
    border: 1px solid #08766f;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 800 !important;
    line-height: 1.2;
    text-decoration: none !important;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.nu-header-auth-item > .nu-header-login-link {
    background: #fff;
    color: #0d746d !important;
}
.nu-header-auth-item > .nu-header-login-link:hover {
    background: #eaf7f5;
    color: #075c56 !important;
    transform: translateY(-1px);
}
.nu-header-auth-item > .nu-header-signup-link {
    border-color: #075c56;
    background: #075c56;
    color: #fff !important;
}
.nu-header-auth-item > .nu-header-signup-link:hover {
    border-color: #075c56;
    background: #075c56;
    color: #fff !important;
    transform: translateY(-1px);
}
.nu-header-auth-item > a:focus-visible,
.nu-header-account-trigger:focus-visible,
.nu-header-account-panel a:focus-visible {
    outline: 3px solid #f4c95d !important;
    outline-offset: 3px;
}

.nu-header-account-item {
    position: relative;
    align-self: stretch;
}
.nu-header-account-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}
.nu-header-account-trigger {
    display: inline-flex !important;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    padding: 4px 10px 4px 5px !important;
    border: 1px solid #dce7e7;
    border-radius: 999px;
    background: #fff;
    color: #17344a !important;
    cursor: pointer;
    list-style: none;
    text-align: left;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.nu-header-account-trigger::-webkit-details-marker { display: none; }
.nu-header-account-trigger::marker { content: ''; }
.nu-header-account-trigger:hover,
.nu-header-account-dropdown[open] > .nu-header-account-trigger {
    border-color: #8bc9c3;
    background: #f7fbfb;
    box-shadow: 0 4px 14px rgba(18, 61, 72, .08);
}
.nu-header-account-avatar {
    display: inline-flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    overflow: hidden;
    border: 2px solid #d7eeeb;
    border-radius: 50%;
    background: #e8f5f3;
}
.nu-header-account-avatar img,
.nu-header-account-avatar-img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    border-radius: 50%;
    object-fit: cover;
}
.nu-header-account-trigger-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
    line-height: 1.15;
}
.nu-header-account-name {
    max-width: 145px;
    overflow: hidden;
    color: #17344a;
    font-size: 12px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nu-header-account-trigger-status {
    max-width: 145px;
    overflow: hidden;
    color: #71808c;
    font-size: 10px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nu-header-account-chevron {
    width: 8px;
    height: 8px;
    margin: -4px 2px 0 3px;
    border-right: 2px solid #71808c;
    border-bottom: 2px solid #71808c;
    transform: rotate(45deg);
    transition: transform .18s ease, margin .18s ease;
}
.nu-header-account-dropdown[open] .nu-header-account-chevron {
    margin-top: 4px;
    transform: rotate(225deg);
}
.nu-header-account-panel {
    position: absolute;
    z-index: 10020;
    top: calc(100% + 9px);
    right: 0;
    display: none;
    width: 252px;
    padding: 9px;
    border: 1px solid #e2ebea;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(15, 42, 55, .18);
}
.nu-header-account-dropdown[open] > .nu-header-account-panel { display: block; }
.nu-header-account-panel-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 11px 12px 13px;
    border-bottom: 1px solid #edf1f1;
}
.nu-header-account-panel-head strong {
    color: #17344a;
    font-size: 13px;
    font-weight: 850;
}
.nu-header-account-panel-head span {
    color: #75828c;
    font-size: 11px;
    font-weight: 650;
}
.nu-header-account-links {
    display: flex !important;
    flex-direction: column;
    gap: 3px;
    margin: 7px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.nu-header-account-links > li { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.nu-header-account-links > li > a {
    display: flex !important;
    align-items: center;
    min-height: 38px;
    padding: 9px 11px !important;
    border-radius: 8px;
    background: transparent;
    color: #304557 !important;
    font-size: 12px;
    font-weight: 700 !important;
    line-height: 1.35;
    text-decoration: none !important;
}
.nu-header-account-links > li > a:hover,
.nu-header-account-links > li > a.is-primary {
    background: #eef8f6;
    color: #08766f !important;
}
.nu-header-account-links > .nu-header-account-logout {
    margin-top: 5px !important;
    padding-top: 6px !important;
    border-top: 1px solid #edf1f1;
}
.nu-header-account-links > .nu-header-account-logout > a { color: #b54747 !important; }
.nu-header-account-links > .nu-header-account-logout > a:hover { background: #fff1f1; color: #963535 !important; }

/* The same controls remain easy to tap inside Astra's mobile menu drawer. */
.ast-mobile-popup-content .nu-header-auth-item,
.ast-builder-menu-mobile .nu-header-auth-item,
#ast-mobile-header .nu-header-auth-item,
.ast-mobile-popup-content .nu-header-account-item,
.ast-builder-menu-mobile .nu-header-account-item,
#ast-mobile-header .nu-header-account-item {
    display: block;
    margin: 5px 0 !important;
}
.ast-mobile-popup-content .nu-header-auth-item > a,
.ast-builder-menu-mobile .nu-header-auth-item > a,
#ast-mobile-header .nu-header-auth-item > a {
    width: 100%;
    min-height: 44px;
    margin: 0 !important;
    justify-content: center;
}
.ast-mobile-popup-content .nu-header-account-dropdown,
.ast-builder-menu-mobile .nu-header-account-dropdown,
#ast-mobile-header .nu-header-account-dropdown {
    display: block;
    width: 100%;
}
.ast-mobile-popup-content .nu-header-account-trigger,
.ast-builder-menu-mobile .nu-header-account-trigger,
#ast-mobile-header .nu-header-account-trigger {
    width: 100%;
    min-height: 52px;
    justify-content: flex-start;
    padding: 7px 12px !important;
    border-radius: 10px;
}
.ast-mobile-popup-content .nu-header-account-panel,
.ast-builder-menu-mobile .nu-header-account-panel,
#ast-mobile-header .nu-header-account-panel {
    position: static;
    width: 100%;
    margin: 7px 0 2px;
    border-color: #e7eeee;
    box-shadow: none;
}
@media (max-width: 767px) {
    .nu-header-account-name,
    .nu-header-account-trigger-status { max-width: calc(100vw - 120px); }
}


/* Actual NetworkUstad custom header account controls.
   The theme's visible header is template-parts/header-custom.php, not an Astra
   wp_nav_menu() output, so these selectors target the directly-rendered markup. */
.nu-header-auth-controls {
    display: flex !important;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-left: 10px;
    white-space: nowrap;
}
.nu-header-auth-controls > .nu-header-login-link,
.nu-header-auth-controls > .nu-header-signup-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 13px !important;
    border: 1px solid #08766f;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800 !important;
    line-height: 1.15;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.nu-header-auth-controls > .nu-header-login-link {
    background: #fff;
    color: #0d746d !important;
}
.nu-header-auth-controls > .nu-header-login-link:hover {
    background: #eaf7f5;
    color: #075c56 !important;
    transform: translateY(-1px);
}
.nu-header-auth-controls > .nu-header-signup-link {
    background: #075c56;
    color: #fff !important;
}
.nu-header-auth-controls > .nu-header-signup-link:hover {
    border-color: #075c56;
    background: #075c56;
    color: #fff !important;
    transform: translateY(-1px);
}
.nu-header-auth-controls > a:focus-visible,
.nu-header-account-trigger:focus-visible,
.nu-header-account-panel a:focus-visible {
    outline: 3px solid #f4c95d !important;
    outline-offset: 3px;
}
.nu-header-account-list {
    display: flex !important;
    flex: 0 0 auto;
    align-items: center;
    margin: 0 0 0 8px !important;
    padding: 0 !important;
    list-style: none !important;
}
.nu-header-account-list > .nu-header-account-item {
    display: flex !important;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.nu-header-account-dropdown { z-index: 10020; }
.nu-header-account-panel { z-index: 10021; }

@media (max-width: 767px) {
    .nu-header-inner { gap: 8px; }
    .nu-header-actions { gap: 2px; }
    .nu-header-actions > .nu-header-auth-controls { gap: 4px; margin-left: 3px; }
    .nu-header-auth-controls > .nu-header-login-link,
    .nu-header-auth-controls > .nu-header-signup-link {
        min-height: 34px;
        padding: 7px 8px !important;
        border-radius: 7px;
        font-size: 10px;
        letter-spacing: -.01em;
    }
    .nu-header-account-list { margin-left: 3px !important; }
    .nu-header-account-trigger {
        min-height: 36px;
        gap: 0;
        padding: 2px !important;
        border-radius: 50%;
    }
    .nu-header-account-avatar { width: 32px; height: 32px; flex-basis: 32px; }
    .nu-header-account-trigger-copy,
    .nu-header-account-chevron { display: none !important; }
    .nu-header-account-panel { top: calc(100% + 7px); right: 0; width: 238px; }
}
@media (max-width: 359px) {
    .nu-header-auth-controls > .nu-header-login-link,
    .nu-header-auth-controls > .nu-header-signup-link { padding-right: 6px !important; padding-left: 6px !important; font-size: 9px; }
    .nu-header-actions > #nu-search-actions .nu-icon-btn,
    .nu-header-actions > #nu-theme-toggle { width: 30px; height: 30px; }
}
