:root {
    --navy: #143d59;
    --blue: #3c6997;
    --green: #2e7d32;
    --red: #b22222;
    --amber: #a66b00;

    --page-bg: #f4f6f8;
    --card-bg: #ffffff;
    --border: #dfe5ea;
    --text: #17212b;
    --muted: #65717d;

    --positive-bg: #eaf7ea;
    --negative-bg: #fdecec;
    --neutral-bg: #f3f4f6;

    --shadow:
        0 8px 24px rgba(20, 61, 89, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--text);
    background: var(--page-bg);
}

body {
    margin: 0;
    line-height: 1.5;
}

.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    background: var(--navy);
    color: white;
    border-bottom:
        4px solid rgba(255, 255, 255, 0.12);
}

.site-header .page-shell {
    min-height: 96px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;
}

.brand-name {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.brand-subtitle {
    margin-top: 2px;
    opacity: 0.82;
    font-size: 0.9rem;
}

.last-updated {
    display: flex;
    flex-direction: column;
    text-align: right;
    font-size: 0.85rem;
}

.last-updated span {
    opacity: 0.72;
}

.hero-section {
    padding: 52px 0 28px;
}

.hero-section h1 {
    margin: 5px 0 8px;
    color: var(--navy);
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.05;
}

.hero-subtitle {
    color: var(--muted);
    font-size: 1.05rem;
}

.eyebrow {
    margin: 0;
    color: var(--blue);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.report-section {
    margin: 28px 0;
}

.section-heading {
    margin-bottom: 14px;

    display: flex;
    align-items: end;
    justify-content: space-between;
}

.section-heading h2 {
    margin: 3px 0 0;
    color: var(--navy);
    font-size: 1.65rem;
}

.metric-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.metric-grid-two {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}

.metric-grid-three {
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
}

.metric-card,
.content-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.metric-card {
    min-height: 118px;
    padding: 20px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.metric-label {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.metric-value {
    color: var(--navy);
    font-size: 1.75rem;
    line-height: 1;
}

.positive-card {
    background: var(--positive-bg);
    border-color: rgba(46, 125, 50, 0.35);
}

.negative-card {
    background: var(--negative-bg);
    border-color: rgba(178, 34, 34, 0.32);
}

.neutral-card {
    background: var(--neutral-bg);
}

.two-column-grid {
    margin-top: 14px;

    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.portfolio-stack {
    display: grid;
    gap: 14px;
}

.content-card {
    padding: 20px;
}

.content-card h3 {
    margin: 0 0 14px;
    color: var(--navy);
}

.card-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.badge {
    display: inline-flex;
    padding: 6px 10px;

    border-radius: 999px;
    background: #edf3f8;
    color: var(--navy);

    font-size: 0.78rem;
    font-weight: 800;
}

.ranking-list {
    display: grid;
}

.ranking-row {
    padding: 10px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--border);
}

.ranking-row:last-child {
    border-bottom: 0;
}

.ranking-row div:first-child {
    display: flex;
    flex-direction: column;
}

.ranking-row span {
    color: var(--muted);
    font-size: 0.8rem;
}

.score {
    font-weight: 800;
}

.positive-text {
    color: var(--green);
}

.negative-text {
    color: var(--red);
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

th,
td {
    padding: 11px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

th {
    background: #edf3f8;
    color: var(--navy);
    font-size: 0.78rem;
    letter-spacing: 0.03em;
}

tbody tr:hover {
    background: #f8fafb;
}

.weight-cell {
    background: #fff4b8;
    font-weight: 700;
}

.ultscore-cell {
    font-weight: 700;
}

.ultscore-ranking-primary {
    font-weight: 800;
}

.ultscore-change-positive {
    color: #2e7d32;
    font-weight: 700;
}

.ultscore-change-negative {
    color: #c62828;
    font-weight: 700;
}

.ultscore-change-neutral {
    color: #000000;
}

.ultimate-row {
    background: #eaf7ea;
}

.etf-ranking-scroll {
    max-height: 760px;
    overflow-y: auto;
}

.etf-ranking-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #ffffff;
}

.table-caption,
.empty-state {
    color: var(--muted);
    font-size: 0.9rem;
}

.methodology-box,
.disclosure-box {
    margin-top: 14px;
    padding: 16px 18px;

    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.methodology-box summary,
.disclosure-box summary {
    cursor: pointer;
    color: var(--navy);
    font-weight: 800;
}

.site-footer {
    margin-top: 56px;
    padding: 26px 0;

    background: #102f45;
    color: rgba(255, 255, 255, 0.78);
}

.site-footer p {
    margin: 4px 0;
    font-size: 0.82rem;
}

.footer-disclosure {
    max-width: 780px;
}

.plotly-chart {
    width: 100%;
    margin: 0 0 24px;
    overflow: hidden;

    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.plotly-chart iframe {
    display: block;
    width: 100%;
    height: 520px;
    border: 0;
}

/* Public, non-proprietary market-risk presentation */

.risk-assessment-card {
    padding: 24px;
}

.risk-assessment-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 34px;
}

.risk-assessment-heading>div {
    display: flex;
    flex-direction: column;
}

.risk-assessment-status {
    display: block;
    margin-top: 4px;

    color: var(--navy);
    font-size: 1.65rem;
    line-height: 1.2;
}

.risk-band-wrapper {
    margin: 0 0 44px;
    padding: 0 10px;
}

.risk-band-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 9px;

    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.risk-band {
    position: relative;
    width: 100%;
    height: 30px;

    border: 1px solid rgba(23, 33, 43, 0.18);
    border-radius: 999px;

    background: linear-gradient(90deg,
            #72bf7b 0%,
            #bed66f 30%,
            #e3d66c 50%,
            #efa75d 72%,
            #cf6762 100%);

    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.45);
}

.risk-band-marker {
    position: absolute;
    top: -9px;

    display: flex;
    flex-direction: column;
    align-items: center;

    transform: translateX(-50%);
}

.risk-band-pointer {
    display: block;
    width: 4px;
    height: 48px;

    background: var(--navy);
    border-radius: 999px;

    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.9);
}

.risk-band-marker-label {
    display: block;
    margin-top: 7px;
    padding: 4px 9px;

    color: white;
    background: var(--navy);
    border-radius: 999px;

    font-size: 0.7rem;
    font-weight: 800;
    white-space: nowrap;
}

.risk-metrics {
    margin-top: 50px;
}

.risk-assessment-description {
    margin: 22px 0 0;

    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

.public-methodology-note {
    max-width: 760px;
    margin: 12px auto 0;

    color: var(--muted);
    font-size: 0.8rem;
    text-align: center;
}

.etf-group-stack {
    margin-top: 16px;
    display: grid;
    gap: 12px;
}

.etf-group-panel {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.etf-group-panel summary {
    padding: 15px 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    cursor: pointer;
    color: var(--navy);
    font-weight: 800;
    list-style: none;
}

.etf-group-panel summary::-webkit-details-marker {
    display: none;
}

.etf-group-panel summary::after {
    content: "+";
    margin-left: auto;
    color: var(--blue);
    font-size: 1.15rem;
}

.etf-group-panel[open] summary::after {
    content: "−";
}

.etf-group-count {
    margin-left: auto;
    padding: 3px 8px;

    border-radius: 999px;
    background: #edf3f8;
    color: var(--navy);

    font-size: 0.75rem;
    font-weight: 800;
}

.etf-score-list {
    border-top: 1px solid var(--border);
}

.etf-score-row {
    padding: 11px 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    border-bottom: 1px solid var(--border);
}

.etf-score-row:last-child {
    border-bottom: 0;
}

.etf-score-name {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.etf-score-name strong {
    color: var(--navy);
}

.etf-score-name span {
    color: var(--muted);
    font-size: 0.82rem;
}

@media (max-width: 820px) {

    .metric-grid,
    .metric-grid-two,
    .metric-grid-three {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .two-column-grid {
        grid-template-columns: 1fr;
    }

    .site-header .page-shell {
        padding: 18px 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .last-updated {
        text-align: left;
    }
}

@media (max-width: 520px) {
    .page-shell {
        width: min(100% - 20px, 1180px);
    }

    .metric-grid,
    .metric-grid-two,
    .metric-grid-three {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding-top: 34px;
    }

    .content-card {
        padding: 14px;
    }

    .card-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .plotly-chart iframe {
        height: 440px;
    }

    .risk-assessment-card {
        padding: 16px;
    }

    .risk-assessment-heading {
        flex-direction: column;
        margin-bottom: 28px;
    }

    .risk-band-wrapper {
        padding: 0 4px;
    }

    .risk-band-labels {
        font-size: 0.7rem;
    }

    .risk-band-marker-label {
        font-size: 0.62rem;
    }

    .risk-metrics {
        margin-top: 54px;
    }

    .etf-score-row {
        padding: 10px 14px;
    }

    .etf-score-name span {
        font-size: 0.76rem;
    }

    .etf-group-panel summary {
        padding: 12px 14px;
    }

    .etf-group-count {
        font-size: 0.70rem;
    }

    .brand-logo {
        height: 52px;
    }
}

/* =========================================================
   ULTIMATE SUBSCRIPTION TEASER
   ========================================================= */

.subscription-teaser {
    margin: 28px 0;
    padding: 28px;
    border: 1px solid #d7dee8;
    border-radius: 14px;
    background: #f8fafc;
    text-align: center;
}

.subscription-teaser-eyebrow {
    margin-bottom: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #6b7280;
}

.subscription-teaser h3 {
    margin: 4px 0 10px;
}

.subscription-teaser p {
    max-width: 720px;
    margin: 0 auto 12px;
    color: #4b5563;
    line-height: 1.55;
}

.subscription-teaser-note {
    margin-bottom: 18px;
    font-size: 0.9rem;
    color: #6b7280;
}

.subscription-teaser-button {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 8px;
    background: #111827;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.subscription-teaser-button:hover {
    opacity: 0.9;
}

/* =========================================================
   PUBLIC ULTSCORE SIX-CATEGORY SUMMARY
   ========================================================= */

.public-ultscore-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 26px;
}

.public-ultscore-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #d1d5db;
}

.public-ultscore-card summary {
    list-style: none;
    cursor: pointer;
    padding: 16px;
    text-align: center;
}

.public-ultscore-card summary::-webkit-details-marker {
    display: none;
}

.public-ultscore-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
}

.public-ultscore-count {
    display: block;
    margin-top: 5px;
    font-size: 1.8rem;
    line-height: 1.1;
}

.public-ultscore-count-label {
    display: block;
    margin-top: 2px;
    font-size: 0.75rem;
    opacity: 0.75;
}

.public-ultscore-teaser {
    padding: 14px 16px 17px;
    border-top: 1px solid rgba(0, 0, 0, 0.10);
    text-align: center;
}

.public-ultscore-example {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.public-ultscore-teaser p {
    margin: 8px 0 12px;
    font-size: 0.82rem;
}


/* Exceptionally Strong — dark green */

.public-group-exceptional-strong {
    background: #1b5e20;
    color: #ffffff;
}


/* Strong — pale green */

.public-group-strong {
    background: #eaf7ea;
    color: #1b5e20;
    border-color: #81c784;
}


/* Moderately Strong — neutral gray */

.public-group-moderate-strong {
    background: #f3f4f6;
    color: #374151;
}


/* Moderately Weak — neutral gray */

.public-group-moderate-weak {
    background: #f3f4f6;
    color: #4b5563;
}


/* Weak — pale red */

.public-group-weak {
    background: #fdecec;
    color: #b71c1c;
    border-color: #ef9a9a;
}


/* Exceptionally Weak — dark red */

.public-group-exceptional-weak {
    background: #b71c1c;
    color: #ffffff;
}


/* Keep unlock button readable inside dark cards */

.public-group-exceptional-strong .subscription-teaser-button,
.public-group-exceptional-weak .subscription-teaser-button {
    background: #ffffff;
    color: #111827;
}


/* Mobile */

@media (max-width: 700px) {

    .public-ultscore-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   ULTIMATE SUBSCRIPTION PLANS PAGE
   ========================================================= */

.subscriptions-page {
    max-width: 1440px;
    margin: 0 auto;
    padding: 36px 28px 60px;
    color: #253047;
}

.subscriptions-navigation {
    margin-bottom: 28px;
}

.subscriptions-navigation a {
    color: #334155;
    font-weight: 600;
    text-decoration: none;
}

.subscriptions-navigation a:hover {
    text-decoration: underline;
}

.subscriptions-header {
    margin-bottom: 24px;
}

.subscriptions-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin: 0 0 18px;
}

.subscriptions-header p {
    color: #7b8494;
    line-height: 1.65;
}

.subscriptions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.subscription-plan-card {
    display: flex;
    flex-direction: column;
    min-height: 570px;
    padding: 22px 20px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
}

.subscription-plan-card h2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 6px 0;
}

.subscription-plan-subtitle {
    text-align: center;
    color: #64748b;
    margin: 0 0 20px;
}

.subscription-plan-prices {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 18px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.subscription-plan-prices span {
    color: #64748b;
    font-size: 0.88rem;
    margin-bottom: 4px;
}

.subscription-plan-prices strong {
    font-size: 1.45rem;
    margin: 0;
}

/* Add spacing specifically before Advisor / RIA */

.subscription-plan-prices span:nth-of-type(2) {
    margin-top: 28px;
}

.subscription-plan-prices small {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 400;
}

.subscription-plan-features {
    padding-top: 18px;
    font-size: 0.91rem;
}

.subscription-plan-features>strong {
    font-size: 0.85rem;
}

.subscription-plan-features ul {
    padding-left: 22px;
    line-height: 1.6;
}

.subscription-plan-features li {
    margin-bottom: 9px;
}

.subscription-plan-footer {
    margin-top: auto;
    padding-top: 20px;
}

.subscription-plan-action {
    padding: 13px 12px;
    background: #eaf3ff;
    border-radius: 9px;
    font-weight: 800;
    text-align: center;
    font-size: 0.9rem;
}

.subscription-coming-soon {
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #64748b;
    margin: 15px 0 0;
}

.subscriptions-disclaimer {
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 28px;
}

@media (max-width: 900px) {
    .subscriptions-grid {
        grid-template-columns: 1fr;
    }

    .subscription-plan-card {
        min-height: 0;
    }

    .subscriptions-page {
        padding: 22px 14px 40px;
    }

    .subscriptions-header h1 {
        font-size: 1.8rem;
    }
}


/* =========================================================
   ULTIMATE CUSTOMER LOGIN AND ACCOUNT
   ========================================================= */

.customer-auth-card {
    max-width: 480px;
    margin: 35px auto 70px;
    padding: 32px;
    background: #ffffff;
    border: 1px solid #dfe4ea;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.customer-auth-card h2 {
    margin-top: 0;
    margin-bottom: 18px;
}

.customer-auth-card form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.customer-auth-card label {
    font-weight: 600;
}

.customer-auth-card input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    font-size: 15px;
}

.customer-auth-card button {
    margin-top: 12px;
    padding: 13px;
    border: 0;
    border-radius: 7px;
    background: #183b63;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
}

.customer-auth-card button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.customer-auth-note {
    margin-top: 20px;
    font-size: 13px;
    color: #64748b;
}

.customer-account-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #e5e7eb;
}

@media (max-width: 600px) {
    .customer-auth-card {
        padding: 22px;
        margin: 24px auto 50px;
    }

    .customer-account-row {
        flex-direction: column;
        gap: 5px;
    }
}

#sign-out-customer {
    margin-top: 25px;
    padding: 12px 20px;
    border: 0;
    border-radius: 7px;
    background: #183b63;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

#customer-account-message {
    margin-bottom: 24px;
    color: #475569;
}


/* ULTIMATE SUBSCRIBER ETF DASHBOARD */

.customer-dashboard {
    background: #fff;
    border: 1px solid #dfe4ea;
    border-radius: 14px;
    padding: 28px;
    margin: 30px 0 60px;
}

.dashboard-toolbar,
.dashboard-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.dashboard-toolbar button,
.dashboard-pagination button {
    padding: 10px 18px;
    background: #183b63;
    color: #fff;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
}

.dashboard-toolbar button:disabled,
.dashboard-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dashboard-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 28px 0;
}

.dashboard-controls label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 600;
}

.dashboard-controls input,
.dashboard-controls select {
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    font: inherit;
    min-width: 0;
}

.dashboard-table-wrap {
    overflow-x: auto;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.dashboard-table th,
.dashboard-table td {
    padding: 13px 12px;
    border-bottom: 1px solid #e5e7eb;
}

.dashboard-table th {
    background: #f1f5f9;
    white-space: nowrap;
}

.dashboard-pagination {
    margin-top: 24px;
}

@media (max-width: 700px) {
    .dashboard-controls {
        grid-template-columns: 1fr;
    }

    .customer-dashboard {
        padding: 16px;
    }
}

.customer-dashboard-button {
    display: inline-block;
    margin-top: 24px;
    padding: 12px 20px;
    background: #183b63;
    color: white;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 600;
}

.customer-dashboard-button:hover {
    background: #245487;
}

#customer-dashboard-link[hidden] {
    display: none;
}


/* ETF ANALYSIS CARDS */

.etf-ticker-button {
    background: transparent;
    border: none;
    color: #183b63;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 0;
    text-decoration: underline;
}

.etf-analysis-panel {
    margin-top: 28px;
    padding: 26px;
    border: 1px solid #dbe3eb;
    border-radius: 12px;
    background: #f8fafc;
}

.etf-analysis-panel[hidden],
.etf-analysis-metric[hidden] {
    display: none;
}

.etf-analysis-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.etf-analysis-header h2 {
    margin: 0;
}

.etf-analysis-header button {
    padding: 9px 16px;
    border: none;
    border-radius: 6px;
    background: #183b63;
    color: white;
    cursor: pointer;
}

.etf-analysis-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.etf-analysis-metric {
    background: white;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.etf-analysis-metric span {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
}

.etf-analysis-metric strong {
    font-size: 22px;
}

@media (max-width: 700px) {
    .etf-analysis-grid {
        grid-template-columns: 1fr;
    }
}


/* SUBSCRIBER ULTSCORE CLASSIFICATION LISTS */

#subscriber-classification-section[hidden] {
    display: none;
}

.subscriber-group-etfs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
    text-align: left;
}

.subscriber-group-etfs .etf-ticker-button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 7px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.subscriber-group-etfs .etf-ticker-button:hover {
    background: rgba(255, 255, 255, 0.25);
}


/* SUBSCRIBER CLASSIFICATION PAGINATION */

.subscriber-group-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 14px;
}

.subscriber-group-pagination[hidden] {
    display: none;
}

.subscriber-group-pagination button {
    padding: 7px 10px;
    border: 0;
    border-radius: 6px;
    background: #183b63;
    color: white;
    cursor: pointer;
}

.subscriber-group-pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.subscriber-group-page {
    font-size: 12px;
    white-space: nowrap;
}


/* Seven-category ULTSCORE classification system */

.public-group-moderate-favorable {
    background: #e8f5e9;
    border-color: #a5d6a7;
    color: #256b32;
}

.public-group-neutral {
    background: #f1f3f5;
    border-color: #cbd5e1;
    color: #475569;
}

.public-group-moderate-unfavorable {
    background: #fff3e0;
    border-color: #ffcc80;
    color: #9a5700;
}


/* =========================================================
   SUBSCRIBER ULTSCORE — BALANCED SEVEN-CARD LAYOUT
   ========================================================= */

@media (min-width: 1100px) {
    #subscriber-classification-section .public-ultscore-grid {
        display: grid;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 16px;
    }

    /* First row: four equal cards */
    #subscriber-classification-section .public-ultscore-card:nth-child(-n+4) {
        grid-column: span 3;
    }

    /* Second row: three equal centered cards */
    #subscriber-classification-section .public-ultscore-card:nth-child(5) {
        grid-column: 2 / span 3;
    }

    #subscriber-classification-section .public-ultscore-card:nth-child(6) {
        grid-column: 5 / span 3;
    }

    #subscriber-classification-section .public-ultscore-card:nth-child(7) {
        grid-column: 8 / span 3;
    }
}

