/* ============================================================
   v2_inner.css — extensions to home_v2.css for inner pages
   Reuses: --teal-card, --gold-rich, --cream-page, --font-serif, --font-sans
   ============================================================ */

/* ---------- Page hero (inner pages) ---------- */
.v2-page-hero {
  position: relative;
  width: 100%;
  background: var(--teal-card);
  color: #fff;
  overflow: hidden;
  padding: 130px 0 96px; /* leave room for floating nav (top: 32+64) */
}
.v2-page-hero--photo {
  min-height: 540px;
  padding: 130px 0 96px;
}
.v2-page-hero--photo .v2-page-hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.18; mix-blend-mode: luminosity;
}
.v2-page-hero--photo .v2-page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,63,64,0.4) 0%, rgba(16,63,64,0.85) 100%);
}
.v2-page-hero--cream {
  background: var(--cream-page);
  color: var(--teal-card);
  padding: 130px 0 80px;
}
.v2-page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 80px;
  text-align: center;
}
.v2-page-hero-inner.left { text-align: left; }
.v2-eyebrow {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-rich);
  margin-bottom: 22px;
}
.v2-page-hero h1 {
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  text-wrap: balance;
  color: inherit;
}
.v2-section-title { color: var(--teal-card); }
.v2-section--teal .v2-section-title,
.v2-section--teal-deep .v2-section-title { color: #fff; }
.v2-page-hero h1 em {
  font-style: italic;
  color: var(--gold-rich);
  font-weight: 600;
}
.v2-page-hero-sub {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  max-width: 720px;
  margin: 0 auto;
  opacity: 0.92;
}
.v2-page-hero-inner.left .v2-page-hero-sub { margin-left: 0; }

/* breadcrumb (small, gold) */
.v2-breadcrumb {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-rich);
  margin-bottom: 18px;
}
.v2-breadcrumb a { color: inherit; text-decoration: none; opacity: 0.7; }
.v2-breadcrumb a:hover { opacity: 1; }
.v2-breadcrumb span { margin: 0 8px; opacity: 0.5; }

/* ---------- Section primitives ---------- */
.v2-section {
  padding: 96px 0;
}
.v2-section--cream { background: var(--cream-page); }
.v2-section--card  { background: var(--cream-warm); }
.v2-section--teal  { background: var(--teal-card); color: #fff; }
.v2-section--teal-deep { background: var(--teal-deep-card); color: #fff; }

.v2-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 80px;
}
.v2-container--narrow {
  max-width: 880px;
}
.v2-container--article {
  max-width: 760px;
}

.v2-section-eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-rich);
  margin-bottom: 16px;
}
.v2-section-title {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--teal-card);
  margin: 0 0 20px;
  text-wrap: balance;
}
.v2-section--teal .v2-section-title,
.v2-section--teal-deep .v2-section-title { color: #fff; }
.v2-section-title em {
  font-style: italic;
  color: var(--gold-rich);
  font-weight: 600;
}
.v2-section-sub {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--teal-card);
  opacity: 0.85;
  max-width: 720px;
  margin: 0 0 56px;
}
.v2-section--teal .v2-section-sub,
.v2-section--teal-deep .v2-section-sub { color: rgba(255,255,255,0.85); }
.v2-section-head--center { text-align: center; }
.v2-section-head--center .v2-section-sub { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.v2-btn {
  display: inline-block;
  padding: 16px 36px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all .2s;
}
.v2-btn--gold { background: var(--gold-rich); color: #fff; }
.v2-btn--gold:hover { background: var(--gold-deep); }
.v2-btn--teal { background: var(--teal-card); color: #fff; }
.v2-btn--teal:hover { background: var(--teal-deep-card); }
.v2-btn--outline-gold {
  background: transparent;
  color: var(--gold-rich);
  border: 1.5px solid var(--gold-rich);
}
.v2-btn--outline-gold:hover { background: var(--gold-rich); color: #fff; }
.v2-btn--outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid #fff;
}
.v2-btn--outline-white:hover { background: #fff; color: var(--teal-card); }
.v2-btn--ghost {
  background: transparent;
  color: var(--teal-card);
  border: 1.5px solid var(--teal-card);
}
.v2-btn--ghost:hover { background: var(--teal-card); color: #fff; }

/* ---------- Forms ---------- */
.v2-field { margin-bottom: 24px; }
.v2-field label {
  display: block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-card);
  margin-bottom: 8px;
}
.v2-input,
.v2-select,
.v2-textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid rgba(16,63,64,0.18);
  background: #fff;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--teal-card);
  border-radius: 8px;
  transition: border-color .2s;
}
.v2-input:focus,
.v2-select:focus,
.v2-textarea:focus {
  outline: none;
  border-color: var(--gold-rich);
}
.v2-textarea { min-height: 140px; resize: vertical; font-family: var(--font-sans); }
.v2-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* radio / checkbox tiles */
.v2-tile-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.v2-tile {
  position: relative;
  padding: 18px 14px;
  border: 1.5px solid rgba(16,63,64,0.18);
  border-radius: 10px;
  background: #fff;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
}
.v2-tile input { position: absolute; opacity: 0; }
.v2-tile-amount {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--teal-card);
}
.v2-tile-label {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-card);
  opacity: 0.7;
  margin-top: 4px;
}
.v2-tile.on,
.v2-tile:has(input:checked) {
  border-color: var(--gold-rich);
  background: var(--gold-rich);
  color: #fff;
}
.v2-tile.on .v2-tile-amount,
.v2-tile.on .v2-tile-label,
.v2-tile:has(input:checked) .v2-tile-amount,
.v2-tile:has(input:checked) .v2-tile-label { color: #fff; opacity: 1; }

/* ---------- Card ---------- */
.v2-card {
  background: #fff;
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(16,63,64,0.06);
}
.v2-card--cream { background: var(--cream-warm); }
.v2-card--teal { background: var(--teal-card); color: #fff; }

/* ---------- Stats row ---------- */
.v2-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: center;
}
.v2-stat-num {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 700;
  color: var(--gold-rich);
  line-height: 1;
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 8px;
}
.v2-section--teal .v2-stat-num,
.v2-section--teal-deep .v2-stat-num { color: var(--gold-rich); }
.v2-stat-label {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-card);
  opacity: 0.75;
}
.v2-section--teal .v2-stat-label,
.v2-section--teal-deep .v2-stat-label { color: rgba(255,255,255,0.85); }

/* ---------- Article body (for News article, Story, etc.) ---------- */
.v2-article p,
.v2-article ul,
.v2-article ol {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--teal-card);
  margin: 0 0 22px;
}
.v2-article h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--teal-card);
  margin: 56px 0 18px;
  letter-spacing: -0.01em;
}
.v2-article h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--teal-card);
  margin: 40px 0 14px;
}
.v2-article blockquote {
  margin: 32px 0;
  padding: 0 0 0 24px;
  border-left: 3px solid var(--gold-rich);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--teal-card);
}
.v2-article img,
.v2-article figure {
  margin: 32px 0;
  border-radius: 10px;
  overflow: hidden;
}
.v2-article figcaption {
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(16,63,64,0.65);
  margin-top: 8px;
  text-align: center;
}
.v2-article a { color: var(--gold-deep); text-decoration: underline; }

