/* ==========================================================================
   The Home page (templates/index.html). Loaded on that page only; the colour
   tokens (--vh-*) and the .vh-btn buttons come from shell.css.

   Layout: a phone stacks every block in reading order; a tablet pairs the
   greeting with "Popular now"; from 1400px the page is two columns, the
   member's own panel on the right, as in the design.
   ========================================================================== */

body { background: var(--vh-cream); }

.content.vh-page {
  padding-top: calc(var(--phoenix-navbar-top-height) + 1.25rem);
  padding-bottom: 2.5rem;
  color: var(--vh-body);
}

.vh-home {
  --vh-gap: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: var(--vh-gap);
  max-width: 1560px;
  margin: 0 auto;
}
.vh-main, .vh-side { display: contents; }
/* On a phone: the hero, the shortcuts, then the member's own panel. */
.vh-hero { order: 1; }
.vh-quick { order: 2; }
.vh-greet { order: 3; }
.vh-events { order: 4; }
.vh-pair--news { order: 5; }
.vh-pair--jobs { order: 6; }
.vh-popular { order: 7; }
.vh-sponsored { order: 8; }
.vh-promo { order: 9; }

@media (min-width: 768px) and (max-width: 1399.98px) {
  .vh-home {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "hero hero"
      "quick quick"
      "greet popular"
      "events events"
      "pair1 pair1"
      "pair2 pair2"
      "spons spons"
      "promo promo";
    align-items: start;
  }
  .vh-hero { grid-area: hero; }
  .vh-quick { grid-area: quick; }
  .vh-greet { grid-area: greet; align-self: stretch; }
  .vh-popular { grid-area: popular; align-self: stretch; }
  .vh-events { grid-area: events; }
  .vh-pair--news { grid-area: pair1; }
  .vh-pair--jobs { grid-area: pair2; }
  .vh-sponsored { grid-area: spons; }
  .vh-promo { grid-area: promo; }
}

@media (min-width: 1400px) {
  .content.vh-page { padding-left: 1.5rem; padding-right: 1.5rem; }
  .vh-home {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20.75rem;
    align-items: start;
  }
  .vh-main, .vh-side {
    display: flex;
    flex-direction: column;
    gap: var(--vh-gap);
    min-width: 0;
  }
}

/* Two cards side by side when there is room for both, stacked when not. */
.vh-pair { display: flex; flex-wrap: wrap; gap: var(--vh-gap); }
.vh-pair > .vh-card { flex: 1 1 21rem; min-width: 0; }
/* The news and the jobs lists need more room than their neighbours. */
.vh-pair > .vh-news, .vh-pair > .vh-jobs { flex: 1.6 1 28rem; }

/* ------------------------------------------------------------------ cards */

.vh-card {
  background: var(--vh-surface);
  border: 1px solid var(--vh-line);
  border-radius: 20px;
  padding: 1.1rem 1.25rem 1.25rem;
  box-shadow: 0 1px 2px rgba(60, 30, 20, 0.04);
}
.vh-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.vh-card__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--vh-ink);
}
.vh-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 1.15rem;
  background: none !important;
}
.vh-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: none;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--vh-orange);
  white-space: nowrap;
}
.vh-more:hover { color: var(--vh-brown); }
.vh-more .svg-inline--fa, .vh-more i { font-size: 0.72rem; }

.vh-home a { color: inherit; }
.vh-home a:focus-visible,
.vh-home button:focus-visible { outline: 3px solid var(--vh-focus); outline-offset: 2px; }

.vh-empty {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 1.1rem 1rem;
  border-radius: 14px;
  background: var(--vh-cream);
  color: var(--vh-muted);
  font-size: 0.86rem;
  font-weight: 600;
}
.vh-empty--compact { padding: 0.85rem 0.9rem; }
.vh-empty > span { display: flex; flex-direction: column; align-items: flex-start; }
.vh-empty__action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  font-weight: 800;
  color: var(--vh-orange) !important;
}
.vh-empty__action:hover { color: var(--vh-brown) !important; }

