/* Homepage content only. Existing sidebar, grid, margins and framework lines stay unchanged. */
.home-page { --home-soft: rgba(0, 188, 212, .08); }
.home-video { overflow: hidden; border-radius: var(--bs-card-border-radius, .375rem); }
.home-video-link { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); color: var(--text-primary); background: var(--bg-card); }
.home-video-link:hover { color: var(--text-primary); text-decoration: none; }
.home-video-image { position: relative; min-width: 0; background: var(--bg-body); display: flex; align-items: center; justify-content: center; }
.home-video-image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.home-video-image-fallback { display: none; padding: 24px; color: var(--text-secondary); }
.home-video-image.is-unavailable { min-height: 200px; }
.home-video-image.is-unavailable .home-video-image-fallback { display: block; }
.home-video-copy { padding: clamp(20px, 3vw, 40px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; border-left: 1px solid var(--border-color); }
.home-eyebrow { color: var(--brand-link); font-size: .75rem; font-weight: 600; letter-spacing: .08em; margin-bottom: 16px; }
.home-video-label { color: var(--text-secondary); font-size: .8rem; margin-bottom: 8px; }
.home-video-copy h1 { font-size: clamp(1.2rem, 2vw, 1.8rem); font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; margin: 0 0 12px; }
.home-video-meta { font-size: .85rem; color: var(--text-secondary); margin: 0 0 20px; }
.home-video-cta { display: inline-flex; align-items: center; gap: 10px; color: var(--brand-link); font-size: .9rem; font-weight: 600; }
.home-video-link:hover .home-video-cta { text-decoration: underline; }
.home-video-placeholder { min-height: 240px; background: var(--home-soft); color: var(--brand-link); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; font-size: 1.4rem; font-weight: 600; }
.home-video-placeholder i { font-size: 3.5rem; }
.home-section-heading { gap: 16px; }
.home-section-heading h2 { font-size: 1.5rem; }
.home-section-heading > a { white-space: nowrap; }
.home-content-card .card-title a { color: var(--text-primary); }
.home-content-card .card-title a:hover { color: var(--brand-link); }
.home-item-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .8rem; color: var(--text-secondary); }
.home-tag { display: inline-block; color: var(--brand-link); background: var(--home-soft); padding: 2px 8px; border-radius: 4px; font-size: .75rem; overflow-wrap: anywhere; }
.home-tag-neutral { color: var(--text-secondary); background: var(--bg-body); }
.home-summary { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-size: .9rem; line-height: 1.75; }
.home-resource-icon { flex: 0 0 64px; }
.home-resource-body { min-width: 0; }
.home-resource-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.home-tags { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.home-page a:focus-visible { outline: 2px solid var(--brand-link); outline-offset: 3px; }
[data-theme="dark"] .home-page { --home-soft: rgba(79, 208, 225, .1); }
@media (max-width: 1100px) and (min-width: 769px) {
    .home-video-copy { padding: 20px; }
    .home-video-copy h1 { font-size: 1.2rem; }
    .home-eyebrow { margin-bottom: 8px; }
}
@media (max-width: 640px) {
    .home-video-link { grid-template-columns: minmax(0, 1fr); }
    .home-video-copy { border-left: 0; border-top: 1px solid var(--border-color); padding: 20px; }
    .home-video-placeholder { min-height: 160px; }
    .home-section-heading h2 { font-size: 1.25rem; }
    .home-resource-icon { width: 48px; height: 48px; flex-basis: 48px; }
}

/* Reference layout: full-width banner, then articles | resources | original intro.
   Scoped to homepage content; no navigation or outer-frame geometry changes. */
.home-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}
.home-columns > * { min-width: 0; }
.home-columns .home-section-heading { flex-wrap: wrap; gap: 8px 12px; min-height: 37px; }
.home-columns .home-content-card .card-title { line-height: 1.5; }
.home-columns .home-resource-icon { width: 56px; height: 56px; flex-basis: 56px; }
@media (min-width: 992px) and (max-width: 1279px) {
    .home-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-about { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
}
@media (max-width: 991px) {
    .home-columns { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (max-width: 640px) {
    .home-columns .home-resource-icon { width: 48px; height: 48px; flex-basis: 48px; }
}

/* Five items per list; shared row tracks keep each article/resource pair aligned.
   Content determines row height, so long titles never overlap the next card. */
@media (min-width: 992px) {
    .home-columns {
        grid-template-rows: auto repeat(5, auto);
        row-gap: 16px;
    }
    .home-columns > .home-articles,
    .home-columns > .home-resources {
        display: grid;
        grid-template-rows: subgrid;
        grid-row: 1 / span 6;
        row-gap: 16px;
        align-self: stretch;
        margin-bottom: 0 !important;
    }
    .home-columns > .home-articles { grid-column: 1; }
    .home-columns > .home-resources { grid-column: 2; }
    .home-columns > .home-about { grid-column: 3; grid-row: 1 / span 6; }
    .home-columns > .home-articles > .home-section-heading,
    .home-columns > .home-resources > .home-section-heading,
    .home-columns > .home-articles > .card,
    .home-columns > .home-resources > .card { margin-bottom: 0 !important; }
    .home-resources .home-resource-body { display: flex; flex-direction: column; align-self: stretch; }
    .home-resources .home-resource-bottom { margin-top: auto; }
}
@media (min-width: 992px) and (max-width: 1279px) {
    .home-columns > .home-about { grid-column: 1 / -1; grid-row: 7; }
}

/* Keep the last aligned cards clear of the footer; preserve its existing frame. */
.home-page { padding-bottom: 32px; }
@media (max-width: 991px) {
    .home-page { padding-bottom: 24px; }
}
