:root {
    --aaet-enteric: #dc2626;
    --aaet-feed: #f59e0b;
    --aaet-pledge-signed: #22c55e;
    /* "Not signed" needs distinct visual prominence — orange picks it out clearly from the green
       majority and the gray basemap. */
    --aaet-pledge-unsigned: #f97316;
}

.aaet-hero-breakdown-panel {
    margin-top: 1.25rem;
    padding: 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: var(--surface-elevated, rgba(0, 0, 0, 0.12));
}

.aaet-hero-kpis {
    margin-top: 1rem;
}

.aaet-pipeline-badge {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 0.65rem;
    opacity: 0.85;
}

.aaet-breakdown-bar {
    display: flex;
    width: 100%;
    height: 1.35rem;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.aaet-breakdown-seg {
    min-width: 2px;
    transition: flex 0.2s ease;
}

.aaet-breakdown-keys {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-top: 0.55rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.aaet-breakdown-key {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.aaet-breakdown-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 2px;
    flex-shrink: 0;
}

.aaet-scatter-wrap {
    min-height: 320px;
}

/* Two ranked bar charts side by side — total emissions on the left, per-person on the right. */
.aaet-ranked-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.65rem;
}

.aaet-ranked-col {
    min-width: 0;
}

.aaet-ranked-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.15rem;
    color: var(--text-primary);
}

.aaet-ranked-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0 0 0.5rem;
}

.aaet-ranked-wrap {
    height: 400px;
    position: relative;
}

.aaet-ranked-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.25rem;
    margin: 0.5rem 0 0.25rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.aaet-leg-swatch {
    display: inline-block;
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 3px;
    margin-right: 0.35rem;
    vertical-align: middle;
}

.aaet-leg-swatch--signed { background: #16a34a; }
.aaet-leg-swatch--unsigned { background: #f97316; }

/* Inline KPI mini-graphics — show the relational claim instead of asserting it in text. */
.aaet-kpi-svg {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 0.5rem;
    /* The viewBox is 360 wide; this lets the SVG fill the KPI card so labels rendered
       at font-size 13 in the viewBox stay around 11px on screen — readable. */
}

.aaet-kpi-graphic-caption {
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--text-primary);
    opacity: 0.85;
    margin: 0.6rem 0 0;
}

/* Pledge KPI: small named-non-signers note above the top-10 chart. */
.aaet-kpi-pledge-note {
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--text-primary);
    margin: 0 0 0.6rem;
}

.aaet-kpi-pledge-svg {
    margin-top: 0.25rem;
}

/* The methane stripes caption has two distinct paragraphs: encoding explanation, then sourcing. */
.nx-stripes-caption p {
    margin: 0;
    line-height: 1.55;
}

.nx-stripes-caption p + p.aaet-stripes-source {
    margin-top: 0.55rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .aaet-ranked-grid { grid-template-columns: 1fr; }
    .aaet-ranked-wrap { height: 360px; }
}

.aaet-products-wrap {
    min-height: 340px;
}

.aaet-product-hero-panel {
    margin-top: 1rem;
    border-left: 3px solid #f97316;
}

.aaet-products-wrap--signature {
    min-height: 430px;
}

.aaet-scatter-legend,
.aaet-product-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.aaet-leg-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.aaet-leg-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
}

.aaet-leg-ring {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    background: transparent;
    box-sizing: border-box;
}

.aaet-picker-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: center;
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.85rem;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: rgba(148, 163, 184, 0.08);
}

.aaet-picker-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
}

.aaet-country-select {
    flex: 1 1 16rem;
    min-width: 12rem;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    background: var(--surface, transparent);
    color: var(--text-primary);
    font-size: 0.92rem;
    font-family: inherit;
}

.aaet-use-location-btn {
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    background: var(--surface, transparent);
    color: var(--text-primary);
    font-size: 0.88rem;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
}

.aaet-use-location-btn:hover:not([disabled]) {
    background: rgba(148, 163, 184, 0.12);
}

.aaet-use-location-btn[disabled] {
    opacity: 0.6;
    cursor: progress;
}

.aaet-picker-hint {
    flex-basis: 100%;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0.15rem 0 0;
    font-style: italic;
}

.aaet-detected-note {
    margin: 0 0 0.65rem;
    padding: 0.55rem 0.75rem;
    background: rgba(249, 115, 22, 0.10);
    border-left: 3px solid #f97316;
    border-radius: 4px;
    font-size: 0.9rem;
}

.aaet-localized-card {
    padding: 0.25rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.aaet-localized-place {
    margin: 0 0 0.5rem;
}

/* Per-country profile — shows three facts not visible elsewhere on the page. */
.aaet-profile-title {
    margin: 0 0 1rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.aaet-profile-fact {
    margin: 0 0 1.4rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--border-subtle);
}

.aaet-profile-fact:last-of-type {
    border-bottom: 0;
}

.aaet-profile-fact h4 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.aaet-profile-fact p {
    margin: 0.55rem 0 0;
    line-height: 1.55;
}

.aaet-profile-svg {
    display: block;
    width: 100%;
    max-width: 420px;
    height: auto;
    margin: 0.35rem 0 0.1rem;
}

.aaet-profile-context p {
    line-height: 1.55;
}

.aaet-profile-crosslink {
    margin-top: 0.75rem !important;
}

.aaet-profile-crosslink a {
    color: var(--link-color, #38bdf8);
    font-weight: 600;
    text-decoration: none;
}

.aaet-profile-crosslink a:hover {
    text-decoration: underline;
}

.aaet-profile-emitter {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-subtle);
    font-size: 0.88rem;
    color: var(--text-muted);
}

.aaet-map-wrap {
    height: 280px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    margin-top: 0.5rem;
}

.aaet-pledge-legend {
    display: flex;
    gap: 1.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0.35rem 0 0;
}

.aaet-pledge-swatch {
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 2px;
    margin-right: 0.35rem;
    vertical-align: middle;
}

.aaet-pledge-swatch--signed {
    background: var(--aaet-pledge-signed);
    opacity: 0.7;
}

.aaet-pledge-swatch--unsigned {
    background: var(--aaet-pledge-unsigned);
    opacity: 0.6;
}

.num-col {
    text-align: right;
}

.methodology-panel {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.meth-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.meth-tags {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.meth-row strong {
    min-width: 8.5rem;
}

.meth-list {
    margin: 0;
    padding-left: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.nx-empty {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
    padding: 1rem 0;
}
