/* Alshawaf public identity layer — heritage, kinship and modern utility. */
.family-home-v3 {
  --shawaf-navy: #061d35;
  --shawaf-navy-soft: #0c3045;
  --shawaf-teal: #08776e;
  --shawaf-teal-dark: #075b57;
  --shawaf-gold: #c69a4b;
  --shawaf-gold-soft: #ead09b;
  --shawaf-cream: #fbfaf6;
  --shawaf-line: rgba(7, 38, 54, .11);
}

.family-home-v3 .home-v3-welcome {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, 1.05fr) minmax(400px, .95fr);
  height: 486px;
  margin-top: 30px;
  padding: 14px;
  border: 1px solid var(--shawaf-line);
  border-radius: 32px;
  background:
    radial-gradient(circle at 92% 4%, rgba(198, 154, 75, .11), transparent 24%),
    radial-gradient(circle at 49% 106%, rgba(8, 119, 110, .08), transparent 32%),
    var(--shawaf-cream);
  box-shadow: 0 24px 68px rgba(6, 29, 53, .14);
}

.family-home-v3 .home-v3-welcome::before {
  content: "";
  position: absolute;
  z-index: 3;
  display: block;
  top: 66px;
  bottom: 66px;
  left: calc(46.8% - 1px);
  width: 1px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(198, 154, 75, .68) 24%, rgba(8, 119, 110, .45) 76%, transparent);
}

.family-home-v3 .home-v3-welcome::after {
  content: "";
  position: absolute;
  z-index: 4;
  top: 50%;
  left: calc(46.8% - 5px);
  width: 9px;
  height: 9px;
  border: 2px solid var(--shawaf-cream);
  border-radius: 50%;
  background: var(--shawaf-gold);
  box-shadow: 0 0 0 5px rgba(198, 154, 75, .13);
  pointer-events: none;
}

.family-home-v3 .home-v3-visual {
  grid-column: 2;
  grid-row: 1 / 3;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 23px;
  box-shadow: inset 0 0 0 1px rgba(7, 29, 53, .06);
}

.family-home-v3 .home-v3-visual::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 15px;
  pointer-events: none;
}

.family-home-v3 .home-v3-visual::after {
  background:
    linear-gradient(180deg, rgba(6, 29, 53, .02) 38%, rgba(6, 29, 53, .54)),
    linear-gradient(90deg, rgba(6, 29, 53, .12), transparent 48%),
    linear-gradient(0deg, rgba(8, 119, 110, .08), transparent 42%);
}

.family-home-v3 .home-v3-visual img {
  object-position: 36% center;
  filter: saturate(.94) contrast(1.02) brightness(1.01);
  transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .5s ease;
}

.family-home-v3 .home-v3-welcome:hover .home-v3-visual img {
  transform: scale(1.018);
  filter: saturate(1) contrast(1.03);
}

.family-home-v3 .home-v3-visual > span {
  inset: auto 22px 20px auto;
  padding: 8px 12px;
  border-color: rgba(255, 255, 255, .3);
  background: rgba(4, 29, 45, .58);
  box-shadow: 0 7px 22px rgba(4, 24, 39, .2);
}

.family-home-v3 .home-v3-welcome-copy {
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  padding: 34px 38px 17px;
  overflow: hidden;
}

.family-home-v3 .home-v3-welcome-copy::before {
  content: "الشواف";
  position: absolute;
  z-index: -1;
  top: 6px;
  left: 18px;
  color: var(--shawaf-navy);
  font-size: clamp(4.4rem, 7vw, 7rem);
  font-weight: 900;
  line-height: 1;
  opacity: .025;
  transform: rotate(-8deg);
  pointer-events: none;
}

