/*
 * furigana.css - Toggle visibility of ruby annotations
 *
 * Default state: furigana visible.
 * Toggle class 'furigana-hidden' on <body> to hide them.
 */

.furigana-hidden rt {
  display: none !important;
}

/* ── Toggle button styling (floating bottom-right) ────────────────────── */
.furigana-toggle {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border: none;
  border-radius: 2rem;
  font-size: 0.8rem;
  line-height: 1.2;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  opacity: 0.7;
}

.furigana-toggle:hover {
  opacity: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

[data-md-color-scheme="default"] .furigana-toggle {
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
}
[data-md-color-scheme="default"] .furigana-toggle:hover {
  background: #f0f0f0;
}

[data-md-color-scheme="slate"] .furigana-toggle {
  background: #2e303e;
  color: #ccc;
  border: 1px solid #444;
}
[data-md-color-scheme="slate"] .furigana-toggle:hover {
  background: #3e4050;
}

.furigana-toggle::before {
  content: "あ";
  font-size: 1rem;
  font-weight: 700;
}

@media print {
  .furigana-toggle { display: none; }
}
