/* News layout refresh: keep the cards within each site's light clover palette. */
.news-home-slot > .container,
.news-friends-slot > .container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.news-home-slot {
  position: relative;
  isolation: isolate;
  padding-block: clamp(52px, 7vw, 88px);
  border-top: 1px solid rgba(67, 139, 92, 0.16);
  background:
    radial-gradient(ellipse at 8% 0%, rgba(255, 213, 79, 0.16), transparent 38%),
    linear-gradient(145deg, rgba(232, 245, 233, 0.88), rgba(255, 253, 246, 0.96) 62%, rgba(243, 255, 246, 0.92));
}

.news-home-slot .section-kicker,
.news-index-list + .section-kicker {
  margin: 0 0 8px;
  color: #397b50;
  font-size: 0.9rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.news-home-slot > .container > h2,
.news-friends-slot > .container > h2 {
  margin: 0 0 26px;
  color: var(--ink, #20313a);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.2;
}

.news-home-list,
.news-index-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 24px);
  align-items: stretch;
}

.news-home-card,
.news-index-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(63, 137, 83, 0.2);
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(246, 255, 247, 0.94));
  box-shadow: 0 12px 32px rgba(36, 90, 58, 0.09);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.news-home-card::before,
.news-index-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #4caf50, #96cf78 58%, #ffd54f);
  content: "";
}

.news-home-card:hover,
.news-index-card:hover {
  transform: translateY(-3px);
  border-color: rgba(63, 137, 83, 0.38);
  box-shadow: 0 18px 38px rgba(36, 90, 58, 0.14);
}

.news-home-card h3,
.news-index-card h2 {
  margin: 0 0 12px;
  color: var(--ink, #20313a);
  font-size: clamp(1.12rem, 1.7vw, 1.38rem);
  line-height: 1.48;
}

.news-home-card p,
.news-index-card p {
  display: -webkit-box;
  margin: 0 0 20px;
  overflow: hidden;
  color: var(--muted, #5d6f78);
  font-size: 0.98rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.news-home-card > a,
.news-index-card > a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding: 0 17px;
  border: 1px solid rgba(51, 126, 70, 0.16);
  border-radius: 999px;
  background: #e8f5e9;
  color: #28683d;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.news-home-card > a::after,
.news-index-card > a::after {
  content: "→";
  font-size: 1.1em;
}

.news-home-card > a:hover,
.news-index-card > a:hover,
.news-home-card > a:focus-visible,
.news-index-card > a:focus-visible {
  transform: translateY(-1px);
  background: #347d49;
  color: #fff;
  outline: none;
}

/* The news list and detail pages share a centered reading column. */
.page-hero {
  padding-block: clamp(30px, 5vw, 54px);
  background:
    radial-gradient(ellipse at 85% 15%, rgba(255, 213, 79, 0.18), transparent 35%),
    linear-gradient(135deg, rgba(220, 243, 226, 0.96), rgba(255, 253, 246, 0.96) 72%);
}

.page-hero-content {
  width: min(1000px, calc(100% - 40px));
  margin-inline: auto;
}

.page-hero-content .eyebrow {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(63, 137, 83, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #397b50;
  font-size: 0.88rem;
  font-weight: 800;
}

.page-hero-content h1 {
  max-width: 24ch;
  margin: 14px 0 10px;
  color: var(--ink, #20313a);
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.page-hero-content > p:last-child {
  margin: 0;
  color: var(--muted, #5d6f78);
  font-size: 1rem;
  line-height: 1.7;
}

.page-hero + .section > .container {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
}

.news-index-list {
  max-width: 1080px;
  margin: 0 auto;
}

.news-template-card {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid rgba(63, 137, 83, 0.2);
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(248, 255, 248, 0.97));
  box-shadow: 0 18px 46px rgba(36, 90, 58, 0.1);
}

.news-template-content {
  color: var(--ink, #20313a);
  font-size: clamp(1rem, 1.4vw, 1.08rem);
  line-height: 1.95;
  overflow-wrap: anywhere;
}

.news-template-content p {
  max-width: 70ch;
  margin: 0 auto 1.2em;
  color: #425b52;
  white-space: normal;
}

.news-template-content h2,
.news-template-content h3 {
  max-width: 70ch;
  margin: 1.8em auto 0.6em;
  color: var(--ink, #20313a);
  line-height: 1.35;
}

.news-template-content ul,
.news-template-content ol {
  max-width: 70ch;
  margin-inline: auto;
  padding-left: 1.5em;
}

.news-template-content img {
  max-width: 100%;
  height: auto;
  margin: 1.5em auto;
  border-radius: 14px;
}

.news-template-card .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(63, 137, 83, 0.16);
}

.news-template-card .button-row a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(51, 126, 70, 0.18);
  border-radius: 999px;
  background: #e8f5e9;
  color: #28683d;
  font-weight: 800;
  text-decoration: none;
}

.news-template-card .button-row a:hover,
.news-template-card .button-row a:focus-visible {
  background: #347d49;
  color: #fff;
  outline: none;
}

.news-friends-slot {
  padding-block: 18px clamp(48px, 7vw, 76px);
  background: linear-gradient(180deg, rgba(243, 255, 246, 0.76), rgba(255, 253, 246, 0.94));
}

.news-friends-slot > .container {
  padding: clamp(22px, 3.6vw, 34px);
  border: 1px solid rgba(63, 137, 83, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 30px rgba(36, 90, 58, 0.07);
}

.news-friends-slot > .container > h2 {
  margin-bottom: 18px;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
}

.news-friends-slot .friend-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin: 0 8px 8px 0;
  padding: 0 15px;
  border: 1px solid rgba(63, 137, 83, 0.18);
  border-radius: 999px;
  background: #f3fff6;
  color: #356348;
  font-size: 0.93rem;
  font-weight: 750;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

.news-friends-slot .friend-link:hover,
.news-friends-slot .friend-link:focus-visible {
  background: #347d49;
  color: #fff;
  outline: none;
}

@media (max-width: 720px) {
  .news-home-slot > .container,
  .news-friends-slot > .container,
  .page-hero-content,
  .page-hero + .section > .container {
    width: min(100% - 32px, 560px);
  }

  .news-home-list,
  .news-index-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .news-home-card,
  .news-index-card {
    padding: 22px;
  }

  .news-friends-slot > .container {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-home-card,
  .news-index-card,
  .news-home-card > a,
  .news-index-card > a,
  .news-friends-slot .friend-link {
    transition: none;
  }
}
