@import url("/assets/css/typography.css?v=202607301049");

/*
 * We Are Loretto homepage — source-level compact layout
 * -----------------------------------------------------
 * This file styles the sections in their actual PHP order. It does not move,
 * clone, or hide homepage sections with JavaScript.
 */

.homepage-compact .compact-home-section {
  padding: 30px 0 34px;
}

.homepage-compact .eyebrow {
  margin-bottom: 6px;
  font-size: 9px;
}

.homepage-compact .eyebrow span {
  width: 24px;
}

.homepage-compact .button-compact {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 12px;
}

.homepage-compact .latest-news-heading,
.homepage-compact .events-bar,
.homepage-compact .compact-section-heading,
.homepage-compact .home-tool-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 16px;
}

.homepage-compact .latest-news-heading h2,
.homepage-compact .events-bar h2,
.homepage-compact .compact-section-heading h2,
.homepage-compact .home-tool-heading h2 {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  font-size: clamp(27px, 2.7vw, 38px);
  line-height: 1.04;
  letter-spacing: -.025em;
}

.homepage-compact .section-text-link,
.homepage-compact .latest-news-actions > a:not(.button),
.homepage-compact .events-bar-actions > a:not(.button),
.homepage-compact .compact-actions > a:not(.button) {
  color: #75581f;
  font-size: 12px;
  font-weight: 850;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  white-space: nowrap;
}

.homepage-compact .latest-news-actions,
.homepage-compact .events-bar-actions,
.homepage-compact .compact-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 14px;
}

/* Keep the weather useful without letting it dominate the page. */
.homepage-compact .weather-banner-inner {
  min-height: 54px;
  padding-block: 7px;
}

/* --------------------------------------------------------------------------
   Latest News base styles; v5 below uses one featured article plus three compact story bubbles.
   -------------------------------------------------------------------------- */
.homepage-compact .latest-news-home {
  padding: 30px 0 28px;
  background: var(--cream);
}

.homepage-compact #latest-news-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, .82fr));
  grid-template-rows: repeat(2, minmax(184px, auto));
  gap: 14px;
}

.homepage-compact #latest-news-grid .latest-news-card,
.homepage-compact #latest-news-grid .latest-news-loading {
  min-height: 184px;
  border-radius: 15px;
}

.homepage-compact #latest-news-grid .latest-news-card:first-child,
.homepage-compact #latest-news-grid .latest-news-loading:first-child {
  grid-row: 1 / 3;
  display: flex;
  min-height: 382px;
  flex-direction: column;
}

.homepage-compact #latest-news-grid .latest-news-card:first-child .latest-news-image,
.homepage-compact #latest-news-grid .latest-news-loading:first-child::before {
  width: 100%;
  height: 225px;
  min-height: 225px;
  aspect-ratio: auto;
}

.homepage-compact #latest-news-grid .latest-news-card:first-child .latest-news-card-copy {
  padding: 16px 17px 17px;
}

.homepage-compact #latest-news-grid .latest-news-card:first-child h3 {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.12;
  -webkit-line-clamp: 3;
}

.homepage-compact #latest-news-grid .latest-news-card:first-child p {
  display: -webkit-box;
  margin: 8px 0 10px;
  font-size: 11.5px;
  line-height: 1.42;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.homepage-compact #latest-news-grid .latest-news-card:not(:first-child),
.homepage-compact #latest-news-grid .latest-news-loading:not(:first-child) {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  overflow: hidden;
}

.homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-image {
  width: 112px;
  height: 100%;
  min-height: 184px;
  aspect-ratio: auto;
}

.homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-card-copy {
  padding: 12px 12px 11px;
}

.homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-meta {
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 6px;
  font-size: 7px;
}

.homepage-compact #latest-news-grid .latest-news-card:not(:first-child) h3 {
  font-size: 15.5px;
  line-height: 1.16;
  -webkit-line-clamp: 3;
}

.homepage-compact #latest-news-grid .latest-news-card:not(:first-child) p {
  display: none;
}

.homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-card-footer {
  gap: 8px;
  padding-top: 8px;
}

.homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-card-footer b,
.homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-views {
  font-size: 8px;
}

.homepage-compact #latest-news-grid .latest-news-loading:not(:first-child)::before {
  width: 112px;
  height: 100%;
  min-height: 184px;
  aspect-ratio: auto;
}

.homepage-compact #latest-news-grid .latest-news-loading:not(:first-child) div {
  padding: 13px;
}

.homepage-compact .recent-obituaries-link {
  display: flex;
  justify-content: flex-end;
  margin-top: 13px;
}

.homepage-compact .recent-obituaries-link a {
  color: #75581f;
  font-size: 12px;
  font-weight: 850;
  border-bottom: 1px solid var(--gold);
}

.homepage-compact .recent-obituaries-link a span {
  color: var(--gold);
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   Sports: preserve Game Day and Latest Finals, then compact both team groups.
   -------------------------------------------------------------------------- */
.homepage-compact .home-sports {
  padding: 29px 0 31px;
  border-top-width: 5px;
}

.homepage-compact .home-sports .sports-home-heading {
  align-items: center;
  margin-bottom: 14px;
}

.homepage-compact .home-sports .sports-home-heading .eyebrow {
  margin: 0;
}

.homepage-compact .home-sports-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, .55fr);
  gap: 14px;
}

