/* Vialing Community + Governance pages (content moved from skycms.app).
   Loaded only on /community/ and /governance/. Prefix: vp- */

.vp-section { padding: 96px 48px; }
.vp-section--tight { padding-top: 0; }
.vp-section--tint { background: #FAF7FC; }
.vp-section--dark { background: #3A1D4D; color: #FFFFFF; }
.vp-wrap { max-width: 1200px; margin: 0 auto; }
.vp-narrow { max-width: 760px; margin-left: auto; margin-right: auto; }

.vp-pill {
  display: inline-block; background: #F3EEF8; color: #3A1D4D;
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 999px; margin-bottom: 20px; line-height: 1.2;
}
.vp-section--dark .vp-pill { background: rgba(255, 255, 255, 0.12); color: #FFFFFF; }
.vp-pill--sm { font-size: 11px; padding: 5px 11px; margin-bottom: 10px; }
.vp-pill--gold { background: #FBF1D6; color: #7A5A0B; }

.vp-head { max-width: 820px; margin-bottom: 48px; }
.vp-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.vp-h1 { margin: 0 0 24px; font-size: var(--text-h1, clamp(32px, 4vw, 48px)); }
.vp-h2 { margin: 0 0 16px !important; }
.vp-section--dark .vp-h2 { color: #FFFFFF !important; }
.vp-lead { font-size: 17px; line-height: 1.7; color: #4B5563; margin: 0; }
.vp-p { font-size: 16px; line-height: 1.75; color: #4B5563; margin: 0 0 16px; }
.vp-section--dark .vp-p, .vp-section--dark .vp-lead { color: #E4D9EE; }
.vp-emphasis {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.35; color: #3A1D4D; margin: 28px 0; padding-left: 20px; border-left: 4px solid #E3B034;
}
.vp-tagline {
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.01em; color: #3A1D4D; margin: 8px 0 0;
}
.vp-section--dark .vp-tagline { color: #E3B034; }

/* Hero */
.vp-hero { padding: 120px 48px 80px; text-align: center; }
.vp-hero .vp-narrow { max-width: 960px; }
.vp-hero .vp-p, .vp-hero .vp-chips { max-width: 760px; margin-left: auto; margin-right: auto; }
.vp-hero .vp-p { font-size: 17px; }
.vp-hero .vp-p:first-of-type { font-size: 20px; color: #1F2937; font-weight: 500; }

/* Chips / tags */
.vp-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 8px 0 28px; }
.vp-chip {
  display: inline-flex; align-items: center; gap: 8px; background: #F3EEF8;
  border-radius: 999px; padding: 10px 16px; font-size: 14px; font-weight: 600; color: #3A1D4D;
}
.vp-chip--warn::before { content: '✕'; color: #B4233C; font-weight: 800; }
.vp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.vp-tag { background: #F3EEF8; color: #3A1D4D; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px; }

/* Cards */
.vp-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.vp-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.vp-card {
  background: #FFFFFF; border: 1px solid #EDE7F3; border-radius: 20px; padding: 32px;
  box-shadow: 0 1px 0 rgba(58, 29, 77, 0.02);
}
.vp-card h3, .vp-h3 {
  font-family: 'Plus Jakarta Sans', sans-serif !important; font-weight: 700; font-size: 20px;
  line-height: 1.3; color: #1F2937; margin: 0 0 12px;
}
.vp-card p { font-size: 15px; line-height: 1.7; color: #4B5563; margin: 0 0 12px; }
.vp-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #9C7A1E; margin-bottom: 8px; }

.vp-list { list-style: none; padding: 0; margin: 4px 0 14px; }
.vp-list li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.6; color: #374151; margin-bottom: 8px; }
.vp-list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: #3A1D4D; font-weight: 800; }
.vp-section--dark .vp-list li { color: #FFFFFF; }
.vp-section--dark .vp-list li::before { color: #E3B034; }

/* Recognition cards (badge + text) */
.vp-badge-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 24px; align-items: start; }
.vp-badge-card img { width: 112px; height: auto; display: block; }

/* OpenLearning integration box */
.vp-integration { margin-top: 24px; background: #3A1D4D; border-radius: 24px; padding: 40px; color: #FFFFFF; }
.vp-integration h3 { color: #FFFFFF !important; }
.vp-integration p { color: #E4D9EE; font-size: 15px; line-height: 1.7; margin: 0 0 12px; }
.vp-integration .vp-list li { color: #FFFFFF; }
.vp-integration .vp-list li::before { color: #E3B034; }
.vp-integration__tagline { font-weight: 700; color: #FFFFFF !important; margin-top: 8px !important; }

/* Regional partner */
.vp-regional { max-width: 820px; }
.vp-flag { font-size: 40px; line-height: 1; margin-bottom: 12px; }

/* Ecosystem tiles */
.vp-tile {
  background: #FFFFFF; border: 1px solid #EDE7F3; border-radius: 16px; padding: 20px 22px;
  font-size: 15px; font-weight: 600; color: #3A1D4D; line-height: 1.45;
}

/* eBooks */
.vp-ebooks { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 1040px; }
.vp-ebook { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; align-items: start; }
.vp-ebook__cover img { width: 100%; height: auto; display: block; border-radius: 12px; box-shadow: 0 12px 30px rgba(58, 29, 77, 0.18); }
.vp-ebook__cover .vp-btn { margin-top: 16px; width: 100%; text-align: center; box-sizing: border-box; padding: 12px 16px; font-size: 14px; }
.vp-ebook__label { font-size: 13px; font-weight: 700; color: #1F2937; margin: 4px 0 6px; }
.vp-ebook__audience { font-size: 14px !important; color: #6B7280 !important; }

/* Buttons */
.vp-btn {
  display: inline-block; font-weight: 700; font-size: 15px; padding: 16px 32px; border-radius: 999px;
  white-space: nowrap; text-decoration: none !important; border: 0; cursor: pointer; transition: background .2s ease;
  font-family: 'Inter', sans-serif; line-height: 1.2;
}
.vp-btn--gold { background: #E3B034; color: #1F2937 !important; }
.vp-btn--gold:hover { background: #D4A12B; }
.vp-btn--purple { background: #3A1D4D; color: #FFFFFF !important; }
.vp-btn--purple:hover { background: #2C1639; }

/* CTA box */
.vp-cta {
  background: #3A1D4D; border-radius: 24px; padding: 56px; display: flex; justify-content: space-between;
  align-items: center; gap: 40px; flex-wrap: wrap;
}
.vp-cta h2 { color: #FFFFFF !important; font-family: 'Plus Jakarta Sans', sans-serif !important; font-weight: 800; font-size: clamp(22px, 2.6vw, 30px); margin: 0 0 12px; }
.vp-cta p { color: #E4D9EE; font-size: 15px; line-height: 1.6; margin: 0; max-width: 620px; }

/* Form */
.vp-request { scroll-margin-top: 90px; }
.vp-form {
  max-width: 880px; margin: 0 auto; background: #FFFFFF; border: 1px solid #EDE7F3; border-radius: 24px; padding: 40px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px;
}
.vp-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.vp-field--full { grid-column: 1 / -1; }
.vp-field label, .vp-field legend { font-size: 14px; font-weight: 600; color: #1F2937; padding: 0; }
.vp-req { color: #B4233C; }
.vp-opt { color: #9CA3AF; font-weight: 400; }
.vp-form input[type="text"], .vp-form input[type="email"], .vp-form select, .vp-form textarea {
  width: 100%; box-sizing: border-box; border: 1px solid #D9D0E3; border-radius: 12px; padding: 12px 14px;
  font-size: 15px; font-family: 'Inter', sans-serif; color: #1F2937; background: #FFFFFF;
}
.vp-form input:focus, .vp-form select:focus, .vp-form textarea:focus { outline: 2px solid #3A1D4D; outline-offset: 1px; border-color: #3A1D4D; }
.vp-checks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.vp-check { display: inline-flex; align-items: center; gap: 8px; background: #FAF7FC; border: 1px solid #EDE7F3; border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 500 !important; cursor: pointer; }
.vp-check input { accent-color: #3A1D4D; margin: 0; }
.vp-form__chosen { grid-column: 1 / -1; margin: 0; background: #FBF1D6; color: #5C430A; border-radius: 12px; padding: 12px 16px; font-size: 14px; font-weight: 600; }
.vp-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.vp-notice { max-width: 880px; margin: 0 auto 24px; border-radius: 16px; padding: 16px 20px; font-size: 15px; font-weight: 600; }
.vp-notice--ok { background: #E8F6EC; color: #165C2F; }
.vp-notice--err { background: #FDECEE; color: #8A1C2E; }
.vp-notice a { color: inherit; text-decoration: underline; }

/* Responsive */
@media (max-width: 1024px) {
  .vp-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vp-ebook { grid-template-columns: 160px minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .vp-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .vp-section { padding: 64px 20px; }
  .vp-section--tight { padding-top: 0; }
  .vp-hero { padding: 96px 20px 56px; }
  .vp-hero .vp-p:first-of-type { font-size: 18px; }
  .vp-grid-3 { grid-template-columns: 1fr; }
  .vp-card { padding: 24px; }
  .vp-badge-card { grid-template-columns: 1fr; gap: 16px; }
  .vp-badge-card img { width: 80px; }
  .vp-ebook { grid-template-columns: 1fr; }
  .vp-ebook__cover { max-width: 220px; }
  .vp-integration { padding: 28px 22px; }
  .vp-cta { padding: 36px 24px; }
  .vp-form { grid-template-columns: 1fr; padding: 24px; }
}