/* ---------- Accordion (FAQ etc.) ---------- */
.v2-accordion {
  border-top: 1px solid rgba(16,63,64,0.15);
}
.v2-accordion-item {
  border-bottom: 1px solid rgba(16,63,64,0.15);
}
.v2-accordion-q {
  width: 100%;
  background: transparent;
  border: none;
  padding: 24px 0;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--teal-card);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  letter-spacing: -0.01em;
}
.v2-accordion-q::after {
  content: "";
  display: inline-block;
  width: 14px; height: 14px;
  border-right: 2px solid var(--gold-rich);
  border-bottom: 2px solid var(--gold-rich);
  transform: rotate(45deg);
  transition: transform .25s;
  flex-shrink: 0;
}
.v2-accordion-item.open .v2-accordion-q::after { transform: rotate(-135deg); }
.v2-accordion-a {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--teal-card);
  opacity: 0.85;
  padding: 0 0 28px;
  max-width: 760px;
  display: none;
}
.v2-accordion-item.open .v2-accordion-a { display: block; }

/* ---------- Table ---------- */
.v2-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
}
.v2-table thead th {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-card);
  opacity: 0.75;
  padding: 14px 16px;
  border-bottom: 1.5px solid rgba(16,63,64,0.2);
}
.v2-table tbody td {
  padding: 18px 16px;
  border-bottom: 1px solid rgba(16,63,64,0.1);
  font-size: 15px;
  color: var(--teal-card);
  vertical-align: middle;
}
.v2-table tbody tr:hover td { background: rgba(245,240,232,0.5); }

/* ---------- Tag / pill ---------- */
.v2-tag {
  display: inline-block;
  padding: 6px 14px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(217,185,129,0.18);
  color: var(--gold-deep);
}
.v2-tag--teal { background: rgba(16,63,64,0.1); color: var(--teal-card); }

/* ---------- 2-col / 3-col / 4-col content layouts ---------- */
.v2-cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.v2-cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: start; }
.v2-cols-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; align-items: start; }

.v2-cols-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 80px; align-items: start; }

/* ---------- Sidebar / aside ---------- */
.v2-aside-card {
  background: var(--cream-warm);
  border-radius: 14px;
  padding: 28px;
  position: sticky;
  top: 120px;
}
.v2-aside-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  margin: 0 0 14px;
  color: var(--teal-card);
}
.v2-aside-card .v2-btn { width: 100%; text-align: center; margin-top: 16px; }