.homepage-compact .home-game-day-panel,
.homepage-compact .home-finals-panel {
  padding: 15px;
  border-radius: 14px;
}

.homepage-compact .home-panel-title {
  margin-bottom: 10px;
}

.homepage-compact .home-panel-title h3 {
  font-size: 19px;
}

.homepage-compact .home-game-list {
  gap: 8px;
}

.homepage-compact .home-game-card {
  gap: 3px;
  min-width: 0;
  padding: 11px;
  border-radius: 10px;
}

.homepage-compact .home-game-card small {
  overflow: hidden;
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.homepage-compact .home-game-card strong {
  font-size: 13.5px;
}

.homepage-compact .home-game-card > span {
  font-size: 10.5px;
}

.homepage-compact .home-game-links {
  margin-top: 5px;
  padding-top: 6px;
  font-size: 9.5px;
}

.homepage-compact .home-final-list {
  gap: 6px;
}

.homepage-compact .home-final-row {
  padding: 10px;
  border-radius: 9px;
}

.homepage-compact .home-final-row strong,
.homepage-compact .home-final-row small {
  font-size: 12px;
}

.homepage-compact .home-final-row small.home-final-sport {
  font-size: 8px;
}

.homepage-compact .home-team-pages-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 13px;
}

.homepage-compact .home-team-pages {
  min-width: 0;
  margin: 0;
  padding: 13px;
  border-radius: 13px;
}

.homepage-compact .home-team-pages-heading {
  margin-bottom: 9px;
}

.homepage-compact .home-team-pages-heading h3 {
  font-size: 14px;
}

.homepage-compact .home-team-pages-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.homepage-compact .home-team-pages-grid a {
  min-height: 38px;
  gap: 6px;
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 10.5px;
  line-height: 1.16;
}

.homepage-compact .home-team-pages-grid b {
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   Upcoming events: five concise cards on one desktop row.
   -------------------------------------------------------------------------- */
.homepage-compact .upcoming-events {
  padding: 28px 0 31px;
  border-top-width: 4px;
}

.homepage-compact #event-list.event-list-wide {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.homepage-compact #event-list.event-list-wide .event-card {
  grid-template-columns: 49px minmax(0, 1fr);
  gap: 9px;
  min-width: 0;
  min-height: 100px;
  padding: 10px;
  border-radius: 13px;
}

.homepage-compact #event-list .event-date {
  min-height: 65px;
  border-radius: 10px;
}

.homepage-compact #event-list .event-date span {
  font-size: 8px;
}

.homepage-compact #event-list .event-date strong {
  font-size: 27px;
}

.homepage-compact #event-list .event-content {
  min-width: 0;
}

.homepage-compact #event-list .event-content h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  font-size: 14px;
  line-height: 1.18;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.homepage-compact #event-list .event-content p {
  overflow: hidden;
  margin-top: 5px;
  font-size: 9.5px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.homepage-compact #event-list .event-photo-note {
  margin-top: 3px;
  font-size: 8px;
}

.homepage-compact #event-list .event-arrow {
  display: none;
}

/* --------------------------------------------------------------------------
   Poll and jobs share one row instead of consuming two full-width sections.
   -------------------------------------------------------------------------- */
.homepage-compact .home-community-tools {
  color: #111;
  background: #f2ede3;
  border-top: 1px solid #dfd7ca;
}

.homepage-compact .home-community-tools-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  gap: 16px;
  align-items: stretch;
}

.homepage-compact .home-tool-panel {
  min-width: 0;
  padding: 19px;
  background: #fff;
  border: 1px solid #dcd4c6;
  border-radius: 17px;
  box-shadow: 0 11px 28px rgba(17, 17, 17, .07);
}

.homepage-compact .home-tool-heading {
  align-items: center;
  margin-bottom: 13px;
}

.homepage-compact .home-tool-heading h2 {
  font-size: clamp(24px, 2.35vw, 32px);
}

.homepage-compact .home-tool-panel .home-poll-shell {
  display: block;
}

