/*
Theme Name: Finance Charts
Author: Finance Charts
Description: Custom lightweight theme for The Finance Charts.
Version: 0.5.2
Text Domain: finance-charts
*/

:root {
    --fc-bg: #f7f8fa;
    --fc-bg-soft: #f1f4f7;
    --fc-surface: #ffffff;
    --fc-surface-2: #f6f8fb;
    --fc-text: #111827;
    --fc-muted: #667085;
    --fc-subtle: #98a2b3;
    --fc-border: rgba(17, 24, 39, 0.09);
    --fc-border-strong: rgba(17, 24, 39, 0.15);
    --fc-accent: #a9782f;
    --fc-accent-strong: #8b6226;
    --fc-accent-soft: rgba(169, 120, 47, 0.09);
    --fc-success: #217a4b;
    --fc-navy: #16324f;
    --fc-max: 1180px;
    --fc-radius: 20px;
    --fc-radius-sm: 12px;
    --fc-shadow: 0 24px 70px rgba(30, 41, 59, 0.10);
}

html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 50% -12%, rgba(22, 50, 79, 0.08), transparent 35rem),
        var(--fc-bg);
    color: var(--fc-text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

::selection {
    background: #eadfcf;
    color: var(--fc-text);
}

.fc-container {
    width: min(calc(100% - 40px), var(--fc-max));
    margin-inline: auto;
}

.fc-skip-link {
    position: absolute;
    left: -9999px;
    top: 12px;
    z-index: 9999;
    padding: 10px 14px;
    background: var(--fc-text);
    color: #fff;
    border-radius: 8px;
}

.fc-skip-link:focus {
    left: 12px;
}

.fc-site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--fc-border);
    background: rgba(247, 248, 250, 0.88);
    backdrop-filter: blur(16px);
}

.fc-header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.fc-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 760;
    letter-spacing: -0.02em;
    color: var(--fc-text);
}

.fc-brand-mark {
    width: 28px;
    height: 28px;
    border: 1px solid var(--fc-border-strong);
    border-radius: 9px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #fffaf2, #f2eee7);
    box-shadow: 0 5px 16px rgba(17, 24, 39, 0.06);
}

.fc-brand-mark::before {
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: 6px;
    height: 1px;
    background: var(--fc-accent);
    box-shadow:
        4px -5px 0 -0.2px var(--fc-accent),
        8px -2px 0 -0.2px var(--fc-accent),
        12px -10px 0 -0.2px var(--fc-accent);
    transform: rotate(-10deg);
    transform-origin: left center;
}

.fc-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: var(--fc-muted);
    font-size: 14px;
}

.fc-nav a {
    transition: color .18s ease;
}

.fc-nav a:hover,
.fc-nav a:focus-visible {
    color: var(--fc-text);
}

.fc-header-cta,
.fc-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--fc-border-strong);
    padding: 0 18px;
    font-weight: 680;
    font-size: 14px;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.fc-header-cta:hover,
.fc-button:hover {
    transform: translateY(-1px);
    border-color: rgba(169, 120, 47, .48);
}

.fc-header-cta {
    background: var(--fc-surface);
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
}

.fc-button-primary {
    background: var(--fc-navy);
    color: #fff;
    border-color: var(--fc-navy);
    box-shadow: 0 10px 28px rgba(22, 50, 79, 0.14);
}

.fc-button-primary:hover {
    border-color: var(--fc-navy);
    background: #102a42;
}

.fc-button-secondary {
    background: rgba(255, 255, 255, 0.74);
}

.fc-main {
    overflow: hidden;
}

.fc-hero {
    padding: 112px 0 78px;
    text-align: center;
}

.fc-eyebrow {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 7px 11px;
    border: 1px solid var(--fc-border);
    border-radius: 999px;
    color: #475467;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 6px 20px rgba(17, 24, 39, 0.04);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.fc-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--fc-accent);
    box-shadow: 0 0 14px rgba(169, 120, 47, .32);
}

.fc-hero h1 {
    max-width: 850px;
    margin: 28px auto 20px;
    font-size: clamp(44px, 7vw, 82px);
    line-height: .98;
    letter-spacing: -0.055em;
    font-weight: 780;
}