@media (min-width: 701px) and (max-width: 1099px) {
    #subscriber-classification-section .public-ultscore-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #subscriber-classification-section .public-ultscore-card:last-child {
        grid-column: 1 / -1;
    }
}


/* =========================================================
   CUSTOMER ETF HISTORICAL CHARTS
   ========================================================= */

.etf-chart-section {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #dbe3eb;
}

.etf-chart-section[hidden] {
    display: none;
}

.etf-chart-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.etf-chart-controls select {
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: white;
}

.etf-chart-container {
    position: relative;
    width: 100%;
    height: 380px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
}

#etf-history-chart {
    width: 100%;
    height: 100%;
}

#etf-chart-status {
    margin-top: 12px;
    font-size: 13px;
    color: #64748b;
}


/* =========================================================
   ULTIMATE PUBLIC WEBSITE NAVIGATION
   ========================================================= */

.ultimate-main-nav {
    background: #183858;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ultimate-nav-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    padding-top: 13px;
    padding-bottom: 13px;
}

.ultimate-nav-link {
    color: #e8f0f8;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.ultimate-nav-link:hover,
.ultimate-nav-link:focus-visible {
    color: #ffffff;
    text-decoration: underline;
}

@media (max-width: 700px) {
    .ultimate-nav-inner {
        gap: 12px 18px;
    }

    .ultimate-nav-link {
        font-size: 0.85rem;
    }
}


/* =========================================================
   ULTIMATE HOMEPAGE
   ========================================================= */

.ultimate-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

.ultimate-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.ultimate-featured-grid .content-card {
    margin: 0;
}

@media (max-width: 800px) {
    .ultimate-featured-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   ULTIMATE PUBLISHER DASHBOARD
   ========================================================= */

.subscriptions-page:has(#publisher-dashboard-section) {
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 32px 80px;
}

.subscriptions-page:has(#publisher-dashboard-section) .subscriptions-header {
    margin-bottom: 32px;
}

.subscriptions-page:has(#publisher-dashboard-section) .subscriptions-header h1 {
    color: #172b4d;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 750;
    letter-spacing: -0.025em;
}

/* Login panel */

#publisher-login-section {
    max-width: 480px;
    margin: 32px auto;
    padding: 32px;
    background: #ffffff;
    border: 1px solid #dce3ec;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(20, 40, 70, 0.07);
}

#publisher-login-section h2 {
    margin-top: 0;
    color: #172b4d;
}