.homepage-compact .home-tool-panel .home-poll-card {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.homepage-compact .home-tool-panel .wal-poll-heading {
  gap: 14px;
}

.homepage-compact .home-tool-panel .wal-poll-heading h2 {
  margin-top: 3px;
  font-size: clamp(21px, 2vw, 27px);
  line-height: 1.12;
}

.homepage-compact .home-tool-panel .poll-status-badge {
  padding: 5px 9px;
  font-size: 9px;
}

.homepage-compact .home-tool-panel .wal-poll-form {
  margin-top: 15px;
}

.homepage-compact .home-tool-panel .wal-poll-form fieldset {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.homepage-compact .home-tool-panel .wal-poll-option {
  min-height: 45px;
  padding: 9px 11px;
  border-radius: 10px;
  font-size: 13px;
}

.homepage-compact .home-tool-panel .wal-poll-option input {
  width: 17px;
  height: 17px;
}

.homepage-compact .home-tool-panel .wal-poll-actions {
  margin-top: 13px;
}

.homepage-compact .home-tool-panel .wal-poll-footer {
  margin-top: 14px;
  padding-top: 12px;
}

.homepage-compact .home-tool-panel .facebook-share-button {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 11px;
}

.homepage-compact .home-jobs-list {
  display: grid;
  gap: 8px;
}

.homepage-compact .home-job-row {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  padding: 11px 12px;
  color: #111;
  background: #fbfaf7;
  border: 1px solid #ded6c6;
  border-radius: 11px;
  transition: transform .18s ease, border-color .18s ease;
}

.homepage-compact .home-job-row:hover,
.homepage-compact .home-job-row:focus-visible {
  transform: translateX(2px);
  border-color: var(--gold);
}

.homepage-compact .home-job-row-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.homepage-compact .home-job-row small {
  overflow: hidden;
  color: #80621e;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .055em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.homepage-compact .home-job-row strong {
  overflow: hidden;
  font-size: 14px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.homepage-compact .home-job-row-meta {
  display: flex;
  overflow: hidden;
  color: #68635a;
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.homepage-compact .home-job-row-meta span + span::before {
  content: " • ";
  margin-inline: 4px;
}

.homepage-compact .home-job-row > b {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 19px;
}

.homepage-compact .home-jobs-empty,
.homepage-compact .home-poll-empty {
  margin: 0;
  padding: 20px;
  color: #5d5d5d;
  background: #fbfaf7;
  border: 1px dashed #cfc7b8;
  border-radius: 12px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Directories and featured businesses remain together.
   -------------------------------------------------------------------------- */
.homepage-compact .explore-loretto {
  color: #fff;
  background: linear-gradient(120deg, #1b1b1b, #0b0b0b);
}

.homepage-compact .explore-loretto .compact-section-heading h2 {
  color: #fff;
}

.homepage-compact .explore-loretto .section-text-link {
  color: var(--gold-light);
}

.homepage-compact .explore-loretto-grid {
  display: grid;
  grid-template-columns: minmax(270px, .68fr) minmax(0, 1.55fr);
  gap: 15px;
  align-items: stretch;
}

.homepage-compact .directory-link-stack {
  display: grid;
  gap: 9px;
}

.homepage-compact .directory-link-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 0;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  color: #fff;
  background: #181818;
  border: 1px solid #353535;
  border-radius: 12px;
}

.homepage-compact .directory-card-icon {
  width: 42px;
  height: 42px;
}

.homepage-compact .directory-card-icon svg {
  width: 21px;
}

.homepage-compact .directory-link-card small {
  margin-bottom: 2px;
  font-size: 8px;
}

.homepage-compact .directory-link-card strong {
  font-size: 18px;
}

.homepage-compact .directory-link-card em {
  overflow: hidden;
  margin-top: 2px;
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.homepage-compact .featured-businesses-area {
  min-width: 0;
  padding: 13px;
  color: #111;
  background: #f4efe4;
  border-radius: 14px;
}

.homepage-compact .featured-businesses-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 9px;
}

.homepage-compact .featured-businesses-label strong {
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
}

.homepage-compact .featured-businesses-label span {
  color: #6a655c;
  font-size: 9px;
}

.homepage-compact .around-town-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.homepage-compact .around-town-grid .business-mini-card,
.homepage-compact .around-town-grid .loading-card {
  min-height: 86px;
  padding: 11px 12px;
  background: #fff;
  border: 1px solid #ded7ca;
  border-radius: 10px;
}

.homepage-compact .around-town-grid .business-mini-card h4 {
  display: -webkit-box;
  overflow: hidden;
  margin: 3px 0 4px;
  font-size: 14px;
  line-height: 1.16;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.homepage-compact .around-town-grid .mini-category {
  font-size: 7.5px;
}

.homepage-compact .around-town-grid .mini-meta {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Compact Facebook / contribution strip. No embedded 500px Facebook panel.
   -------------------------------------------------------------------------- */
.homepage-compact .home-community-strip {
  padding: 19px 0;
  color: #111;
  background: #dfbd68;
  border-top: 1px solid #b98c30;
}

.homepage-compact .home-community-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.homepage-compact .home-community-strip-copy {
  min-width: 260px;
}

.homepage-compact .home-community-strip-copy .eyebrow {
  margin: 0 0 4px;
  color: #4e390d;
}

.homepage-compact .home-community-strip-copy .eyebrow span {
  background: #111;
}

.homepage-compact .home-community-strip-copy strong {
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.2;
}

.homepage-compact .home-community-strip-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.homepage-compact .home-community-strip-links a {
  display: inline-flex;
  min-height: 35px;
  align-items: center;
  padding: 7px 11px;
  color: #111;
  background: rgba(255, 255, 255, .58);
  border: 1px solid rgba(17, 17, 17, .18);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
}

.homepage-compact .home-community-strip-links a:hover,
.homepage-compact .home-community-strip-links a:focus-visible {
  background: #fff;
  border-color: #111;
}

.homepage-compact .home-community-strip-links .community-strip-facebook {
  color: #fff;
  background: #1877f2;
  border-color: #1877f2;
}

.homepage-compact .compact-footer {
  padding: 14px 0;
}

.homepage-compact .footer-desktop-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.homepage-compact .footer-desktop-row p {
  margin: 0;
}

.homepage-compact .footer-mobile-nav {
  display: none;
}

/* --------------------------------------------------------------------------
   Responsive adjustments.
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .homepage-compact #latest-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .homepage-compact #latest-news-grid .latest-news-card:first-child,
  .homepage-compact #latest-news-grid .latest-news-loading:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
    display: grid;
    min-height: 250px;
    grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
  }

  .homepage-compact #latest-news-grid .latest-news-card:first-child .latest-news-image,
  .homepage-compact #latest-news-grid .latest-news-loading:first-child::before {
    width: 100%;
    height: 100%;
    min-height: 250px;
  }

  .homepage-compact #event-list.event-list-wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .homepage-compact .home-team-pages-wrap,
  .homepage-compact .home-community-tools-grid {
    grid-template-columns: 1fr;
  }

  .homepage-compact .home-community-tools-grid {
    gap: 13px;
  }
}

@media (max-width: 920px) {
  .homepage-compact .compact-home-section {
    padding: 27px 0 30px;
  }

  .homepage-compact .home-sports-grid,
  .homepage-compact .explore-loretto-grid {
    grid-template-columns: 1fr;
  }

  .homepage-compact .home-community-strip-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .homepage-compact .home-community-strip-links {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .homepage-compact .latest-news-heading,
  .homepage-compact .events-bar,
  .homepage-compact .compact-section-heading,
  .homepage-compact .home-tool-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .homepage-compact .latest-news-actions,
  .homepage-compact .events-bar-actions,
  .homepage-compact .compact-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .homepage-compact #latest-news-grid {
    grid-template-columns: 1fr;
  }

  .homepage-compact #latest-news-grid .latest-news-card:first-child,
  .homepage-compact #latest-news-grid .latest-news-loading:first-child {
    grid-column: auto;
    display: flex;
    min-height: 0;
  }

  .homepage-compact #latest-news-grid .latest-news-card:first-child .latest-news-image,
  .homepage-compact #latest-news-grid .latest-news-loading:first-child::before {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child),
  .homepage-compact #latest-news-grid .latest-news-loading:not(:first-child) {
    grid-template-columns: 110px minmax(0, 1fr);
    min-height: 150px;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-image,
  .homepage-compact #latest-news-grid .latest-news-loading:not(:first-child)::before {
    width: 110px;
    min-height: 150px;
  }

  .homepage-compact .recent-obituaries-link {
    justify-content: flex-start;
  }

  .homepage-compact #event-list.event-list-wide {
    display: grid;
    grid-auto-columns: minmax(235px, 82%);
    grid-template-columns: none;
    grid-auto-flow: column;
    overflow-x: auto;
    padding-bottom: 5px;
    scroll-snap-type: x proximity;
  }

  .homepage-compact #event-list.event-list-wide .event-card {
    scroll-snap-align: start;
  }

  .homepage-compact .home-team-pages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .homepage-compact .home-tool-panel .wal-poll-form fieldset,
  .homepage-compact .around-town-grid {
    grid-template-columns: 1fr;
  }

  .homepage-compact .featured-businesses-label {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .homepage-compact .footer-desktop-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .homepage-compact .footer-mobile-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
    font-size: 11px;
  }
}

@media (max-width: 520px) {
  .homepage-compact .home-sports .sports-home-heading {
    align-items: flex-start;
  }

  .homepage-compact .home-sports-actions,
  .homepage-compact .latest-news-actions,
  .homepage-compact .events-bar-actions {
    width: 100%;
  }

  .homepage-compact .home-sports-actions .button,
  .homepage-compact .latest-news-actions .button,
  .homepage-compact .events-bar-actions .button {
    width: 100%;
    justify-content: center;
  }

  .homepage-compact .home-community-strip-copy {
    min-width: 0;
  }

  .homepage-compact .home-community-strip-links a {
    min-height: 34px;
    padding-inline: 10px;
  }
}

/* --------------------------------------------------------------------------
   Latest News v6: a shorter featured card and three tighter stacked bubbles.
   The two columns finish at the same height on desktop.
   -------------------------------------------------------------------------- */
.homepage-compact #latest-news-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(360px, .9fr);
  grid-template-rows: repeat(3, 112px);
  gap: 9px 14px;
  align-items: stretch;
}

.homepage-compact #latest-news-grid .latest-news-card,
.homepage-compact #latest-news-grid .latest-news-loading {
  min-width: 0;
  overflow: hidden;
  border-radius: 15px;
}

/* Featured story: exactly matches the combined height of the three bubbles. */
.homepage-compact #latest-news-grid .latest-news-card:first-child,
.homepage-compact #latest-news-grid .latest-news-loading:first-child {
  grid-column: 1;
  grid-row: 1 / 4;
  display: grid;
  min-height: 354px;
  grid-template-rows: 218px minmax(0, 1fr);
}

.homepage-compact #latest-news-grid .latest-news-card:first-child .latest-news-image,
.homepage-compact #latest-news-grid .latest-news-loading:first-child::before {
  width: 100%;
  height: 218px;
  min-height: 218px;
  aspect-ratio: auto;
  overflow: hidden;
}

.homepage-compact #latest-news-grid .latest-news-card:first-child .latest-news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.homepage-compact #latest-news-grid .latest-news-card:first-child .latest-news-card-copy {
  min-height: 0;
  padding: 12px 16px 13px;
}

.homepage-compact #latest-news-grid .latest-news-card:first-child .latest-news-meta {
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 7.5px;
}

.homepage-compact #latest-news-grid .latest-news-card:first-child h3 {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.08;
  -webkit-line-clamp: 2;
}