.family-home-v3 .home-v3-welcome-copy::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 32px;
  bottom: 14px;
  width: 165px;
  height: 84px;
  opacity: .34;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 82%, var(--shawaf-gold) 0 3px, transparent 3.5px),
    radial-gradient(circle at 42% 18%, var(--shawaf-teal) 0 3px, transparent 3.5px),
    radial-gradient(circle at 76% 68%, var(--shawaf-gold) 0 3px, transparent 3.5px),
    linear-gradient(25deg, transparent 22%, rgba(8, 119, 110, .32) 22.5%, rgba(8, 119, 110, .32) 23.2%, transparent 23.7%),
    linear-gradient(151deg, transparent 48%, rgba(198, 154, 75, .42) 48.5%, rgba(198, 154, 75, .42) 49.2%, transparent 49.7%);
}

.family-home-v3 .home-v3-eyebrow {
  position: relative;
  align-self: flex-start;
  gap: 8px;
  margin-bottom: 15px;
  padding: 5px 0 8px;
  border: 0;
  border-bottom: 1px solid rgba(198, 154, 75, .65);
  border-radius: 0;
  color: var(--shawaf-teal-dark);
  background: transparent;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .01em;
}

.family-home-v3 .home-v3-eyebrow i {
  color: var(--shawaf-gold);
}

.family-home-v3 .home-v3-welcome h1 {
  max-width: 570px;
  color: var(--shawaf-navy);
  font-size: clamp(2.65rem, 3.55vw, 3.9rem);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -.045em;
}

.family-home-v3 .home-v3-welcome h1 em {
  position: relative;
  color: var(--shawaf-teal);
  font-style: normal;
  font-weight: 800;
}

.family-home-v3 .home-v3-welcome h1 em::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: -7px;
  width: 46%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--shawaf-gold));
}

.family-home-v3 .home-v3-welcome-copy > p {
  max-width: 570px;
  margin: 17px 0 12px;
  color: #4d5c69;
  font-size: .91rem;
  line-height: 1.8;
}

.family-home-v3 .home-v3-lineage {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: #66747f;
  font-size: .7rem;
  font-weight: 850;
}

.family-home-v3 .home-v3-lineage i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--shawaf-gold);
  box-shadow: 0 0 0 3px rgba(198, 154, 75, .12);
}

.family-home-v3 .home-v3-welcome-actions {
  gap: 9px;
}

.family-home-v3 .home-v3-welcome-actions a {
  min-height: 44px;
  padding: 10px 18px;
  border-color: rgba(7, 38, 54, .13);
  box-shadow: 0 5px 18px rgba(6, 29, 53, .06);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.family-home-v3 .home-v3-welcome-actions a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(6, 29, 53, .11);
}

.family-home-v3 .home-v3-welcome-actions a.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--shawaf-teal), var(--shawaf-teal-dark));
  box-shadow: 0 9px 22px rgba(8, 119, 110, .2);
}

.family-home-v3 .home-v3-event-spotlight {
  z-index: 2;
  margin: 13px 23px 17px;
  padding: 14px 17px;
  border: 1px solid rgba(234, 208, 155, .2);
  border-radius: 17px;
  background: linear-gradient(128deg, #07565a, #0a3446 55%, var(--shawaf-navy));
  box-shadow: 0 13px 32px rgba(6, 29, 53, .2);
  transition: transform .2s ease, box-shadow .2s ease;
}

.family-home-v3 .home-v3-event-spotlight:hover {
  transform: translateY(-2px);
  box-shadow: 0 17px 36px rgba(6, 29, 53, .25);
}

.family-home-v3 .home-v3-event-spotlight::before {
  content: "";
  position: absolute;
  top: 15px;
  bottom: 15px;
  right: 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
  background: var(--shawaf-gold);
}

.family-home-v3 .home-v3-event-label,
.family-home-v3 .home-v3-event-spotlight b {
  color: var(--shawaf-gold-soft);
}

.family-home-v3 .home-v3-actions {
  position: relative;
  margin-top: 14px;
  gap: 0;
  padding: 8px 9px;
  overflow: hidden;
  border-color: rgba(7, 38, 54, .09);
  border-radius: 22px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 16px 38px rgba(6, 29, 53, .08);
  backdrop-filter: blur(12px);
}

.family-home-v3 .home-v3-actions::before {
  content: "";
  position: absolute;
  top: 0;
  right: 8%;
  left: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--shawaf-gold), var(--shawaf-teal), transparent);
  opacity: .65;
}

