/* Market pulse: today's summary, built from the homepage quote cards and tables (home.css). */
.market-pulse.edition { padding-top: 24px; }
.market-pulse .edition-chapter-heading { margin-bottom: 18px; }
.market-pulse .edition-chapter-heading h1 { font-size: clamp(24px, 2.2vw, 30px); }
.pulse-section { min-width: 0; padding: 20px 0 24px; border-top: 1px solid var(--color-border); }
.pulse-heading { margin-bottom: 12px; }
.pulse-heading h2 { margin: 0; font: 600 19px/1.2 var(--font-interface); letter-spacing: -.02em; }
.pulse-heading p { margin: 3px 0 0; color: var(--color-text-secondary); font-size: 13px; }

/* The written summary follows the flat sections and restrained headings around it. */
.pulse-summary { min-width: 0; margin-bottom: 24px; padding: 0;
    background: transparent; border: 0; border-radius: 0; box-shadow: none; }
/* Collapsible: retain a readable excerpt without fading the text. */
.pulse-summary-heading { margin: 0; }
.pulse-summary-toggle { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 5px 16px; width: 100%; min-height: 44px; padding: 0; color: inherit;
    background: none; border: 0; font: inherit; text-align: left; cursor: pointer; }
.pulse-summary .pulse-summary-title { grid-column: 1; font: 600 20px/1.25 var(--font-interface); letter-spacing: -.02em; }
.pulse-summary-dot { display: none; }
.pulse-summary-date { grid-column: 1; grid-row: 2; color: var(--color-text-secondary); font: 400 12px/1.5 var(--font-interface); letter-spacing: normal; }
.pulse-summary-action { grid-column: 2; grid-row: 1 / 3; display: inline-flex; align-items: center; gap: 6px; color: var(--color-accent); font: 600 13px/1.4 var(--font-interface); letter-spacing: normal; white-space: nowrap; }
.pulse-summary-action svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.pulse-summary-toggle:hover .pulse-summary-action span { text-decoration: underline; text-underline-offset: 3px; }
.pulse-summary-toggle:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 6px; border-radius: 4px; }
.pulse-summary-body { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--color-border); }
.pulse-summary:not(.is-open) .pulse-summary-body { overflow: hidden; }
.pulse-summary:not(.is-open) .pulse-summary-body > :first-child { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; margin-bottom: 0; }
.pulse-summary:not(.is-open) .pulse-summary-body > :not(:first-child) { display: none; }
.pulse-summary.is-open .pulse-summary-action svg { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .pulse-summary-action svg { transition: none; } }
.pulse-summary-body p { margin: 0 0 12px; font: 400 15px/1.65 var(--font-interface); }
.pulse-summary-body p:last-child { margin-bottom: 0; }
.pulse-summary-body strong { font-weight: 650; }
.pulse-summary-body a { color: var(--color-text); font-weight: 600; text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--color-text-secondary) 45%, transparent);
    text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .15s, text-decoration-color .15s; }
.pulse-summary-body a:hover { color: var(--color-accent); text-decoration-color: currentColor; }
/* Match the same heading size when the homepage places the summary beside Agenda. */
.home-page .pulse-summary.hp-summary .pulse-summary-title { font-size: 20px; }
.home-page .pulse-summary.hp-summary:not(.is-open) .pulse-summary-body { max-height: none; }
@media (max-width: 380px) {
    .pulse-summary-toggle { gap: 6px 10px; }
    .pulse-summary-action { grid-column: 1; grid-row: 3; min-height: 36px; }
}

/* Compact quote cards. */
.market-pulse .edition-quotes { max-width: 1040px; }
.market-pulse .edition-quote-name { font-size: 13px; }
.market-pulse .edition-quote-summary strong { font-size: clamp(18px, 1.5vw, 22px); }
.market-pulse .edition-quote-comparison { margin-top: 2px; font-size: 11px; }
.market-pulse .edition-change { font-size: 12px; }
.market-pulse .edition-spark-wrap { max-width: 190px; margin-top: 6px; }

/* Blocks share a subgrid, so headings, tables and links start on the same line across a row. */
.pulse-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto 1fr auto; gap: 0 48px; }
.pulse-row { padding: 24px 0; border-top: 1px solid var(--color-border); }
.pulse-block { display: grid; grid-row: span 3; grid-template-rows: subgrid; min-width: 0; }
.pulse-tables { min-width: 0; }
.pulse-tables > .edition-table + .edition-table { margin-top: 14px; }
.pulse-block > .edition-action { padding-top: 14px; font-size: 15px; }
/* Equity movers (with sparks) and Bonares/Globales sit side by side: same caption and row heights. */
:is(.pulse-movers-spark, .pulse-bonds-table) > caption.pulse-table-title { height: 30px; box-sizing: border-box; }
:is(.pulse-movers-spark, .pulse-bonds-table) tbody tr { height: 43px; }

/* Compact tables. */
.pulse-row .edition-table { font-size: 14px; }
.pulse-row .edition-table :is(th, td) { padding-top: 6px; padding-bottom: 6px; }
.pulse-row .edition-table tbody th small { font-size: 11px; }
.edition-table caption.pulse-table-title { caption-side: top; padding: 0 0 6px; color: var(--color-text); font-size: 14px; font-weight: 600; text-align: left; }
.pulse-movers-table .edition-change { font-size: 13px; }
.pulse-trend-icon { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 7px; border-radius: 5px; vertical-align: -6px; }
.pulse-trend-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pulse-trend-icon[data-tone="positive"] { color: var(--color-positive); background: color-mix(in srgb, var(--color-positive) 12%, transparent); }
.pulse-trend-icon[data-tone="negative"] { color: var(--color-negative); background: color-mix(in srgb, var(--color-negative) 12%, transparent); }
/* Fixed columns so stacked tables line up. */
:is(.pulse-movers-spark, .pulse-bonds-table) { table-layout: fixed; }
:is(.pulse-movers-spark, .pulse-bonds-table) thead th:first-child { width: 22%; }
/* 30-day price spark per row; tone is the direction over the window, not a judgment. */
.pulse-row .edition-table .pulse-spark-cell { width: 72px; padding-left: 6px; padding-right: 6px; }
.pulse-spark { display: block; width: 64px; height: 22px; overflow: visible; color: var(--color-text-secondary); }
.pulse-spark[data-tone="positive"] { color: var(--color-positive); }
.pulse-spark[data-tone="negative"] { color: var(--color-negative); }
.pulse-movers-empty { color: var(--color-text-secondary); font-size: 13px; text-align: left !important; }

@media (max-width: 900px) {
    .pulse-pair { grid-template-columns: 1fr; }
    .pulse-block { grid-row: auto; display: flex; flex-direction: column; }
    .pulse-block + .pulse-block { margin-top: 28px; }
}

