/* SF Prep logo + wordmark. Loaded by every layout so the brand looks the same in each header. */
.sf-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  text-decoration: none !important;
  line-height: 1;
}
.sf-brand:hover { color: #fff; }

.sf-brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  isolation: isolate;
}
.sf-brand-logo img {
  width: 125%;
  height: 125%;
  max-width: none;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* The image is 125% of the 34px box, so the ring and shine are sized to the image (inset -4.25px). */
.sf-brand-logo::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #60a5fa, #4ade80, #22d3ee, #a78bfa, #60a5fa);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  animation: sf-ring-spin 4s linear infinite;
  filter: drop-shadow(0 0 4px rgba(96, 165, 250, 0.75));
  z-index: 0;
}
.sf-brand-logo::after {
  content: "";
  position: absolute;
  inset: -4.25px;
  border-radius: 50%;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%) no-repeat;
  background-size: 250% 100%;
  background-position: 150% 0;
  animation: sf-logo-shine 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
.sf-brand:hover .sf-brand-logo img { transform: rotate(360deg) scale(1.06); }
.sf-brand:hover .sf-brand-logo::before { animation-duration: 1.2s; }

@keyframes sf-ring-spin { to { transform: rotate(360deg); } }
@keyframes sf-logo-shine {
  0%, 60% { background-position: 150% 0; }
  85%, 100% { background-position: -50% 0; }
}

.sf-brand-word {
  font-family: "Sora", "Inter", system-ui, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  white-space: nowrap;
}
.sf-brand-word b {
  font-weight: 800;
  background: linear-gradient(90deg, #60a5fa 0%, #4ade80 50%, #60a5fa 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sf-word-flow 6s linear infinite;
}
@keyframes sf-word-flow { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  .sf-brand-logo::before, .sf-brand-logo::after, .sf-brand-word b { animation: none; }
  .sf-brand-logo::after { display: none; }
  .sf-brand-logo img { transition: none; }
  .sf-brand:hover .sf-brand-logo img { transform: none; }
}

@media (max-width: 480px) {
  .sf-brand { gap: 14px; }
  .sf-brand-word { font-size: 20px; }
}

/* Line breaking shared by every layout: even out heading lines, avoid one-word last lines in text. */
.nowrap { white-space: nowrap; }
h1, h2, h3, h4, summary, th, label, .btn, .lp-btn, .lp-kicker, .ft-overview span, .lg-qr-label { text-wrap: balance; }
p, li, dd, figcaption, blockquote { text-wrap: pretty; }

/* Small Indian tricolour mark for "Made in India" lines (CSS only, renders the same on every OS). */
.mi-flag {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 12px;
  vertical-align: -1px;
  border-radius: 2px;
  background: linear-gradient(#ff9933 0 33.3%, #fff 33.3% 66.6%, #138808 66.6%);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.15);
}
.mi-flag::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  border: 0.75px solid #000080;
  transform: translate(-50%, -50%);
}
