body.sd-fg-body {
    background: #f4f7fb;
    color: #101828;
}

body.sd-fg-body .sd-main {
    padding-top: 24px;
    padding-bottom: 0;
    background: #f4f7fb;
}

.sd-fg-page {
    min-height: 100vh;
    padding: 34px 0 56px;
}

.sd-fg-shell {
    width: 100%;
    max-width: none;
    margin: 0;
}

.sd-fg-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    align-items: stretch;
    margin-bottom: 18px;
}

.sd-fg-hero__copy,
.sd-fg-score-card,
.sd-fg-panel,
.sd-fg-market-card,
.sd-fg-faq {
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.sd-fg-hero__banner.sd-fg-hero__copy {
    min-height: 220px;
    border: 0;
    box-shadow: none;
}

.sd-fg-hero__banner h1,
.sd-fg-hero__banner p,
.sd-fg-hero__banner .ds-kicker {
    color: #fff !important;
}

.sd-fg-hero__banner .sd-fg-btn {
    background: #fff;
    color: #0b3d91;
    border-color: #fff;
}

.sd-fg-hero__banner .sd-fg-btn--primary {
    background: #fee500;
    color: #111827;
    border-color: #fee500;
}

.sd-fg-hero__copy {
    padding: 30px;
}

.sd-fg-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #2563eb;
    font-size: 0.82rem;
    font-weight: 800;
}

.sd-fg-hero h1 {
    margin: 12px 0 12px;
    color: #0f172a;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.sd-fg-hero p {
    max-width: 760px;
    margin: 0;
    color: #475467;
    font-size: 1rem;
    line-height: 1.75;
}

.sd-fg-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.sd-fg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #ccd6e5;
    border-radius: 6px;
    background: #ffffff;
    color: #1d2939;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.sd-fg-btn:hover {
    border-color: #2563eb;
    color: #1d4ed8;
}

.sd-fg-btn--primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.sd-fg-btn--primary:hover {
    background: #1d4ed8;
    color: #ffffff;
}

.sd-fg-btn--small {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.84rem;
}

.sd-fg-score-card {
    padding: 22px;
    display: flex;
    flex-direction: column;
}

.sd-fg-score-card__top,
.sd-fg-score-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.sd-fg-score-card__top span,
.sd-fg-score-card__meta span {
    color: #667085;
    font-size: 0.82rem;
    font-weight: 700;
}

.sd-fg-score-card__top strong {
    padding: 5px 10px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #1d2939;
    font-size: 0.84rem;
}