#publisher-login-form {
    display: grid;
    gap: 12px;
}

#publisher-login-form label,
#publisher-editor-form label {
    font-weight: 650;
    color: #253858;
}

#publisher-login-form input,
#publisher-editor-form input:not([type="hidden"]),
#publisher-editor-form textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    color: #172b4d;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}

#publisher-login-form input:focus,
#publisher-editor-form input:focus,
#publisher-editor-form textarea:focus {
    outline: 2px solid #5a83bc;
    outline-offset: 1px;
    border-color: #5a83bc;
}

/* Shared buttons */

#publisher-login-section button,
#publisher-dashboard-section button {
    padding: 10px 18px;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    border: 1px solid #bdcadd;
    border-radius: 8px;
    background: #ffffff;
    color: #172b4d;
    cursor: pointer;
    transition: background 0.15s ease,
        border-color 0.15s ease;
}

#publisher-login-section button:hover:not(:disabled),
#publisher-dashboard-section button:hover:not(:disabled) {
    background: #eaf0f8;
    border-color: #8ba6c9;
}

#publisher-login-section button:disabled,
#publisher-dashboard-section button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#publisher-login-form button,
#publisher-new-article,
#publisher-save-draft,
#publisher-publish {
    background: #17365d !important;
    border-color: #17365d !important;
    color: #ffffff !important;
}

