/* GrooveSteps practice tools, daily groove and assignment pages.
   Reading pages stay on paper; each instrument sits in a charcoal panel
   with brass controls, matching the pattern player. */
.gt-page {
  --gt-panel: #202e24;
  --gt-panel-2: #2b3d2e;
  --gt-line: #47573e;
  --gt-cream: #f5f1e8;
  --gt-dim: #b9c4ae;
  --gt-brass: #e6b956;
  --gt-brass-ink: #2a2209;
  --gt-hit: #ee936d;
  --gt-good: #8fd694;
}
.gt-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: center;
  margin: 8px 0 26px;
}
.gt-hero picture,
.gt-hero img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.gt-hero img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  box-shadow: 0 4px 0 #d5dbca;
}
.gt-panel {
  background: var(--gt-panel);
  color: var(--gt-cream);
  border-radius: 14px;
  padding: clamp(18px, 3.4vw, 34px);
  margin: 22px 0 30px;
  box-shadow: 0 5px 0 #162019;
  font-family: var(--gs-font-body);
}
.gt-panel :is(p, li, label, legend) {
  color: var(--gt-cream);
  max-width: none;
}
.gt-panel .gt-note {
  color: var(--gt-dim);
  font-size: 0.92rem;
  margin: 12px 0 0;
}
.gt-readout {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  font-family: var(--gs-font-disp);
  line-height: 1;
  margin: 4px 0 6px;
}
.gt-big {
  font-size: clamp(4rem, 15vw, 8.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  color: var(--gt-cream);
}
.gt-unit {
  font-family: var(--gs-font-mono);
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gt-brass);
}
.gt-sub {
  text-align: center;
  font-family: var(--gs-font-mono);
  font-size: 0.95rem;
  color: var(--gt-dim);
  min-height: 1.5em;
  margin: 0 0 14px;
}
.gt-lights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 14px 0 20px;
  padding: 0;
  list-style: none;
}
.gt-lights li {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #344430;
  border: 1px solid var(--gt-line);
  max-width: none;
}
.gt-lights li.is-first {
  border-color: var(--gt-brass);
}
.gt-lights li.is-on {
  background: var(--gt-brass);
  box-shadow: 0 0 0 4px #e6b95633;
}
.gt-lights li.is-first.is-on {
  background: var(--gt-hit);
  box-shadow: 0 0 0 4px #ee936d33;
}
.gt-lights li.is-muted {
  opacity: 0.35;
}
.gt-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  margin: 12px 0;
}
.gt-btn {
  appearance: none;
  font: 600 1rem var(--gs-font-body);
  min-height: 46px;
  min-width: 46px;
  padding: 10px 18px;
  border-radius: 9px;
  border: 1px solid var(--gt-line);
  background: var(--gt-panel-2);
  color: var(--gt-cream);
  cursor: pointer;
  touch-action: manipulation;
}
.gt-btn:hover {
  border-color: var(--gt-brass);
}
.gt-btn:focus-visible,
.gt-panel :is(input, select):focus-visible,
.gt-tap:focus-visible {
  outline: 3px solid var(--gt-brass);
  outline-offset: 2px;
}
.gt-btn--go {
  background: var(--gt-brass);
  border-color: var(--gt-brass);
  color: var(--gt-brass-ink);
  font-weight: 800;
  min-width: 150px;
  font-size: 1.1rem;
}
.gt-btn--go[aria-pressed="true"] {
  background: var(--gt-hit);
  border-color: var(--gt-hit);
}
.gt-btn[aria-pressed="true"]:not(.gt-btn--go) {
  background: #3d5438;
  border-color: var(--gt-brass);
}
.gt-slider {
  flex: 1 1 260px;
  max-width: 560px;
  accent-color: var(--gt-brass);
  min-height: 34px;
}
.gt-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin: 18px 0 4px;
  border: 0;
  padding: 0;
}
.gt-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.86rem;
  font-family: var(--gs-font-mono);
  letter-spacing: 0.04em;
  color: var(--gt-dim);
}
.gt-field span {
  color: var(--gt-dim);
}
.gt-panel :is(select, input[type="number"], input[type="text"], textarea) {
  font: 600 1rem var(--gs-font-body);
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--gt-line);
  background: #162019;
  color: var(--gt-cream);
  width: 100%;
  box-sizing: border-box;
}
.gt-tap {
  appearance: none;
  display: block;
  width: min(100%, 420px);
  margin: 10px auto 6px;
  aspect-ratio: 1.6;
  border-radius: 18px;
  border: 2px solid var(--gt-brass);
  background: radial-gradient(circle at 50% 40%, #33472f, #202e24 70%);
  color: var(--gt-cream);
  font: 800 clamp(1.4rem, 5vw, 2.1rem) var(--gs-font-disp);
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.gt-tap.is-hit {
  background: var(--gt-brass);
  color: var(--gt-brass-ink);
}
.gt-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: 16px 0 6px;
  padding: 0;
}
.gt-stats div {
  background: #162019;
  border: 1px solid var(--gt-line);
  border-radius: 9px;
  padding: 10px 12px;
  text-align: center;
}
.gt-stats dt {
  font: 0.72rem var(--gs-font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gt-dim);
}
.gt-stats dd {
  margin: 4px 0 0;
  font: 700 1.25rem var(--gs-font-disp);
  font-variant-numeric: tabular-nums;
  color: var(--gt-cream);
}
.gt-meter {
  position: relative;
  height: 16px;
  border-radius: 8px;
  background: #162019;
  border: 1px solid var(--gt-line);
  overflow: hidden;
  margin: 12px 0;
}
.gt-meter i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--gt-good);
}
.gt-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  margin: 14px 0;
}
.gt-table :is(th, td) {
  padding: 9px 10px;
  text-align: left;
  border-bottom: 1px solid #c5c7ba;
}
.gt-table thead th {
  font: 0.76rem var(--gs-font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gt-panel .gt-table :is(th, td) {
  border-bottom-color: var(--gt-line);
  color: var(--gt-cream);
}
.gt-panel .gt-table td:not(:first-child) {
  font-family: var(--gs-font-mono);
}
.gt-scroll {
  overflow-x: auto;
}
.gt-status {
  min-height: 1.5em;
  text-align: center;
  color: var(--gt-dim);
  font-size: 0.95rem;
}
.gt-faq dt {
  font: 700 1.08rem var(--gs-font-disp);
  margin-top: 20px;
}
.gt-faq dd {
  margin: 6px 0 0;
  max-width: 74ch;
}
.gt-tools {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  margin: 26px 0;
  padding: 0;
  list-style: none;
}
.gt-tools li {
  max-width: none;
}
.gt-tool {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fdfbf4;
  border: 1px solid #b8c5ab;
  border-radius: 9px;
  box-shadow: 0 3px 0 #d5dbca;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.gt-tool:hover {
  border-color: #6a824f;
  transform: translateY(-2px);
}
.gt-tool img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  display: block;
}
.gt-tool b {
  font: 700 1.15rem var(--gs-font-disp);
  padding: 14px 16px 0;
}
.gt-tool span {
  padding: 6px 16px 16px;
  font-size: 0.95rem;
}
/* library tools row under each pattern player */
.gs-libtools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 6px;
}
.gs-libtools :is(button, a) {
  appearance: none;
  font: 600 0.95rem var(--gs-font-body);
  min-height: 44px;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid #9aab85;
  background: #fdfbf4;
  color: #202b24;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.gs-libtools :is(button, a):hover {
  border-color: #6a824f;
  background: #eaf0df;
}
/* daily groove and assignments */
.gt-week {
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 14px 0;
  list-style: none;
}
.gt-week li {
  flex: 1;
  max-width: 64px;
  text-align: center;
  font: 0.72rem var(--gs-font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 2px;
  border-radius: 8px;
  border: 1px solid #b8c5ab;
  background: #fdfbf4;
}
.gt-week li.is-done {
  background: #24734e;
  border-color: #24734e;
  color: #fff;
}
.gt-week li.is-today {
  outline: 2px solid #b8862a;
  outline-offset: 2px;
}
.gt-items {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: grid;
  gap: 12px;
}
.gt-items > li {
  max-width: none;
  min-width: 0;
  background: #fdfbf4;
  border: 1px solid #b8c5ab;
  border-radius: 9px;
  padding: 14px 16px;
}
.gt-items .gt-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.gt-items .gt-item-head b {
  font: 700 1.08rem var(--gs-font-disp);
  flex: 1 1 200px;
}
.gt-items label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
}
.gt-items input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #24734e;
}
.gt-chip {
  font: 0.78rem var(--gs-font-mono);
  padding: 3px 8px;
  border-radius: 99px;
  border: 1px solid #9aab85;
  background: #eaf0df;
}
.gt-light-btn {
  appearance: none;
  font: 600 0.95rem var(--gs-font-body);
  min-height: 44px;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid #9aab85;
  background: #fdfbf4;
  color: #202b24;
  cursor: pointer;
}
.gt-light-btn:hover {
  border-color: #6a824f;
  background: #eaf0df;
}
.gt-light-btn--go {
  background: #202e24;
  border-color: #202e24;
  color: #f5f1e8;
}
.gt-light-btn--go:hover {
  background: #2b3d2e;
  color: #f5f1e8;
}
.gt-form {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}
.gt-form :is(input[type="text"], input[type="number"], textarea, select) {
  font: 1rem var(--gs-font-body);
  min-height: 44px;
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid #9aab85;
  background: #fff;
  color: #202b24;
  width: 100%;
  box-sizing: border-box;
}
.gt-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}
.gt-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px auto;
  gap: 10px;
  align-items: end;
}
@media (max-width: 720px) {
  .gt-hero {
    grid-template-columns: 1fr;
  }
  .gt-picker {
    grid-template-columns: 1fr;
  }
  .gt-lights li {
    width: 28px;
    height: 28px;
  }
  .gt-row .gt-btn--go {
    order: -1;
    flex-basis: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gt-tool:hover {
    transform: none;
  }
}
@media print {
  .gs-header,
  .gs-footer,
  .gs-backdrop,
  .gs-skip,
  .gs-ad-space,
  .gs-privacy-notice,
  .gs-libtools,
  .jds-crumb,
  .jds-cta,
  .jds-embedbox,
  .jds-cards,
  .dps-bar,
  .dps-message,
  .gt-noprint,
  dialog {
    display: none !important;
  }
  html,
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .dps-embed {
    background: #fff !important;
    border: 1px solid #000 !important;
    color: #000 !important;
    break-inside: avoid;
  }
  .dps-rowlabel,
  .dps-title {
    color: #000 !important;
  }
  .dps-cell {
    background: #fff !important;
    border: 1px solid #777 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .dps-cell.on {
    background: #000 !important;
  }
  .dps-cell.beat {
    border-left: 3px solid #000 !important;
  }
  .gt-items > li,
  .gs-count-table {
    break-inside: avoid;
  }
  main::after {
    content: "Practice sheet from groovesteps.com";
    display: block;
    margin-top: 18px;
    font-size: 0.8rem;
  }
}
