/* ============================================================
   utils.css  —  Shared across ALL pages
   Language pill · Back-to-top · Font-size controls · A11y toolbar
   ============================================================ */

/* ── Language Pill ─────────────────────────────────────── */
.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.07);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
  user-select: none;
  flex-shrink: 0;
  font-family: 'Noto Sans Kannada','DM Sans',sans-serif;
  letter-spacing: 0.02em;
}
.lang-pill:hover  { background: var(--saffron,#FF6B00); border-color: var(--saffron,#FF6B00); color: #fff; }
.lang-pill:focus  { outline: 2px solid rgba(255,255,255,0.5); outline-offset: 2px; }
.lang-pill[data-lang="kn"] { background: rgba(255,107,0,0.15); border-color: rgba(255,107,0,0.4); }

.lang-pill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
  flex-shrink: 0;
}

/* ── A11y Toolbar (back-to-top + font controls) ────────── */
.a11y-toolbar {
  position: fixed;
  bottom: 24px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  z-index: 9999;
}

/* Back to top */
.back-to-top {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--saffron,#FF6B00);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(255,107,0,0.35);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, background 0.2s;
  pointer-events: none;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover   { background: var(--navy,#0B2B6B); }
.back-to-top svg     { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* Mobile */
@media (max-width: 480px) {
  .a11y-toolbar { bottom: 16px; right: 12px; }
  .back-to-top  { width: 38px; height: 38px; }
}/* ============================================================
   utils.css  —  Shared across ALL pages
   Language pill · Back-to-top · A11y toolbar
   ============================================================ */

/* ── Language Pill ─────────────────────────────────────── */
.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.07);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
  user-select: none;
  flex-shrink: 0;
  font-family: 'Noto Sans Kannada', 'DM Sans', sans-serif;
  letter-spacing: 0.02em;
}

.lang-pill:hover {
  background: #FF6B00;
  border-color: #FF6B00;
  color: #fff;
}

.lang-pill:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.lang-pill[data-lang="kn"] {
  background: rgba(255, 107, 0, 0.15);
  border-color: rgba(255, 107, 0, 0.4);
}

.lang-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
  flex-shrink: 0;
}

/* ── A11y Toolbar ───────────────────────────────────────── */
.a11y-toolbar {
  position: fixed;
  bottom: 24px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  z-index: 9999;
  pointer-events: none; /* children opt back in */
}

/* ── Back to Top ────────────────────────────────────────── */
.back-to-top {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #FF6B00;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(255, 107, 0, 0.35);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: #0B2B6B;
}

.back-to-top:focus {
  outline: 2px solid rgba(255, 107, 0, 0.6);
  outline-offset: 3px;
}

/* SVG icon inside back-to-top */
.back-to-top svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  /* prevent the SVG from capturing pointer events / blocking clicks */
  pointer-events: none;
  display: block;
}

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 480px) {
  .a11y-toolbar {
    bottom: 16px;
    right: 12px;
  }

  .back-to-top {
    width: 38px;
    height: 38px;
  }

  .back-to-top svg {
    width: 16px;
    height: 16px;
  }
}

/* Helper margin utilities for icons */
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 0.75rem !important; }