/* Pastel tones: background tint + icon colour. */
.vh-tone--news { background: #ffe9de; color: #e0601f; }
.vh-tone--events { background: #ffe4ec; color: #d6336c; }
.vh-tone--jobs { background: #e3eeff; color: #1c6ed6; }
.vh-tone--business, .vh-tone--businesses { background: #fff0d6; color: #e08a00; }
.vh-tone--transport { background: #e1f6e6; color: #2b8a3e; }
.vh-tone--scholarships { background: #ece7ff; color: #6741d9; }
.vh-tone--testimonies { background: #ffe3e3; color: #e03131; }
.vh-tone--council { background: #ddf4f6; color: #0b7f92; }
.vh-tone--gallery { background: #fff3d6; color: #c27c0e; }
.vh-tone--hot { color: #f76707; }
.vh-tone--job1 { background: #ffe8d9; color: #e8590c; }
.vh-tone--job2 { background: #ffe3e0; color: #e03b2e; }
.vh-tone--job3 { background: #e3eeff; color: #1c6ed6; }
.vh-tone--job4 { background: #ede7ff; color: #6f42e0; }

/* Something to look at while a picture loads, or when there is none. */
.vh-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 1.5rem;
}

/* ------------------------------------------------------------------- hero */

.vh-hero {
  position: relative;
  overflow: hidden;
  padding: 0; /* Phoenix pads every <section> */
  border-radius: 22px;
  background: linear-gradient(120deg, #fff4e6 0%, #f7d9b9 100%);
  box-shadow: 0 14px 34px -22px rgba(60, 30, 20, 0.55);
  container-type: inline-size;
  container-name: vhhero;
  isolation: isolate;
}
.vh-hero__track { display: grid; }
.vh-slide {
  grid-area: 1 / 1;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 19.5rem;
  padding: 2.25rem 4.75rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}
.vh-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease, visibility 0s;
}
.vh-slide__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
/* Warm light on the left so the words stay readable over any picture. */
.vh-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,
    rgba(255, 248, 238, 0.98) 0%,
    rgba(255, 248, 238, 0.93) 36%,
    rgba(255, 248, 238, 0.45) 60%,
    rgba(255, 248, 238, 0) 78%);
}
/* The welcome slide: St Gaspar church stands on the right and fades into the
   warm light behind the words, instead of sitting under the veil. */
@media (min-width: 768px) {
  .vh-slide--welcome::before { display: none; }
  .vh-slide__img--welcome {
    left: auto;
    width: 52%;
    object-position: center 40%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.6) 14%, #000 30%);
            mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.6) 14%, #000 30%);
  }
  /* The words keep to the left half, clear of the church. */
  .vh-slide--welcome .vh-slide__body { max-width: 26rem; max-width: min(28rem, calc(50cqi - 4.75rem)); }
}
@container vhhero (max-width: 60rem) {
  .vh-slide--welcome .vh-hero__quote { display: none; }
}
.vh-slide__body {
  position: relative;
  max-width: 31rem;
  opacity: 0;
  transform: translateY(6px);
  /* The words leave quickly and the next ones arrive once the picture has
     mostly crossed over, so two slides' text never sit on top of each other. */
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.vh-slide.is-active .vh-slide__body {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s;
}
.vh-hero__kicker {
  margin: 0 0 0.4rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--vh-orange);
}
.vh-hero__title {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 3.4vw, 3.15rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--vh-ink);
}
.vh-hero__title span { display: block; color: var(--vh-brown); }
.vh-hero__title--story {
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  line-height: 1.12;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vh-hero__lead {
  max-width: 27rem;
  margin: 0 0 0.8rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--vh-body);
}
.vh-hero__quote { margin: 0 0 1.15rem; max-width: 27rem; }
.vh-hero__quote p { margin: 0; font-size: 0.86rem; font-style: italic; line-height: 1.5; color: var(--vh-body); }
.vh-hero__quote cite { font-size: 0.82rem; font-style: normal; font-weight: 800; color: var(--vh-brown); }
.vh-hero__script {
  position: absolute;
  top: 1.4rem;
  right: 2.75rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: "Dancing Script", "Snell Roundhand", "Segoe Script", serif;
  font-style: italic;
  font-size: 2.55rem;
  font-weight: 600;
  line-height: 0.95;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  transform: rotate(-8deg);
  pointer-events: none;
}
.vh-hero__script span:nth-child(2) { margin-right: 1.2rem; }
.vh-hero__script span:nth-child(3) { margin-right: 0.2rem; }
@container vhhero (max-width: 54rem) {
  .vh-hero__script { display: none; }
}

.vh-hero__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-top: -1.25rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #2b1d16;
  font-size: 0.85rem;
  box-shadow: 0 6px 18px -8px rgba(43, 29, 22, 0.55);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.vh-hero__arrow:hover { background: #fff; transform: scale(1.06); }
.vh-hero__arrow--prev { left: 1rem; }
.vh-hero__arrow--next { right: 1rem; }
.vh-hero__dots {
  position: absolute;
  left: 50%;
  bottom: 0.9rem;
  z-index: 2;
  display: flex;
  gap: 0.4rem;
  transform: translateX(-50%);
}
.vh-dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 1px rgba(43, 29, 22, 0.18);
  cursor: pointer;
  transition: width 0.25s ease, background-color 0.25s ease;
}
.vh-dot.is-active { width: 1.6rem; background: var(--vh-orange); box-shadow: none; }

/* ------------------------------------------------------------ quick links */

.vh-quick {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  container: vhquick / inline-size;
}
/* The Home page's tiles: whole rows only. Nine tiles make 3x3 on a phone,
   5+4 on a tablet and one row on a wide screen; eight make 4+4 or one row. */
.vh-quick__grid {
  flex: 1 1 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}
.vh-quick__grid:not(:has(> :nth-child(9))) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vh-quick__grid > .vh-tile { max-width: none; min-width: 0; }
@container vhquick (min-width: 30rem) {
  .vh-quick__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .vh-quick__grid:not(:has(> :nth-child(9))) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@container vhquick (min-width: 52rem) {
  .vh-quick__grid,
  .vh-quick__grid:not(:has(> :nth-child(9))) {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 0.5rem;
  }
  .vh-quick__grid > .vh-tile { padding-left: 0.2rem; padding-right: 0.2rem; }
}
.vh-tile {
  display: flex;
  flex: 1 1 5rem;
  max-width: 9rem;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 0.4rem 0.8rem;
  border: 1px solid var(--vh-line);
  border-radius: 16px;
  background: var(--vh-surface);
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.vh-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 97, 45, 0.3);
  box-shadow: 0 12px 22px -14px rgba(60, 30, 20, 0.35);
}
.vh-tile__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  font-size: 1.3rem;
}
.vh-tile__label {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--vh-ink);
}

/* --------------------------------------------------------- upcoming events */

.vh-events { container-type: inline-size; container-name: vhevents; }
.vh-events__grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(13.5rem, 72%);
  gap: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}
.vh-events__grid > * { scroll-snap-align: start; }
@container vhevents (min-width: 34rem) {
  .vh-events__grid {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }
}
@container vhevents (min-width: 42rem) {
  .vh-events__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.vh-event {
  /* Positioned, so the screen-reader-only date inside stays inside the
     phone scroller instead of widening the whole page. */
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--vh-line);
  border-radius: 16px;
  background: var(--vh-surface);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.vh-event:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -16px rgba(60, 30, 20, 0.4); }
.vh-event__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--vh-cream-2);
}
.vh-event__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vh-datebadge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 2.9rem;
  padding: 0.35rem 0.45rem 0.4rem;
  border-radius: 10px;
  background: linear-gradient(180deg, #f2903c 0%, #d9541e 100%);
  color: #fff;
  line-height: 1;
  box-shadow: 0 6px 14px -6px rgba(217, 84, 30, 0.75);
}
.vh-datebadge__month { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.vh-datebadge__day { margin-top: 0.1rem; font-size: 1.35rem; font-weight: 900; }
.vh-event__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.75rem 0.85rem 0.85rem;
}
.vh-event__title {
  margin-bottom: 0.1rem;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--vh-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vh-meta {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--vh-muted);
  line-height: 1.35;
}
.vh-meta .svg-inline--fa, .vh-meta i { flex: none; width: 0.85rem; font-size: 0.75rem; }
/* Pushed to the foot of the card, so the pills line up across a row. */
.vh-pill {
  align-self: flex-start;
  margin-top: auto;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: #fcebdd;
  color: #b4532a;
  font-size: 0.75rem;
  font-weight: 700;
}
.vh-event:nth-child(4n+2) .vh-pill { background: #fde2e8; color: #c2255c; }
.vh-event:nth-child(4n+3) .vh-pill { background: #e1f6e6; color: #2b8a3e; }
.vh-event:nth-child(4n+4) .vh-pill { background: #fff0d6; color: #b7700b; }

/* -------------------------------------------------------------- list rows */

.vh-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.vh-list > li + li { border-top: 1px solid var(--vh-line); }
.vh-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.3rem;
  border-radius: 12px;
  transition: background-color 0.15s ease;
}
.vh-row:hover { background: var(--vh-cream); }
.vh-thumb {
  flex: none;
  display: block;
  width: 4.25rem;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  background: var(--vh-cream-2);
}
.vh-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vh-thumb .vh-ph { font-size: 1.05rem; }
.vh-thumb--sm { width: 3.5rem; }
.vh-thumb--icon { display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.vh-row__body { display: flex; flex: 1; flex-direction: column; gap: 0.15rem; min-width: 0; }
.vh-row__kicker {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vh-muted);
}
.vh-row__title {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--vh-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vh-row__sub {
  overflow: hidden;
  font-size: 0.75rem;
  color: var(--vh-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vh-row__when { flex: none; font-size: 0.72rem; color: var(--vh-muted); white-space: nowrap; }
.vh-row__chev { flex: none; font-size: 0.7rem; color: var(--vh-muted); }

/* ------------------------------------------------------------ church news */

.vh-news { container-type: inline-size; container-name: vhnews; }
/* minmax(0, ...) everywhere: a grid track otherwise grows to its longest
   unbroken line (a long company name), and on a phone that widened the whole
   page and pushed the top bar's buttons off the screen. */
.vh-news__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.85rem; }
.vh-news__lead {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  background: var(--vh-cream-2);
  color: #fff !important;
}
/* Side by side, the story's picture takes the height of the list beside it. */
@container vhnews (min-width: 25rem) {
  .vh-news__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .vh-news .vh-thumb { width: 3.5rem; }
  .vh-news .vh-row { gap: 0.6rem; }
  .vh-news__lead { aspect-ratio: auto; min-height: 12rem; }
}
.vh-news__lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.vh-news__lead:hover img { transform: scale(1.03); }
.vh-news__lead .vh-ph { position: absolute; inset: 0; font-size: 2.2rem; }
.vh-news__overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 2.75rem 0.9rem 0.9rem;
  background: linear-gradient(180deg, rgba(20, 10, 5, 0) 0%, rgba(20, 10, 5, 0.86) 70%);
}
.vh-chip {
  align-self: flex-start;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--vh-ink);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.vh-news__title { font-size: 1rem; font-weight: 800; line-height: 1.25; }
.vh-news__excerpt {
  font-size: 0.76rem;
  line-height: 1.4;
  opacity: 0.9;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ------------------------------------------------------------- businesses */

.vh-biz { display: flex; flex-direction: column; }
.vh-biz__grid {
  flex: 1;
  align-content: center;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.vh-bizcard { display: flex; flex-direction: column; min-width: 0; }
.vh-bizcard__media {
  position: relative;
  display: block;
  overflow: hidden;
  margin-bottom: 0.5rem;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: var(--vh-cream-2);
}
.vh-bizcard__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.vh-bizcard:hover .vh-bizcard__media img { transform: scale(1.04); }
.vh-bizcard__name {
  overflow: hidden;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--vh-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.vh-bizcard__cat {
  overflow: hidden;
  font-size: 0.74rem;
  color: var(--vh-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vh-flagtag {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  padding: 0.16rem 0.45rem;
  border-radius: 6px;
  background: var(--vh-grad);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.vh-saves {
  position: absolute;
  right: 0.4rem;
  bottom: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: #fff;
  color: #e03131;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 4px 10px -4px rgba(43, 29, 22, 0.4);
}

/* ------------------------------------------------------------------- jobs */

.vh-jobs { container-type: inline-size; container-name: vhjobs; }
.vh-jobs__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.25rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.vh-jobs__grid > li, .vh-list > li, .vh-pop__list > li { min-width: 0; }
@container vhjobs (min-width: 38rem) {
  .vh-jobs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.vh-job__icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  font-size: 1.05rem;
}
.vh-job__icon img { width: 100%; height: 100%; object-fit: cover; }
.vh-job .vh-row__title { -webkit-line-clamp: 1; }

/* ---------------------------------------------------------- greeting card */

.vh-greet {
  padding: 1.25rem;
  border: 1px solid var(--vh-line);
  border-radius: 20px;
  background: linear-gradient(180deg, #fff3e3 0%, #fffaf3 55%, #fffdf9 100%);
}
.vh-greet__top { display: flex; align-items: center; gap: 0.9rem; }
.vh-greet__sun {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  font-size: 1.9rem;
  color: #f59f00;
  background: radial-gradient(circle, rgba(255, 212, 59, 0.35) 0%, rgba(255, 212, 59, 0) 70%);
}
.vh-greet__sun--afternoon { color: #f08c00; }
.vh-greet__sun--evening { color: #7048e8; background: radial-gradient(circle, rgba(132, 94, 247, 0.22) 0%, rgba(132, 94, 247, 0) 70%); }
.vh-greet__date { margin: 0; font-size: 0.84rem; font-weight: 600; color: var(--vh-body); }
.vh-greet__hello {
  margin: 0.15rem 0 0;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--vh-ink);
  overflow-wrap: anywhere;
}
.vh-verse {
  position: relative;
  margin: 1rem 0 0;
  padding: 0.95rem 1rem 0.9rem 2.4rem;
  border-radius: 14px;
  background: var(--vh-surface);
  box-shadow: 0 1px 2px rgba(60, 30, 20, 0.05);
}
.vh-verse::before {
  content: "\201C";
  position: absolute;
  top: 0.35rem;
  left: 0.8rem;
  font-family: Georgia, serif;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--vh-orange);
  opacity: 0.6;
}
.vh-verse blockquote { margin: 0; }
.vh-verse blockquote p { margin: 0; font-size: 0.9rem; font-style: italic; line-height: 1.55; color: var(--vh-body); }
.vh-verse figcaption { margin-top: 0.45rem; font-size: 0.8rem; font-weight: 800; color: var(--vh-orange); }

.vh-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; margin-top: 1rem; }
.vh-stat {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 0.6rem;
  padding: 0.75rem 0.7rem;
  border: 1px solid var(--vh-line);
  border-radius: 14px;
  background: var(--vh-surface);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.vh-stat:hover { transform: translateY(-2px); box-shadow: 0 12px 22px -16px rgba(60, 30, 20, 0.45); }
.vh-stat__icon {
  display: inline-flex;
  grid-row: span 2;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  font-size: 1.05rem;
}
.vh-stat__num { font-size: 1.35rem; font-weight: 900; line-height: 1.05; color: var(--vh-ink); }
.vh-stat__num { align-self: end; }
.vh-stat__label {
  align-self: start;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--vh-muted);
}
.vh-join { margin-top: 1rem; padding: 1rem; border-radius: 14px; background: var(--vh-surface); }
.vh-join__text { margin: 0 0 0.8rem; font-size: 0.86rem; line-height: 1.5; color: var(--vh-body); }
.vh-join__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ------------------------------------------------------------ popular now */

.vh-tabs {
  display: flex;
  gap: 0.75rem;
  margin: -0.35rem 0 0.4rem;
  border-bottom: 1px solid var(--vh-line);
}
/* Three equal tabs; a longer (Swahili) label wraps instead of hiding the last tab. */
.vh-tab {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.5rem 0.1rem 0.7rem;
  border: 0;
  background: none;
  color: var(--vh-muted);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}
.vh-tab:hover { color: var(--vh-brown); }
.vh-tab.is-active { color: var(--vh-orange); }
.vh-tab.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--vh-grad);
}
.vh-pop:focus-visible { outline: 3px solid var(--vh-focus); outline-offset: 4px; border-radius: 8px; }
.vh-pop__list { margin: 0; padding: 0; list-style: none; }
.vh-pop__list > li + li { border-top: 1px solid var(--vh-line); }
.vh-pop__row { display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0.25rem; border-radius: 10px; }
.vh-pop__row:hover { background: var(--vh-cream); }
.vh-pop__rank { flex: none; width: 1.1rem; font-size: 0.88rem; font-weight: 900; color: var(--vh-orange); text-align: center; }
.vh-pop__row .vh-row__title { font-size: 0.82rem; line-height: 1.25; }
.vh-pop__metric {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.3rem;
  max-width: 7rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--vh-muted);
  white-space: nowrap;
}

/* --------------------------------------------------------- scholarships */

.vh-promo {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: 13rem;
  padding: 1.4rem 1.4rem 1.5rem;
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 22%, rgba(255, 255, 255, 0.55) 0, rgba(255, 255, 255, 0) 38%),
    linear-gradient(135deg, #fff1e1 0%, #ffdcbc 55%, #f7be92 100%);
  isolation: isolate;
}
.vh-promo__text { position: relative; z-index: 1; max-width: 64%; }
.vh-promo__title { margin: 0 0 0.5rem; font-size: 1.35rem; font-weight: 900; line-height: 1.15; color: var(--vh-brown); }
.vh-promo__lead { margin: 0 0 0.45rem; font-size: 0.82rem; line-height: 1.45; color: var(--vh-body); }
.vh-promo__count { margin: 0 0 0.85rem; font-size: 0.8rem; font-weight: 800; color: #b4532a; }
.vh-promo__art {
  position: absolute;
  right: -1.6rem;
  bottom: -1.9rem;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10.5rem;
  height: 10.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  color: var(--vh-brown);
  font-size: 4.4rem;
  transform: rotate(-12deg);
}

/* ------------------------------------------------- the top bar's search */

.vh-search-page {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 60rem;
  margin: 0 auto;
}
.vh-search-page__form { display: flex; gap: 0.6rem; margin-top: 1rem; }
.vh-search-page__form .vh-search__input { flex: 1; min-width: 0; padding-left: 1.1rem; }
.vh-search-page__note { margin: 0.8rem 0 0; font-size: 0.88rem; font-weight: 600; color: var(--vh-body); }
.vh-search-page__more { margin: 0.4rem 0 0; font-size: 0.82rem; color: var(--vh-muted); }
.vh-search-page__more a { font-weight: 700; color: var(--vh-orange) !important; }
.vh-search-page .vh-quick { justify-content: flex-start; }

/* ----------------------------------------------------------------- phones */

@media (max-width: 767.98px) {
  /* The theme's 20px top margin plus our padding wasted a phone's first lines. */
  .content.vh-page { margin-top: 0; padding: calc(var(--phoenix-navbar-top-height) + 0.85rem) 1rem 2rem; }
  .vh-home { --vh-gap: 1rem; }
  .vh-card { padding: 1rem; border-radius: 18px; }
  /* On a phone the picture sits above the words instead of behind them. */
  .vh-slide {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: 0;
  }
  .vh-slide::before { display: none; }
  .vh-slide__img {
    position: relative;
    inset: auto;
    z-index: auto;
    display: block;
    height: 10.5rem;
  }
  .vh-slide__body { max-width: none; padding: 1.1rem 1.25rem 2.6rem; }
  .vh-hero__arrow { display: none; }
  /* A compact hero, so the shortcuts are on the first screen. */
  .vh-slide__img { height: 7.5rem; }
  .vh-slide__img--welcome { height: 9rem; object-position: center 62%; }
  .vh-slide__body { padding: 0.95rem 1.1rem 2.4rem; }
  .vh-hero__kicker { margin-bottom: 0.2rem; font-size: 0.76rem; letter-spacing: 0.14em; }
  .vh-hero__title { margin-bottom: 0.45rem; font-size: 1.75rem; }
  .vh-hero__title span { display: inline; }
  .vh-hero__title--story { font-size: 1.3rem; -webkit-line-clamp: 2; }
  .vh-hero__lead { margin-bottom: 0.75rem; font-size: 0.92rem; }
  .vh-hero__quote { display: none; }
  .vh-quick { gap: 0.5rem; }
  .vh-tile { flex-basis: 4.4rem; padding: 0.7rem 0.25rem 0.6rem; border-radius: 14px; }
  .vh-tile__icon { width: 2.6rem; height: 2.6rem; font-size: 1.1rem; border-radius: 12px; }
  .vh-tile__label { font-size: 0.8rem; }
  .vh-promo__text { max-width: 72%; }
  /* Nothing a member needs to read below 12px. */
  .vh-card__title { font-size: 1.05rem; }
  .vh-row__title, .vh-event__title, .vh-bizcard__name { font-size: 0.92rem; }
  .vh-pop__row .vh-row__title { font-size: 0.88rem; }
  .vh-row__sub, .vh-meta, .vh-bizcard__cat, .vh-stat__label, .vh-greet__date { font-size: 0.8rem; }
  .vh-row__kicker, .vh-row__when, .vh-pop__metric, .vh-pill { font-size: 0.76rem; }
  .vh-more { font-size: 0.85rem; }
}

/* Fingers, not mouse pointers: every control at least 44px tall. */
@media (max-width: 991.98px) {
  .vh-btn { min-height: 2.75rem; }
  .vh-more { min-height: 2.75rem; padding: 0 0.35rem; margin-right: -0.35rem; }
  .vh-tab { min-height: 2.75rem; }
  .vh-dot { position: relative; }
  .vh-dot::after { content: ""; position: absolute; inset: -0.9rem -0.3rem; }
  .vh-row, .vh-pop__row { min-height: 2.75rem; }
}

/* ------------------------------------------------------------- dark theme */

[data-bs-theme="dark"] .vh-hero { background: linear-gradient(120deg, #2a1e18 0%, #3b2a21 100%); }
[data-bs-theme="dark"] .vh-slide::before {
  background: linear-gradient(90deg, rgba(28, 20, 17, 0.97) 0%, rgba(28, 20, 17, 0.9) 36%, rgba(28, 20, 17, 0.4) 62%, rgba(28, 20, 17, 0) 80%);
}
[data-bs-theme="dark"] .vh-greet { background: linear-gradient(180deg, #2b1f19 0%, #231915 100%); }
[data-bs-theme="dark"] .vh-promo { background: linear-gradient(135deg, #3a2a21 0%, #4a3123 60%, #5c3a24 100%); }
[data-bs-theme="dark"] .vh-promo__art { background: rgba(255, 255, 255, 0.08); color: #f2c49c; }
[data-bs-theme="dark"] .vh-promo__count { color: #f2a36f; }
[data-bs-theme="dark"] [class*="vh-tone--"] { background-color: rgba(255, 255, 255, 0.07); }
[data-bs-theme="dark"] .vh-pill { background: rgba(255, 255, 255, 0.08) !important; color: #f2c49c !important; }
[data-bs-theme="dark"] .vh-chip, [data-bs-theme="dark"] .vh-saves { background: #2c211b; color: #f4eae0; }

@media (prefers-reduced-motion: reduce) {
  .vh-slide, .vh-slide.is-active, .vh-slide__body, .vh-slide.is-active .vh-slide__body,
  .vh-dot, .vh-tile, .vh-event, .vh-stat,
  .vh-news__lead img, .vh-bizcard__media img { transition: none; }
}
