/* Component uses em/px because the legacy site's root rem scales with viewport width. */
.vc-section { padding: 50px 0 80px; background: #f1f1f1; }
.vc, .vc-dialog { --vc-accent: var(--color-2, #006c47); font-family: 'Montserrat', sans-serif; font-size: 16px; line-height: 1.55; color: #243b33; }
body.color-1 .vc, body.color-1 .vc-dialog { --vc-accent: var(--color-1, #0070ad); }
.vc { width: calc(100% - 6.25vw); max-width: 1800px; margin: auto; }
.vc *, .vc-dialog * { box-sizing: border-box; }
.vc [hidden], .vc-dialog [hidden] { display: none !important; }
.vc-intro { margin-bottom: 36px; }
.vc .vc-eyebrow { font-size: .85em; font-weight: 700; letter-spacing: .14em !important; color: var(--vc-accent); margin-bottom: 14px; }
.vc h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 400; line-height: 1.15; margin: 0 0 18px; color: var(--vc-accent); }
.vc p { font-size: 1em; line-height: inherit; }
.vc button, .vc input, .vc-dialog button { font: inherit; letter-spacing: normal; text-transform: none; }
.vc button, .vc-dialog button { cursor: pointer; border: 1px solid #cbd6d0; background: white; color: #243b33; border-radius: 8px; padding: 9px 14px; min-height: 44px; }
.vc button:hover, .vc-dialog button:hover { border-color: var(--vc-accent); background: #f0f5f3; }
.vc button:focus-visible, .vc input:focus-visible, .vc a:focus-visible, .vc-dialog :focus-visible { outline: 3px solid var(--vc-accent); outline-offset: 3px; }
.vc button:disabled { opacity: .45; cursor: default; }
.vc-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 20px; background: white; border-radius: 14px; }
.vc-nav, .vc-views { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vc-month { border: 0; background: #f1f1f1; padding: 10px; min-height: 44px; border-radius: 8px; max-width: 220px; color: #243b33; }
.vc .vc-view[aria-pressed="true"] { background: var(--vc-accent); border-color: var(--vc-accent); color: white; }
.vc-status { padding: 20px 2px; color: #52645c; min-height: 64px; }
.vc-status.vc-error { color: #96351e; }
.vc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: #dce3df; border: 1px solid #dce3df; border-radius: 12px; overflow: hidden; }
.vc-weekday { background: #f4f6f5; padding: 12px 8px; font-weight: 600; text-align: center; font-size: .875em; }
.vc-day { padding: 10px 8px; background: white; min-height: 150px; min-width: 0; }
.vc-day.vc-outside { background: #f7f8f7; }
.vc-day-label { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; margin-bottom: 8px; font-size: .875em; }
.vc-today .vc-day-label { background: var(--vc-accent); color: white; border-radius: 50%; font-weight: 700; }
.vc-day-events { max-height: 230px; overflow-y: auto; padding: 3px; }
.vc .vc-event-mini { display: block; width: 100%; border: 0; border-left: 3px solid var(--vc-accent); border-radius: 0 5px 5px 0; background: #eef4f1; text-align: left; padding: 7px; margin-bottom: 6px; font-size: .875em; line-height: 1.4; overflow-wrap: anywhere; }
body.color-1 .vc .vc-event-mini { background: #edf5f9; }
.vc-event-mini span { display: block; font-size: .93em; font-weight: 600; }
.vc-list { list-style: none; display: grid; gap: 12px; padding: 0; margin: 0; }
.vc .vc-card { display: grid; grid-template-columns: 100px minmax(0, 1fr) auto; gap: 24px; align-items: center; width: 100%; text-align: left; padding: 24px; border: 1px solid #dce3df; border-radius: 12px; }
.vc-card-date { font-size: .875em; text-align: center; color: var(--vc-accent); line-height: 1.3; }
.vc-card-date strong { font-size: 2em; display: block; font-weight: 500; }
.vc-card-title { display: block; font-size: 1.15em; font-weight: 600; margin-bottom: 7px; overflow-wrap: anywhere; }
.vc-card-meta { display: block; font-size: .9em; color: #52645c; overflow-wrap: anywhere; }
.vc-card-arrow { color: var(--vc-accent); font-size: 1.4em; }
.vc-empty { padding: 56px 24px; border-radius: 12px; background: white; text-align: center; }
.vc-footer { padding-top: 26px; font-size: .875em; }
.vc a, .vc-dialog a { color: var(--vc-accent); text-decoration: underline; text-underline-offset: 3px; }
.vc-dialog { width: min(680px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow: auto; padding: 32px; margin: auto; border: 0; border-radius: 16px; box-shadow: 0 20px 80px #0003; background: white; }
.vc-dialog::backdrop { background: #10251dc2; }
.vc-dialog-top { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.vc-dialog h2 { font-size: 1.7em; line-height: 1.25; margin-bottom: 20px; overflow-wrap: anywhere; color: var(--vc-accent); }
.vc-dialog p { margin-bottom: 16px; }
.vc-description { white-space: pre-wrap; overflow-wrap: anywhere; border-top: 1px solid #dce3df; padding-top: 20px; margin-top: 24px; }
.vc-dialog-links { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 24px; }
@media(max-width: 800px) {
  .vc-section { padding: 30px 18px 50px; }
  .vc { width: 100%; }
  .vc-toolbar { padding: 14px; }
  .vc-views { display: flex; }
  .vc-nav { width: 100%; }
  .vc-month { flex: 1; min-width: 0; }
  .vc .vc-card { grid-template-columns: 60px minmax(0, 1fr); gap: 16px; padding: 18px 14px; }
  .vc-card-arrow { display: none; }
  .vc-dialog { padding: 24px; }
}
@media(prefers-reduced-motion: reduce) { .vc *, .vc-dialog * { scroll-behavior: auto; } }

/* Monthly rows are adaptive; outside-month cells are unlabelled placeholders. */
.vc-blank { background: #f5f7f6; }
.vc-period { margin-top: 18px; font-weight: 600; color: var(--vc-accent); }
.vc-week-grid .vc-day { min-height: 240px; }
.vc-week-grid .vc-day-label { width: auto; height: auto; min-height: 30px; padding: 4px 6px; }
.vc-week-grid .vc-today .vc-day-label { border-radius: 6px; }
.vc-week-grid .vc-day-events { max-height: none; overflow: visible; }
@media(max-width: 800px) {
  .vc-week-grid { grid-template-columns: 1fr; }
  .vc-week-grid .vc-weekday { display: none; }
  .vc-week-grid .vc-day { min-height: 80px; padding: 14px; }
  .vc-views { width: 100%; }
}
