:root {
  --vv-primary: #0b1f3a;
  --vv-accent: #c8a24a;
  --vv-font: "Inter", system-ui, -apple-system, sans-serif;
  --vv-ink: #16202c;
  --vv-bg: #ffffff;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--vv-font);
  color: var(--vv-ink);
  background: var(--vv-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--vv-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.vv-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid #eceff3;
  position: sticky; top: 0; background: rgba(255,255,255,.9);
  backdrop-filter: saturate(140%) blur(8px); z-index: 10;
}
.vv-brand { font-weight: 700; font-size: 1.15rem; color: var(--vv-primary); }
.vv-nav nav { display: flex; align-items: center; gap: 1.25rem; }
.vv-nav nav a, .vv-navlabel { font-weight: 500; color: var(--vv-ink); }
.vv-nav nav a.vv-active { color: var(--vv-accent); }
/* Two-level submenu (parent page with children). */
.vv-has-sub { position: relative; display: inline-flex; align-items: center; }
.vv-has-sub > .vv-sub {
  position: absolute; left: 0; top: 100%; display: none; min-width: 168px;
  background: #fff; border: 1px solid #eceff3; border-radius: 8px;
  padding: .4rem 0; box-shadow: 0 8px 24px rgba(11,31,58,.12);
}
.vv-has-sub:hover > .vv-sub, .vv-has-sub:focus-within > .vv-sub { display: block; }
.vv-sub a { display: block; padding: .45rem 1rem; white-space: nowrap; }
.vv-sub a:hover { background: #f6f8fb; text-decoration: none; }

main { max-width: 1100px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 3rem); }

.vv-hero { padding: clamp(2.5rem, 8vw, 6rem) 0; }
.vv-hero.vv-center { text-align: center; }
.vv-hero h1 { font-size: clamp(2rem, 6vw, 3.5rem); line-height: 1.1; margin: 0 0 1rem; color: var(--vv-primary); }
.vv-hero .vv-sub { font-size: clamp(1.05rem, 2.5vw, 1.4rem); color: #4a5765; margin: 0 0 1.5rem; }
.vv-cta {
  display: inline-block; background: var(--vv-accent); color: #1a1a1a;
  padding: .7rem 1.6rem; border-radius: 999px; font-weight: 600;
}
.vv-cta:hover { text-decoration: none; filter: brightness(1.05); }

.vv-text { margin: 1.5rem 0; }
.vv-image { margin: 1.5rem 0; }
.vv-image figcaption { color: #6b7785; font-size: .9rem; margin-top: .5rem; }

.vv-empty { text-align: center; padding: 6rem 1rem; }
.vv-footer { text-align: center; padding: 2.5rem 1rem; color: #8a96a3; border-top: 1px solid #eceff3; }

[aria-busy="true"] { min-height: 60vh; }

/* Content rendered from richText widgets */
.vv-prose { max-width: 680px; margin: 0 auto; }
.vv-prose p { margin: 0 0 1rem; font-size: 1.08rem; }
.vv-prose ul { padding-left: 1.1rem; }
.vv-prose li { margin: 0 0 .75rem; }
.vv-prose a { color: var(--vv-primary); font-weight: 500; }

.vv-cards {
  display: grid; gap: 1.25rem; margin: 2rem auto; max-width: 960px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.vv-card {
  display: block; padding: 1.5rem; border: 1px solid #e6e9ef; border-radius: 14px;
  background: #fbfbfd; color: inherit; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.vv-card:hover {
  text-decoration: none; transform: translateY(-2px); border-color: var(--vv-accent);
  box-shadow: 0 8px 24px rgba(11,31,58,.08);
}
.vv-card h3 { margin: 0 0 .4rem; color: var(--vv-primary); font-size: 1.2rem; }
.vv-card p { margin: 0; color: #4a5765; }

/* Gallery: scale-to-fit grid, portrait → square → landscape */
.vv-gallery {
  display: grid;
  grid-template-columns: repeat(var(--gal-cols, 3), 1fr);
  gap: .75rem;
  margin: 1.5rem 0;
}
@media (max-width: 600px) { .vv-gallery { grid-template-columns: repeat(2, 1fr); } }
.vv-gal-item {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #f3f4f6;
  display: flex;
  flex-direction: column;
}
.vv-gal-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;   /* scale to fit — no crop */
  background: #f3f4f6;
  display: block;
}
.vv-gal-item figcaption {
  font-size: .82rem;
  color: #6b7785;
  padding: .35rem .5rem;
  line-height: 1.4;
}