.sd-fg-gauge {
    width: 230px;
    height: 230px;
    margin: 18px auto;
    border-radius: 999px;
    background:
        radial-gradient(circle at center, #ffffff 0 58%, transparent 59%),
        conic-gradient(#2563eb var(--sd-fg-score), #e7edf6 0);
    display: grid;
    place-items: center;
    border: 1px solid #e3e9f2;
}

.sd-fg-state-extreme_fear .sd-fg-gauge,
.sd-fg-state-fear .sd-fg-gauge {
    background:
        radial-gradient(circle at center, #ffffff 0 58%, transparent 59%),
        conic-gradient(#ef4444 var(--sd-fg-score), #f1f5f9 0);
}

.sd-fg-state-neutral .sd-fg-gauge {
    background:
        radial-gradient(circle at center, #ffffff 0 58%, transparent 59%),
        conic-gradient(#f59e0b var(--sd-fg-score), #f1f5f9 0);
}

.sd-fg-state-greed .sd-fg-gauge,
.sd-fg-state-extreme_greed .sd-fg-gauge {
    background:
        radial-gradient(circle at center, #ffffff 0 58%, transparent 59%),
        conic-gradient(#10b981 var(--sd-fg-score), #f1f5f9 0);
}

.sd-fg-gauge__inner {
    text-align: center;
}

.sd-fg-gauge__inner span {
    display: block;
    color: #0f172a;
    font-size: 3.4rem;
    line-height: 1;
    font-weight: 900;
}

.sd-fg-gauge__inner small {
    color: #667085;
    font-weight: 800;
}

.sd-fg-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.sd-fg-market-card {
    min-width: 0;
    padding: 14px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.sd-fg-market-card > i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
}

.sd-fg-market-card span {
    display: block;
    color: #667085;
    font-size: 0.76rem;
    font-weight: 800;
}

.sd-fg-market-card strong {
    display: block;
    color: #101828;
    font-size: 1rem;
    line-height: 1.2;
}

.sd-fg-market-card em {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.sd-fg-market-card em.is-up {
    background: #ecfdf3;
    color: #027a48;
}

.sd-fg-market-card em.is-down {
    background: #fff1f3;
    color: #c01048;
}

.sd-fg-market-card em.is-flat {
    background: #f2f4f7;
    color: #475467;
}

.sd-fg-grid,
.sd-fg-guide-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 18px;
    margin-bottom: 18px;
}

.sd-fg-guide-grid {
    margin-top: 24px;
}

.sd-fg-panel {
    padding: 22px;
}

.sd-fg-panel__head {
    margin-bottom: 16px;
}

.sd-fg-panel__head--row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.sd-fg-panel h2 {
    margin: 7px 0 0;
    color: #101828;
    font-size: 1.35rem;
    line-height: 1.35;
    letter-spacing: 0;
}

.sd-fg-panel__head p {
    margin: 7px 0 0;
    color: #667085;
}

.sd-fg-summary-list {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sd-fg-summary-list li {
    position: relative;
    padding-left: 18px;
    color: #344054;
    line-height: 1.65;
}

.sd-fg-summary-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2563eb;
}

.sd-fg-action-note {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin-top: 18px;
    padding: 14px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e4eaf3;
}

.sd-fg-action-note i {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #dbeafe;
    color: #1d4ed8;
}

.sd-fg-action-note p,
.sd-fg-risk {
    margin: 0;
    color: #475467;
    line-height: 1.65;
}

.sd-fg-periods {
    display: grid;
    gap: 12px;
}

.sd-fg-period {
    display: grid;
    grid-template-columns: 58px 54px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.sd-fg-period span {
    color: #667085;
    font-size: 0.84rem;
    font-weight: 800;
}

.sd-fg-period strong {
    color: #101828;
    font-size: 1rem;
}

.sd-fg-mini-bar,
.sd-fg-factor__bar {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #eef2f7;
}

.sd-fg-mini-bar i,
.sd-fg-factor__bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #2563eb;
}

.sd-fg-chart-panel {
    margin-bottom: 18px;
}

.sd-fg-chart {
    width: 100%;
    height: 320px;
}

.sd-fg-empty {
    margin: 12px 0 0;
    color: #667085;
}

.sd-fg-factor-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.sd-fg-factor {
    min-width: 0;
    padding: 15px;
    border: 1px solid #e1e8f2;
    border-radius: 8px;
    background: #fbfcfe;
}

.sd-fg-factor__top,
.sd-fg-factor__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.sd-fg-factor__top strong {
    color: #101828;
    font-size: 0.95rem;
}

.sd-fg-factor__top span {
    color: #101828;
    font-size: 1.2rem;
    font-weight: 900;
}

.sd-fg-factor__bar {
    margin: 12px 0 9px;
}

.sd-fg-factor__meta em {
    padding: 3px 8px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #475467;
    font-size: 0.74rem;
    font-style: normal;
    font-weight: 900;
}

.sd-fg-factor__meta small {
    color: #667085;
    font-size: 0.76rem;
    text-align: right;
}

.sd-fg-factor p {
    margin: 10px 0 0;
    color: #667085;
    font-size: 0.86rem;
    line-height: 1.55;
}

.sd-fg-state-extreme_fear .sd-fg-factor__bar i,
.sd-fg-state-fear .sd-fg-factor__bar i {
    background: #ef4444;
}

.sd-fg-state-neutral .sd-fg-factor__bar i {
    background: #f59e0b;
}

.sd-fg-state-greed .sd-fg-factor__bar i,
.sd-fg-state-extreme_greed .sd-fg-factor__bar i {
    background: #10b981;
}

.sd-fg-step-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.sd-fg-step-list li {
    display: grid;
    gap: 4px;
    padding: 13px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e4eaf3;
}

.sd-fg-step-list strong {
    color: #101828;
}

.sd-fg-step-list span {
    color: #667085;
    line-height: 1.55;
}

.sd-fg-risk-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
}

.sd-fg-risk-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #dce4f0;
    color: #344054;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.88rem;
}

.sd-fg-scale {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.sd-fg-scale__item {
    min-width: 0;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #e1e8f2;
    background: #fbfcfe;
}

.sd-fg-scale__item strong,
.sd-fg-scale__item span {
    display: block;
}

.sd-fg-scale__item strong {
    color: #667085;
    font-size: 0.78rem;
}

.sd-fg-scale__item span {
    margin-top: 4px;
    color: #101828;
    font-weight: 900;
}

.sd-fg-scale__item p {
    margin: 8px 0 0;
    color: #667085;
    font-size: 0.82rem;
    line-height: 1.5;
}

.sd-fg-faq {
    margin-top: 18px;
    padding: 22px;
}

.sd-fg-faq h2 {
    margin: 0 0 14px;
    color: #101828;
    font-size: 1.35rem;
}

.sd-fg-faq details {
    border-top: 1px solid #e4eaf3;
    padding: 13px 0;
}

.sd-fg-faq details:last-child {
    border-bottom: 1px solid #e4eaf3;
}

.sd-fg-faq summary {
    cursor: pointer;
    color: #101828;
    font-weight: 900;
}

.sd-fg-faq p {
    margin: 10px 0 0;
    color: #667085;
    line-height: 1.65;
}

@media (max-width: 1100px) {
    .sd-fg-hero,
    .sd-fg-grid,
    .sd-fg-guide-grid {
        grid-template-columns: 1fr;
    }

    .sd-fg-strip,
    .sd-fg-factor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sd-fg-scale {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    body.sd-fg-body .sd-main {
        padding-top: 24px;
    }

    .sd-fg-page {
        padding: 18px 0 36px;
    }

    .sd-fg-shell {
        width: 100%;
        max-width: none;
    }

    .sd-fg-hero__copy,
    .sd-fg-score-card,
    .sd-fg-panel,
    .sd-fg-faq {
        padding: 16px;
    }

    .sd-fg-strip,
    .sd-fg-factor-grid,
    .sd-fg-scale,
    .sd-fg-risk-links {
        grid-template-columns: 1fr;
    }

    .sd-fg-market-card {
        grid-template-columns: 34px minmax(0, 1fr) auto;
    }

    .sd-fg-score-card__top,
    .sd-fg-score-card__meta,
    .sd-fg-panel__head--row {
        align-items: flex-start;
        flex-direction: column;
    }

    .sd-fg-gauge {
        width: 200px;
        height: 200px;
    }

    .sd-fg-chart {
        height: 260px;
    }
}

/* Current sentiment and its date stay prominent before the longer explanation. */
html.ds-theme body.sd-focused-body .ds-content-frame .sd-fg-hero { gap: 12px; margin-bottom: 12px; align-items: stretch; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-fg-shell { display: flex; flex-direction: column; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-fg-shell > * { order: 4; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-fg-shell > .sd-fg-hero { order: 0; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-fg-shell > .sd-fg-strip { order: 1; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-fg-shell > .sd-fg-chart-panel { order: 2; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-fg-shell > .sd-fg-grid { order: 3; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-fg-hero .sd-fg-hero__copy { padding: 16px !important; margin-bottom: 0; background: #fff !important; color: #182b49; border: 1px solid #e5eaf1; box-shadow: none; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-fg-hero .sd-fg-hero__copy::before,
html.ds-theme body.sd-focused-body .ds-content-frame .sd-fg-hero .sd-fg-hero__copy::after { display: none; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-fg-hero .sd-fg-hero__copy h1 { color: #182b49 !important; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-fg-hero .sd-fg-hero__copy p { color: #475569 !important; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-fg-hero h1 { margin: 4px 0 8px; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-fg-hero p { font-size: 15px; line-height: 1.65; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-fg-hero__actions { gap: 8px; margin-top: 12px; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-fg-score-card { padding: 16px; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-fg-gauge { width: 170px; height: 170px; margin: 10px auto; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-fg-gauge__inner span { font-size: 42px; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-fg-score-card__meta { gap: 4px 10px; flex-wrap: wrap; align-items: baseline; flex-direction: row; }
html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-fg-panel, .sd-fg-market-card) { padding: 16px; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-fg-market-card { grid-template-columns: 28px minmax(0, 1fr); gap: 6px 8px; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-fg-market-card > i { grid-column: 1; grid-row: 1 / 3; width: 28px; height: 28px; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-fg-market-card > div { grid-column: 2; grid-row: 1; min-width: 0; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-fg-market-card > div > span { white-space: nowrap; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-fg-market-card > div > strong { overflow-wrap: anywhere; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-fg-market-card > em { grid-column: 2; grid-row: 2; justify-self: start; }
html.ds-theme body.sd-focused-body .ds-content-frame :is(.sd-fg-strip, .sd-fg-grid, .sd-fg-chart-panel) { margin-bottom: 12px; }
html.ds-theme body.sd-focused-body .ds-content-frame .sd-fg-panel__head { margin-bottom: 10px; }
@container ds-focused-content (max-width: 759px) {
    html.ds-theme body.sd-focused-body .ds-content-frame .sd-fg-score-card { order: -1; }
    html.ds-theme body.sd-focused-body .ds-content-frame .sd-fg-score-card__top { flex-direction: row; align-items: center; }
    html.ds-theme body.sd-focused-body .ds-content-frame .sd-fg-score-card { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 6px 12px; align-items: center; }
    html.ds-theme body.sd-focused-body .ds-content-frame .sd-fg-gauge { grid-column: 2; grid-row: 1 / 3; width: 132px; height: 132px; margin: 0; }
    html.ds-theme body.sd-focused-body .ds-content-frame .sd-fg-score-card__meta { grid-column: 1; align-self: start; }
    html.ds-theme body.sd-focused-body .ds-content-frame .sd-fg-gauge__inner span { font-size: 36px; }
}