.family-home-v3 .home-v3-actions > a {
  position: relative;
  min-height: 80px;
  padding: 12px 10px;
  border-radius: 13px;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.family-home-v3 .home-v3-actions > a:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 19px;
  bottom: 19px;
  left: -1px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(7, 38, 54, .12), transparent);
}

.family-home-v3 .home-v3-actions > a:hover {
  color: var(--shawaf-teal-dark);
  background: linear-gradient(180deg, rgba(8, 119, 110, .055), rgba(198, 154, 75, .05));
  transform: translateY(-2px);
}

.family-home-v3 .home-v3-actions > a > i {
  width: 32px;
  height: 32px;
  color: var(--shawaf-teal);
  background: transparent !important;
  box-shadow: none !important;
  font-size: 1.08rem;
}

.family-home-v3 .home-v3-actions > a:nth-child(2n) > i {
  color: #a87528;
}

.family-home-v3 .home-v3-actions strong {
  color: var(--shawaf-navy);
  font-size: .83rem;
}

.family-home-v3 .home-v3-actions small {
  color: #77838d;
  font-size: .65rem;
}

/* Important family dates stay visibly different from general occasions. */
.family-home-v3 .home-v3-event-list > a.family-featured {
  border-color: rgba(234, 208, 155, .62);
  background: linear-gradient(125deg, rgba(198, 154, 75, .2), rgba(8, 119, 110, .2));
  box-shadow: inset 3px 0 0 var(--shawaf-gold), 0 9px 24px rgba(1, 14, 27, .18);
}

.family-home-v3 .home-v3-event-list > a.family-featured .date {
  color: var(--shawaf-navy);
  background: linear-gradient(145deg, #f3d99e, var(--shawaf-gold));
}

.family-home-v3 .home-v3-event-list > a.family-featured div > small {
  color: #f3d99e;
}

/* Program icons breathe freely; the family-wide occasion receives one clear hero card. */
.family-home-v3 .home-v3-program-grid > a {
  grid-template-columns: 44px minmax(0, 1fr) 24px;
}

.family-home-v3 .home-v3-program-grid > a > i {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0;
  place-items: center;
  border: 0;
  border-radius: 0;
  color: #9a712b;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 1.35rem;
}

.family-home-v3 .home-v3-program-grid > a b,
.family-home-v3 .home-v3-program-grid > a b i {
  border: 0;
  background: transparent !important;
  box-shadow: none !important;
}

.family-home-v3 .home-v3-program-grid > a.family-highlight {
  position: relative;
  overflow: hidden;
  border-color: rgba(198, 154, 75, .62);
  color: #fff;
  background:
    radial-gradient(circle at 0 100%, rgba(198, 154, 75, .18), transparent 11rem),
    linear-gradient(125deg, #075c59, var(--shawaf-navy));
  box-shadow: 0 18px 38px rgba(6, 29, 53, .18);
}

.family-home-v3 .home-v3-program-grid > a.family-highlight::before {
  content: "";
  position: absolute;
  top: 0;
  right: 24px;
  left: 24px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--shawaf-gold), transparent);
}

.family-home-v3 .home-v3-program-grid > a.family-highlight > i,
.family-home-v3 .home-v3-program-grid > a.family-highlight b {
  color: var(--shawaf-gold-soft);
}

.family-home-v3 .home-v3-program-grid > a.family-highlight small {
  color: var(--shawaf-gold-soft);
}

.family-home-v3 .home-v3-program-grid > a.family-highlight strong {
  color: #fff;
}

.family-home-v3 .home-v3-program-grid > a.family-highlight p {
  color: rgba(255, 255, 255, .72);
}

