/* The Elliott Ledger — styled to sit with The Austrian Dispatch and The Burnham Report. */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&display=swap");

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: #1a1a1a;
    background: #fafafa;
    margin: 0;
    padding: 0;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    padding: 18px 24px;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    font-size: 0.95rem;
    position: sticky;
    top: 0;
    z-index: 10;
}
.site-nav a {
    color: #627EEA;
    text-decoration: none;
    font-weight: 500;
}
.site-nav a:hover { text-decoration: underline; }
.site-nav .current {
    color: #888;
    margin-left: auto;
    font-style: italic;
}

.page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    background: #ffffff;
}

.page > header {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
}
.page > header h1 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 2.6rem;
    line-height: 1.15;
    margin: 0 0 12px;
    color: #111;
    letter-spacing: -0.01em;
}
.page > header .subtitle {
    font-size: 1.1rem;
    color: #666;
    margin: 0 0 10px;
}
.page > header .meta {
    font-size: 0.9rem;
    color: #888;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.disclaimer-banner {
    margin: 0 0 32px;
    padding: 14px 16px;
    border: 1px solid #e5e5e5;
    border-left: 4px solid #627EEA;
    background: #f7f8fd;
    font-size: 0.95rem;
    color: #333;
}
.disclaimer-banner strong {
    font-weight: 600;
    color: #111;
}

.prices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 0 0 32px;
}
.price-card {
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 16px 18px 14px;
    background: #fff;
}
.price-card .label {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #627EEA;
    margin: 0 0 6px;
}
.price-card .row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}
.price-card .last {
    font-variant-numeric: tabular-nums;
    font-size: 1.85rem;
    font-weight: 600;
    color: #111;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.price-card .chg {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    font-size: 1rem;
}
.price-card .chg.up { color: #1f7a4d; }
.price-card .chg.down { color: #b42318; }
.price-card .chg.flat { color: #666; }
.price-card .sub {
    margin: 6px 0 0;
    font-size: 0.85rem;
    color: #888;
}
.price-card .sub.err { color: #b42318; }

.lede {
    margin: 0 0 36px;
    font-size: 1.08rem;
    color: #222;
}
.lede p { margin: 0; }

.asset {
    margin: 0 0 56px;
    padding-top: 8px;
}
.asset > header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin: 0 0 8px;
}
.asset h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.9rem;
    margin: 0;
    color: #222;
    letter-spacing: -0.005em;
}
.desk-view {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #e8c4c0;
    background: #fdf2f0;
    color: #8a1f16;
}
.closed-week {
    margin: 0 0 16px;
    font-size: 0.95rem;
    color: #555;
}

.chart-wrap {
    margin: 0 0 12px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
    background: #111;
}
.chart-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 14px 0;
    color: #cfcfcf;
    font-size: 0.8rem;
}
.chart-toolbar .legend {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.legend i {
    display: inline-block;
    width: 12px;
    height: 3px;
    margin-right: 6px;
    vertical-align: middle;
    background: #627EEA;
}
.legend .in-progress-swatch {
    width: 10px;
    height: 10px;
    border: 1px dashed #cfcfcf;
    background: transparent;
    vertical-align: middle;
    margin-right: 6px;
}
.chart-canvas {
    display: block;
    width: 100%;
    height: 520px;
    cursor: crosshair;
}
.readings {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1px;
    background: #2a2a2a;
    color: #e8e8e8;
    font-size: 0.82rem;
}
.readings div {
    background: #171717;
    padding: 10px 14px;
}
.readings .k {
    display: block;
    color: #9a9a9a;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.readings .v {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: #fff;
}
.readings .hint {
    color: #888;
    font-weight: 400;
    font-size: 0.78rem;
}
.chart-source {
    margin: 8px 0 28px;
    font-size: 0.82rem;
    color: #888;
}

.commentary h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.25rem;
    margin: 28px 0 10px;
    color: #222;
}
.commentary p {
    margin: 0 0 16px;
    color: #1a1a1a;
}

.levels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 8px 0 8px;
}
.levels h4 {
    margin: 0 0 8px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #627EEA;
}
.levels dl {
    margin: 0;
}
.levels dt {
    font-weight: 600;
    color: #111;
    margin: 10px 0 2px;
    font-variant-numeric: tabular-nums;
}
.levels dt:first-child { margin-top: 0; }
.levels dd {
    margin: 0;
    color: #444;
    font-size: 0.95rem;
}