#publisher-login-form button:hover,
#publisher-new-article:hover:not(:disabled),
#publisher-save-draft:hover:not(:disabled),
#publisher-publish:hover:not(:disabled) {
    background: #254e80 !important;
}

/* Google login */

.publisher-google-login {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.publisher-google-login p {
    color: #64748b;
    font-size: 13px;
}

#publisher-google-sign-in {
    width: 100%;
    margin-top: 8px;
}

/* Publishing workspace */

#publisher-dashboard-section .dashboard-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: #17365d;
    color: #ffffff;
    border-radius: 12px;
}

#publisher-dashboard-section .dashboard-toolbar strong {
    font-size: 19px;
    color: #ffffff;
}

#publisher-sign-out {
    background: #ffffff !important;
    color: #17365d !important;
}

#publisher-identity {
    margin: 16px 0 28px;
    font-size: 14px;
    color: #64748b;
}

.publisher-actions,
#publisher-dashboard-section>section:not(.publisher-actions) {
    margin-bottom: 24px;
    padding: 26px;
    background: #ffffff;
    border: 1px solid #dce3ec;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(20, 40, 70, 0.035);
}

#publisher-dashboard-section h2 {
    margin: 0 0 20px;
    color: #172b4d;
    font-size: 23px;
}

.publisher-actions button {
    margin-right: 10px;
    margin-bottom: 8px;
}