.homepage-compact #latest-news-grid .latest-news-card:first-child p {
  display: -webkit-box;
  margin: 6px 0 7px;
  overflow: hidden;
  color: #6a655c;
  font-size: 10.5px;
  line-height: 1.34;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.homepage-compact #latest-news-grid .latest-news-card:first-child .latest-news-card-footer {
  margin-top: auto;
  padding-top: 0;
}

/* Three smaller news bubbles with large horizontal 16:9 photos. */
.homepage-compact #latest-news-grid .latest-news-card:not(:first-child),
.homepage-compact #latest-news-grid .latest-news-loading:not(:first-child) {
  grid-column: 2;
  display: grid;
  min-height: 112px;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: stretch;
}

.homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-image,
.homepage-compact #latest-news-grid .latest-news-loading:not(:first-child)::before {
  width: 160px;
  height: 90px;
  min-height: 90px;
  margin: 11px 0 11px 10px;
  align-self: center;
  aspect-ratio: 16 / 9;
  border-radius: 9px;
  overflow: hidden;
}

.homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-card-copy {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 10px 12px 10px 0;
}

.homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-meta {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  gap: 7px;
  margin-bottom: 4px;
  font-size: 6.5px;
  white-space: nowrap;
}

.homepage-compact #latest-news-grid .latest-news-card:not(:first-child) h3 {
  font-size: 14.5px;
  line-height: 1.12;
  -webkit-line-clamp: 2;
}

