/* RESPONSIVE: shared layout overrides, adaptive navigation and final refinements.
   Loaded last. Preserve section order when editing. */
/* SHARED DEVICE LAYOUTS: mobile, tablet and desktop corrections */
/* Shared device layouts. Keep content in flow so zoom and longer text can grow. */
main,
section,
.row > [class*="col-"],
.page-hero-layout > *,
.statement-grid > *,
.program-row > *,
.form-workspace-grid > *,
.reading-layout > *,
.resource-library-entry > *,
.agenda-entry > *,
.partnership-table > div > * {
  min-width: 0;
}
h1,
h2,
h3,
p,
a {
  overflow-wrap: break-word;
}
img {
  max-width: 100%;
}
input,
select,
textarea {
  max-width: 100%;
}
.hero {
  height: auto;
  min-height: 550px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-content {
  padding-top: 40px;
  padding-bottom: 28px;
  width: 100%;
}
.hero h1 {
  font-size: clamp(40px, 5.5vw, 76px);
}
.hero-controls {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  align-self: flex-end;
  margin: 0 max(32px, calc((100vw - 1216px) / 2)) 24px;
  flex-shrink: 0;
}
.hero-controls button {
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
}
.hero .hero-photo {
  inset: 0;
}
.hero-content > p {
  max-width: 560px;
}
.ysa-dropdown .dropdown-item {
  white-space: normal;
}
@media (min-width: 768px) and (max-width: 1199px) {
  .hero {
    min-height: 580px;
  }
  .hero-content {
    padding-top: 44px;
  }
  .hero h1 {
    font-size: clamp(44px, 5.3vw, 63px);
  }
  .hero-photo {
    object-position: 60% center;
  }
  .hero-shade {
    background: linear-gradient(90deg, #160c20e8, #160c2080 65%, #160c2040);
  }
  .page-hero-layout,
  .page-hero-directory .page-hero-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 28px;
  }
  .inner-page h1,
  .page-hero-directory h1,
  .page-hero-compact h1 {
    font-size: clamp(35px, 4.2vw, 49px);
  }
  .form-workspace-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: 26px;
  }
  .compact-feature-layout {
    height: auto;
    min-height: 330px;
    padding-right: 40%;
  }
  .compact-feature-layout > img {
    height: 350px;
  }
  .compact-feature-copy {
    width: 52%;
    max-height: none;
    top: 15px;
    padding: 22px;
  }
  .compact-feature-foot {
    width: 100%;
  }
  .split-feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
@media (max-width: 991px) {
  .form-workspace-grid {
    grid-template-columns: 1fr;
  }
  .form-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
  .journal-featured-story {
    grid-template-columns: 1fr 1fr;
  }
  .journal-featured-story h2 {
    font-size: 30px;
  }
  .country-directory-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  }
  .resource-library-entry,
  .agenda-entry {
    min-width: 0;
  }
  .reading-layout {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 25px;
  }
  .form-control,
  .form-select,
  .inner-page .form-control,
  .inner-page .form-select {
    font-size: 16px;
  }
  .filter-tabs button,
  .small-outline {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
@media (max-width: 767px) {
  .hero {
    min-height: 0;
    justify-content: flex-start;
  }
  .hero-content {
    padding-top: 34px;
    padding-bottom: 22px;
  }
  .hero h1 {
    font-size: clamp(31px, 7.8vw, 56px);
    line-height: 1.12;
    letter-spacing: -0.045em;
    margin-bottom: 20px;
    min-height: 3.36em;
  }
  .hero .eyebrow {
    font-size: 9px;
    letter-spacing: 0.1em;
    line-height: 1.6;
    margin-bottom: 18px;
  }
  .hero p {
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 22px;
    max-width: 440px;
    min-height: 3.3em;
  }
  .hero p br {
    display: none;
  }
  .hero-photo {
    object-position: 62% center;
  }
  .hero-shade {
    background:
      linear-gradient(90deg, #160c20e6, #160c2099),
      linear-gradient(0deg, #160c2080, transparent);
  }
  .hero-content > .d-flex {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px !important;
    max-width: 440px;
  }
  .hero .btn {
    padding: 12px 10px;
    font-size: 12px;
    gap: 8px;
    min-height: 48px;
    justify-content: space-between;
    text-align: left;
  }
  .hero .btn span {
    flex-shrink: 0;
  }
  .hero-controls {
    align-self: flex-start;
    margin: 0 18px 22px;
    gap: 12px;
  }
  .hero-controls .hero-pause {
    font-size: 12px;
  }
  .inner-page h1,
  .page-hero-directory h1,
  .page-hero-compact h1,
  .article-title h1 {
    font-size: clamp(32px, 8vw, 44px);
  }
  .page-hero-immersive {
    min-height: 0;
    padding-bottom: 25px;
  }
  .page-hero-immersive .page-hero-copy > p {
    max-width: 100%;
  }
  .page-hero-immersive .page-hero-image:after {
    background: linear-gradient(90deg, #211029ed, #21102999);
  }
  .form-steps,
  .country-directory-layout,
  .journal-featured-story,
  .reading-layout {
    grid-template-columns: 1fr;
  }
  .form-steps {
    gap: 0;
  }
  .reading-nav,
  .country-atlas {
    position: static;
  }
  .reading-layout {
    gap: 22px;
  }
  .page-hero-layout,
  .statement-grid,
  .program-row,
  .form-workspace-grid {
    gap: 22px;
  }
  .compact-feature-copy {
    width: 100%;
    margin: 0;
    max-height: none;
  }
  .compact-feature-layout > img {
    height: 210px;
  }
  .compact-feature-foot {
    grid-template-columns: 1fr 1fr;
  }
  .compact-feature-foot > div:first-child {
    grid-column: 1/-1;
    min-height: 0;
    padding: 14px 18px;
  }
  .compact-feature-foot > div {
    min-height: 110px;
    padding: 14px 10px;
  }
  .compact-feature-foot strong {
    font-size: 12px;
  }
  .compact-feature-foot small {
    font-size: 9px;
  }
  .compact-feature-foot a {
    font-size: 11px;
  }
  .reference-carousel {
    padding: 0 0 60px;
  }
  .reference-carousel .carousel-control-prev,
  .reference-carousel .carousel-control-next {
    top: auto;
    bottom: 0;
    width: 44px;
    height: 44px;
    font-size: 28px;
    border: 1px solid #d5c3df;
    background: white;
  }
  .reference-carousel .carousel-indicators {
    bottom: 10px;
    left: 52px;
    right: 52px;
    margin: 0;
  }
  .resource-carousel .carousel-control-prev,
  .resource-carousel .carousel-control-next {
    width: 44px;
    height: 44px;
  }
  .resource-carousel .carousel-item {
    height: 290px;
  }
  .resource-caption {
    padding: 18px 20px 38px;
  }
  .resource-library-entry {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
  }
  .resource-library-entry > img {
    width: 76px;
    height: 95px;
  }
  .resource-library-entry h3 {
    font-size: 21px;
  }
  .resource-library-entry p {
    font-size: 14px;
  }
  .form-panel {
    padding: 22px 16px;
  }
  .form-panel .btn {
    width: 100%;
    white-space: normal;
  }
  .cta .btn {
    min-width: 0;
    max-width: 100%;
  }
  .footer-bottom {
    gap: 10px;
  }
  .section .row {
    --bs-gutter-y: 1.5rem;
  }
  .event-list h3,
  .priority-line h3 {
    overflow-wrap: anywhere;
  }
  .eyebrow {
    line-height: 1.6;
  }
}
@media (max-width: 374px) {
  .hero-content > .d-flex {
    grid-template-columns: 1fr;
  }
  .hero .btn {
    justify-content: center;
  }
  .hero-content {
    padding-top: 28px;
  }
  .ysa-navbar .navbar-brand {
    width: 180px;
    max-width: 180px;
  }
  .brand-caption {
    margin-left: 29px;
  }
  .agenda-entry {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
  }
  .agenda-content h3 {
    font-size: 21px;
  }
  .resource-library-entry {
    grid-template-columns: 1fr;
  }
  .resource-library-entry > img {
    width: 100%;
    height: 145px;
  }
  .resource-library-entry > .small-outline {
    grid-column: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .carousel-item {
    transition: none !important;
  }
}
/* Compact community feature: equal columns, image follows content height. */
.community-feature {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
}
.community-feature .feature-image {
  position: relative;
  min-height: 350px;
  height: auto;
  overflow: hidden;
}
.community-feature .feature-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.community-feature .feature-copy {
  padding: 32px clamp(24px, 3.2vw, 50px);
  min-width: 0;
}
.community-feature .eyebrow {
  margin-bottom: 12px;
  font-size: 10px;
}
.community-feature h2 {
  font-size: clamp(28px, 2.7vw, 38px);
  line-height: 1.14;
  margin-bottom: 16px;
}
.community-feature .feature-copy > p {
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 16px;
  max-width: 530px;
}
.community-feature .check-list {
  margin: 0 0 20px;
}
.community-feature .check-list li {
  font-size: 13px;
  padding: 3px 0;
}
.community-feature .btn {
  font-size: 13px;
  padding: 12px 18px;
  gap: 16px;
  max-width: 100%;
  text-align: left;
}
@media (min-width: 768px) and (max-width: 991px) {
  .community-feature .feature-copy {
    padding: 28px 24px;
  }
  .community-feature h2 {
    font-size: 30px;
  }
  .community-feature .btn {
    font-size: 12px;
    padding: 11px 14px;
  }
}
@media (max-width: 767px) {
  .community-feature {
    display: grid;
    grid-template-columns: 1fr;
  }
  .community-feature .feature-image {
    min-height: 0;
    height: clamp(190px, 52vw, 280px);
  }
  .community-feature .feature-copy {
    padding: 26px 22px 28px;
  }
  .community-feature h2 {
    font-size: 30px;
  }
  .community-feature .check-list {
    margin-bottom: 18px;
  }
}

.reference-header {
  position: sticky;
  top: 0;
  z-index: 1050;
  background: #fff;
  box-shadow: none;
  --header-height: 90px;
}
.reference-top {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}
.reference-top:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 32px;
  right: 32px;
  height: 2px;
  background: var(--purple);
}
.reference-brand {
  display: block;
  width: 310px;
  max-width: 50%;
  flex-shrink: 1;
}
.reference-brand img {
  display: block;
  width: 100%;
  height: auto;
}
.reference-actions {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-shrink: 0;
}
.reference-actions button {
  border: 0;
  background: transparent;
  color: var(--ink);
  min-height: 48px;
  cursor: pointer;
  padding: 8px;
}
.reference-search-toggle {
  width: 48px;
}
.reference-header svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
}
.reference-menu-toggle {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.reference-bars {
  width: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.reference-bars i {
  height: 2px;
  width: 20px;
  background: currentColor;
  transition: transform 0.2s;
}
.reference-menu-toggle[aria-expanded="true"] i:first-child {
  transform: translateY(6px) rotate(45deg);
}
.reference-menu-toggle[aria-expanded="true"] i:nth-child(2) {
  opacity: 0;
}
.reference-menu-toggle[aria-expanded="true"] i:last-child {
  transform: translateY(-6px) rotate(-45deg);
}
.reference-panel,
.reference-search {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  max-height: calc(100dvh - var(--header-height));
  overflow: auto;
  overscroll-behavior: contain;
  background: white;
  box-shadow: 0 10px 12px #21102912;
}
.reference-header [hidden] {
  display: none !important;
}
.reference-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 35px;
  padding-top: 38px;
  padding-bottom: 42px;
}
.reference-menu-group {
  min-width: 0;
}
.reference-menu-group h2 {
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.5;
  margin: 0 0 18px;
  color: var(--ink);
}
.reference-menu-group a {
  display: block;
  font-size: 16px;
  line-height: 1.6;
  color: #6d5b78;
  padding: 8px 0;
  min-height: 44px;
  text-decoration: none;
}
.reference-menu-group a:hover,
.reference-menu-group a[aria-current="page"] {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.reference-search {
  background: #291439;
  color: white;
  padding: 20px 0 24px;
}
.reference-search-form {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid #b29abd;
}
.reference-search-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: white;
  font: inherit;
  font-size: 20px;
  padding: 14px 0;
  outline-offset: 0;
}
.reference-search-form input::placeholder {
  color: #d6c8df;
}
.reference-search-form button {
  border: 0;
  background: transparent;
  color: white;
  width: 52px;
  flex-shrink: 0;
}
.reference-search-status {
  font-size: 13px;
  color: #d6c8df;
  margin: 16px 0 0;
}
.reference-search-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 30px;
}
.reference-search-results a {
  padding: 15px 0;
  border-bottom: 1px solid #60466e;
  color: #fff;
  font-size: 16px;
}
.reference-search-results a:hover {
  text-decoration: underline;
}
@media (max-width: 991px) {
  .reference-header {
    --header-height: 94px;
  }
  .reference-brand {
    width: 270px;
  }
  .reference-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 35px;
    padding-top: 28px;
    padding-bottom: 30px;
  }
}
@media (max-width: 575px) {
  .reference-header {
    --header-height: 78px;
  }
  .reference-top {
    padding-left: 18px;
    padding-right: 18px;
    gap: 12px;
  }
  .reference-top:after {
    left: 18px;
    right: 18px;
  }
  .reference-brand {
    width: 205px;
    max-width: 57%;
  }
  .reference-actions {
    gap: 4px;
  }
  .reference-actions button {
    padding: 6px;
  }
  .reference-search-toggle {
    width: 40px;
  }
  .reference-header svg {
    width: 25px;
    height: 25px;
  }
  .reference-menu-toggle {
    font-size: 11px;
    gap: 7px;
  }
  .reference-bars,
  .reference-bars i {
    width: 17px;
  }
  .reference-menu-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 24px;
    padding-bottom: 28px;
  }
  .reference-menu-group {
    border-bottom: 1px solid #e9deef;
    padding-bottom: 18px;
  }
  .reference-menu-group:last-child {
    border: 0;
    padding-bottom: 0;
  }
  .reference-menu-group h2 {
    margin-bottom: 8px;
    font-size: 16px;
  }
  .reference-menu-group a {
    font-size: 15px;
  }
  .reference-search-form input {
    font-size: 16px;
  }
  .reference-search-results {
    grid-template-columns: 1fr;
  }
  .reference-search {
    padding-top: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reference-bars i {
    transition: none;
  }
}
/* FINAL DESIGN REFINEMENTS: typography, social slider and compact footer */
/* Consistent reading scale, compact search, community stories and footer. */
body {
  font-size: 16px;
  line-height: 1.7;
}
h1,
h2,
h3 {
  overflow-wrap: break-word;
  text-wrap: balance;
}
main h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.18;
}
main h3 {
  line-height: 1.3;
}
.inner-page h1,
.page-hero-directory h1,
.page-hero-compact h1,
.article-title h1 {
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.13;
}
main .eyebrow {
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.12em;
}
.compact-feature-copy p,
.resource-library-entry p,
.country-entry p,
.value-line p,
.journey-stop p,
.program-row-copy p,
.statement-grid p,
.agenda-content > p,
.reading-list p,
.detail-card p,
.image-card p,
.community-feature .feature-copy > p {
  font-size: 15px;
  line-height: 1.7;
}
.compact-feature-copy h3,
.resource-library-entry h3,
.agenda-content h3,
.reading-list h3 {
  font-size: clamp(22px, 2.1vw, 28px);
  line-height: 1.3;
}
.compact-feature-copy {
  max-height: none;
}
.compact-feature-layout {
  min-height: 370px;
  height: auto;
}
.compact-feature-layout > img {
  height: 370px;
}
.country-entry a,
.program-meta,
.image-label,
.agenda-content .eyebrow,
.resource-library-entry .eyebrow,
.form-explainer p,
.form-steps span {
  font-size: 12px;
  line-height: 1.6;
}
.form-label,
.form-explainer strong,
.form-steps b {
  font-size: 14px;
}
.form-workspace .form-control,
.form-workspace .form-select {
  font-size: 16px;
}
.reference-search {
  padding: 12px 0;
}
.reference-search-form input {
  font-size: 17px;
  padding: 9px 0;
  min-height: 44px;
}
.reference-search-form button {
  width: 44px;
}
.reference-search-form svg {
  width: 24px;
  height: 24px;
}
.reference-search-status.visually-hidden {
  margin: 0;
}
.reference-search-results:empty {
  display: none;
}
.search-empty-result {
  font-size: 14px;
  margin: 14px 0 2px;
  color: #e5d8ee;
}
.community-updates {
  background: #f5f4f7;
  border-top: 1px solid #ebe4ef;
}
.updates-heading {
  text-align: center;
  margin-bottom: 28px;
}
.updates-heading h2 {
  font-size: clamp(26px, 2.6vw, 36px);
  margin-bottom: 14px;
}
.updates-heading p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}
.mobile-break {
  display: none;
}
.updates-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 20px 4px 12px;
  scroll-behavior: smooth;
}
.updates-track::-webkit-scrollbar {
  display: none;
}
.update-post {
  flex: 0 0 calc((100% - 24px) / 2);
  min-width: 0;
  scroll-snap-align: start;
  position: relative;
  background: #fff;
  border: 1px solid #ebe4ef;
  box-shadow: 0 3px 6px #24133109;
  padding: 38px 28px 24px;
  display: flex;
  flex-direction: column;
}
.update-mark {
  position: absolute;
  top: -17px;
  left: calc(50% - 20px);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #e7ddec;
  color: var(--purple);
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 2px 5px #24133118;
}
.update-category {
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: #896c9d;
  margin: 3px 0 12px;
}
.update-post h3 {
  font-size: 23px;
  margin-bottom: 14px;
}
.update-post p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 22px;
  line-height: 1.75;
}
.update-post-bottom {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--purple);
}
.update-post-bottom a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.updates-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
}
.updates-controls > button {
  width: 44px;
  height: 44px;
  border: 1px solid #d7c5e2;
  color: var(--purple);
  background: #fff;
  border-radius: 50%;
  font-size: 22px;
}
.updates-controls > button:disabled {
  opacity: 0.35;
  cursor: default;
}
.updates-dots {
  display: flex;
  gap: 0;
}
.updates-dots button {
  width: 28px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  display: grid;
  place-items: center;
}
.updates-dots button:after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c6b3d3;
}
.updates-dots button[aria-current="true"]:after {
  background: var(--purple);
  width: 10px;
  height: 10px;
}
.updates-all {
  display: table;
  margin: 14px auto 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--purple);
}
.ysa-footer {
  background: #241131;
  color: #fff;
  padding: 0;
  position: relative;
  border-top: 5px solid #c7df7b;
}
.footer-invitation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 44px 0 36px;
  border-bottom: 1px solid #ffffff26;
}
.footer-invitation .eyebrow {
  color: #c6b1d3;
  font-size: 10px;
  margin-bottom: 12px;
}
.footer-invitation h2 {
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.15;
  margin: 0;
}
.footer-invitation em {
  color: var(--lime);
}
.footer-involve {
  display: flex;
  align-items: center;
  gap: 30px;
  white-space: nowrap;
  font-size: 17px;
  color: #fff;
  font-weight: 600;
}
.footer-involve span {
  width: 58px;
  height: 58px;
  border: 1px solid #cbb5d7;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 28px;
  transition: 0.2s;
}
.footer-involve:hover {
  color: var(--lime);
}
.footer-involve:hover span {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}
.footer-directory {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 38px;
  padding: 36px 0;
}
.footer-directory > div {
  min-width: 0;
}
.footer-identity img {
  width: 245px;
  filter: brightness(0) invert(1);
  display: block;
}
.footer-identity p {
  font-size: 15px;
  line-height: 1.75;
  color: #c9b9d3;
  margin: 20px 0 14px;
  max-width: none;
}
.footer-directory h3 {
  font-size: 15px;
  letter-spacing: 0;
  color: white;
  margin: 0 0 14px;
  font-weight: 700;
}
.footer-directory a {
  display: block;
  color: #cebed8;
  font-size: 14px;
  padding: 6px 0;
  line-height: 1.6;
}
.footer-directory a:hover {
  color: var(--lime);
}
.footer-identity > a:last-child {
  color: var(--lime);
}
.footer-region {
  padding: 20px 0;
  border-top: 1px solid #ffffff26;
  border-bottom: 1px solid #ffffff26;
  display: flex;
  gap: 28px;
  align-items: center;
}
.footer-region > span {
  font-size: 10px;
  letter-spacing: 0.13em;
  color: var(--lime);
  white-space: nowrap;
}
.footer-region p {
  max-width: none;
  color: #c9b9d3;
  font-size: 12px;
  margin: 0;
  line-height: 1.8;
}
.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 21px 0;
  font-size: 12px;
  color: #b7a1c4;
}
.footer-legal a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (max-width: 991px) {
  .footer-directory {
    grid-template-columns: 1.3fr 1fr;
    gap: 28px 35px;
  }
  .footer-region {
    display: block;
  }
  .footer-region p {
    margin-top: 8px;
  }
  .update-post {
    padding: 32px 22px 22px;
  }
  .footer-invitation h2 {
    font-size: 36px;
  }
}
@media (max-width: 767px) {
  main h2 {
    font-size: 29px;
  }
  .inner-page h1,
  .page-hero-directory h1,
  .page-hero-compact h1,
  .article-title h1 {
    font-size: 34px;
  }
  .compact-feature-layout {
    min-height: 0;
  }
  .compact-feature-layout > img {
    height: 215px;
  }
  .compact-feature-copy p {
    font-size: 15px;
  }
  .page-hero-copy > p {
    font-size: 16px;
  }
  .reference-search {
    padding: 7px 0 8px;
  }
  .reference-search-form input {
    font-size: 16px;
    padding: 7px 0;
    min-height: 40px;
  }
  .reference-search-form button {
    width: 40px;
  }
  .reference-search-results a {
    font-size: 14px;
    padding: 11px 0;
  }
  .reference-search {
    max-height: min(55dvh, 380px);
  }
  .update-post {
    flex-basis: 100%;
    padding: 33px 21px 22px;
  }
  .updates-track {
    gap: 16px;
  }
  .updates-heading {
    margin-bottom: 17px;
  }
  .updates-heading h2 {
    font-size: 28px;
  }
  .mobile-break {
    display: block;
  }
  .update-post h3 {
    font-size: 23px;
  }
  .updates-controls {
    margin-top: 10px;
  }
  .footer-invitation {
    display: block;
    padding: 32px 0 28px;
  }
  .footer-invitation h2 {
    font-size: 32px;
  }
  .footer-involve {
    margin-top: 24px;
    justify-content: space-between;
    max-width: 260px;
    font-size: 16px;
  }
  .footer-involve span {
    height: 46px;
    width: 46px;
  }
  .footer-directory {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
    padding: 28px 0;
  }
  .footer-identity {
    grid-column: 1/-1;
  }
  .footer-identity p br {
    display: none;
  }
  .footer-identity img {
    width: 225px;
  }
  .footer-directory a {
    font-size: 14px;
    padding: 8px 0;
  }
  .footer-legal {
    font-size: 12px;
    display: grid;
    gap: 10px;
    padding: 20px 0;
  }
  .footer-region p {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .updates-track {
    scroll-behavior: auto;
  }
}
.updates-dots button[hidden] {
  display: none;
}
/* Smaller editorial scale and a quiet, compact footer. */
main h2,
.section h2 {
  font-size: clamp(26px, 2.6vw, 35px);
}
.inner-page h1,
.page-hero-directory h1,
.page-hero-compact h1,
.article-title h1 {
  font-size: clamp(30px, 3.6vw, 49px);
}
.hero h1 {
  font-size: clamp(38px, 4.8vw, 66px);
}
.big-copy {
  font-size: 23px;
}
.manifesto {
  font-size: clamp(29px, 3.2vw, 42px);
}
.compact-feature-copy h3,
.resource-library-entry h3,
.agenda-content h3,
.reading-list h3 {
  font-size: clamp(21px, 1.9vw, 25px);
}
.updates-heading h2 {
  font-size: clamp(25px, 2.4vw, 32px);
}
.update-post h3 {
  font-size: 21px;
}
.update-post p {
  font-size: 14px;
  line-height: 1.75;
}
.community-updates {
  padding: 40px 0 28px;
}
.updates-all {
  margin-top: 18px;
}
.social-share-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 18px;
  background: #f5f4f7;
}
.social-share-row > span {
  font-size: 12px;
  color: #786d80;
}
.social-share-icons {
  display: flex;
  gap: 12px;
}
.social-share-link {
  height: 40px;
  width: 40px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #e8e2ed;
  border-radius: 50%;
  color: #80708b;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.social-share-link:hover {
  color: var(--purple);
  border-color: var(--purple);
}
.social-share-link svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}
.ysa-footer {
  background: #fbfafc;
  color: var(--ink);
  border-top: 1px solid #e3dbe8;
}
.footer-directory {
  padding: 30px 0 22px;
  gap: 32px;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
}
.footer-identity img {
  filter: none;
  width: 220px;
}
.footer-identity p {
  font-size: 13px;
  color: #766a7e;
  margin: 14px 0 8px;
}
.footer-directory h3 {
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 10px;
}
.footer-directory a {
  color: #766a7e;
  font-size: 13px;
  padding: 4px 0;
}
.footer-directory a:hover,
.footer-identity > a:last-child {
  color: var(--purple);
}
.footer-region {
  padding: 13px 0;
  border-color: #e8e0ed;
  gap: 22px;
}
.footer-region > span {
  color: var(--purple);
  font-size: 9px;
}
.footer-region p {
  color: #817389;
  font-size: 11px;
}
.footer-legal {
  padding: 15px 0;
  color: #8b7f93;
  font-size: 11px;
}
.footer-directory > div:not(:first-child) {
  border-top: 2px solid #e4d8ec;
  padding-top: 12px;
}
.footer-directory > div:nth-child(3) {
  border-color: #cbb4d9;
}
.footer-directory > div:nth-child(4) {
  border-color: #a9bcb4;
}
@media (max-width: 991px) {
  .footer-directory {
    grid-template-columns: 1.3fr 1fr;
    gap: 24px 32px;
  }
}
@media (max-width: 767px) {
  .hero h1 {
    font-size: clamp(29px, 7.3vw, 50px);
  }
  main h2,
  .section h2 {
    font-size: 27px;
  }
  .inner-page h1,
  .page-hero-directory h1,
  .page-hero-compact h1,
  .article-title h1 {
    font-size: 31px;
  }
  .community-feature h2 {
    font-size: 28px;
  }
  .big-copy {
    font-size: 21px;
  }
  .community-updates {
    padding: 30px 0 22px;
  }
  .updates-heading h2 {
    font-size: 25px;
  }
  .update-post h3 {
    font-size: 21px;
  }
  .social-share-row {
    gap: 13px;
    padding: 16px 12px;
  }
  .social-share-icons {
    gap: 9px;
  }
  .social-share-link {
    width: 38px;
    height: 38px;
  }
  .social-share-row > span {
    font-size: 11px;
  }
  .footer-directory {
    padding: 24px 0 18px;
    gap: 20px 24px;
    grid-template-columns: 1fr 1fr;
  }
  .footer-identity img {
    width: 205px;
  }
  .footer-directory a {
    padding: 7px 0;
    font-size: 13px;
  }
  .footer-region p {
    font-size: 12px;
    line-height: 1.8;
  }
  .footer-legal {
    gap: 8px;
    font-size: 11px;
  }
}
