/* ==========================================================================
   Thriving Sons — Child Safety (page-specific styles)
   Reuses tokens, base, components, header, footer. Shares the .org-grid, .org-title
   and gold-card (.way) patterns from organisations.css (re-declared here so this
   page does not depend on another page's stylesheet).
   ========================================================================== */

.org-title {
  font-family: var(--ts-font-display);
  font-size: clamp(2rem, 1.45rem + 2.6vw, 3.25rem);
  font-weight: var(--ts-title-weight);
  font-variation-settings: var(--ts-title-variation);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--ts-charcoal);
}
.org-grid { display: grid; gap: var(--ts-space-3); }
.org-grid__heading { display: grid; gap: var(--ts-space-2); justify-items: start; align-content: start; }

.commitment, .practice, .framework, .concerns { padding-block: var(--ts-space-5); }
@media (min-width: 48rem) { .commitment, .practice, .framework, .concerns { padding-block: 5rem; } }
@media (min-width: 64rem) {
  .org-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(3rem, 5vw, 5rem);
    align-items: start;
  }
}
@media (min-width: 72rem) { .commitment, .practice, .framework, .concerns { padding-block: 6rem; } }

/* Body copy */
.commitment__body, .framework__body, .concerns__body {
  display: grid;
  gap: var(--ts-space-2);
  justify-items: start;
  max-width: 40rem;
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.7;
  color: var(--ts-charcoal-soft);
}
.commitment__lead, .concerns__lead, .framework__intro {
  font-family: var(--ts-font-display);
  font-size: clamp(1.375rem, 1.2rem + 0.9vw, 1.75rem);
  font-weight: 600;
  line-height: 1.35;
  text-wrap: balance;
  color: var(--ts-charcoal);
}

/* --- Section 01: hero (calm, text only) --- */
.safety-hero {
  padding-block: var(--ts-space-5) var(--ts-space-5);
  border-bottom: 1px solid rgba(176, 141, 62, 0.4);
}
.safety-hero__inner { display: grid; gap: var(--ts-space-3); justify-items: start; max-width: 46rem; }
.safety-hero__title {
  font-family: var(--ts-font-display);
  font-size: clamp(2.25rem, 1.4rem + 4.2vw, 3.75rem);
  font-weight: var(--ts-title-weight);
  font-variation-settings: var(--ts-title-variation);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--ts-charcoal);
}
.safety-hero__copy {
  display: grid;
  gap: 1rem;
  max-width: 38rem;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.65;
  color: var(--ts-charcoal-soft);
}
.safety-hero__copy p:first-child { font-size: var(--ts-text-lead); line-height: 1.55; color: var(--ts-charcoal); }
@media (min-width: 48rem) { .safety-hero { padding-block: 5rem; } }
@media (min-width: 72rem) { .safety-hero { padding-block: 6rem 5.5rem; } }

/* --- Section 02 (cream-deep) --- */
.commitment { background: var(--ts-cream-deep); }

/* --- Section 03: four gold-bordered practice cards --- */
.practice__list {
  display: grid;
  gap: var(--ts-space-3);
  margin: var(--ts-space-4) 0 0;
  padding: 0;
  list-style: none;
}
.way {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding: var(--ts-space-3) 1.25rem;
  background: var(--ts-white);
  border: 1px solid rgba(176, 141, 62, 0.6);
  border-radius: 2px;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ts-charcoal-soft);
}
.way__title {
  font-family: var(--ts-font-display);
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.625rem);
  font-weight: var(--ts-title-weight);
  font-variation-settings: var(--ts-title-variation);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--ts-charcoal);
}
@media (min-width: 40rem) {
  .practice__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .way { padding: var(--ts-space-4); }
}
@media (min-width: 72rem) {
  .practice__list { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--ts-space-2); margin-top: var(--ts-space-5); }
  .way { padding: var(--ts-space-3); }
}

/* --- Section 04: framework overview (charcoal) --- */
.framework { background: var(--ts-charcoal); color: var(--ts-cream); }
.framework :focus-visible { outline-color: var(--ts-gold-soft); }
.framework .eyebrow { color: var(--ts-gold-soft); }
.framework .eyebrow::before { background: var(--ts-gold-soft); }
.framework .org-title, .framework__intro { color: var(--ts-cream); }
.framework__body { max-width: none; }

.framework__list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
  counter-reset: policy;
}
.framework__list li {
  counter-increment: policy;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  align-items: baseline;
  padding: 0.8125rem 0;
  border-top: 1px solid rgba(205, 176, 106, 0.35);
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--ts-cream);
}
.framework__list li::before {
  content: counter(policy, decimal-leading-zero);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ts-gold-soft);
}
.framework__list li:last-child { border-bottom: 1px solid rgba(205, 176, 106, 0.35); }
@media (min-width: 48rem) {
  .framework__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--ts-space-4); }
  .framework__list li:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid rgba(205, 176, 106, 0.35); }
}

/* --- Section 05 (cream) --- */
.concerns__cta { margin-top: var(--ts-space-1); width: 100%; }
@media (min-width: 40rem) { .concerns__cta { width: auto; } }

/* Headline breaks after the first sentence on wider screens */
@media (min-width: 40rem) { .safety-hero__line { display: block; } }

/* --- Hero photograph: small, landscape 4:3, beneath the headline and to the right on desktop --- */
.safety-hero__photo {
  aspect-ratio: 4 / 3;
  width: 100%;
  max-width: 28rem;
}
.safety-hero__photo .photo-frame__label { padding: var(--ts-space-2); }

@media (min-width: 64rem) {
  .safety-hero__inner {
    max-width: none;
    grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
    grid-template-areas:
      "eyebrow ."
      "title   ."
      "copy    photo";
    column-gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
    justify-items: stretch;
  }
  .safety-hero__eyebrow { grid-area: eyebrow; justify-self: start; }
  .safety-hero__title   { grid-area: title; }
  .safety-hero__copy    { grid-area: copy; }
  .safety-hero__photo   { grid-area: photo; justify-self: end; align-self: start; max-width: none; }
}