.fc-hero h1 span {
    color: var(--fc-accent-strong);
}

.fc-hero-copy {
    max-width: 680px;
    margin: 0 auto;
    color: var(--fc-muted);
    font-size: clamp(17px, 2vw, 20px);
}

.fc-hero-actions {
    margin-top: 34px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.fc-hero-note {
    margin-top: 18px;
    color: var(--fc-subtle);
    font-size: 13px;
}

.fc-demo {
    margin-top: 68px;
    border: 1px solid var(--fc-border);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--fc-shadow);
    overflow: hidden;
    text-align: left;
}

.fc-demo-toolbar {
    padding: 15px 18px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--fc-border);
    color: var(--fc-muted);
    background: rgba(247, 248, 250, 0.72);
    font-size: 13px;
}

.fc-demo-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    min-height: 380px;
}

.fc-chart-stage {
    position: relative;
    min-height: 380px;
    padding: 34px 30px 22px;
    overflow: hidden;
    background:
        radial-gradient(circle at 60% 30%, rgba(169, 120, 47, 0.06), transparent 18rem),
        #ffffff;
}

.fc-chart-grid {
    position: absolute;
    inset: 34px 30px 42px;
    background:
        linear-gradient(to right, transparent 24.8%, var(--fc-border) 25%, transparent 25.2%, transparent 49.8%, var(--fc-border) 50%, transparent 50.2%, transparent 74.8%, var(--fc-border) 75%, transparent 75.2%),
        linear-gradient(to bottom, transparent 24.8%, var(--fc-border) 25%, transparent 25.2%, transparent 49.8%, var(--fc-border) 50%, transparent 50.2%, transparent 74.8%, var(--fc-border) 75%, transparent 75.2%);
    opacity: .7;
}

.fc-chart-svg {
    position: absolute;
    inset: 42px 30px 46px;
    width: calc(100% - 60px);
    height: calc(100% - 88px);
}

.fc-chart-caption {
    position: absolute;
    left: 30px;
    bottom: 18px;
    color: var(--fc-subtle);
    font-size: 12px;
}

.fc-demo-panel {
    border-left: 1px solid var(--fc-border);
    padding: 26px;
    background: #fbfcfd;
}

.fc-kicker {
    margin: 0 0 8px;
    color: var(--fc-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
}

.fc-result {
    margin: 0;
    font-size: 34px;
    letter-spacing: -.04em;
}

.fc-result-positive {
    color: var(--fc-success);
}

.fc-metric-list {
    margin: 28px 0 0;
    display: grid;
    gap: 14px;
}

.fc-metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--fc-border);
    color: var(--fc-muted);
    font-size: 13px;
}

.fc-metric strong {
    color: var(--fc-text);
    font-weight: 670;
}

.fc-section {
    padding: 88px 0;
}

.fc-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 32px;
}

.fc-section-title {
    max-width: 620px;
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.05;
    letter-spacing: -.04em;
}

.fc-section-copy {
    max-width: 540px;
    margin: 12px 0 0;
    color: var(--fc-muted);
}

.fc-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.fc-card {
    position: relative;
    min-height: 270px;
    padding: 26px;
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 34px rgba(17, 24, 39, 0.045);
}

.fc-card-number {
    color: var(--fc-accent-strong);
    font-size: 12px;
    font-weight: 780;
    letter-spacing: .08em;
}

.fc-card h3 {
    margin: 55px 0 10px;
    font-size: 24px;
    letter-spacing: -.03em;
}

.fc-card p {
    margin: 0;
    color: var(--fc-muted);
    font-size: 14px;
}

.fc-card-tag {
    position: absolute;
    right: 20px;
    top: 20px;
    padding: 6px 9px;
    border-radius: 999px;
    border: 1px solid var(--fc-border);
    background: #fafafa;
    color: var(--fc-muted);
    font-size: 11px;
}

.fc-process {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.fc-process-steps {
    display: grid;
    gap: 14px;
}

.fc-process-step {
    padding: 20px;
    border-radius: var(--fc-radius-sm);
    border: 1px solid var(--fc-border);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.035);
}

.fc-process-step strong {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
}

.fc-process-step span {
    color: var(--fc-muted);
    font-size: 13px;
}

