/* Layout only. Typography, colors, links and rhythm inherit the active theme. */
.aif-pulse-section { overflow-wrap: anywhere; }
.aif-pulse-section > :first-child { margin-block-start: 0; }
.aif-pulse-section > :last-child { margin-block-end: 0; }
.aif-pulse-section .aif-pulse-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--wp--style--block-gap, 1.5em);
}
.aif-pulse-section .aif-pulse-metrics dd { margin-inline-start: 0; }
.aif-pulse-section figure { margin-inline: 0; }
.aif-pulse-section img { display: block; max-width: 100%; height: auto; }
/* Click-to-enlarge chart: the inline image is unchanged; the link opens the full-size file. */
.aif-pulse-section .aif-pulse-chart-link { display: block; cursor: zoom-in; }
.aif-pulse-section .aif-pulse-chart-link:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.aif-pulse-section .aif-pulse-chart-hint { margin-block-start: 0.5em; font-size: 0.85em; opacity: 0.8; }
/* Daily Pulse tabs (shown only when news is authorized and the script has run). */
.aif-pulse-tabs .aif-pulse-tablist {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25em;
    border-block-end: 1px solid color-mix(in srgb, currentColor 20%, transparent);
}
.aif-pulse-tabs [role="tab"] {
    appearance: none;
    margin: 0 0 -1px;
    padding: 0.6em 1em;
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: 6px 6px 0 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.aif-pulse-tabs [role="tab"][aria-selected="true"] {
    border-color: color-mix(in srgb, currentColor 20%, transparent);
    border-block-end-color: var(--wp--preset--color--base, Canvas);
    background: var(--wp--preset--color--base, Canvas);
}
.aif-pulse-tabs [role="tab"]:focus-visible,
.aif-pulse-panel:focus-visible,
.aif-pulse-news:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
/* The analysis panel spans the article; the copied layout classes constrain its children. */
.aif-pulse-panel { max-width: none !important; margin-inline: 0 !important; padding: 0; }
.aif-pulse-panel[hidden], .aif-pulse-news[hidden] { display: none !important; }
.aif-pulse-news .aif-pulse-news-list { padding-inline-start: 1.2em; }
.aif-pulse-news .aif-pulse-news-list li + li { margin-block-start: 0.6em; }
.aif-pulse-news .aif-pulse-news-meta, .aif-pulse-news .aif-pulse-news-source { font-size: 0.9em; opacity: 0.8; }
@media (max-width: 40em) {
    .aif-pulse-tabs [role="tab"] { flex: 1 1 0; padding-inline: 0.5em; }
}
/* Only the two single-page boundaries; empty disclaimer sections remain absent. */
.single-aif_daily_pulse .aif-pulse-body::before,
.single-aif_daily_pulse .aif-pulse-disclaimer::before {
    content: "";
    display: block;
    border-block-start: 1px solid currentColor;
    opacity: 0.18;
    margin-block: var(--wp--preset--spacing--60, 3rem);
}
/* Keep Reading: recent Daily Pulse cards after the article. */
/* Slightly wider than the article column for three cards, narrower than the theme's wide size. */
.is-layout-constrained > .aif-pulse-more.alignwide { max-width: min(100%, 56rem); }
.single-aif_daily_pulse .aif-pulse-more::before {
    content: "";
    display: block;
    border-block-start: 1px solid currentColor;
    opacity: 0.18;
    margin-block: var(--wp--preset--spacing--60, 3rem);
}
.aif-pulse-more .aif-pulse-more-list {
    list-style: none;
    margin: var(--wp--style--block-gap, 1.5em) 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--wp--style--block-gap, 1.5em);
}
.aif-pulse-more .aif-pulse-more-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid color-mix(in srgb, currentColor 15%, transparent);
    border-radius: 6px;
    overflow: hidden;
}
.aif-pulse-more .aif-pulse-more-card:focus-within,
.aif-pulse-more .aif-pulse-more-card:hover { border-color: color-mix(in srgb, currentColor 40%, transparent); }
.aif-pulse-more .aif-pulse-more-image { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; }
.aif-pulse-more .aif-pulse-more-image img { width: 100%; height: 100%; object-fit: cover; }
.aif-pulse-more .aif-pulse-more-text { padding: 0.9em 1em 1em; }
.aif-pulse-more .aif-pulse-more-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5em;
    margin: 0 0 0.4em;
    font-size: 0.85em;
    opacity: 0.8;
}
.aif-pulse-more .aif-pulse-more-badge {
    padding: 0.05em 0.5em;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.aif-pulse-more h3 { margin: 0; font-size: 1.05em; line-height: 1.35; }
.aif-pulse-more h3 a { text-decoration: none; }
.aif-pulse-more h3 a:hover, .aif-pulse-more h3 a:focus-visible { text-decoration: underline; }
/* The whole card is the touch target for its single title link. */
.aif-pulse-more h3 a::after { content: ""; position: absolute; inset: 0; }
.aif-pulse-more .aif-pulse-more-all { margin: 0; }
@media (max-width: 40em) {
    .aif-pulse-section .aif-pulse-metrics { grid-template-columns: minmax(0, 1fr); }
    .aif-pulse-more .aif-pulse-more-list { grid-template-columns: minmax(0, 1fr); }
}