/* Family council: a public, expandable leadership map with no invented names. */
.family-home-v3 .home-v3-council {
  position: relative;
  isolation: isolate;
  margin-top: 62px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid rgba(234, 208, 155, .2);
  border-radius: 31px;
  color: #fff;
  background:
    radial-gradient(circle at 7% 0%, rgba(198, 154, 75, .2), transparent 21rem),
    radial-gradient(circle at 94% 100%, rgba(8, 119, 110, .28), transparent 26rem),
    linear-gradient(128deg, #061d35, #073745 58%, #064e4c);
  box-shadow: 0 27px 62px rgba(6, 29, 53, .2);
}

.family-home-v3 .home-v3-council::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .28;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px) 0 0 / 55px 55px,
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px) 0 0 / 55px 55px;
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
}

.family-home-v3 .home-v3-council::after {
  content: "";
  position: absolute;
  top: 0;
  right: 9%;
  left: 9%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--shawaf-gold), #3bb3a5, transparent);
}

.family-home-v3 .home-v3-council-head {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(340px, 1.2fr);
  align-items: end;
  gap: 34px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .13);
}

.family-home-v3 .home-v3-council-head span,
.family-home-v3 .home-v3-committees-head span {
  color: var(--shawaf-gold-soft);
  font-size: .74rem;
  font-weight: 900;
}

.family-home-v3 .home-v3-council-head h2 {
  margin: 4px 0 0;
  color: #fff;
  font-size: clamp(2.25rem, 4vw, 3.55rem);
  line-height: 1;
}

.family-home-v3 .home-v3-council-head p {
  max-width: 670px;
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: .9rem;
  line-height: 1.85;
}

.family-home-v3 .home-v3-council-levels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.family-home-v3 .home-v3-council-card {
  position: relative;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 16px;
  min-height: 213px;
  padding: 25px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 23px 7px 23px 7px;
}

.family-home-v3 .home-v3-council-card.elders {
  color: var(--shawaf-navy);
  border-color: rgba(198, 154, 75, .42);
  background: linear-gradient(140deg, #fffaf0, #ead6ad);
}

.family-home-v3 .home-v3-council-card.youth {
  background: linear-gradient(135deg, rgba(12, 109, 103, .92), rgba(7, 30, 53, .88));
  box-shadow: inset 0 0 35px rgba(255, 255, 255, .035);
}

.family-home-v3 .home-v3-council-card > i {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #a67629;
  background: transparent;
  font-size: 1.6rem;
}

.family-home-v3 .home-v3-council-card.youth > i {
  color: var(--shawaf-gold-soft);
}

.family-home-v3 .home-v3-council-card div > span {
  color: #8b6729;
  font-size: .7rem;
  font-weight: 900;
}

.family-home-v3 .home-v3-council-card.youth div > span {
  color: var(--shawaf-gold-soft);
}

.family-home-v3 .home-v3-council-card h3 {
  margin: 4px 0 8px;
  color: inherit;
  font-size: 1.4rem;
}

.family-home-v3 .home-v3-council-card p {
  margin: 0;
  color: rgba(7, 27, 52, .7);
  font-size: .79rem;
  line-height: 1.75;
}

.family-home-v3 .home-v3-council-card.youth p {
  color: rgba(255, 255, 255, .72);
}

.family-home-v3 .home-v3-council-card footer {
  grid-column: 1 / -1;
  align-self: end;
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 13px;
  border-top: 1px solid rgba(7, 27, 52, .12);
  color: #78643f;
  font-size: .7rem;
  font-weight: 850;
}

.family-home-v3 .home-v3-council-card.youth footer {
  border-top-color: rgba(255, 255, 255, .13);
  color: rgba(255, 255, 255, .68);
}

.family-home-v3 .home-v3-committees-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 30px;
}

.family-home-v3 .home-v3-committees-head h3 {
  margin: 3px 0 0;
  color: #fff;
  font-size: 1.55rem;
}

.family-home-v3 .home-v3-committees-head p {
  margin: 0;
  color: rgba(255, 255, 255, .58);
  font-size: .73rem;
}