.how-to {
    margin: 8px 0 48px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}
.how-to h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.6rem;
    margin: 24px 0 16px;
    color: #222;
}
.how-to p { margin: 0 0 16px; }

.reports {
    margin: 8px 0 0;
    padding-top: 16px;
    border-top: 1px solid #eee;
}
.reports h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.6rem;
    margin: 24px 0 12px;
    color: #222;
}
.reports-note {
    margin: 0 0 24px;
    font-size: 0.95rem;
    color: #555;
}
.report-item {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid #eee;
}
.report-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.report-item .date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.report-item h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.5rem;
    line-height: 1.25;
    margin: 0 0 8px;
    font-weight: 700;
}
.report-item h3 a {
    color: #111;
    text-decoration: none;
}
.report-item h3 a:hover {
    color: #627EEA;
    text-decoration: underline;
}
.report-item .meta {
    font-size: 0.9rem;
    color: #888;
    margin: 0;
}

.page > footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #eee;
    font-size: 0.92rem;
    color: #555;
}
.page > footer p { margin: 0 0 12px; }
.page > footer a { color: #627EEA; }

@media (max-width: 800px) {
    .prices, .levels, .readings { grid-template-columns: 1fr; }
    .chart-canvas { height: 440px; }
}

@media (max-width: 600px) {
    .page { padding: 24px 18px 60px; font-size: 17px; }
    .page > header h1 { font-size: 2rem; }
    .site-nav { gap: 14px; padding: 14px 18px; font-size: 0.88rem; }
    .site-nav .current { display: none; }
    .price-card .last { font-size: 1.5rem; }
    .chart-canvas { height: 400px; }
    .asset h2 { font-size: 1.55rem; }
}

.ledger-tabs { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 24px; border-bottom: 2px solid #e5e5e5; }
.ledger-tabs a, .ledger-tabs span { padding: 10px 18px; margin-bottom: -2px; font-size: 0.95rem; font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; }
.ledger-tabs a { color: #627EEA; }
.ledger-tabs a:hover { border-bottom-color: #c7d0f5; }
.ledger-tabs .active { color: #111; border-bottom-color: #627EEA; }

.fng { margin: 0 0 16px; }
.fng-card {
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 16px 18px 14px;
    background: #fff;
}
.fng-label {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #627EEA;
    margin: 0 0 6px;
}
.fng-main {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 28px;
    align-items: start;
}
.fng-now { padding-top: 2px; }
.fng-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}
.fng-last {
    font-variant-numeric: tabular-nums;
    font-size: 1.85rem;
    font-weight: 600;
    color: #111;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.fng-class {
    font-weight: 600;
    font-size: 1rem;
}
.fng-class.ef { color: #8a1f16; }
.fng-class.f { color: #c05621; }
.fng-class.n { color: #a16207; }
.fng-class.g { color: #4d7c0f; }
.fng-class.eg { color: #1f7a4d; }
.fng-gauge {
    position: relative;
    padding: 6px 0 4px;
}
.fng-track {
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right,
        #8a1f16 0 25%,
        #c05621 25% 46%,
        #ca8a04 46% 54%,
        #4d7c0f 54% 75%,
        #1f7a4d 75% 100%);
}
.fng-marker {
    display: none;
    position: absolute;
    top: 2px;
    width: 10px;
    height: 16px;
    margin-left: -5px;
    background: #111;
    border: 2px solid #fff;
    border-radius: 2px;
    box-shadow: 0 0 0 1px #111;
    pointer-events: none;
}
.fng-marker.on { display: block; }
.fng-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin: 8px 0 0;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #666;
}
.fng-legend i {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 5px;
    border-radius: 2px;
    vertical-align: middle;
}
.fng-legend i.ef { background: #8a1f16; }
.fng-legend i.f { background: #c05621; }
.fng-legend i.n { background: #ca8a04; }
.fng-legend i.g { background: #4d7c0f; }
.fng-legend i.eg { background: #1f7a4d; }
.fng-history {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    margin: 12px 0 0;
    font-size: 0.85rem;
}
.fng-history .k {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 1px;
}
.fng-history .v {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: #111;
}
.fng-blurb {
    margin: 12px 0 4px;
    font-size: 0.9rem;
    color: #555;
}
.fng-meta {
    margin: 0;
    font-size: 0.82rem;
    color: #888;
}
.fng-meta a { color: #627EEA; }
.fng-card.unavailable .fng-last { color: #666; font-size: 1.15rem; }
.fng-card.unavailable .fng-track { opacity: 0.35; }
@media (max-width: 800px) {
    .fng-main { grid-template-columns: 1fr; }
    .fng-history { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .fng-last { font-size: 1.5rem; }
}

.fng-chart-wrap { margin: 14px 0 0; }
.legend i.fng-swatch { background: #e8c872; }
.fng-range { display: flex; gap: 6px; }
.fng-range button {
    background: transparent;
    border: 1px solid #444;
    color: #cfcfcf;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
}
.fng-range button:hover { border-color: #888; }
.fng-range button.active {
    background: #2a2a2a;
    border-color: #627EEA;
    color: #fff;
}
.fng-chart-canvas {
    display: block;
    width: 100%;
    height: 300px;
    cursor: crosshair;
}
.fng-chart-caption {
    margin: 8px 0 0;
    font-size: 0.82rem;
    color: #888;
}
.fng-chart-caption a { color: #627EEA; }
@media (max-width: 800px) {
    .fng-chart-canvas { height: 260px; }
}
@media (max-width: 600px) {
    .fng-chart-canvas { height: 240px; }
}

/* Bottoms comparison */
.bottoms { margin: 48px 0; padding-top: 32px; border-top: 1px solid #eee; }
.bottoms h2 { font-family: "Playfair Display", Georgia, serif; font-size: 1.8rem; margin: 0 0 6px; }
.bottoms h3 { font-size: 1.05rem; margin: 28px 0 8px; }
.bt-meta { font-size: 0.85rem; color: #888; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 12px; }
.bt-wrap { overflow-x: auto; margin: 18px 0; }
.bt-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; line-height: 1.45; }
.bt-table caption { text-align: left; font-weight: 700; padding: 0 0 6px; }
.bt-table th, .bt-table td { text-align: left; padding: 7px 10px; border-bottom: 1px solid #eee; vertical-align: top; }
.bt-table thead th { color: #666; font-weight: 600; border-bottom: 2px solid #e5e5e5; }
.bt-table tbody th { font-weight: 500; color: #333; width: 34%; }
.bt-table td:last-child { font-weight: 600; }
.bt-check td { width: 90px; }
.bt-why { display: block; color: #777; font-size: 0.82rem; font-weight: 400; }
.bt-s { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 0.8rem; font-weight: 600; }
.bt-on { background: #e3f3ea; color: #1f7a4d; }
.bt-weak { background: #fff4d6; color: #8a6100; }
.bt-not { background: #f2f2f2; color: #555; }
.bt-lost { background: #fde8e6; color: #b42318; }
.bt-na { color: #aaa; }
.bt-nia { margin-top: 18px; padding: 12px 14px; border-left: 4px solid #627EEA; background: #f7f8fd; font-size: 0.9rem; }
