/* ===== MSP CARD ===== */

.msp-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  max-width: 520px;
  width: 100%;
  border: 1px solid var(--border-light);
}

.page-content {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.msp-card--wide {
  max-width: 600px;
}

/* ===== BUTTONS ===== */

.msp-btn {
  background: var(--msp-cyan) !important;
  border: none !important;
  border-radius: var(--radius-btn) !important;
  color: #fff !important;
  padding: 12px 32px;
  font-weight: 600;
  min-width: 200px;
  transition: background 0.25s ease;
}

.msp-btn:hover:not(:disabled) {
  background: var(--msp-cyan-dark) !important;
}

.msp-btn:disabled {
  background: #aab0b6 !important;
  cursor: not-allowed;
}

.msp-btn-outline {
  background: transparent !important;
  border: 2px solid var(--msp-cyan) !important;
  color: var(--msp-cyan) !important;
  border-radius: var(--radius-btn);
  padding: 10px 24px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease;
  justify-content: center;
}

.msp-btn-outline:hover {
  background: #f4fbfe !important;
  color: var(--msp-cyan) !important;
}

/* ===== BADGES ===== */

.msp-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.msp-badge--high {
  background: #e8f7ec;
  color: #1a7a3a;
}

.msp-badge--standard {
  background: #eef6fa;
  color: var(--msp-navy);
}

/* ===== ICON FONT (prevent layout shift while Material Symbols load)ss ===== */

.material-symbols-outlined {
  display: inline-block;
  font-size: 1.25rem;
  line-height: 1;
  width: 1.25rem;
  height: 1.25rem;
  overflow: hidden;
  vertical-align: middle;
  flex-shrink: 0;
}

.material-zoom-icon{
  width: 1.65rem  !important;
  height: 1.65rem !important;
}

/* ===== SKELETON LOADER ===== */

.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.image-loader.skeleton {
  animation: none;
  background: transparent url('/assets/images/loading.gif') center center / 44px 44px no-repeat;
  border-radius: inherit;
}

/* ===== LIGHTBOX ===== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.85);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  max-width: 100vw;
  overflow: hidden;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__dialog {
  position: relative;
  max-width: min(90vw, 480px);
  max-height: 85vh;
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 16px;
  box-shadow: var(--shadow-card);
}

.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  margin: 0 auto;
  border-radius: 10px;
  object-fit: contain;
}

.lightbox__img.is-loading {
  display: none;
}

.lightbox__loader {
  align-items: center;
  background: transparent url('/assets/images/loading.gif') center center / 120px 120px no-repeat;
  border-radius: 10px;
  display: none;
  justify-content: center;
  min-height: 260px;
  width: min(70vw, 360px);
}

.lightbox__close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--msp-navy);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__caption {
  text-align: center;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.lightbox__download {
  margin-top: 12px;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

@media (max-width: 576px) {
  .lightbox__dialog {
    max-width: 94vw;
    padding: 12px;
  }

  .lightbox__img {
    max-height: 62vh;
  }
}

/* ===== SECONDARY LINKS ===== */

.msp-link-muted {
  color: var(--msp-cyan);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.msp-link-muted:hover {
  text-decoration: underline;
  color: var(--msp-cyan-dark);
}


.web-footer {
  border-top: 1px solid #edf1f5;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.35;
  margin-top: 14px;
  padding-top: 12px;
  text-align: center;
}

.web-footer p {
  margin: 0;
}

.web-footer p + p {
  margin-top: 2px;
}

.web-footer a {
  color: #005890;
  font-weight: 700;
  text-decoration: none;
}