.fc-trust {
    padding: 26px;
    border: 1px solid rgba(169, 120, 47, 0.18);
    border-radius: var(--fc-radius);
    background: linear-gradient(145deg, #fffaf2, #fbf6ee);
}

.fc-trust ul {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.fc-trust li {
    display: flex;
    gap: 10px;
    color: #344054;
}

.fc-trust li::before {
    content: "✓";
    color: var(--fc-accent-strong);
    font-weight: 800;
}

.fc-site-footer {
    border-top: 1px solid var(--fc-border);
    padding: 44px 0 34px;
    color: var(--fc-muted);
    background: rgba(255, 255, 255, 0.62);
}

.fc-footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: flex-start;
}

.fc-footer-copy {
    max-width: 520px;
    margin-top: 10px;
    font-size: 13px;
}

.fc-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 13px;
}

.fc-footer-bottom {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid var(--fc-border);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--fc-subtle);
    font-size: 12px;
}

@media (max-width: 900px) {
    .fc-nav {
        display: none;
    }

    .fc-demo-body,
    .fc-process {
        grid-template-columns: 1fr;
    }

    .fc-demo-panel {
        border-left: 0;
        border-top: 1px solid var(--fc-border);
    }

    .fc-card-grid {
        grid-template-columns: 1fr;
    }

    .fc-section-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    .fc-container {
        width: min(calc(100% - 28px), var(--fc-max));
    }

    .fc-header-inner {
        min-height: 64px;
    }

    .fc-header-cta {
        display: none;
    }

    .fc-hero {
        padding-top: 76px;
    }

    .fc-hero h1 {
        font-size: clamp(40px, 14vw, 62px);
    }

    .fc-demo {
        margin-top: 48px;
    }

    .fc-demo-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .fc-chart-stage {
        min-height: 300px;
        padding-inline: 18px;
    }

    .fc-chart-grid {
        inset-inline: 18px;
    }

    .fc-chart-svg {
        left: 18px;
        width: calc(100% - 36px);
    }

    .fc-section {
        padding: 64px 0;
    }

    .fc-footer-grid,
    .fc-footer-bottom {
        flex-direction: column;
    }
}


.fc-card--link {
    display: block;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.fc-card--link:hover,
.fc-card--link:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(169, 120, 47, .28);
    box-shadow: 0 18px 42px rgba(17, 24, 39, .075);
    outline: none;
}

.fc-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    color: var(--fc-navy);
    font-size: 13px;
    font-weight: 720;
}


/* Editorial hubs */
.fc-editorial {
    min-height: 100vh;
}

.fc-editorial-hero {
    padding: 96px 0 54px;
    border-bottom: 1px solid var(--fc-border);
}

.fc-editorial-hero h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1;
    letter-spacing: -.05em;
}

.fc-editorial-hero > .fc-container > p:last-child {
    max-width: 720px;
    margin: 18px 0 0;
    color: var(--fc-muted);
    font-size: 18px;
}

.fc-editorial-index {
    padding: 58px 0 96px;
}

.fc-editorial-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.fc-editorial-card {
    border: 1px solid var(--fc-border);
    border-radius: 18px;
    background: rgba(255,255,255,.9);
    box-shadow: 0 12px 34px rgba(17,24,39,.045);
    overflow: hidden;
}

.fc-editorial-card a {
    display: block;
    min-height: 260px;
    padding: 28px;
}

.fc-editorial-card__type {
    color: var(--fc-accent-strong);
    font-size: 11px;
    font-weight: 760;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.fc-editorial-card h2 {
    margin: 42px 0 10px;
    font-size: 28px;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.fc-editorial-card p {
    margin: 0;
    color: var(--fc-muted);
    font-size: 14px;
}

.fc-editorial-card__meta {
    display: flex;
    gap: 8px;
    margin-top: 26px;
    color: var(--fc-subtle);
    font-size: 12px;
}

.fc-editorial-empty {
    max-width: 760px;
    padding: 34px;
    border: 1px solid var(--fc-border);
    border-radius: 18px;
    background: #fff;
}

.fc-editorial-empty h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
    letter-spacing: -.04em;
}

.fc-editorial-empty p:last-child {
    color: var(--fc-muted);
}

.fc-editorial-pagination {
    margin-top: 34px;
}

.fc-article {
    padding-bottom: 96px;
}

.fc-article__header {
    padding: 48px 0 40px;
    border-bottom: 1px solid var(--fc-border);
}

.fc-article__narrow {
    max-width: 820px;
}

.fc-article__header h1 {
    margin: 12px 0 0;
    font-size: clamp(42px, 6vw, 66px);
    line-height: 1.02;
    letter-spacing: -.05em;
}

.fc-article__dek {
    margin: 18px 0 0;
    color: var(--fc-muted);
    font-size: 19px;
}

.fc-article__byline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
    color: var(--fc-subtle);
    font-size: 12px;
}

