/* STEP229: polish of approved STEP228 homepage, replaces its stylesheet. */
@media (min-width: 901px) {
  .news190:not(:has(.news190-pagehead--search)) > .news190-lead {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 18px !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    align-items: stretch !important;
  }
  .news190:not(:has(.news190-pagehead--search)) > .news190-lead > .news190-hero {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    min-width: 0;
    width: 100%;
    align-self: stretch;
    border: 1px solid #e1e5ea;
    border-radius: 11px;
    padding: 14px !important;
    background: #fff;
    position: relative;
  }
  .news190 .news190-hero-image {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    border-radius: 8px;
    overflow: hidden;
    background: transparent !important;
  }
  .news190 .news190-hero-image img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: 340px !important;
    object-fit: cover !important;
  }
  .news190 .news190-hero-copy {
    width: 100%;
    min-width: 0;
    padding: 10px 4px 0 !important;
  }
  .news190 .news190-hero-copy h2 {
    font-size: clamp(25px, 2.1vw, 32px) !important;
    line-height: 1.15 !important;
    margin: 7px 0 10px !important;
    overflow-wrap: anywhere;
  }
  .news190 .news190-hero-copy p {
    font-size: 15px !important;
    line-height: 1.5 !important;
    margin: 0 !important;
  }
  .news190:not(:has(.news190-pagehead--search)) > .news190-lead > .news190-rail {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0;
    margin: 0 !important;
    padding: 14px !important;
    border: 1px solid #e1e5ea;
    border-radius: 11px;
    background: #fff;
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
  }
  .news190 .news190-rail-item {
    display: grid !important;
    grid-template-columns: minmax(100px, 36%) minmax(0, 1fr) !important;
    gap: 14px !important;
    align-items: start;
    min-width: 0;
    padding: 0 26px 12px 0 !important;
    margin: 0 0 12px !important;
    position: relative;
    border-bottom: 1px solid #e5e7eb;
  }
  .news190 .news190-rail-item:last-child { border-bottom: 0; margin-bottom: 0 !important; padding-bottom: 0 !important; }
  .news190 .news190-rail-item > div { min-width: 0; }
  .news190 .news190-rail-image {
    width: 100%;
    min-width: 0;
    height: auto !important;
    aspect-ratio: 1.7 / 1 !important;
    overflow: hidden;
    border-radius: 7px;
  }
  .news190 .news190-rail-image img {
    width: 100%;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
  }
  .news190 .news190-rail-item h3 {
    font-size: clamp(16px, 1.35vw, 20px) !important;
    line-height: 1.22 !important;
    margin: 5px 0 0 !important;
    overflow-wrap: anywhere;
  }
  .news190 .news190-rail-item .news190-rail-meta { flex-wrap: wrap; }
  .news190 .news190-rail-item .post-admin-menu,
  .news190 .news190-hero .post-admin-menu { z-index: 3; }
  .news190:not(:has(.news190-pagehead--search)) > .adsterra-slot--home {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    width: 100%;
    margin: 18px auto 12px !important;
    min-height: 0 !important;
  }
  .news190:not(:has(.news190-pagehead--search)) > .step222-news-and-popular {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    margin-top: 12px !important;
  }
}
@media (max-width: 900px) {
  .news190 .news190-lead {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    gap: 14px !important;
  }
  .news190 .news190-lead > .news190-hero,
  .news190 .news190-lead > .news190-rail {
    grid-column: 1 !important;
    grid-row: auto !important;
    min-width: 0;
  }
  .news190 .news190-hero-image,
  .news190 .news190-hero-image img { height: auto !important; aspect-ratio: auto !important; }
  .news190 .news190-hero-image img { display:block; width:100%; }
  .news190 .news190-hero-copy { padding-top: 12px !important; }
  .news190 .news190-rail-item { position:relative; padding-right: 28px !important; }
  .news190 .news190-rail-item h3 { overflow-wrap: anywhere; }
}
.news190 .step222-news-and-popular .news190-row-copy p { display: none !important; }
.news190 .news190-hero-copy .story-meta--clean,
.news190 .news190-row-copy .story-meta--clean {
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; row-gap: 4px;
}
.news190 .news190-gallery { margin-top: 32px; }
.site-footer .footer-socials { display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer .footer-socials a { white-space: nowrap; }

/* Targeted polish following desktop screenshot of STEP228. */
@media (min-width: 901px) {
  /* Both lead cards follow the height of the tallest column. */
  .news190:not(:has(.news190-pagehead--search)) > .news190-lead {
    align-items: stretch !important;
  }
  .news190:not(:has(.news190-pagehead--search)) > .news190-lead > .news190-hero,
  .news190:not(:has(.news190-pagehead--search)) > .news190-lead > .news190-rail {
    height: 100%;
    box-sizing: border-box;
  }
  /* Keep title and admin control from sharing the same horizontal space. */
  .news190 .news190-rail-item {
    padding-right: 42px !important;
    column-gap: 12px !important;
  }
  .news190 .news190-rail-item h3 {
    font-size: clamp(15px, 1.22vw, 18px) !important;
    line-height: 1.23 !important;
  }
  .news190 .news190-rail-item .post-admin-menu {
    right: 0 !important;
    top: 0 !important;
  }
  .news190 .news190-hero .post-admin-menu {
    right: 10px !important;
    top: 10px !important;
  }
  .news190 .news190-hero-copy h2 { font-size: clamp(24px, 1.95vw, 30px) !important; }
}
@media (max-width: 900px) {
  .news190 .news190-rail-item { padding-right: 38px !important; }
}
.footer-socials { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.footer-socials a { white-space: nowrap; }

/* Ordinary news headlines on mobile only; the pinned hero title stays unchanged. */
@media (max-width: 640px) {
  html body .news190 .news190-lead .news190-rail-item h3 {
    font-size: 18px !important;
    line-height: 1.24 !important;
  }
  html body .news190 .step222-news-and-popular .news190-row-copy h3 {
    font-size: 17px !important;
    line-height: 1.24 !important;
  }
}
