/* pages.css — page-specific styles (profiles, AikiMeet). Linked only from the pages that need it. */

/* ---- Maestros profiles: readable timeline (was ~9.75px) ---- */
.profile-page .table-timeline td,
.profile-page .table-timeline p,
.profile-page .table-timeline li,
.profile-page .table-timeline p.small,
.profile-page table td p,
.profile-page table td p.small,
.profile-page table td li {
  font-size: 15px;
  line-height: 1.55;
}
.profile-page table td .badge {
  font-size: 13px;
}

/* ---- Profiles on phones: name + grade first, then a capped photo ---- */
@media (max-width: 575.98px) {
  .profile-page .col-md-4 .ibox {
    display: flex;
    flex-direction: column;
  }
  .profile-page .col-md-4 .ibox > div:not(.ibox-title),
  .profile-page .col-md-4 .profile-content {
    display: contents;
  }
  .profile-page .col-md-4 .ibox-title { order: 0; }
  .profile-page .col-md-4 .profile-content > h4 { order: 1; }
  .profile-page .col-md-4 .ibox-content.no-padding { order: 2; }
  .profile-page .col-md-4 .profile-content > :not(h4) { order: 3; }
  .profile-page .col-md-4 .profile-content > * {
    padding-left: 15px;
    padding-right: 15px;
    background: #fff;
  }
  .profile-page .col-md-4 .profile-content > h4 {
    padding-top: 15px;
    margin: 0;
  }
  .profile-page .col-md-4 .ibox-content.no-padding img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    object-position: center top;
  }
}

/* ---- AikiMeet ---- */
.aikimeet-intro { font-size: 1.05rem; margin-bottom: 1rem; }

/* ---- Certificaciones: intro, consistent thumbnail box, visible captions ---- */
.cert-intro {
  max-width: 70ch;
  margin: 0 auto 1.5rem;
  text-align: center;
  color: #4d5965;
}
.cert-intro p { margin: 0; }
.cert-intro strong { color: var(--charcoal-deep, #23303c); }
.lightBoxGallery .cert-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  background: #fff;
  border: 1px solid #e7eaee;
  border-radius: 8px;
  overflow: hidden;
}
.lightBoxGallery .cert-thumb img.card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.cert-caption {
  font-size: 0.85rem;
  line-height: 1.35;
  color: #4d5965;
  text-align: center;
  margin-top: 0.4rem;
}

/* ---- AikiMeet: camera-permission note at body size, readable grey ---- */
.meet-note {
  font-size: 0.95rem;
  color: #4d5965;
}

/* Certificaciones: decorative stamp kept from the old header (D12), sits left of the intro */
.cert-intro-icon { float: left; width: 72px; height: 72px; margin: 0 1rem 0.5rem 0; }

/* Planes: four plans per row (Costa Rica dojos) — keep "₡25,000 / mes" on one line */
.col-lg-3 > .pricing-card .pricing-amount { white-space: nowrap; font-size: clamp(1.6rem, 2.2vw, 2.1rem); }
