/* =========================================================
   Statutory Disclosures page (template: statutory-disclosures.php)
   Uses the TRC theme scale: 1rem = 0.512vw on desktop.
   Colours: dark green #053736, brand green #6ebe48,
   light green #f4f8f3, grey text #656565.
   ========================================================= */

/* ---------- Banner ---------- */
.sd-banner .sd-banner-text {
  max-width: 120rem;
  font-size: 2.8rem;
}

/* ---------- Section ---------- */
.sd-section {
  padding-top: 12rem;
  padding-bottom: 15rem;
}

.sd-intro {
  max-width: 108rem;
  margin-bottom: 10rem;
}
.sd-intro h6 {
  margin-bottom: 2rem;
}
.sd-intro h2 {
  margin-bottom: 3rem;
}
.sd-intro .sd-intro-text {
  font-size: 2rem;
  line-height: 1.7;
  color: #656565;
}

/* ---------- List head ---------- */
.sd-list-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #d9d9d9;
}
.sd-list-head h3 {
  font-size: 3.2rem;
  font-weight: 600;
  color: #053736;
  margin: 0;
}
.sd-list-meta {
  font-size: 1.6rem;
  color: #656565;
  font-weight: 400;
}

/* ---------- Rows ---------- */
.sd-list {
  margin: 0;
  padding: 0;
}
.sd-row {
  display: grid;
  grid-template-columns: 26rem minmax(0, 1fr) 20rem auto;
  align-items: center;
  gap: 3rem;
  padding: 3.4rem 1rem;
  border-bottom: 1px solid #e3e3e3;
  font-size: inherit;
  transition: background-color 0.3s ease;
}
.sd-row:hover {
  background-color: #fafcf9;
}
.sd-row.is-latest {
  background: linear-gradient(90deg, #eef5ea 0%, #f4f8f3 45%, rgba(244, 248, 243, 0) 75%);
}

.sd-year h4 {
  font-family: "Readex Pro";
  font-size: 3.6rem;
  font-weight: 600;
  color: #053736;
  letter-spacing: -0.05rem;
  line-height: 1.1;
  margin: 0;
}
.sd-latest {
  display: block;
  font-family: "Inter";
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  color: #6ebe48;
  margin-bottom: 0.6rem;
}

.sd-details .sd-year-end {
  font-size: 2.1rem;
  font-weight: 500;
  color: #053736;
  line-height: 1.4;
  margin: 0 0 0.6rem;
}
.sd-details .sd-meta {
  font-size: 1.6rem;
  color: #656565;
  line-height: 1.4;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 2.4rem;
}
.sd-details .sd-meta span {
  font-size: inherit;
  font-family: "Inter";
  font-weight: 400;
  color: inherit;
}

.sd-pill {
  display: inline-block;
  font-family: "Inter";
  font-size: 1.4rem;
  font-weight: 600;
  color: #053736;
  background-color: #eef5ea;
  border: 1px solid #dcebd4;
  border-radius: 10rem;
  padding: 0.7rem 1.8rem;
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
.sd-actions {
  display: flex;
  gap: 1.6rem;
  justify-content: flex-end;
}
.sd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  height: 6rem;
  min-width: 15.5rem;
  padding: 0 2.6rem;
  font-family: "Readex Pro";
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid #053736;
  transition: all 0.4s ease;
}
.sd-btn-outline {
  color: #053736;
  background-color: #fff;
}
.sd-btn-solid {
  color: #fff;
  background-color: #053736;
}
.sd-btn .sd-corner {
  width: 1.3rem;
  height: 1.3rem;
  color: #6ebe48;
  transition: transform 0.4s ease, color 0.4s ease;
}
.sd-btn:hover,
.sd-btn:focus-visible {
  color: #fff;
  background-color: #6ebe48;
  border-color: #6ebe48;
  text-decoration: none;
}
.sd-btn:hover .sd-corner,
.sd-btn:focus-visible .sd-corner {
  color: #fff;
  transform: translate(0.3rem, -0.3rem);
}
.sd-btn:focus-visible {
  outline: 2px solid #053736;
  outline-offset: 2px;
}

/* ---------- Footnote ---------- */
.sd-footnote {
  display: flex;
  align-items: flex-start;
  gap: 1.6rem;
  margin-top: 3.6rem;
}
.sd-info {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background-color: #eef5ea;
  color: #053736;
  font-family: "Readex Pro";
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 0.2rem;
}
.sd-footnote p {
  font-size: 1.6rem;
  line-height: 1.6;
  color: #656565;
  margin: 0;
}
.sd-footnote a {
  font-size: inherit;
  color: #053736;
  text-decoration: underline;
  text-underline-offset: 0.4rem;
}
.sd-footnote a:hover {
  color: #6ebe48;
}

.sd-empty {
  font-size: 2rem;
  color: #656565;
  padding: 4rem 0;
}

/* ---------- Tablet ---------- */
@media (max-width: 1200px) and (min-width: 901px) {
  .sd-row {
    grid-template-columns: 22rem minmax(0, 1fr) auto;
  }
  .sd-form {
    grid-column: 2;
    grid-row: 2;
    margin-top: -1.5rem;
  }
  .sd-actions {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}

/* ---------- Mobile (theme switches to 1rem = 1.5vw / 2vw here) ---------- */
@media (max-width: 900px) {
  .sd-banner .sd-banner-text {
    font-size: 2.2rem;
  }
  .sd-section {
    padding-top: 8rem;
    padding-bottom: 10rem;
  }
  .sd-intro {
    margin-bottom: 6rem;
  }
  .sd-intro .sd-intro-text {
    font-size: 2.2rem;
  }
  .sd-list-head h3 {
    font-size: 3rem;
  }
  .sd-list-meta {
    font-size: 1.8rem;
  }

  .sd-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "year form"
      "details details"
      "actions actions";
    gap: 1.6rem 2rem;
    padding: 3.2rem 1.4rem;
  }
  .sd-row.is-latest {
    background: linear-gradient(180deg, #eef5ea 0%, rgba(244, 248, 243, 0.4) 100%);
  }
  .sd-year { grid-area: year; }
  .sd-form { grid-area: form; align-self: end; }
  .sd-details { grid-area: details; }
  .sd-actions {
    grid-area: actions;
    justify-content: stretch;
    margin-top: 0.8rem;
  }
  .sd-actions .sd-btn {
    flex: 1 1 0;
    min-width: 0;
    height: 6.4rem;
    font-size: 2rem;
  }
  .sd-year h4 {
    font-size: 3.6rem;
  }
  .sd-latest {
    font-size: 1.6rem;
  }
  .sd-details .sd-year-end {
    font-size: 2.2rem;
  }
  .sd-details .sd-meta {
    font-size: 1.9rem;
  }
  .sd-pill {
    font-size: 1.7rem;
  }
  .sd-btn .sd-corner {
    width: 1.6rem;
    height: 1.6rem;
  }
  .sd-info {
    width: 3rem;
    height: 3rem;
    font-size: 1.7rem;
  }
  .sd-footnote p {
    font-size: 1.9rem;
  }
}
