/* RENEWIOSITY v1.2 — photo hero and article reading navigation.
   Loaded only on the homepage and article pages. Existing mega-menu untouched. */
.page-home .rw-photo-hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: clamp(630px, 82svh, 880px);
  display: flex;
  align-items: stretch;
  background-color: #12372f;
  background-image: linear-gradient(90deg, rgba(7,26,25,.31), rgba(7,26,25,.03) 72%), var(--rw-hero-photo);
  background-position: center center, center 53%;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
}
.page-home .rw-hero-inner {
  width: 100%;
  display: flex;
  align-items: center;
  padding-top: clamp(38px, 6vh, 76px);
  padding-bottom: clamp(38px, 6vh, 76px);
}
.page-home .rw-hero-copy {
  width: min(700px, 60%);
  padding: clamp(32px, 4vw, 58px);
  background: rgba(8, 25, 27, .75); /* 25% transparent charcoal overlay */
  border: 1px solid rgba(255,255,255,.18);
  border-left: 4px solid #e4bc78;
  border-radius: 5px 26px 26px 5px;
  box-shadow: 0 28px 85px rgba(4,22,20,.22);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.page-home .rw-hero-copy .eyebrow { color: #cde9d3; }
.page-home .rw-hero-copy h1 {
  color: #fff;
  font-size: clamp(3.05rem, 5vw, 5.1rem);
  line-height: 1.07;
  text-wrap: balance;
  margin: 17px 0 20px;
}
.page-home .rw-hero-copy .hero-lede {
  color: #f1f5ef;
  font-size: clamp(1.02rem, 1.3vw, 1.19rem);
  line-height: 1.75;
  max-width: 570px;
}
.page-home .rw-hero-copy .button-primary {
  background: #e1bb77;
  color: #13382f;
  margin: 15px 0 10px;
}
.page-home .rw-hero-copy .button-primary:hover { background: #f0d399; }
.page-home .rw-hero-copy .button-ghost {
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.58);
  color: #fff;
}
.page-home .rw-hero-copy .button-ghost:hover { background: rgba(255,255,255,.18); }
.page-home .rw-hero-copy .hero-footnote {
  color: #d9e6df;
  margin-top: 24px;
  line-height: 1.5;
}
.page-home .rw-hero-credit {
  position: absolute;
  bottom: 12px;
  right: clamp(16px, 3vw, 45px);
  padding: 4px 9px;
  border-radius: 4px;
  background: rgba(7,24,25,.58);
  color: #f2f7f2;
  font-size: 10px;
  text-decoration: none;
  z-index: 2;
}
.page-home .rw-hero-credit:hover { text-decoration: underline; }
/* Automatic server-rendered table of contents. */
.rw-toc {
  margin: 0 0 50px;
  background: #f1f6f0;
  border: 1px solid #d5e5d9;
  border-left: 4px solid #33835e;
  border-radius: 12px;
  overflow: hidden;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
.rw-toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 20px 25px;
  cursor: pointer;
  list-style: none;
}
.rw-toc summary::-webkit-details-marker { display: none; }
.rw-toc-summary-title { font: 650 23px/1.2 Georgia, serif; color: #163f32; }
.rw-toc-summary-hint { color: #537364; font-size: 12px; font-weight: 650; }
.rw-toc ul {
  margin: 0;
  padding: 0 25px 22px 25px;
  columns: 2;
  column-gap: 40px;
  list-style: none;
}
.rw-toc li {
  margin: 0 0 9px;
  break-inside: avoid;
  padding-left: 4px;
  color: #2f7955;
  font-size: 13px;
  line-height: 1.55;
}
.rw-toc a { color: #245941; text-decoration: none; text-underline-offset: 3px; }
.rw-toc a:hover, .rw-toc a:focus-visible { text-decoration: underline; }
.article-prose [id^="rw-section-"] { scroll-margin-top: 110px; }
.article-prose [id^="rw-section-"]:target { text-decoration: underline; text-decoration-color: #a4d0ad; text-underline-offset: 6px; }
@media (max-width: 980px) {
  .page-home .rw-hero-copy { width: min(720px, 78%); }
  .page-home .rw-hero-copy h1 { font-size: clamp(2.9rem, 6vw, 4.5rem); }
}
@media (max-width: 700px) {
  .page-home .rw-photo-hero { min-height: 650px; background-position: center center, 58% center; }
  .page-home .rw-hero-inner { padding: 48px 18px 58px; align-items: center; }
  .page-home .rw-hero-copy {
    width: 100%;
    padding: 28px 24px 32px;
    border-radius: 5px 18px 18px 5px;
    background: rgba(8,25,27,.82);
  }
  .page-home .rw-hero-copy h1 { font-size: clamp(2.55rem, 10vw, 3.6rem); }
  .page-home .rw-hero-copy .hero-lede { font-size: 15px; line-height: 1.65; }
  .page-home .rw-hero-copy .hero-actions { align-items: stretch; }
  .page-home .rw-hero-copy .button { gap: 9px; padding: 13px 16px; }
  .page-home .rw-hero-copy .hero-footnote { margin-top: 18px; }
  .page-home .rw-hero-credit { font-size: 9px; right: 10px; bottom: 8px; }
  .rw-toc ul { columns: 1; padding-right: 20px; }
  .rw-toc summary { padding: 17px 20px; }
  .rw-toc-summary-title { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .article-prose [id^="rw-section-"] { scroll-behavior: auto; }
}
