/* ============================================================
   EMBED PAGES — minimal chrome, iframe-friendly
   ============================================================ */

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--paper, #fafafa);
    color: var(--ink, #0a0a0a);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

:root {
    --paper:      #fafafa;
    --paper-dark: #f5f5f5;
    --ink:        #0a0a0a;
    --ink-muted:  #737373;
    --ink-light:  #a3a3a3;
    --rule:       #e5e5e5;
}

.embed {
    padding: 14px 18px 12px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.embed-head {
    display: flex; justify-content: space-between; align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    flex-shrink: 0;
}

.embed-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
    margin: 0;
}

.embed-source {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.embed-chart {
    flex: 1;
    min-height: 0;
    display: flex;
}

.embed-chart svg {
    width: 100%;
    height: 100%;
    display: block;
}

.embed-footer {
    display: flex; justify-content: space-between; align-items: center;
    flex-shrink: 0;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.embed-footer a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
}
.embed-footer a:hover { border-bottom-color: var(--ink); }

.embed-legend {
    display: flex; gap: 12px; flex-wrap: wrap;
    align-items: center;
}
.embed-legend-item {
    display: flex; align-items: center; gap: 5px;
    font-size: 0.65rem;
    color: var(--ink-muted);
}
.embed-legend-swatch {
    width: 9px; height: 9px; border-radius: 2px;
}
