/* Shares the site's article styles; adds tables, figures and sources for data-led pieces. */
@import url("../../features/how-to-plan-a-trip-with-ai/article.css");

.table-wrap {
    margin: 24px 0;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
}

.table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.table-wrap caption {
    padding: 14px 18px 10px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: left;
}

.table-wrap th,
.table-wrap td {
    padding: 12px 18px;
    border-top: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.table-wrap thead th {
    background: var(--surface-soft);
    color: var(--olive-deep);
    font-weight: 700;
}

.table-wrap tbody th {
    color: var(--text);
    font-weight: 600;
}

.table-wrap td {
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.article-body figure {
    margin: 28px 0;
}

.article-body figure img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--border);
    border-radius: 16px;
}

.article-body figcaption {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.92rem;
}

.article-body .source-note {
    color: var(--muted);
    font-size: 0.9rem;
}

.sources {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.sources ul {
    padding-left: 20px;
}

.sources li {
    color: var(--muted);
    font-size: 0.92rem;
}

.sources a {
    color: var(--olive);
}

@media (max-width: 560px) {
    .table-wrap th,
    .table-wrap td,
    .table-wrap caption {
        padding-left: 12px;
        padding-right: 12px;
    }

    .table-wrap table {
        font-size: 0.88rem;
    }
}

.chart-link {
    display: block;
    cursor: zoom-in;
}

.chart-link:focus-visible img {
    outline: 3px solid var(--olive);
    outline-offset: 3px;
}

.article-body figcaption a {
    color: var(--olive);
    font-weight: 600;
    white-space: nowrap;
}
