/* Homepage feeds use the number of real items, without empty reserved columns. */
/* Let headings wrap naturally without squeezing their navigation links. */
#main > .section .section-head { display:flex; flex-wrap:wrap; align-items:flex-end; gap:18px 32px; border-bottom:1px solid #ccd7e5; padding-bottom:22px; margin-bottom:30px; }
#main > .section .section-head > div { flex:1 1 540px; min-width:0; max-width:880px; }
#main > .section .section-head h2 { font-size:clamp(30px,3.1vw,44px); line-height:1.14; letter-spacing:-.03em; font-weight:750; }
#main > .section .section-head .label { margin:0 0 10px; }
#main > .section .section-head > .btn { flex:0 0 auto; width:auto; max-width:100%; min-height:44px; padding:10px 0; gap:10px; border:0; background:transparent; box-shadow:none; color:#174ea6; font-size:15px; line-height:24px; font-weight:650; letter-spacing:0; white-space:nowrap; }
#main > .section .section-head > .btn::after { content:'\2192'; font-size:20px; line-height:1; }
#main > .section .section-head > .btn:hover { color:#061b46; text-decoration:underline; text-underline-offset:5px; filter:none; transform:none; }
#main > .section .section-head > .btn:focus-visible { outline:3px solid #1f5fc4; outline-offset:5px; }
.home-feed-grid { display:grid; gap:24px; grid-template-columns:repeat(3,minmax(0,1fr)); }
.home-feed-grid[data-count="2"] { grid-template-columns:repeat(2,minmax(0,1fr)); }
.home-feed-grid[data-count="1"],.home-feed-grid[data-count="0"] { grid-template-columns:minmax(0,1fr); }
.home-work-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); }
.home-feed-grid > .card { padding:0; overflow:hidden; }
.home-feed-grid > .card > img { display:block; width:100%; height:240px; object-fit:cover; margin:0; }
.home-feed-grid > .card > .card-body { min-width:0; padding:26px; }
.home-feed-grid > .card h3 { overflow-wrap:anywhere; }
.home-feed-grid .event-status { display:inline-block; margin:0 0 12px; padding:5px 10px; background:#eaf1fb; color:#123e78; font-size:13px; line-height:1.4; font-weight:700; }
.home-feed-grid[data-count="1"] > .card { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); align-items:center; }
.home-feed-grid[data-count="1"] > .card > .card-body { grid-column:1/-1; }
.home-feed-grid[data-count="1"] > .card > img { height:100%; min-height:260px; max-height:440px; }
.home-feed-grid[data-count="1"] > .card > img + .card-body { grid-column:auto; }
.home-feed-grid[data-count="1"] > .directory-card { display:grid; grid-template-columns:minmax(240px,.8fr) minmax(0,1.2fr); }
.home-feed-grid[data-count="1"] > .directory-card .directory-photo { aspect-ratio:auto; height:100%; min-height:300px; }
@media(max-width:1000px) {
 .home-feed-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:640px) {
 #main > .section .section-head { flex-direction:column; align-items:flex-start; gap:8px; padding-bottom:16px; margin-bottom:24px; }
 #main > .section .section-head > div { flex:0 1 auto; width:100%; }
 .home-feed-grid,.home-feed-grid[data-count="2"] { grid-template-columns:minmax(0,1fr); }
 .home-feed-grid[data-count="1"] > .card,.home-feed-grid[data-count="1"] > .directory-card { display:flex; flex-direction:column; align-items:stretch; }
 .home-feed-grid[data-count="1"] > .card > img { height:220px; min-height:0; }
 .home-feed-grid[data-count="1"] > .directory-card .directory-photo { height:auto; min-height:0; aspect-ratio:4/3; }
}
