.community-strip {
  background: #302017;
  color: #fdf2e5;
  border-bottom: 1px solid #6d4c36;
}
.community-inner {
  padding-block: clamp(1.4rem, 3.1vw, 2.7rem);
}
.community-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  margin-bottom: 1.15rem;
}
.community-heading h2 {
  color: #fff8ef;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}
.community-heading a {
  color: #e5c6a2;
  font-size: .875rem;
  text-underline-offset: .24em;
}
.community-metrics {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.45rem, 1.4vw, 1.15rem);
}
.community-metrics > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: start;
  gap: .45rem;
  background: linear-gradient(145deg, #493122, #38271c);
  border: 1px solid #78563d;
  border-radius: .6rem;
  padding: clamp(.65rem, 1.65vw, 1.25rem);
}
.community-metrics dt {
  font-weight: 600;
  font-size: .9375rem;
}
.community-metrics dd {
  margin: 0;
  color: #ffd790;
  font: 600 clamp(2.05rem, 4.2vw, 3.85rem)/.96 var(--heading);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -.055em;
}
.community-metrics small {
  font: inherit;
  font-size: .63em;
  vertical-align: .2em;
}

.journey-section { background: #f7eddf; }
.journey-section .section { padding-block: clamp(2.65rem, 5.8vw, 5.1rem); }
.journey-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .4rem;
  margin-bottom: .65rem;
}
.journey-tabs button {
  position: relative;
  min-width: 0;
  display: grid;
  gap: .18rem;
  justify-items: start;
  align-content: center;
  min-height: 4rem;
  border: 1px solid #c8b09a;
  border-radius: .5rem;
  background: #fffaf4;
  padding: .62rem clamp(.55rem, 1.7vw, 1rem);
  text-align: start;
  font-weight: 700;
  color: var(--ink);
  transition: background-color .2s, color .2s, border-color .2s;
}
.journey-tabs button span {
  font-weight: 600;
  color: #69503b;
  font-size: .875rem;
}
.journey-tabs button:hover { border-color: #8a582b; }
.journey-tabs button[aria-selected="true"] {
  background: #39251a;
  border-color: #39251a;
  color: #fff8eb;
}
.journey-tabs button[aria-selected="true"] span { color: #ffda9b; }
.journey-tabs button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset: auto .7rem 0;
  height: .16rem;
  background: var(--gold);
  border-radius: .2rem .2rem 0 0;
}
.journey-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  border: 1px solid #d9c7b2;
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}
.journey-panel + .journey-panel:not([hidden]) { margin-top: .75rem; }
.journey-tabs:not([hidden]) ~ .journey-panel { margin-top: 0; }
.journey-photo {
  overflow: hidden;
  position: relative;
  background: #ded0c0;
  min-height: 22.5rem;
}
.journey-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
#journey-preschool .journey-photo img { object-position: center 32%; }
.journey-copy {
  padding: clamp(1.2rem, 4vw, 3.15rem);
  align-self: center;
}
.journey-copy h3 {
  font-size: clamp(1.8rem, 3.5vw, 3.1rem);
  margin-block: .6rem .65rem;
}
.journey-range {
  color: #875422;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .015em;
}
.journey-copy ul {
  margin-block: .9rem 1.15rem;
  padding-inline-start: 1.2rem;
}
.journey-copy li + li { margin-top: .15rem; }
.journey-copy li::marker { color: #92612c; }

.gallery-tile::after {
  background: linear-gradient(0deg, #23160ff7, #23160f94 27%, transparent 59%);
}
.gallery-tile span {
  font-size: clamp(1.02rem, 2vw, 1.4rem);
  line-height: 1.24;
}
.gallery-tile small {
  display: block;
  margin-top: .24rem;
  font-size: .875rem;
  font-weight: 500;
  color: #fff4e5;
}
.suns-section {
  background: linear-gradient(127deg, #221710, #3e281b 75%);
  color: #fcf1e4;
  padding-block: clamp(2.5rem, 6.5vw, 5.6rem);
}
.suns-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  align-items: center;
  gap: clamp(1.6rem, 5.9vw, 5.3rem);
}
.suns-copy h2 {
  color: #fff8ec;
  max-width: 14ch;
  margin-block: .65rem .9rem;
}
.suns-copy .eyebrow { color: #ffda9b; }
.suns-copy .actions { margin-top: 1.3rem; }
.suns-chart {
  background: #fff5e8;
  border: 1px solid #ffe0b4;
  color: #3d2b1b;
  padding: 1.05rem clamp(.85rem, 2vw, 1.4rem);
  margin-top: 1.3rem;
  border-radius: .65rem;
  font-variant-numeric: tabular-nums;
}
.suns-chart figcaption {
  font-weight: 700;
  margin-bottom: .65rem;
}
.score-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .25rem .6rem;
  align-items: baseline;
  font-size: .9375rem;
}
.score-row + .score-row { margin-top: .6rem; }
.score-track {
  position: relative;
  grid-column: 1 / -1;
  height: .62rem;
  border-radius: .2rem;
  background: #e8d9c4;
  overflow: hidden;
}
.score-track > div {
  width: var(--score);
  height: 100%;
  background: linear-gradient(90deg, #9b451e, #cc8031);
  border-radius: inherit;
  transform-origin: left center;
}
.score-axis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  font-size: .8125rem;
  color: #6d5038;
  margin-top: .38rem;
}
.score-axis span:nth-child(2) { text-align: center; }
.score-axis span:last-child { text-align: end; }
.suns-photo {
  border: 1px solid #866345;
  border-radius: var(--radius);
  overflow: hidden;
  background: #443024;
}
.suns-photo img {
  width: 100%;
  aspect-ratio: 1.06;
  object-fit: cover;
  object-position: 52% center;
}
.suns-photo figcaption {
  padding: .65rem .9rem;
  color: #f0d5b6;
  font-size: .875rem;
}

.community-resources {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}
.community-resources article {
  padding: clamp(1rem, 2.8vw, 1.65rem);
  border: 1px solid var(--line);
  border-top: 3px solid #ac772e;
  border-radius: .55rem;
  background: #fff9ef;
}
.community-resources h3 { font-size: clamp(1.35rem, 2.45vw, 2rem); }
.community-resources p { margin-block: .6rem; }
.community-resources ul { list-style: none; margin: .85rem 0 0; padding: 0; }
.community-resources li { border-top: 1px solid #e8dbc8; }
.community-resources li a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding-block: .35rem;
  text-underline-offset: .22em;
  color: #743d18;
  font-weight: 650;
  transition: color .2s;
}
.community-resources li a:hover { color: #2c211a; text-decoration-thickness: 2px; }

@media(max-width: 760px) {
  .suns-inner { grid-template-columns: minmax(0, 1fr); }
  .suns-photo img { aspect-ratio: 1.65; }
  .suns-copy h2 { max-width: 19ch; }
  .journey-photo { min-height: 19rem; }
  .community-resources { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media(max-width: 640px) {
  .community-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey-panel { grid-template-columns: minmax(0, 1fr); }
  .journey-photo { min-height: 0; aspect-ratio: 1.76; }
  .gallery-tile small { font-size: .8125rem; }
}
@media(max-width: 490px) {
  .community-resources { grid-template-columns: minmax(0, 1fr); }
  .gallery-tile:not(:first-child) img { aspect-ratio: .95; }
}

@media(prefers-reduced-motion: no-preference) {
  .journey-tabs:not([hidden]) ~ .journey-panel:not([hidden]) .journey-copy {
    animation: enter .36s ease-out both;
  }
  .journey-tabs:not([hidden]) ~ .journey-panel:not([hidden]) .journey-photo img {
    animation: journey-image .55s ease-out both;
  }
  .suns-chart.revealed .score-track > div {
    animation: fill-score 1.05s .08s cubic-bezier(.18,.65,.27,1) both;
  }
  .suns-chart.revealed .score-row + .score-row .score-track > div {
    animation-delay: .24s;
  }
  @keyframes journey-image {
    from { opacity: .68; scale: 1.026; }
    to { opacity: 1; scale: 1; }
  }
  @keyframes fill-score {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }
}