/* ---------- Sparkles ---------- */
.v2-spark {
  position: absolute;
  color: var(--gold-rich);
  font-size: 22px;
  pointer-events: none;
  opacity: 0.6;
}

/* ---------- Image with caption / arched ---------- */
.v2-arch-img {
  border-top-left-radius: 999px;
  border-top-right-radius: 999px;
  overflow: hidden;
  width: 100%;
}
.v2-arch-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Solid Nav variant (for pages without hero photo) ---------- */
.hp-nav--solid {
  position: sticky;
  top: 0;
  background: var(--teal-card);
  z-index: 50;
}

/* ---------- Sub-nav (program tabs / about subnav) ---------- */
.v2-subnav {
  border-bottom: 1px solid rgba(16,63,64,0.12);
  background: var(--cream-page);
}
.v2-subnav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  gap: 36px;
  overflow-x: auto;
}
.v2-subnav-link {
  padding: 18px 0;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-card);
  opacity: 0.6;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.v2-subnav-link.active {
  opacity: 1;
  border-bottom-color: var(--gold-rich);
}

/* ---------- Empty / placeholder image ---------- */
.v2-img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, rgba(16,63,64,0.08), rgba(16,63,64,0.18));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(16,63,64,0.4);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- CTA band ---------- */
.v2-cta-band {
  background: var(--teal-card);
  color: #fff;
  border-radius: 24px;
  padding: 64px;
  text-align: center;
  margin: 0 auto;
  max-width: 1200px;
}
.v2-cta-band h2 {
  font-family: var(--font-serif);
  font-size: 44px;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.v2-cta-band h2 em { font-style: italic; color: var(--gold-rich); font-weight: 600; }
.v2-cta-band p {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto 28px;
}

/* ---------- Article meta (byline + date) ---------- */
.v2-article-meta {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-rich);
  margin-bottom: 18px;
}
.v2-article-meta span { color: rgba(16,63,64,0.5); margin: 0 8px; }

/* ---------- Story / news card ---------- */
.v2-story-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(16,63,64,0.08);
  display: flex;
  flex-direction: column;
}
.v2-story-card-img {
  aspect-ratio: 4 / 3;
  background: rgba(16,63,64,0.1);
  overflow: hidden;
}
.v2-story-card-img img { width:100%; height:100%; object-fit: cover; }
.v2-story-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.v2-story-card .v2-tag { align-self: flex-start; margin-bottom: 12px; }
.v2-story-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--teal-card);
  margin: 0 0 10px;
  line-height: 1.2;
}
.v2-story-card p {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(16,63,64,0.75);
  margin: 0 0 20px;
  flex: 1;
}
.v2-story-card a.read-more {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-rich);
  text-decoration: none;
  align-self: flex-start;
}

/* ---------- Definition list (program details / receipt) ---------- */
.v2-dl {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px 32px;
  font-family: var(--font-sans);
}
.v2-dl dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-card);
  opacity: 0.7;
  padding-top: 4px;
}
.v2-dl dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--teal-card);
}

/* ---------- Body wrap below hero ---------- */
body.has-solid-nav .v2-page-hero { padding-top: 80px; }

/* ============================================================
   MOBILE OVERFLOW FIXES — added 2026-04-27 after visual QA
   ============================================================ */
@media (max-width: 900px) {
  .v2-cols-sidebar,
  .v2-cols-form,
  .v2-cols-2 {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .v2-cols-3 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .v2-cols-4 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .v2-aside-card { width: 100%; max-width: 100%; }
}
@media (max-width: 600px) {
  .v2-cols-3,
  .v2-cols-4 { grid-template-columns: 1fr; gap: 16px; }
  .v2-tile-group { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .v2-tile-amount { font-size: 22px; }
  .v2-page-hero-inner { padding: 80px 18px 40px; }
  .v2-page-hero h1 { font-size: 32px; }
  .v2-section { padding: 48px 18px; }
  .v2-container { padding: 0 8px; }
  .v2-input { font-size: 16px; } /* prevents iOS zoom */
  body { overflow-x: hidden; }
}

/* v2-subnav: horizontal scroll on mobile (filter chips for /news etc.) */
@media (max-width: 720px) {
  .v2-subnav-inner {
    padding: 0 16px;
    gap: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .v2-subnav-inner::-webkit-scrollbar { display: none; }
  .v2-subnav-link { white-space: nowrap; flex-shrink: 0; }
}

/* Stronger v2-subnav containment on mobile */
@media (max-width: 720px) {
  .v2-subnav { width: 100vw; max-width: 100vw; overflow: hidden; }
  .v2-subnav-inner { width: 100%; max-width: 100%; }
}
/* Defensive overflow guard on root containers */
html, body { max-width: 100%; overflow-x: hidden; }
