/* Only the four supporting cards in Top Stories. Existing columns, image
   dimensions, title typography, colours, card padding and borders are retained. */
html body.hm-site .hm-top-stories .hm-top-support > .hm-story-compact {
    grid-template-rows: auto auto auto !important;
    row-gap: 0 !important;
}
html body.hm-site .hm-top-stories .hm-top-support > .hm-story-compact > .hm-story-copy {
    display: contents !important;
}
html body.hm-site .hm-top-stories .hm-top-support > .hm-story-compact > .hm-story-image {
    grid-column: 2 !important;
    grid-row: 1 / 3 !important;
    align-self: start !important;
}
html body.hm-site .hm-top-stories .hm-top-support > .hm-story-compact > .hm-story-copy > .hm-kicker {
    grid-column: 1 !important;
    grid-row: 1 !important;
}
html body.hm-site .hm-top-stories .hm-top-support > .hm-story-compact > .hm-story-copy > h3 {
    grid-column: 1 !important;
    grid-row: 2 !important;
    min-width: 0 !important;
}
html body.hm-site .hm-top-stories .hm-top-support > .hm-story-compact > .hm-story-copy > .hm-summary {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    overflow: hidden !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
}

/* Main lead story: clamp only its highlight; preserve typography and layout. */
html body.hm-site .hm-top-stories .hm-story-lead > .hm-story-copy > .hm-summary {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    overflow: hidden !important;
}

/* Complete headline text: sizing is measured by headlines.js, not clipped. */
html body.hm-site .hm-top-stories .hm-story-lead > .hm-story-copy > h2,
html body.hm-site .hm-top-stories .hm-top-support > .hm-story-compact > .hm-story-copy > h3,
html body.hm-site .hm-top-stories .hm-story-lead > .hm-story-copy > h2 > a,
html body.hm-site .hm-top-stories .hm-top-support > .hm-story-compact > .hm-story-copy > h3 > a {
    display: block !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    min-width: 0 !important;
}

/* Extend headline fitting to the five homepage category sections only. */
html body.hm-site .hm-category .hm-story > .hm-story-copy > h2,
html body.hm-site .hm-category .hm-story > .hm-story-copy > h3,
html body.hm-site .hm-category .hm-story > .hm-story-copy > h2 > a,
html body.hm-site .hm-category .hm-story > .hm-story-copy > h3 > a {
    display: block !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    min-width: 0 !important;
}