#publisher-publications {
    min-height: 45px;
    line-height: 1.7;
}

/* Article editor */

#publisher-editor-form {
    display: grid;
    gap: 14px;
}

#publisher-body {
    min-height: 340px;
    resize: vertical;
    line-height: 1.65;
    font-family: inherit;
}

#publisher-summary {
    min-height: 90px;
    resize: vertical;
}

.publisher-editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.publisher-editor-actions button {
    margin: 0;
}

#publisher-unpublish {
    border-color: #c98c8c !important;
    color: #963b3b !important;
}

/* Preview and revisions */

#publisher-preview-section,
#publisher-revisions-section {
    margin-top: 28px;
    padding: 24px;
    background: #f7f9fc;
    border: 1px solid #dce3ec;
    border-radius: 10px;
}

#publisher-preview-section h3,
#publisher-revisions-section h3 {
    color: #17365d;
}

#publisher-preview-body {
    white-space: pre-wrap;
    line-height: 1.75;
}

/* Status messages */

#publisher-message {
    margin-top: 20px;
    color: #254e80;
    font-size: 14px;
    font-weight: 550;
}

/* Preserve hidden-state behavior */

#publisher-login-section[hidden],
#publisher-dashboard-section[hidden],
#publisher-editor-section[hidden],
#publisher-preview-section[hidden],
#publisher-revisions-section[hidden] {
    display: none !important;
}

/* Mobile layout */

@media (max-width: 700px) {
    .subscriptions-page:has(#publisher-dashboard-section) {
        padding: 24px 16px 48px;
    }

    #publisher-login-section {
        padding: 22px;
    }

    .publisher-actions,
    #publisher-dashboard-section>section:not(.publisher-actions) {
        padding: 18px;
    }

    #publisher-dashboard-section .dashboard-toolbar {
        flex-wrap: wrap;
    }

    .publisher-editor-actions {
        flex-direction: column;
    }

    .publisher-editor-actions button {
        width: 100%;
    }
}

.brand-logo-link {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background: #ffffff;
    border-radius: 5px;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: auto;
    height: 66px;
    max-width: 100%;
    object-fit: contain;
}