/* Single-article conversion, source and comparison-table enhancements. */
.article-content .article-cta {
    display: flex;
    width: min(100%, 42rem);
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.05rem 1.25rem;
    border: 1px solid var(--ink);
    background: var(--wine);
    color: #fff;
    box-shadow: .45rem .45rem 0 var(--ink);
    font-weight: 800;
    letter-spacing: .01em;
    line-height: 1.4;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.article-content .article-cta::after {
    flex: 0 0 auto;
    content: "↗";
    font-family: var(--serif);
    font-size: 1.25em;
}

.article-content .article-cta:hover,
.article-content .article-cta:focus-visible {
    background: var(--ink);
    box-shadow: .25rem .25rem 0 var(--wine);
    transform: translate(.2rem, .2rem);
}

.article-content .article-sources {
    margin: 3.5rem 0 0;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid color-mix(in srgb, var(--ink) 35%, transparent);
    color: var(--muted-ink);
    font-size: .8rem;
    line-height: 1.65;
}

.article-content .article-sources summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 0;
    color: var(--ink);
    cursor: pointer;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .1em;
    list-style: none;
}

.article-content .article-sources summary::-webkit-details-marker { display: none; }
.article-content .article-sources summary::after { content: "+"; font-size: 1.2rem; font-weight: 400; }
.article-content .article-sources[open] summary::after { content: "−"; }
.article-content .article-sources__body { padding: 0 0 1rem; }
.article-content .article-sources__body > :first-child { margin-top: 0; }
.article-content .article-sources__body > :last-child { margin-bottom: 0; }

.ledger-article > .article-visual > img.wp-post-image {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.article-content .article-visual--editorial {
    margin: 2.4rem 0 3.2rem;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.article-content .article-visual--editorial::after { content: none; }
.article-content .article-visual--editorial img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: .35rem;
    object-fit: cover;
}
.article-content .article-visual--editorial figcaption {
    margin: .65rem .15rem 0;
    color: var(--muted-ink);
    font-size: .76rem;
    line-height: 1.55;
}

.article-related {
    margin-top: 5rem;
    padding-top: 1.4rem;
    border-top: 4px double var(--ink);
}

.article-related__eyebrow {
    margin: 0 0 .35rem;
    color: var(--wine);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .14em;
}

.article-related h2 { margin: 0 0 1.4rem; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.article-related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.article-related__card { min-width: 0; border: 1px solid var(--ink); background: #f4efe4; }
.article-related__link { display: block; height: 100%; color: inherit; text-decoration: none; }
.article-related__image { display: block; aspect-ratio: 1.4 / 1; overflow: hidden; background: #ddd2bf; }
.article-related__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 220ms ease; }
.article-related__body { display: flex; height: calc(100% - 1px); flex-direction: column; padding: 1rem; }
.article-related__category { color: var(--wine); font-size: .65rem; font-weight: 800; letter-spacing: .1em; }
.article-related__body strong { display: block; margin-top: .5rem; font-family: var(--serif); font-size: 1.1rem; line-height: 1.35; }
.article-related__excerpt { display: -webkit-box; margin-top: .65rem; overflow: hidden; color: var(--muted-ink); font-size: .82rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.article-related__more { display: flex; justify-content: space-between; gap: .75rem; margin-top: auto; padding-top: 1rem; font-size: .73rem; font-weight: 800; }
.article-related__link:hover .article-related__image img,
.article-related__link:focus-visible .article-related__image img { transform: scale(1.04); }
.article-related__link:focus-visible { outline: 3px solid var(--wine); outline-offset: 3px; }

.article-content table {
    width: 100%;
    margin: 2rem 0;
    overflow: hidden;
    border: 1px solid var(--ink);
    border-collapse: separate;
    border-spacing: 0;
    background: #f8f3e9;
    box-shadow: .35rem .35rem 0 color-mix(in srgb, var(--wine) 60%, transparent);
}

.article-content table th,
.article-content table td { min-width: 0; padding: .9rem 1rem; border: 0; border-right: 1px solid color-mix(in srgb, var(--ink) 35%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--ink) 28%, transparent); text-align: left; vertical-align: top; }
.article-content table th:last-child,
.article-content table td:last-child { border-right: 0; }
.article-content table tr:last-child td { border-bottom: 0; }
.article-content table thead th { background: var(--ink); color: #fff; font-size: .75rem; letter-spacing: .06em; }
.article-content table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--wine) 5%, transparent); }
.article-content table tbody tr:hover { background: color-mix(in srgb, var(--wine) 11%, transparent); }

@media (max-width: 700px) {
    .article-content .article-cta { width: 100%; margin: 1.5rem 0; padding: 1rem; box-shadow: .28rem .28rem 0 var(--ink); }
    .article-related { margin-top: 3.5rem; }
    .article-related__grid { grid-template-columns: 1fr; gap: .8rem; }
    .article-related__link { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); }
    .article-related__image { aspect-ratio: auto; min-height: 100%; }
    .article-related__body { min-height: 10rem; }

    .article-content table[data-mobile-cards="true"] { display: block; overflow: visible; border: 0; background: transparent; box-shadow: none; }
    .article-content table[data-mobile-cards="true"] thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
    .ledger-article > .article-visual > img.wp-post-image,
    .article-content .article-visual--editorial img { aspect-ratio: 4 / 3; }
    .article-content table[data-mobile-cards="true"],
    .article-content table[data-mobile-cards="true"] tbody,
    .article-content table[data-mobile-cards="true"] tr,
    .article-content table[data-mobile-cards="true"] th,
    .article-content table[data-mobile-cards="true"] td { display: block; width: 100%; }
    .article-content table[data-mobile-cards="true"] tr { margin: 0 0 .8rem; border: 1px solid var(--ink); background: #f8f3e9; box-shadow: .24rem .24rem 0 color-mix(in srgb, var(--wine) 55%, transparent); }
    .article-content table[data-mobile-cards="true"] th,
    .article-content table[data-mobile-cards="true"] td { display: grid; grid-template-columns: minmax(5.7rem, .8fr) minmax(0, 1.2fr); gap: .8rem; padding: .78rem .85rem; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); background: #f8f3e9; color: var(--ink); font-size: inherit; letter-spacing: normal; }
    .article-content table[data-mobile-cards="true"] th:last-child,
    .article-content table[data-mobile-cards="true"] td:last-child { border-bottom: 0; }
    .article-content table[data-mobile-cards="true"] th::before,
    .article-content table[data-mobile-cards="true"] td::before { content: attr(data-label); color: var(--wine); font-size: .68rem; font-weight: 800; letter-spacing: .05em; }
}

@media (prefers-reduced-motion: reduce) {
    .article-content .article-cta,
    .article-related__image img { transition: none; }
}

.ledger-article .article-content a.article-cta {
    width: min(100%, 52rem);
    margin-inline: auto;
}

@media (max-width: 700px) {
    .article-content .fm-table-wrap { overflow: visible; }
    .article-content .fm-table-wrap table[data-mobile-cards="true"],
    .article-content table[data-mobile-cards="true"] { width: 100%; min-width: 0; max-width: 100%; overflow: visible; white-space: normal; }
    .article-content table[data-mobile-cards="true"] caption { display: block; width: 100%; box-sizing: border-box; margin-bottom: .75rem; padding: .8rem .9rem; border: 1px solid var(--ink); background: var(--ink); color: #fff; white-space: normal; }
    .article-content table[data-mobile-cards="true"] th,
    .article-content table[data-mobile-cards="true"] td { min-width: 0; overflow-wrap: anywhere; white-space: normal; word-break: keep-all; }
}
