/* The drill pages: /<app>/drills and /<app>/drills/<slug>. Loaded before site.css, and uses its colors. */
/* The pictures keep the app's own light surface in both modes, inside a thin frame, as a whiteboard would. */
.drills, .drill { padding: 12px 0 0; }
.drills h1, .drill h1 { font-size: clamp(28px, 5vw, 36px); line-height: 1.15; letter-spacing: -.02em; margin: 4px 0 6px; }
.drill .kicker { margin: 16px 0 0; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--soft); font-weight: 700; }
.drills .detail, .drill .detail { margin: 0; color: var(--soft); }
.drills .acts, .drill .acts { margin: 14px 0 4px; }
.drill .open { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 12px; font-weight: 600;
  text-decoration: none; color: var(--ct); box-shadow: inset 0 0 0 1.5px var(--ct); }
.drill .open:hover { background: var(--ice); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; margin: 16px 0 8px; }
.steps.tall { grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr)); }
.steps.wide { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.steps figure { margin: 0; min-width: 0; max-width: 460px; }
.steps.wide figure { max-width: none; }
.steps img, .drill-grid .thumb { display: block; width: 100%; height: auto; background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px var(--rule); }
.steps figcaption { font-size: 14px; font-weight: 700; color: var(--ct); margin: 6px 2px 0; }
.drill h2 { font-size: 19px; line-height: 1.3; margin: 24px 0 6px; }
.drill .notes { max-width: 40em; }
.drill .notes p { margin: 0 0 10px; }
.drill .notes p.num { padding-left: 1.4em; text-indent: -1.4em; }
.drill .muted { color: var(--soft); font-size: 15px; margin-top: 20px; }
.drill .muted a { color: var(--ct); }
/* The list. Each picture keeps its own shape. A full-length surface lying down takes two columns, so it reads as big as the rest. */
.drill-grid { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-flow: dense; align-items: start; gap: 20px 14px; }
.drill-grid li.wide { grid-column: span 2; }
.drill-grid a { display: block; text-decoration: none; }
.drill-grid .thumb { overflow: hidden; }
.drill-grid .thumb img { width: 100%; height: auto; display: block; }
.drill-grid .name { display: block; font-weight: 700; line-height: 1.25; margin: 8px 2px 2px; }
.drill-grid a:hover .name { text-decoration: underline; }
.drill-grid .detail { display: block; font-size: 14px; color: var(--soft); margin: 0 2px; }
@media (prefers-color-scheme: dark) {
  .steps img, .drill-grid .thumb { box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
}
