/* Shared layout for Voice book pages with drills. */
h1 { font-size: 2.3rem; line-height: 1.15; margin: 0 0 10px; }
section > h2 {
  font-size: 1.7rem; margin: 56px 0 14px; padding-bottom: 8px;
  border-bottom: 3px solid var(--ochre); display: inline-block;
}
h3 { font-size: 1.2rem; margin: 30px 0 8px; color: var(--terra); }
p { margin: 0 0 14px; }
.lead { font-size: 1.12rem; color: #4a3728; }
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow);
  margin: 18px 0;
}
.note {
  border-left: 5px solid var(--ochre); background: #fbf1da;
  padding: 12px 18px; border-radius: 8px; margin: 18px 0; color: #5a4a34;
}
.tip { border-left-color: var(--green); background: #eef3e7; }
ol.steps, ol.fit { margin: 8px 0 14px; padding-left: 1.3em; }
ol.steps li, ol.fit li { margin: 6px 0; }
table.grid { border-collapse: collapse; width: 100%; margin: 8px 0 14px; }
table.grid th, table.grid td {
  border: 1px solid var(--line); padding: 6px 8px; text-align: center;
}
table.grid th { background: #fbf1da; font-weight: 700; }
table.grid.say td, table.grid.say th { text-align: left; }
table.tune td { font-variant-numeric: tabular-nums; }
.syllable { font-weight: 700; }
.also { font-size: 0.95rem; }
.drill {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  margin: 8px 0 16px;
}
.drill-play {
  min-height: 44px; padding: 0 16px; border: none; border-radius: 999px;
  background: var(--terra); color: #fff; font: inherit; font-weight: 700;
  cursor: pointer;
}
.drill-play.is-stop { background: var(--green); }
.drill-you {
  background: transparent; color: var(--terra); border: 2px solid var(--terra);
}
.drill-you.is-stop { background: var(--green); color: #fff; border-color: var(--green); }
.drill-line { margin: 0; line-height: 1.9; }
.drill-cap { font-size: 0.85rem; color: #5a4a34; width: 100%; margin: 0; }
.vowel-clips { list-style: none; padding: 0; margin: 8px 0 14px; }
.vowel-clips li { margin: 0 0 12px; }
.vowel-clips audio { display: block; width: min(100%, 28rem); margin-top: 4px; }
[data-line] .tok {
  display: inline-block; padding: 2px 6px; border-radius: 6px; font-weight: 700;
}
[data-line] .tok.on { background: #f3d48a; }
[data-line] .tok.rest { color: #8a735c; font-weight: 600; }
[data-line] .bed {
  font-size: 0.72em; font-weight: 600; color: #8a735c;
  margin: 0 0.45em 0 0.08em;
}
[data-line] .barline { color: #8a735c; padding: 0 2px; }
[data-line] .breath { display: inline-block; width: 0.7em; }
.names-toggle {
  min-height: 44px; padding: 0 14px; border-radius: 999px;
  border: 2px solid var(--terra); background: transparent;
  color: var(--terra); font: inherit; font-weight: 700; cursor: pointer;
}
.staff.names-off .syl-name { display: none; }
.names-off .grid.tune tr.syl td[data-n] { visibility: hidden; }
[data-line] .tie { padding: 0 1px; color: #8a735c; }
td.hit { background: #f3d48a; }
.staff { width: 100%; max-width: 640px; height: auto; display: block; margin: 8px 0 4px; }
.staff .nh ellipse { fill: #2c221a; }
.staff .nh line { stroke: #2c221a; }
.staff .nh.on ellipse { fill: var(--terra); }
.staff .nh.on line { stroke: var(--terra); }
.check-bar {
  position: fixed; left: 0; right: 0; z-index: 49;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  padding: 8px 16px;
  background: #fbf6ec; border-top: 1px solid var(--line);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, .06);
}
.check-bar #micBtn {
  min-height: 44px; padding: 0 16px; border: none; border-radius: 999px;
  background: var(--terra); color: #fff; font: inherit; font-weight: 700; cursor: pointer;
}
.check-bar #micBtn.live { background: var(--green); }
.check-mode { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; }
.check-hear { margin: 0; font-size: 1.35rem; font-weight: 700; min-width: 3.2em; }
.check-hear.in { color: var(--green); }
.check-hear.off { color: var(--terra); }
.check-verdict { margin: 0; flex: 1; min-width: 12em; }
body.sangeet-has-practice-bar main { padding-bottom: 200px; }
@media (max-width: 820px) { h1 { font-size: 1.8rem; } }
