/* Smarteek Hub — app menus + Research Hub shell */

.hub-app-menu {
    background: #0f172a;
    color: #e2e8f0;
    font-size: .82rem;
    border-bottom: 1px solid #1e293b;
}
.hub-app-menu__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(0.4rem, 1.5vw, 0.65rem) clamp(0.65rem, 2vw, 1.25rem);
    padding: clamp(0.4rem, 1.2vw, 0.5rem) 0;
}
.hub-app-menu__brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    height: clamp(1.75rem, 5vw, 2rem);
    max-width: clamp(1.75rem, 5vw, 2rem);
}
.hub-app-menu__brand:hover { opacity: 0.92; }
.hub-app-menu__list {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.35rem, 1.2vw, 0.5rem);
    flex: 1 1 auto;
    min-width: 0;
}
.hub-app-menu__item {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    min-width: min(9.5rem, 46vw);
    flex: 1 1 auto;
    max-width: 100%;
    padding: clamp(0.35rem, 1.2vw, 0.45rem) clamp(0.6rem, 2vw, 0.85rem);
    border-radius: .5rem;
    border: 1px solid transparent;
    color: #e2e8f0;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

/* E-commerce — warm amber */
.hub-app-menu__item--commerce {
    background: #3d2a14;
    border-color: rgba(217, 119, 6, .45);
}
.hub-app-menu__item--commerce:hover {
    color: #fff;
    background: #b45309;
    border-color: #f59e0b;
    box-shadow: 0 4px 14px rgba(217, 119, 6, .35);
}
.hub-app-menu__item--commerce.hub-app-menu__item--active {
    color: #fff;
    background: linear-gradient(135deg, #c2410c 0%, #d97706 100%);
    border-color: #fbbf24;
    box-shadow: 0 4px 16px rgba(217, 119, 6, .4);
}
.hub-app-menu__item--commerce.hub-app-menu__item--active:hover {
    background: linear-gradient(135deg, #ea580c 0%, #f59e0b 100%);
    border-color: #fde68a;
}

/* Research Hub — academic blue */
.hub-app-menu__item--research {
    background: #172554;
    border-color: rgba(37, 99, 235, .45);
}
.hub-app-menu__item--research:hover {
    color: #fff;
    background: #1d4ed8;
    border-color: #60a5fa;
    box-shadow: 0 4px 14px rgba(37, 99, 235, .35);
}
.hub-app-menu__item--research.hub-app-menu__item--active {
    color: #fff;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    border-color: #93c5fd;
    box-shadow: 0 4px 16px rgba(37, 99, 235, .4);
}
.hub-app-menu__item--research.hub-app-menu__item--active:hover {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border-color: #bfdbfe;
}

.hub-app-menu__item--active .hub-app-menu__item-scope {
    opacity: 1;
    color: rgba(255, 255, 255, .92);
}
.hub-app-menu__item-head {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 700;
}
.hub-app-menu__item-scope {
    font-size: .72rem;
    opacity: .88;
    line-height: 1.25;
}
.hub-app-menu__context {
    font-size: .75rem;
    color: #94a3b8;
    max-width: 22rem;
    line-height: 1.35;
}

/* Legacy class names (unused) */
.hub-switcher { display: none; }
.hub-interop { display: none; }

/* Research Hub shell */
body.hub--research:not(.app--login-page) {
    background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 140px);
}
.rh-topbar {
    background: #1e3a8a;
    color: #fff;
    font-size: .78rem;
}
.rh-topbar a { color: #fff; text-decoration: none; opacity: .92; }
.rh-topbar a:hover { opacity: 1; text-decoration: underline; }
.rh-header {
    background: #fff;
    border-bottom: 1px solid #dbeafe;
    box-shadow: 0 1px 4px rgba(37, 99, 235, .08);
    --smarteek-header-logo-h: clamp(2.25rem, 6.5vw, 2.75rem);
}
.rh-header__inner {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
    gap: clamp(0.5rem, 2vw, 1rem);
    align-items: center;
    padding: clamp(0.5rem, 1.5vw, 0.85rem) 0;
}
.rh-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 0;
    height: var(--smarteek-header-logo-h);
    max-width: min(10.5rem, 34vw);
    text-decoration: none;
    line-height: 1;
}
.rh-logo > .smarteek-logo {
    height: 100%;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
}
.rh-logo:hover { opacity: 0.92; }
.rh-search {
    display: flex;
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    min-width: 0;
    border: 2px solid #2563eb;
    border-radius: .5rem;
    overflow: hidden;
}
.rh-search input {
    flex: 1;
    border: 0;
    padding: .55rem .75rem;
    min-width: 0;
    font-size: clamp(0.85rem, 2.2vw, 0.92rem);
}
.rh-search button {
    border: 0;
    background: #2563eb;
    color: #fff;
    padding: 0 1rem;
}
.rh-actions {
    display: flex;
    gap: clamp(0.25rem, 1vw, 0.5rem);
    align-items: center;
    flex-shrink: 0;
}
.rh-action {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: clamp(0.3rem, 1.2vw, 0.4rem) clamp(0.45rem, 1.5vw, 0.65rem);
    border-radius: .4rem;
    color: #334155;
    text-decoration: none;
    font-size: clamp(0.78rem, 2vw, 0.85rem);
    white-space: nowrap;
}
.rh-action--primary {
    background: #2563eb;
    color: #fff;
}

@media (max-width: 767.98px) {
    .rh-header__inner {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        gap: 0.5rem 0.65rem;
    }
    .rh-logo {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        align-self: center;
        max-width: min(9rem, 40vw);
        --smarteek-header-logo-h: clamp(2rem, 7vw, 2.5rem);
    }
    .rh-actions {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        align-self: center;
    }
    .rh-search {
        grid-column: 1 / -1;
        grid-row: 2;
        max-width: none;
        margin: 0;
    }
}

@media (max-width: 575.98px) {
    .rh-action span {
        display: none;
    }
    .rh-action {
        padding: 0.4rem 0.5rem;
    }
    .rh-action--primary span {
        display: inline;
    }
    .hub-app-menu__context {
        display: none !important;
    }
    .hub-app-menu__item-scope {
        display: none;
    }
    .hub-app-menu__item {
        min-width: min(8.5rem, 44vw);
    }
}
.rh-categories {
    background: #fff;
    border-bottom: 1px solid #dbeafe;
}
.rh-categories__track {
    display: flex;
    gap: .25rem;
    overflow-x: auto;
    list-style: none;
    margin: 0;
    padding: .5rem 0;
    scrollbar-width: thin;
}
.rh-categories__track a {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .75rem;
    border-radius: 999px;
    white-space: nowrap;
    color: #475569;
    text-decoration: none;
    font-size: .85rem;
}
.rh-categories__track a.active,
.rh-categories__track a:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

.rh-trust-strip {
    background: #eff6ff;
    border-bottom: 1px solid #dbeafe;
    font-size: .78rem;
}
.rh-trust-strip__list {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.25rem;
    list-style: none;
    margin: 0;
    padding: .45rem 0;
}
.rh-trust-strip__list a {
    color: #1e40af;
    text-decoration: none;
}
.rh-trust-strip__list a:hover { text-decoration: underline; }

.research-hub-hero {
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 55%, #f8fafc 100%);
    border-bottom: 1px solid #bfdbfe;
}
.research-hub-hero__badge {
    background: #2563eb;
    color: #fff;
}
.btn-research-primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}
.btn-research-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}
.research-hub-quicklinks li { margin-bottom: .5rem; }
.research-hub-quicklinks a {
    color: #1e40af;
    text-decoration: none;
}
.research-hub-quicklinks a:hover { text-decoration: underline; }