.family-home-v3 .home-v3-committee-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.family-home-v3 .home-v3-committee-grid article {
  display: flex;
  flex-direction: column;
  min-height: 184px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 17px 5px 17px 5px;
  background: rgba(255, 255, 255, .065);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.family-home-v3 .home-v3-committee-grid article:hover {
  transform: translateY(-3px);
  border-color: rgba(234, 208, 155, .38);
  background: rgba(255, 255, 255, .095);
}

.family-home-v3 .home-v3-committee-grid article > i {
  color: var(--shawaf-gold-soft);
  background: transparent;
  font-size: 1.2rem;
}

.family-home-v3 .home-v3-committee-grid h4 {
  margin: 13px 0 6px;
  color: #fff;
  font-size: .86rem;
  line-height: 1.45;
}

.family-home-v3 .home-v3-committee-grid p {
  margin: 0;
  color: rgba(255, 255, 255, .58);
  font-size: .67rem;
  line-height: 1.65;
}

.family-home-v3 .home-v3-committee-grid article > span {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding-top: 12px;
  color: rgba(234, 208, 155, .76);
  font-size: .59rem;
  font-weight: 800;
}

/* Only true landscape images may occupy the wide album cells. */
.family-home-v3 .home-v3-gallery-grid > a:first-child,
.family-home-v3 .home-v3-gallery-grid > a:nth-child(6) {
  grid-column: auto;
  grid-row: auto;
}

.family-home-v3 .home-v3-gallery-grid.is-arranged > a.is-featured-large {
  grid-column: span 2;
  grid-row: span 2;
}

.family-home-v3 .home-v3-gallery-grid.is-arranged > a.is-featured-wide {
  grid-column: span 2;
}

.family-home-v3 .home-v3-gallery-grid > a.is-featured-large img {
  /* Keep the whole youth group visible while trimming the unused sky. */
  object-position: center 68%;
}

.family-home-v3 .home-v3-gallery-grid > a.is-featured-wide img {
  /* Lower the photograph inside the crop so faces are not tight to the top. */
  object-position: center 28%;
}

@media (min-width: 761px) {
  .family-home-v3 .home-v3-gallery-grid.is-arranged {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .family-home-v3 .home-v3-gallery-grid.is-arranged > a.is-featured-large,
  .family-home-v3 .home-v3-gallery-grid.is-arranged > a.is-featured-wide {
    grid-column: span 3;
  }
}

/* Portraits are only used as a fallback when the album has too few landscape
   photos. In that case show the whole photograph and never crop a face. */
.family-home-v3 .home-v3-gallery-grid > a.is-portrait {
  background: linear-gradient(145deg, #eef4f2, #f8f5ed);
}

.family-home-v3 .home-v3-gallery-grid > a.is-portrait img {
  object-fit: contain;
  object-position: center;
  padding: 6px;
}

@media (max-width: 1100px) {
  .family-home-v3 .home-v3-welcome {
    grid-template-columns: minmax(0, .98fr) minmax(370px, 1.02fr);
    height: 468px;
  }

  .family-home-v3 .home-v3-welcome::before,
  .family-home-v3 .home-v3-welcome::after {
    left: calc(50.8% - 1px);
  }

  .family-home-v3 .home-v3-welcome::after {
    left: calc(50.8% - 5px);
  }

  .family-home-v3 .home-v3-welcome-copy {
    padding-inline: 27px;
  }

  .family-home-v3 .home-v3-welcome h1 {
    font-size: clamp(2.35rem, 4.25vw, 3.25rem);
  }

  .family-home-v3 .home-v3-committee-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .family-home-v3 .home-v3-welcome {
    width: calc(100% - 20px);
    height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: 218px auto auto;
    margin-top: 12px;
    padding: 8px;
    border-radius: 25px;
  }

  .family-home-v3 .home-v3-welcome::before,
  .family-home-v3 .home-v3-welcome::after {
    display: none;
  }

  .family-home-v3 .home-v3-visual {
    grid-column: 1;
    grid-row: 1;
    border-radius: 18px;
  }

  .family-home-v3 .home-v3-visual::before {
    inset: 9px;
    border-radius: 12px;
  }

  .family-home-v3 .home-v3-welcome:hover .home-v3-visual img {
    transform: none;
  }

  .family-home-v3 .home-v3-welcome-copy {
    grid-column: 1;
    grid-row: 2;
    padding: 20px 15px 13px;
  }

  .family-home-v3 .home-v3-welcome-copy::before {
    top: 4px;
    left: 8px;
    font-size: 4.4rem;
  }

  .family-home-v3 .home-v3-welcome-copy::after {
    display: none;
  }

  .family-home-v3 .home-v3-eyebrow {
    margin-bottom: 11px;
    padding-bottom: 6px;
    font-size: .68rem;
  }

  .family-home-v3 .home-v3-welcome h1 {
    font-size: clamp(2rem, 10vw, 2.5rem);
    line-height: 1.04;
  }

  .family-home-v3 .home-v3-welcome h1 em::after {
    bottom: -4px;
  }

  .family-home-v3 .home-v3-welcome-copy > p {
    margin: 13px 0 9px;
    font-size: .79rem;
    line-height: 1.72;
  }

  .family-home-v3 .home-v3-lineage {
    margin-bottom: 13px;
    font-size: .65rem;
  }

  .family-home-v3 .home-v3-welcome-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .family-home-v3 .home-v3-welcome-actions a {
    min-height: 42px;
    padding: 8px 9px;
    justify-content: center;
    font-size: .74rem;
  }

  .family-home-v3 .home-v3-event-spotlight {
    grid-column: 1;
    grid-row: 3;
    margin: 9px 7px 7px;
    padding: 12px;
  }

  .family-home-v3 .home-v3-program-grid > a {
    grid-template-columns: 34px minmax(0, 1fr) 20px;
  }

  .family-home-v3 .home-v3-program-grid > a > i {
    width: 32px;
    height: 32px;
    font-size: 1.05rem;
  }

  .family-home-v3 .home-v3-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
    margin-top: 9px;
    padding: 5px;
    border-radius: 18px;
  }

  .family-home-v3 .home-v3-actions > a {
    min-height: 78px;
    padding: 9px 4px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .family-home-v3 .home-v3-actions > a:not(:last-child)::after {
    display: none;
  }

  .family-home-v3 .home-v3-actions > a > i {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
  }

  .family-home-v3 .home-v3-actions small {
    display: none;
  }

  .family-home-v3 .home-v3-council {
    width: calc(100% - 20px);
    margin-top: 36px;
    padding: 21px 15px 17px;
    border-radius: 24px;
  }

  .family-home-v3 .home-v3-council-head {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-bottom: 17px;
  }

  .family-home-v3 .home-v3-council-head h2 {
    font-size: 2.35rem;
  }

  .family-home-v3 .home-v3-council-head p {
    font-size: .77rem;
    line-height: 1.7;
  }

  .family-home-v3 .home-v3-council-levels {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 17px;
  }

  .family-home-v3 .home-v3-council-card {
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 185px;
    padding: 18px;
    border-radius: 18px 5px 18px 5px;
  }

  .family-home-v3 .home-v3-council-card > i {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }

  .family-home-v3 .home-v3-council-card h3 {
    font-size: 1.15rem;
  }

  .family-home-v3 .home-v3-committees-head {
    display: block;
    margin-top: 23px;
  }

  .family-home-v3 .home-v3-committees-head p {
    margin-top: 5px;
  }

  .family-home-v3 .home-v3-committee-grid {
    display: flex;
    gap: 8px;
    margin: 13px -15px 0;
    padding: 0 15px 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .family-home-v3 .home-v3-committee-grid::-webkit-scrollbar {
    display: none;
  }

  .family-home-v3 .home-v3-committee-grid article {
    flex: 0 0 72%;
    min-height: 166px;
    scroll-snap-align: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .family-home-v3 .home-v3-visual img,
  .family-home-v3 .home-v3-welcome-actions a,
  .family-home-v3 .home-v3-event-spotlight,
  .family-home-v3 .home-v3-actions > a {
    transition: none;
  }
}
