/* ===== Tammha loader (wave-filled logo) — see loader.js ===== */
.tm-loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.82);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.tm-loader.is-visible { opacity: 1; }
.tm-loader--inline {
  position: relative;
  inset: auto;
  z-index: auto;
  min-height: 140px;
  background: #fff;
  border-radius: 12px;
}
.tm-loader__logo {
  /* compact: an application loading indicator, not an opening animation (72 / 64 / 56 px wide) */
  position: relative;
  width: 72px;
  aspect-ratio: 3 / 1;
}
.tm-loader--inline .tm-loader__logo { width: 64px; }
@media (max-width: 480px) {
  .tm-loader__logo, .tm-loader--inline .tm-loader__logo { width: 56px; }
}
.tm-loader__logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}
/* the faint outline that the blue wave fills */
.tm-loader__base { opacity: 0.14; }
.tm-loader__fill { clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%); }
.tm-loader__label {
  margin: 0;
  color: #274b61;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.tm-loader__slow {
  margin: 0;
  max-width: 340px;
  color: #6b7f8a;
  font-size: 12.5px;
  line-height: 1.8;
  text-align: center;
}
.tm-loader__slow[hidden] { display: none; }
/* reduced motion: a still logo and the text, no wave */
.tm-loader.is-still .tm-loader__base { display: none; }
body.tm-loading { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .tm-loader { transition: none; }
}