.fc-article__body {
    padding: 48px 0 26px;
    font-size: 18px;
    line-height: 1.75;
}

.fc-article__body h2 {
    margin: 54px 0 14px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -.035em;
}

.fc-article__body h3 {
    margin: 34px 0 10px;
    font-size: 24px;
    letter-spacing: -.025em;
}

.fc-article__body p,
.fc-article__body ul,
.fc-article__body ol,
.fc-article__body blockquote {
    margin: 0 0 22px;
}

.fc-article__body a {
    color: var(--fc-navy);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.fc-article__body table {
    width: 100%;
    margin: 28px 0;
    border-collapse: collapse;
    font-size: 15px;
}

.fc-article__body th,
.fc-article__body td {
    padding: 12px 14px;
    border: 1px solid var(--fc-border);
    text-align: left;
}

.fc-article__body th {
    background: var(--fc-bg-soft);
}

.fc-article__disclosure {
    margin-top: 18px;
    padding: 22px;
    border: 1px solid rgba(169,120,47,.2);
    border-radius: 16px;
    background: linear-gradient(145deg, #fffaf2, #fff);
}

.fc-article__disclosure p {
    margin: 6px 0 0;
    color: var(--fc-muted);
    font-size: 13px;
}

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

@media (max-width: 620px) {
    .fc-editorial-hero {
        padding-top: 70px;
    }

    .fc-editorial-card a {
        min-height: 0;
    }

    .fc-article__body {
        font-size: 17px;
    }

    .fc-article__body table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .fc-article__body th,
    .fc-article__body td {
        min-width: 112px;
    }

    .fc-article__body th:first-child,
    .fc-article__body td:first-child {
        min-width: 84px;
    }
}


/* Trust and methodology pages */
.fc-trust-page {
    min-height: 100vh;
    padding-bottom: 96px;
}

.fc-trust-page__hero {
    padding: 80px 0 46px;
    border-bottom: 1px solid var(--fc-border);
}

.fc-trust-page__narrow {
    max-width: 860px;
}

.fc-trust-page__hero h1 {
    margin: 12px 0 0;
    font-size: clamp(44px, 6vw, 70px);
    line-height: 1;
    letter-spacing: -.05em;
}

.fc-trust-page__dek {
    max-width: 720px;
    margin: 18px 0 0;
    color: var(--fc-muted);
    font-size: 19px;
}

.fc-trust-page__body {
    padding-top: 48px;
    font-size: 18px;
    line-height: 1.75;
}

.fc-trust-page__body h2 {
    margin: 54px 0 14px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -.035em;
}

.fc-trust-page__body h2:first-child {
    margin-top: 0;
}

.fc-trust-page__body h3 {
    margin: 34px 0 10px;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.fc-trust-page__body p,
.fc-trust-page__body ul,
.fc-trust-page__body ol {
    margin: 0 0 22px;
}

.fc-trust-page__body li + li {
    margin-top: 8px;
}

.fc-trust-page__body strong {
    color: var(--fc-text);
}

.fc-text-link {
    color: var(--fc-navy);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

@media (max-width: 620px) {
    .fc-trust-page__hero {
        padding-top: 62px;
    }

    .fc-trust-page__body {
        font-size: 17px;
    }
}


.fc-article-callout {
    margin: 30px 0;
    padding: 22px 24px;
    border: 1px solid rgba(22, 50, 79, .14);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(22, 50, 79, .055), rgba(255, 255, 255, .92));
}

.fc-article-callout p:last-child {
    margin-bottom: 0;
}
