/* Alpline 3.4 — readable presentation layer. No generated CSS runtime. */
:root {
    --alp-forest: var(--ap-deep, #073f30);
    --alp-leaf: #0b7657;
    --alp-gold-strong: var(--ap-gold, #dfb23b);
    --alp-cream: #fff8e5;
    --alp-cloud: #f3f7f5;
    --alp-border-soft: #d7e4de;
    --alp-text: #12372e;
    --alp-muted-text: #687b74;
}

/* Portal identity: member name first, permanent ID second. */
.release-340 .topbar-identity {
    display: grid;
    gap: 2px;
}

.release-340 .topbar-identity small,
.release-340 .topbar-identity b,
.release-340 .topbar-identity span {
    display: block;
}

.release-340 .topbar-identity span {
    color: #7b886f;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
}

.release-340 .portal-nav-group > a {
    min-height: 34px;
    padding-left: 52px;
    font-size: 12px;
}

.release-340 .portal-nav-group[open] {
    padding-bottom: 7px;
}

/* Compact one-level genealogy: all immediate Group A/B members stay visible. */
.release-340 .one-level-genealogy {
    overflow: visible;
}

.release-340 .one-level-root {
    width: min(270px, 100%);
    min-height: 92px;
    margin: 15px auto 22px;
    padding: 12px 18px;
    border: 1px solid rgba(223, 178, 59, .68);
    border-radius: 13px;
}

.release-340 .one-level-root::after {
    bottom: -16px;
    height: 16px;
}

.release-340 .one-level-root > strong {
    margin: 2px 0;
    font-size: 15px;
}

.release-340 .one-level-root > b {
    margin: 2px 0 !important;
    font-size: 12px !important;
}

.release-340 .one-level-root > small,
.release-340 .one-level-root > span {
    font-size: 9px;
}

.release-340 .one-level-flow {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(260px, 1fr)) !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 0 8px !important;
    overflow: visible !important;
}

.release-340 .one-level-group {
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 1px solid var(--alp-border-soft) !important;
    border-top: 3px solid var(--alp-gold-strong) !important;
    border-radius: 13px !important;
    background: #ffffff !important;
}

.release-340 .one-level-group > header,
.release-340 .one-level-group.group-a > header,
.release-340 .one-level-group.group-b > header,
.release-340 .one-level-group.group-unplaced > header {
    min-height: 47px;
    padding: 9px 12px !important;
    border-radius: 9px 9px 0 0;
    background: linear-gradient(115deg, #073d30, #145f49) !important;
    color: #ffffff !important;
}

.release-340 .one-level-group.group-b {
    border-top-color: #8fb7a6 !important;
}

.release-340 .one-level-group.group-unplaced {
    grid-column: 1 / -1;
    border-top-color: #d7c58f !important;
}

.release-340 .one-level-group > header small {
    color: #f2c961;
    font-size: 9px;
}

.release-340 .one-level-group > header b {
    font-size: 11px;
}

.release-340 .one-level-group > header span {
    font-size: 9px;
}

.release-340 .one-level-members {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    max-height: 260px;
    margin: 0 !important;
    padding: 9px 9px 112px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-color: var(--alp-leaf) #e5eee9;
    scrollbar-width: thin;
}

.release-340 .one-level-member,
.release-340 .group-a .one-level-member,
.release-340 .group-b .one-level-member,
.release-340 .group-unplaced .one-level-member {
    position: relative;
    display: grid;
    flex: 0 0 184px;
    grid-template-columns: 32px 1fr;
    gap: 7px;
    min-height: 67px;
    padding: 8px;
    overflow: visible;
    border: 1px solid #d9e4df !important;
    border-left: 3px solid var(--alp-gold-strong) !important;
    border-radius: 10px;
    background: linear-gradient(145deg, #ffffff, #f5f9f7) !important;
    color: var(--alp-text) !important;
    box-shadow: 0 5px 14px rgba(11, 56, 43, .06);
}

.release-340 .member-avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
}

.release-340 .one-level-member .member-identity > strong {
    margin: 0 0 2px;
    font-size: 11px;
}

.release-340 .one-level-member .member-identity > b {
    font-size: 9px;
}

.release-340 .one-level-member .member-identity > small,
.release-340 .one-level-member > em {
    font-size: 8px;
}

.release-340 .one-level-member > em {
    grid-column: 2;
}

.release-340 .member-business-popover {
    top: calc(100% + 6px);
    left: 0;
    right: auto;
    width: 230px;
    padding: 10px;
    border-radius: 10px;
}

.release-340 .genealogy-toolbar {
    gap: 7px;
    font-size: 10px;
}

/* Real India coverage surface with aggregated state markers. */
.india-coverage {
    position: relative;
    display: grid;
    grid-template-columns: minmax(300px, .95fr) minmax(260px, 1.05fr);
    gap: 18px;
    min-height: 360px;
    margin-top: 18px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid var(--alp-border-soft);
    border-radius: 22px;
    background:
        radial-gradient(circle at 25% 20%, rgba(11, 118, 87, .11), transparent 42%),
        linear-gradient(145deg, #f9fcfa, #edf6f2);
}

.india-map-toolbar {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 4;
    display: flex;
    gap: 5px;
}

.india-map-toolbar button {
    min-width: 38px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #c9dbd3;
    border-radius: 9px;
    background: #ffffff;
    color: var(--alp-forest);
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}

.india-map-viewport {
    min-height: 330px;
    overflow: auto;
    border-radius: 17px;
    background: rgba(255, 255, 255, .68);
}

.india-map-svg {
    display: block;
    width: 100%;
    height: 350px;
    transform-origin: 50% 45%;
    transition: transform .2s ease;
}

.india-islands {
    fill: #c9ddd4;
}

.india-marker circle {
    fill: #ffffff;
    stroke: #9db5aa;
    stroke-width: 1.4;
    transition: transform .15s ease, fill .15s ease;
}

.india-marker text {
    fill: #72847c;
    font-size: 5.4px;
    font-weight: 900;
    text-anchor: middle;
    pointer-events: none;
}

.india-marker.active circle {
    fill: #0fa66f;
    stroke: #057650;
    filter: drop-shadow(0 2px 3px rgba(4, 85, 58, .28));
}

.india-marker.active text {
    fill: #064c37;
}

.india-marker:hover circle,
.india-marker:focus circle {
    transform: scale(1.25);
    outline: none;
}

.territory-summary {
    align-self: center;
    display: grid;
    gap: 7px;
    padding-top: 40px;
}

.territory-summary article {
    display: grid;
    grid-template-columns: 10px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #dce8e2;
    border-radius: 12px;
    background: rgba(255, 255, 255, .86);
}

.territory-summary article > i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #11a86f;
    box-shadow: 0 0 0 5px rgba(17, 168, 111, .1);
}

.territory-summary b,
.territory-summary small {
    display: block;
}

.territory-summary b {
    font-size: 12px;
}

.territory-summary small {
    color: var(--alp-muted-text);
    font-size: 9px;
}

.territory-summary strong {
    color: var(--alp-leaf);
    font-size: 18px;
}

/* Member income centre. */
.income-centre {
    display: grid;
    gap: 20px;
}

.income-hero {
    background:
        radial-gradient(circle at 85% 15%, rgba(223, 178, 59, .22), transparent 30%),
        linear-gradient(125deg, #042e24, #0b654a);
}

.income-plan-chip {
    display: inline-flex;
    margin-top: 15px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    color: #e0efe9;
    font-size: 11px;
    font-weight: 800;
}

.income-report-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.income-report-nav > a {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 12px;
    align-items: center;
    min-height: 82px;
    padding: 13px;
    border: 1px solid var(--alp-border-soft);
    border-radius: 14px;
    background: #ffffff;
    color: var(--alp-text);
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}

.income-report-nav > a:hover,
.income-report-nav > a.active {
    transform: translateY(-2px);
    border-color: #91b9a8;
    box-shadow: 0 13px 30px rgba(11, 56, 43, .1);
}

.income-report-nav > a.active {
    background: linear-gradient(120deg, #073d30, #0b654a);
    color: #ffffff;
}

.income-report-nav i {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: var(--alp-cream);
    color: #745812;
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
}

.income-report-nav b,
.income-report-nav small {
    display: block;
}

.income-report-nav b {
    font-size: 13px;
}

.income-report-nav small {
    margin-top: 3px;
    color: var(--alp-muted-text);
    font-size: 9px;
}

.income-report-nav > a.active small {
    color: #bad9ce;
}

.income-report-nav strong {
    font-size: 14px;
}

.income-head-note {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
    padding: 22px 26px;
    border-left: 5px solid var(--alp-gold-strong);
    border-radius: 14px;
    background: var(--alp-cream);
}

.income-head-note h2,
.income-head-note p {
    margin: 4px 0;
}

.income-head-note > strong {
    color: var(--alp-forest);
    font-size: 30px;
    text-align: right;
}

.income-head-note > strong small {
    display: block;
    font-size: 8px;
}

.income-ledger-card td b,
.income-ledger-card td small {
    display: block;
}

.income-ledger-card td small {
    color: var(--alp-muted-text);
    font-size: 9px;
}

.income-ledger-card table {
    min-width: 1050px;
}

.income-head-note.fund {
    border-left-color: #779b8c;
    background: #edf6f2;
}

.income-head-note.reward {
    border-left-color: #c89519;
    background: linear-gradient(120deg, #fff8df, #f4ecd0);
}

.income-mix a {
    color: inherit;
    text-decoration: none;
}

/* Personalised one-page browser poster. */
.member-poster-page {
    padding: 4px;
}

.poster-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 16px;
}

.poster-toolbar p {
    margin: 0;
    color: var(--alp-muted-text);
    font-size: 12px;
}

.career-poster {
    position: relative;
    max-width: 1500px;
    margin: auto;
    overflow: hidden;
    border: 1px solid #cfded7;
    border-radius: 26px;
    background: #f6faf8;
    box-shadow: 0 28px 70px rgba(5, 47, 36, .12);
}

.career-poster > header {
    display: grid;
    grid-template-columns: 220px 1fr auto;
    gap: 30px;
    align-items: center;
    padding: 32px;
    background:
        radial-gradient(circle at 84% 10%, rgba(223, 178, 59, .24), transparent 27%),
        linear-gradient(125deg, #032c22, #0a6248);
    color: #ffffff;
}

.poster-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.poster-brand img {
    width: 64px;
    height: 64px;
    padding: 4px;
    border-radius: 50%;
    background: #ffffff;
}

.poster-brand span,
.poster-brand b,
.poster-brand small {
    display: block;
}

.poster-brand b {
    font-size: 21px;
    letter-spacing: .14em;
}

.poster-brand small {
    color: #d9e8e2;
    font-size: 7px;
    letter-spacing: .18em;
}

.career-poster > header h1 {
    margin: 5px 0 0;
    font-size: clamp(38px, 5vw, 68px);
    line-height: .94;
    letter-spacing: -.05em;
}

.career-poster > header h1 em {
    color: #f0ca5d;
    font-style: normal;
}

.career-poster > header aside {
    display: grid;
    min-width: 220px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 18px;
    background: rgba(0, 0, 0, .18);
}

.career-poster > header aside b {
    color: #f2cd65;
    font-size: 48px;
}

.career-poster > header aside strong {
    margin-top: 13px;
    font-size: 19px;
}

.poster-heads,
.poster-plan-row,
.poster-reward-row,
.career-poster > footer {
    padding: 24px 30px;
}

.poster-section-title small {
    color: #8a6b18;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .15em;
}

.poster-section-title h2 {
    margin: 4px 0 14px;
    font-size: 24px;
}

.poster-head-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.poster-head-grid > div {
    display: grid;
    grid-template-columns: 30px 1fr auto;
    gap: 9px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--alp-border-soft);
    border-radius: 11px;
    background: #ffffff;
}

.poster-head-grid i {
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    border-radius: 9px;
    background: var(--alp-cream);
    font-size: 8px;
    font-style: normal;
    font-weight: 900;
}

.poster-head-grid b,
.poster-head-grid small {
    display: block;
}

.poster-head-grid b {
    font-size: 10px;
}

.poster-head-grid small {
    color: var(--alp-muted-text);
    font-size: 8px;
}

.poster-head-grid strong {
    color: var(--alp-leaf);
    font-size: 14px;
}

.poster-plan-row {
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    gap: 14px;
    background: #eaf4ef;
}

.poster-level-plan,
.poster-generation-plan {
    padding: 18px;
    border-radius: 16px;
    background: #ffffff;
}

.poster-level-bars {
    display: grid;
    grid-template-columns: repeat(15, 1fr);
    gap: 5px;
    min-height: 120px;
    align-items: end;
}

.poster-level-bars > span {
    display: grid;
    align-content: end;
    height: var(--level-rate);
    min-height: 45px;
    padding: 5px 3px;
    border-radius: 7px 7px 3px 3px;
    background: linear-gradient(180deg, #e5ba48, #087052);
    color: #ffffff;
    text-align: center;
}

.poster-level-bars i,
.poster-level-bars b {
    font-size: 7px;
    font-style: normal;
}

.generation-orbit {
    display: grid;
    gap: 7px;
}

.generation-orbit span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, #073d30, #0b7657);
    color: #ffffff;
}

.generation-orbit i {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: #f0c85a;
    color: #153b31;
    font-size: 9px;
    font-style: normal;
    font-weight: 900;
}

.poster-reward-row {
    display: grid;
    grid-template-columns: 1.4fr .6fr;
    gap: 16px;
}

.poster-reward-ladder {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.poster-reward-ladder > span {
    flex: 0 0 125px;
    display: grid;
    gap: 4px;
    min-height: 116px;
    padding: 10px;
    border: 1px solid var(--alp-border-soft);
    border-top: 4px solid var(--alp-gold-strong);
    border-radius: 11px;
    background: #ffffff;
}

.poster-reward-ladder i {
    color: #8d6c18;
    font-size: 9px;
    font-style: normal;
    font-weight: 900;
}

.poster-reward-ladder b {
    font-size: 10px;
}

.poster-reward-ladder small {
    color: var(--alp-muted-text);
    font-size: 7px;
}

.poster-reward-ladder strong {
    align-self: end;
    color: var(--alp-leaf);
    font-size: 12px;
}

.poster-example {
    padding: 20px;
    border-radius: 18px;
    background: linear-gradient(145deg, #073d30, #0b654a);
    color: #ffffff;
}

.poster-example > div {
    display: flex;
    justify-content: space-between;
    margin: 7px 0;
    padding: 9px 11px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 9px;
}

.poster-example > strong {
    display: block;
    margin: 12px 0;
    padding: 11px;
    border-radius: 9px;
    background: #efc85e;
    color: #14392f;
}

.poster-example p {
    color: #cce1d8;
    font-size: 9px;
}

.career-poster > footer {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: 24px;
    align-items: center;
    background: #072f25;
    color: #ffffff;
}

.poster-contact b,
.poster-contact span,
.poster-contact a {
    display: block;
}

.poster-contact b {
    margin: 4px 0;
    color: #f0c85a;
    font-size: 20px;
}

.poster-contact a {
    margin-top: 5px;
    color: #ffffff;
    font-size: 9px;
    overflow-wrap: anywhere;
}

.career-poster > footer p {
    margin: 0;
    color: #bcd3ca;
    font-size: 9px;
}

.poster-watermark {
    position: absolute;
    z-index: 7;
    top: 16px;
    left: 50%;
    padding: 7px 13px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #fff0b9;
    color: #62490c;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
}

/* Premium public footer remains responsive to the Admin theme variables. */
.release-340 .site-footer {
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 18px;
}

.release-340 .site-footer > div:not(.footer-brand):not(.footer-legal) {
    min-height: 230px;
    transition: transform .18s ease, background .18s ease;
}

.release-340 .site-footer > div:not(.footer-brand):not(.footer-legal):hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, .07);
}

@media (max-width: 1050px) {
    .india-coverage,
    .poster-plan-row,
    .poster-reward-row {
        grid-template-columns: 1fr;
    }

    .career-poster > header {
        grid-template-columns: 1fr auto;
    }

    .poster-brand {
        grid-column: 1 / -1;
    }

    .poster-head-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .release-340 .site-footer {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .release-340 .one-level-flow {
        grid-template-columns: minmax(270px, 88vw) minmax(270px, 88vw) !important;
        overflow-x: auto !important;
    }

    .release-340 .one-level-group.group-unplaced {
        grid-column: auto;
    }

    .income-report-nav,
    .poster-head-grid,
    .career-poster > header,
    .career-poster > footer {
        grid-template-columns: 1fr;
    }

    .income-report-nav > a {
        grid-template-columns: 40px 1fr;
    }

    .income-report-nav strong {
        grid-column: 2;
    }

    .poster-level-bars {
        grid-template-columns: repeat(8, 1fr);
    }

    .poster-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .release-340 .site-footer {
        grid-template-columns: 1fr;
    }
}

@media print {
    .member-poster-page .poster-toolbar,
    .member-portal .portal-sidebar,
    .member-portal .portal-topbar {
        display: none !important;
    }

    .member-portal .portal-stage {
        margin: 0 !important;
    }

    .member-portal .portal-content {
        padding: 0 !important;
    }

    .career-poster {
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
}