/* Research request quote page */
.rr-page {
    background: #f8fafc;
}
.rr-breadcrumb {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    color: #2563eb;
    text-decoration: none;
}
.rr-breadcrumb:hover { text-decoration: underline; }
.rr-page__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}
.rr-page__lead {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0;
}
.rr-more {
    font-size: 0.8125rem;
    color: #475569;
}
.rr-more summary {
    cursor: pointer;
    font-weight: 600;
    color: #2563eb;
    user-select: none;
}
.rr-more[open] summary { margin-bottom: 0.25rem; }
.rr-form { display: flex; flex-direction: column; gap: 0.75rem; }
.rr-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
    padding: 1rem 1.1rem;
}
.rr-panel--submit {
    background: #f8fafc;
    border-color: #cbd5e1;
}
.rr-panel__head { margin-bottom: 0.85rem; }
.rr-panel__title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.rr-panel__title .bi { color: #2563eb; }
.rr-panel__sub {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0.35rem 0 0;
}
.rr-hint {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0.45rem 0 0;
}
.rr-scope-block + .rr-scope-block { margin-top: 1rem; }
.rr-scope-block__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.55rem;
}
.rr-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.rr-chip {
    position: relative;
    margin: 0;
    cursor: pointer;
}
.rr-chip input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.rr-chip span {
    display: inline-block;
    padding: 0.45rem 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #334155;
    background: #f8fafc;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    user-select: none;
}
.rr-chip:hover span {
    border-color: #93c5fd;
    background: #eff6ff;
}
.rr-chip input:checked + span,
.rr-chip input:focus-visible + span {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}
.rr-chip--sm span {
    font-size: 0.75rem;
    padding: 0.38rem 0.7rem;
}
.rr-ac-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    max-height: 220px;
    overflow-y: auto;
    display: none;
    margin-top: 0.2rem;
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
.rr-ac-dropdown.is-open { display: block; }
.rr-aside {
    position: sticky;
    top: 1rem;
    background: #fff;
    border: 1px solid #bfdbfe;
    border-radius: 0.85rem;
    padding: 1.25rem;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
}
.rr-aside__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.85rem;
}
.rr-aside__steps {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.rr-aside__steps li {
    padding-left: 0;
    font-size: 0.8125rem;
    color: #475569;
}
.rr-aside__steps strong {
    display: block;
    color: #0f172a;
    font-size: 0.875rem;
    margin-bottom: 0.15rem;
}
.rr-aside__note {
    display: flex;
    gap: 0.55rem;
    padding: 0.75rem;
    background: #eff6ff;
    border-radius: 0.55rem;
    font-size: 0.8125rem;
    color: #334155;
    margin-bottom: 1rem;
}
.rr-aside__note .bi { color: #2563eb; flex-shrink: 0; }
.rr-aside__links li { margin-bottom: 0.45rem; }
.rr-aside__links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1d4ed8;
    text-decoration: none;
}
.rr-aside__links a:hover { text-decoration: underline; }
.rr-form .form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
}
.rr-form .form-control,
.rr-form .form-select {
    border-radius: 0.55rem;
    border-color: #cbd5e1;
    font-size: 0.9375rem;
}
.rr-form .form-control:focus,
.rr-form .form-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Auth hub tabs */
.auth-hub-tabs {
    display: flex;
    gap: .5rem;
    margin-bottom: 1rem;
}
.auth-hub-tab {
    flex: 1;
    text-align: center;
    padding: .65rem .5rem;
    border-radius: .5rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: .85rem;
}
.auth-hub-tab--active {
    border-color: var(--hub-accent, #d97706);
    background: color-mix(in srgb, var(--hub-accent, #d97706) 10%, #fff);
    color: #0f172a;
}
.auth-login-method {
    display: flex;
    gap: .5rem;
    margin-bottom: 1rem;
}
.auth-login-method label {
    flex: 1;
    margin: 0;
    cursor: pointer;
}
.auth-login-method input { display: none; }
.auth-login-method span {
    display: block;
    text-align: center;
    padding: .45rem;
    border: 1px solid #e2e8f0;
    border-radius: .4rem;
    font-size: .85rem;
}
.auth-login-method input:checked + span {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
}

/* Admin hub switcher */
.admin-hub-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.admin-hub-switcher__btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
    padding: 1rem 1.15rem;
    border-radius: .65rem;
    border: 2px solid #e2e8f0;
    background: #fff;
    text-decoration: none;
    color: #0f172a;
    transition: border-color .15s, box-shadow .15s;
}
.admin-hub-switcher__btn:hover {
    border-color: var(--hub-accent, #d97706);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
    color: #0f172a;
}
.admin-hub-switcher__btn--active {
    border-color: var(--hub-accent, #d97706);
    background: color-mix(in srgb, var(--hub-accent, #d97706) 8%, #fff);
}
.admin-hub-switcher__btn i { font-size: 1.35rem; color: var(--hub-accent, #d97706); }

/* Footer — Smarteek Hub interoperability */
.site-footer__hub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.site-footer__hub-intro {
    margin: 0;
    max-width: 36rem;
    font-size: .9rem;
    opacity: .92;
}
.site-footer__hub-apps {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.site-footer__hub-app {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .85rem;
    border-radius: .45rem;
    border: 1px solid rgba(255, 255, 255, .2);
    color: #f8fafc;
    text-decoration: none;
    font-size: .85rem;
    font-weight: 600;
}
.site-footer__hub-app:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}
.site-footer__hub-app--active {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .45);
}

/* ============================================================
   Research Hub — competitive landing page components
   ============================================================ */

/* Stat chips strip */
.rh-stats-strip { flex-wrap: wrap; }
.rh-stat-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: .5rem;
    padding: .5rem .9rem;
    min-width: 90px;
}
.rh-stat-chip__value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}
.rh-stat-chip__label {
    font-size: .68rem;
    color: rgba(255,255,255,.8);
    text-align: center;
    margin-top: .15rem;
}

/* Pillar cards */
.rh-pillar-card {
    border-top: 3px solid var(--rh-accent, #047857) !important;
    transition: transform .15s, box-shadow .15s;
}
.rh-pillar-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.1) !important; }
.rh-pillar-card--free { border-top-color: #198754 !important; }
.rh-pillar-card__icon { font-size: 1.4rem; color: #047857; }

/* Why section */
.rh-why-section { background: #f8fdf9; }
.rh-why-card {
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    padding: 1rem;
    background: #fff;
    border-radius: .5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
    height: 100%;
}
.rh-why-card__icon { font-size: 1.5rem; flex-shrink: 0; margin-top: .1rem; }

/* Step cards */
.rh-step-card {
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    padding: 1rem;
    background: #fff;
    border-radius: .5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
}
.rh-step-card__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #047857;
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    flex-shrink: 0;
}

/* Testimonials */
.rh-testimonials { background: #f9fafb; }
.rh-testimonial-card {
    background: #fff;
    border-radius: .6rem;
    padding: 1.2rem;
    box-shadow: 0 1px 6px rgba(0,0,0,.07);
    display: flex;
    flex-direction: column;
}
.rh-testimonial-card__body { color: #374151; line-height: 1.5; flex: 1; }
.rh-testimonial-card__avatar {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: #047857;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    flex-shrink: 0;
}

/* Free tools banner */
.rh-free-tools-banner { background: #fff; }

/* Scholar community teaser */
.rh-scholar-community {
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border-top: 1px solid #e0e7ef;
    border-bottom: 1px solid #e0e7ef;
}