.homepage-compact #latest-news-grid .latest-news-card:not(:first-child) p {
  display: none;
}

.homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-card-footer {
  gap: 7px;
  margin-top: auto;
  padding-top: 5px;
}

.homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-card-footer b,
.homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-views {
  font-size: 7.5px;
}

.homepage-compact #latest-news-grid .latest-news-loading:not(:first-child) div {
  min-width: 0;
  padding: 10px;
}

@media (max-width: 1050px) {
  .homepage-compact #latest-news-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr);
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child),
  .homepage-compact #latest-news-grid .latest-news-loading:not(:first-child) {
    grid-template-columns: 154px minmax(0, 1fr);
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-image,
  .homepage-compact #latest-news-grid .latest-news-loading:not(:first-child)::before {
    width: 136px;
    height: 77px;
    min-height: 77px;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) h3 {
    font-size: 13.5px;
  }
}

@media (max-width: 820px) {
  .homepage-compact #latest-news-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 10px;
  }

  .homepage-compact #latest-news-grid .latest-news-card:first-child,
  .homepage-compact #latest-news-grid .latest-news-loading:first-child {
    grid-column: 1;
    grid-row: auto;
    display: flex;
    min-height: 0;
  }

  .homepage-compact #latest-news-grid .latest-news-card:first-child .latest-news-image,
  .homepage-compact #latest-news-grid .latest-news-loading:first-child::before {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child),
  .homepage-compact #latest-news-grid .latest-news-loading:not(:first-child) {
    grid-column: 1;
    min-height: 112px;
    grid-template-columns: 158px minmax(0, 1fr);
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-image,
  .homepage-compact #latest-news-grid .latest-news-loading:not(:first-child)::before {
    width: 140px;
    height: 79px;
    min-height: 79px;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) h3 {
    font-size: 16px;
  }
}

@media (max-width: 520px) {
  .homepage-compact #latest-news-grid .latest-news-card:first-child .latest-news-card-copy {
    padding: 14px 15px 15px;
  }

  .homepage-compact #latest-news-grid .latest-news-card:first-child h3 {
    font-size: 22px;
  }

  .homepage-compact #latest-news-grid .latest-news-card:first-child p {
    font-size: 10.5px;
    -webkit-line-clamp: 2;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child),
  .homepage-compact #latest-news-grid .latest-news-loading:not(:first-child) {
    min-height: 104px;
    grid-template-columns: 126px minmax(0, 1fr);
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-image,
  .homepage-compact #latest-news-grid .latest-news-loading:not(:first-child)::before {
    width: 108px;
    height: 61px;
    min-height: 61px;
    margin-left: 9px;
    border-radius: 8px;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-card-copy {
    padding: 8px 9px 8px 0;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 1px;
    margin-bottom: 3px;
    white-space: normal;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) h3 {
    font-size: 14.5px;
    -webkit-line-clamp: 2;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-card-footer b {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Latest News v7: true 800 x 450 featured image frame on full desktop.
   The image remains 16:9 and scales responsively below 800 pixels wide.
   -------------------------------------------------------------------------- */
@media (min-width: 821px) {
  .homepage-compact #latest-news-grid {
    grid-template-columns: minmax(0, 800px) minmax(330px, 1fr);
    grid-template-rows: repeat(3, minmax(112px, 1fr));
    align-items: stretch;
  }

  .homepage-compact #latest-news-grid .latest-news-card:first-child,
  .homepage-compact #latest-news-grid .latest-news-loading:first-child {
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .homepage-compact #latest-news-grid .latest-news-card:first-child .latest-news-image,
  .homepage-compact #latest-news-grid .latest-news-loading:first-child::before {
    width: 100%;
    max-width: 800px;
    height: auto;
    min-height: 0;
    aspect-ratio: 800 / 450;
  }

  .homepage-compact #latest-news-grid .latest-news-card:first-child .latest-news-image img {
    width: 100%;
    height: 100%;
    aspect-ratio: 800 / 450;
    object-fit: cover;
    object-position: center;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child),
  .homepage-compact #latest-news-grid .latest-news-loading:not(:first-child) {
    min-height: 112px;
    height: 100%;
  }
}

