/* EmpowerMentoring Multi-Brand Sub-Stores Design System */
.em-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 3.5rem;
    color: var(--em-text, #0f172a);
}

.em-top-ribbon {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    margin-bottom: 1.5rem;
    background: var(--em-surface, #ffffff);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 10px;
    font-size: 0.9rem;
}

.em-ribbon-links a {
    color: var(--em-primary, #1e3a5f);
    font-weight: 600;
    text-decoration: none;
}

.em-hero {
    background: linear-gradient(135deg, var(--em-primary, #1e3a5f) 0%, #0f172a 100%);
    color: #ffffff;
    border-radius: 18px;
    padding: 3rem 2.25rem;
    margin-bottom: 2.25rem;
    box-shadow: 0 18px 36px -18px rgba(15, 23, 42, 0.45);
}

.em-kicker {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    margin-bottom: 1rem;
}

.em-hero h1 {
    color: #ffffff;
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
    line-height: 1.15;
    margin: 0 0 1rem;
}

.em-lead {
    font-size: 1.12rem;
    line-height: 1.6;
    max-width: 760px;
    opacity: 0.95;
    margin: 0 0 0.85rem;
}

.em-audience {
    font-size: 0.98rem;
    max-width: 720px;
    opacity: 0.85;
    margin: 0 0 1.5rem;
}

.em-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.em-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.78rem 1.35rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.em-btn:hover {
    transform: translateY(-1px);
    opacity: 0.94;
}

.em-btn-primary {
    background: var(--em-accent, #d97706);
    color: #ffffff;
}

.em-btn-outline {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.em-brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.em-brand-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 24px -14px rgba(15, 23, 42, 0.25);
    display: flex;
    flex-direction: column;
}

.em-brand-card-bar {
    height: 8px;
    background: linear-gradient(90deg, var(--card-primary, #1e3a5f), var(--card-accent, #d97706));
}

.em-brand-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.em-brand-card h2 {
    margin: 0 0 0.45rem;
    color: var(--card-primary, #1e3a5f);
    font-size: 1.35rem;
}

.em-brand-tagline {
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 0 0.75rem;
    color: #334155;
}

.em-brand-desc {
    font-size: 0.92rem;
    line-height: 1.55;
    color: #475569;
    flex: 1;
    margin: 0 0 1.25rem;
}

.em-card-links {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.em-brand-card .em-btn-primary {
    background: var(--card-primary, #1e3a5f);
}

.em-link-subtle {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--card-primary, var(--em-primary, #1e3a5f));
    text-decoration: none;
    text-align: center;
}

.em-feature-callout {
    background: var(--em-bg, #f8fafc);
    border-left: 5px solid var(--em-accent, #d97706);
    border-radius: 12px;
    padding: 1.35rem 1.5rem;
    margin-bottom: 2.25rem;
}

.em-feature-callout h3 {
    margin: 0 0 0.4rem;
    color: var(--em-primary, #1e3a5f);
}

.em-feature-callout p {
    margin: 0;
    line-height: 1.55;
}

.em-catalog-section h2 {
    margin-bottom: 1.25rem;
    color: var(--em-primary, #1e3a5f);
}

.em-empty-catalog {
    padding: 2rem;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    text-align: center;
    color: #64748b;
}

/* Native Google & Microsoft OIDC Customer Login Buttons */
.em-oidc-card {
    max-width: 460px;
    margin: 1.5rem auto 2rem;
    padding: 2rem 1.75rem;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 16px;
    box-shadow: 0 12px 28px -16px rgba(15, 23, 42, 0.25);
    text-align: center;
}

.em-oidc-card-title {
    margin: 0 0 0.5rem;
    font-size: 1.45rem;
    color: var(--em-primary, #1e3a5f);
}

.em-oidc-card-sub {
    margin: 0 0 1.25rem;
    font-size: 0.94rem;
    line-height: 1.5;
    color: #475569;
}

.em-oidc-box {
    margin-top: 0.5rem;
}

/* Hide built-in WordPress password login/register forms on customer My Account when passwordless OIDC mode is active */
body.em-oidc-only-login #customer_login,
body.em-oidc-only-login .woocommerce-account .woocommerce-form-login,
body.em-oidc-only-login .woocommerce-account .woocommerce-form-register,
body.em-oidc-only-login .woocommerce-account .u-columns#customer_login {
    display: none !important;
}

/* Hide Password Change fieldset on Account Details for Google/Microsoft-authenticated customers */
body.em-oidc-user .woocommerce-EditAccountForm fieldset {
    display: none !important;
}

.em-oidc-provider-note {
    margin: 1rem 0 1.25rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: var(--em-bg, #f8fafc);
    border: 1px solid rgba(15, 23, 42, 0.1);
    color: #334155;
    font-size: 0.9rem;
}

.em-oidc-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0 0.85rem;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
}

.em-oidc-divider::before,
.em-oidc-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #cbd5e1;
}

.em-oidc-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.em-oidc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    box-sizing: border-box;
    padding: 0.72rem 1rem;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.em-oidc-btn:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.em-oidc-btn svg {
    flex-shrink: 0;
}

.em-oidc-error {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: 0.92rem;
}

.em-legal-footer {
    margin-top: 3rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(15, 23, 42, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.86rem;
    color: #64748b;
}

.em-legal-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.em-legal-links a {
    color: var(--em-primary, #1e3a5f);
    text-decoration: none;
    font-weight: 500;
}

.em-legal-links a:hover {
    text-decoration: underline;
}

.em-legal-doc {
    max-width: 820px;
    line-height: 1.65;
}

.em-legal-doc h2 {
    margin-top: 1.75rem;
    color: var(--em-primary, #1e3a5f);
}

/* --- Multi-Brand WWW / WWWTEST Website Chrome & Sections (v1.2.0) --- */
.em-mode-www .em-wrap { font-family: var(--em-font-body, system-ui, sans-serif); }
.em-mode-www h1, .em-mode-www h2, .em-mode-www h3 { font-family: var(--em-font-heading, Georgia, serif); }

.em-www-header {
    background: var(--em-surface, #ffffff);
    border-bottom: 2px solid var(--em-primary, #1e3a5f);
    border-radius: 10px;
    margin-bottom: 24px;
    padding: 14px 20px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}
.em-www-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}
.em-www-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--em-primary, #1e3a5f);
    font-family: var(--em-font-heading, Georgia, serif);
    font-size: 1.35rem;
    font-weight: 700;
}
.em-test-pill {
    font-family: system-ui, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #f59e0b;
    border-radius: 999px;
    padding: 2px 8px;
}
.em-www-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.95rem;
}
.em-www-nav a {
    color: var(--em-text, #0f172a);
    text-decoration: none;
    font-weight: 600;
}
.em-www-nav a:hover { color: var(--em-primary, #1e3a5f); text-decoration: underline; }
.em-www-nav a.em-nav-shop-cta {
    background: var(--em-primary, #1e3a5f);
    color: #ffffff;
    padding: 7px 14px;
    border-radius: 6px;
    text-decoration: none;
}
.em-www-nav a.em-nav-shop-cta:hover { opacity: 0.92; color: #ffffff; text-decoration: none; }
.em-www-nav a.em-nav-acct {
    border: 1px solid var(--em-primary, #1e3a5f);
    color: var(--em-primary, #1e3a5f);
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
}
.em-www-nav a.em-nav-cart {
    background: var(--em-accent, #d97706);
    color: #ffffff;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 0.85rem;
    text-decoration: none;
}

.em-www-section { margin: 36px 0; }
.em-section-sub { color: #475569; max-width: 720px; margin-bottom: 20px; }

.em-video-feature {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 24px;
    align-items: center;
    background: var(--em-surface, #ffffff);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 12px;
    padding: 24px;
}
.em-video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
}
.em-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.em-guides-grid, .em-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}
.em-guide-card, .em-step-card {
    background: var(--em-surface, #ffffff);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-top: 4px solid var(--em-primary, #1e3a5f);
    border-radius: 10px;
    padding: 20px;
}
.em-guide-kicker {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--em-accent, #ea580c);
    margin-bottom: 6px;
}
.em-guide-card h3 { margin: 4px 0 10px; font-size: 1.15rem; }
.em-guide-card h3 a { color: var(--em-text, #0f172a); text-decoration: none; }
.em-guide-card h3 a:hover { color: var(--em-primary, #1e3a5f); }
.em-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: var(--em-primary, #0f766e);
    color: #fff;
    font-weight: 700;
    margin-bottom: 10px;
}

.em-www-article-body {
    background: var(--em-surface, #ffffff);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    padding: 28px;
    max-width: 860px;
    margin: 0 auto 28px;
}
.em-contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 560px;
    margin-top: 16px;
}
.em-contact-form label { font-weight: 600; font-size: 0.9rem; }
.em-contact-form input, .em-contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
}
.em-form-notice { padding: 12px 14px; border-radius: 8px; margin-bottom: 12px; font-weight: 600; }
.em-form-ok { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.em-form-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