@media (max-width: 1180px) and (min-width: 821px) {
  .homepage-compact #latest-news-grid {
    grid-template-columns: minmax(0, 2fr) minmax(330px, .95fr);
  }
}

/* --------------------------------------------------------------------------
   Latest News v10 — matches the supplied index reference.
   One 800x450 featured story on the left and three full, horizontal bubbles
   on the right. The rest of the compact homepage remains unchanged.
   -------------------------------------------------------------------------- */
@media (min-width: 821px) {
  .homepage-compact #latest-news-grid {
    height: clamp(480px, 40vw, 596px);
    grid-template-columns: minmax(0, 800px) minmax(360px, 1fr);
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 13px 15px;
    align-items: stretch;
  }

  .homepage-compact #latest-news-grid .latest-news-card,
  .homepage-compact #latest-news-grid .latest-news-loading {
    min-height: 0;
    height: 100%;
  }

  .homepage-compact #latest-news-grid .latest-news-card:first-child,
  .homepage-compact #latest-news-grid .latest-news-loading:first-child {
    grid-column: 1;
    grid-row: 1 / 4;
    display: flex;
    min-height: 0;
    height: 100%;
    flex-direction: column;
  }

  .homepage-compact #latest-news-grid .latest-news-card:first-child .latest-news-image,
  .homepage-compact #latest-news-grid .latest-news-loading:first-child::before {
    width: 100%;
    height: auto;
    max-height: 450px;
    min-height: 0;
    flex: 0 0 auto;
    aspect-ratio: 16 / 9;
  }

  .homepage-compact #latest-news-grid .latest-news-card:first-child .latest-news-card-copy {
    min-height: 0;
    flex: 1 1 auto;
    padding: 15px 18px 16px;
  }

  .homepage-compact #latest-news-grid .latest-news-card:first-child h3 {
    font-size: clamp(23px, 2vw, 30px);
    line-height: 1.1;
    -webkit-line-clamp: 2;
  }

  .homepage-compact #latest-news-grid .latest-news-card:first-child p {
    display: -webkit-box;
    margin: 7px 0 9px;
    font-size: 11.5px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child),
  .homepage-compact #latest-news-grid .latest-news-loading:not(:first-child) {
    grid-column: 2;
    display: grid;
    min-height: 0;
    height: 100%;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: stretch;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-image,
  .homepage-compact #latest-news-grid .latest-news-loading:not(:first-child)::before {
    width: auto;
    height: calc(100% - 20px);
    min-height: 0;
    margin: 10px;
    align-self: center;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-card-copy {
    min-width: 0;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 12px 14px 12px 2px;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-meta {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 7px;
    white-space: nowrap;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) h3 {
    font-size: clamp(15px, 1.15vw, 18px);
    line-height: 1.15;
    -webkit-line-clamp: 2;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) p {
    display: -webkit-box;
    margin: 5px 0 6px;
    overflow: hidden;
    color: #6a655c;
    font-size: 10px;
    line-height: 1.32;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-card-footer {
    gap: 10px;
    margin-top: auto;
    padding-top: 5px;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-card-footer b,
  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-views {
    font-size: 8px;
  }
}

@media (min-width: 821px) and (max-width: 1180px) {
  .homepage-compact #latest-news-grid {
    height: 480px;
    grid-template-columns: minmax(0, 1.2fr) minmax(350px, .9fr);
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-image,
  .homepage-compact #latest-news-grid .latest-news-loading:not(:first-child)::before {
    height: calc(100% - 24px);
    margin: 12px 9px;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) p {
    display: none;
  }
}

@media (max-width: 820px) {
  .homepage-compact #latest-news-grid {
    height: auto;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child),
  .homepage-compact #latest-news-grid .latest-news-loading:not(:first-child) {
    min-height: 128px;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: stretch;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-image,
  .homepage-compact #latest-news-grid .latest-news-loading:not(:first-child)::before {
    width: auto;
    height: calc(100% - 20px);
    min-height: 0;
    margin: 10px;
    align-self: center;
    aspect-ratio: 16 / 9;
    border-radius: 9px;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-card-copy {
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 10px 11px 10px 0;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-meta {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 7px;
    white-space: nowrap;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-card-footer {
    margin-top: auto;
  }
}

@media (max-width: 520px) {
  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child),
  .homepage-compact #latest-news-grid .latest-news-loading:not(:first-child) {
    min-height: 112px;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-image,
  .homepage-compact #latest-news-grid .latest-news-loading:not(:first-child)::before {
    height: calc(100% - 18px);
    margin: 9px 8px;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-card-copy {
    padding: 9px 8px 9px 0;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 1px;
    margin-bottom: 3px;
    white-space: normal;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) h3 {
    font-size: 14px;
    -webkit-line-clamp: 2;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) p {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Latest News v11 — smaller story photos sit above their story copy.
   On desktop the image is a wide horizontal strip across the top of each
   stacked bubble. On mobile it returns to a full responsive 16:9 image.
   -------------------------------------------------------------------------- */
@media (min-width: 821px) {
  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child),
  .homepage-compact #latest-news-grid .latest-news-loading:not(:first-child) {
    display: flex;
    min-height: 0;
    height: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-image,
  .homepage-compact #latest-news-grid .latest-news-loading:not(:first-child)::before {
    width: 100%;
    height: clamp(70px, 7vw, 88px);
    min-height: 70px;
    margin: 0;
    flex: 0 0 auto;
    align-self: stretch;
    aspect-ratio: auto;
    border-radius: 0;
    overflow: hidden;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-card-copy {
    min-width: 0;
    min-height: 0;
    height: auto;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 8px 12px 9px;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-meta {
    margin-bottom: 3px;
    font-size: 6.5px;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) h3 {
    font-size: clamp(14px, 1.05vw, 17px);
    line-height: 1.12;
    -webkit-line-clamp: 2;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) p {
    display: none;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-card-footer {
    margin-top: auto;
    padding-top: 4px;
  }
}

@media (min-width: 821px) and (max-width: 1180px) {
  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-image,
  .homepage-compact #latest-news-grid .latest-news-loading:not(:first-child)::before {
    height: 68px;
    min-height: 68px;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-card-copy {
    padding: 7px 10px 8px;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) h3 {
    font-size: 13.5px;
  }
}

@media (max-width: 820px) {
  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child),
  .homepage-compact #latest-news-grid .latest-news-loading:not(:first-child) {
    display: flex;
    min-height: 0;
    height: auto;
    flex-direction: column;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-image,
  .homepage-compact #latest-news-grid .latest-news-loading:not(:first-child)::before {
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    align-self: stretch;
    aspect-ratio: 16 / 9;
    border-radius: 0;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-card-copy {
    height: auto;
    padding: 11px 13px 12px;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-meta {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 5px;
    white-space: nowrap;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) h3 {
    font-size: 17px;
    -webkit-line-clamp: 2;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-card-footer b {
    display: inline;
  }
}

/* --------------------------------------------------------------------------
   Latest News v12 — improve the crop of the top-mounted small-story photos.
   The right column is slightly narrower and the image strip is taller, so
   landscape photos retain substantially more of their original composition.
   -------------------------------------------------------------------------- */
@media (min-width: 821px) {
  .homepage-compact #latest-news-grid {
    height: clamp(540px, 43vw, 630px);
    grid-template-columns: minmax(0, 800px) minmax(300px, 340px);
    justify-content: space-between;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-image,
  .homepage-compact #latest-news-grid .latest-news-loading:not(:first-child)::before {
    height: clamp(102px, 8.4vw, 116px);
    min-height: 102px;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-image img {
    object-position: center 45%;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-card-copy {
    padding: 8px 12px 9px;
  }
}

@media (min-width: 821px) and (max-width: 1180px) {
  .homepage-compact #latest-news-grid {
    height: 540px;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 325px);
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-image,
  .homepage-compact #latest-news-grid .latest-news-loading:not(:first-child)::before {
    height: 98px;
    min-height: 98px;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) h3 {
    font-size: 13.5px;
  }
}

/* --------------------------------------------------------------------------
   Latest News v13 — prioritize complete small-story headlines.
   The top-mounted landscape photos remain unchanged, while the three right
   cards gain enough copy space for up to four headline lines. The redundant
   "Read story" label is hidden on desktop so the headline receives priority.
   -------------------------------------------------------------------------- */
@media (min-width: 821px) {
  .homepage-compact #latest-news-grid {
    height: clamp(600px, 46vw, 690px);
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-card-copy {
    padding: 7px 11px 8px;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-meta {
    margin-bottom: 3px;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) h3 {
    display: -webkit-box;
    overflow: hidden;
    font-size: clamp(13.5px, 1vw, 16px);
    line-height: 1.1;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-card-footer {
    min-height: 10px;
    padding-top: 2px;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-card-footer b {
    display: none;
  }
}

@media (min-width: 821px) and (max-width: 1180px) {
  .homepage-compact #latest-news-grid {
    height: 600px;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) h3 {
    font-size: 13.5px;
    -webkit-line-clamp: 4;
  }
}

@media (max-width: 820px) {
  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) h3 {
    -webkit-line-clamp: 3;
  }
}

/* ===========================================================================
   Latest News v14 — exact reference layout supplied by the site owner.
   One large featured story on the left; three landscape-photo story bubbles
   stacked on the right with the photo filling the left side of each bubble.
   =========================================================================== */
@media (min-width: 821px) {
  .homepage-compact #latest-news-grid {
    display: grid;
    height: auto;
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 13px 15px;
    align-items: stretch;
  }

  .homepage-compact #latest-news-grid .latest-news-card,
  .homepage-compact #latest-news-grid .latest-news-loading {
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    border-radius: 15px;
  }

  /* Featured story. */
  .homepage-compact #latest-news-grid .latest-news-card:first-child,
  .homepage-compact #latest-news-grid .latest-news-loading:first-child {
    grid-column: 1;
    grid-row: 1 / 4;
    display: flex;
    min-height: 0;
    height: 100%;
    flex-direction: column;
  }

  .homepage-compact #latest-news-grid .latest-news-card:first-child .latest-news-image,
  .homepage-compact #latest-news-grid .latest-news-loading:first-child::before {
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    flex: 0 0 auto;
    align-self: stretch;
    aspect-ratio: 16 / 8.7;
    border-radius: 0;
    overflow: hidden;
  }

  .homepage-compact #latest-news-grid .latest-news-card:first-child .latest-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .homepage-compact #latest-news-grid .latest-news-card:first-child .latest-news-card-copy {
    min-height: 0;
    height: auto;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 17px 18px 18px;
  }

  .homepage-compact #latest-news-grid .latest-news-card:first-child .latest-news-meta {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 9px;
    font-size: 8px;
    white-space: nowrap;
  }

  .homepage-compact #latest-news-grid .latest-news-card:first-child h3 {
    display: -webkit-box;
    overflow: hidden;
    font-size: clamp(22px, 2vw, 29px);
    line-height: 1.12;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .homepage-compact #latest-news-grid .latest-news-card:first-child p {
    display: -webkit-box;
    margin: 8px 0 11px;
    overflow: hidden;
    color: #6a655c;
    font-size: 12px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .homepage-compact #latest-news-grid .latest-news-card:first-child .latest-news-card-footer {
    min-height: 0;
    margin-top: auto;
    padding-top: 7px;
  }

  .homepage-compact #latest-news-grid .latest-news-card:first-child .latest-news-card-footer b {
    display: inline;
  }

  /* Three stacked stories on the right. */
  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child),
  .homepage-compact #latest-news-grid .latest-news-loading:not(:first-child) {
    grid-column: 2;
    display: grid;
    min-height: 0;
    height: 100%;
    grid-template-columns: 154px minmax(0, 1fr);
    grid-template-rows: 1fr;
    align-items: stretch;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-image,
  .homepage-compact #latest-news-grid .latest-news-loading:not(:first-child)::before {
    width: 154px;
    height: 100%;
    min-height: 0;
    margin: 0;
    align-self: stretch;
    aspect-ratio: auto;
    border-radius: 0;
    overflow: hidden;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-card-copy {
    min-width: 0;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 12px 14px;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-meta {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 7.5px;
    white-space: nowrap;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) h3 {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    font-size: 17px;
    line-height: 1.15;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) p {
    display: -webkit-box;
    margin: 6px 0 8px;
    overflow: hidden;
    color: #6a655c;
    font-size: 10.5px;
    line-height: 1.38;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-card-footer {
    min-height: 0;
    gap: 10px;
    margin-top: auto;
    padding-top: 7px;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-card-footer b {
    display: inline;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-card-footer b,
  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-views {
    font-size: 9px;
  }

  .homepage-compact #latest-news-grid .latest-news-loading:not(:first-child) div {
    min-width: 0;
    height: 100%;
    padding: 12px 14px;
  }
}

@media (min-width: 821px) and (max-width: 1220px) {
  .homepage-compact #latest-news-grid {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child),
  .homepage-compact #latest-news-grid .latest-news-loading:not(:first-child) {
    grid-template-columns: 124px minmax(0, 1fr);
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-image,
  .homepage-compact #latest-news-grid .latest-news-loading:not(:first-child)::before {
    width: 124px;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) h3 {
    font-size: 15px;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) p {
    font-size: 9.5px;
  }
}

/* Tablet and phone: preserve the same photo-left story-bubble relationship. */
@media (max-width: 820px) {
  .homepage-compact #latest-news-grid {
    display: grid;
    height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 13px;
  }

  .homepage-compact #latest-news-grid .latest-news-card:first-child,
  .homepage-compact #latest-news-grid .latest-news-loading:first-child {
    grid-column: auto;
    grid-row: auto;
    height: auto;
  }

  .homepage-compact #latest-news-grid .latest-news-card:first-child .latest-news-image,
  .homepage-compact #latest-news-grid .latest-news-loading:first-child::before {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child),
  .homepage-compact #latest-news-grid .latest-news-loading:not(:first-child) {
    grid-column: auto;
    display: grid;
    min-height: 150px;
    height: auto;
    grid-template-columns: 132px minmax(0, 1fr);
    align-items: stretch;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-image,
  .homepage-compact #latest-news-grid .latest-news-loading:not(:first-child)::before {
    width: 132px;
    height: 100%;
    min-height: 150px;
    margin: 0;
    aspect-ratio: auto;
    border-radius: 0;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-card-copy {
    height: auto;
    padding: 12px 13px;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 5px;
    white-space: normal;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) h3 {
    font-size: 16px;
    -webkit-line-clamp: 4;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) p {
    display: none;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-card-footer b {
    display: inline;
  }
}

@media (max-width: 430px) {
  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child),
  .homepage-compact #latest-news-grid .latest-news-loading:not(:first-child) {
    min-height: 138px;
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) .latest-news-image,
  .homepage-compact #latest-news-grid .latest-news-loading:not(:first-child)::before {
    width: 104px;
    min-height: 138px;
  }

  .homepage-compact #latest-news-grid .latest-news-card:not(:first-child) h3 {
    font-size: 15px;
    -webkit-line-clamp: 4;
  }
}
