/* Drill program sheets. Loaded after styles-showcase.css. */

.prog-hero {
  margin-bottom: 8px;
}
.prog-hero .title {
  font-size: clamp(48px, 8vw, 78px);
}

.prog-controls {
  max-width: 720px;
  margin: 8px auto 18px;
}

.prog-levels,
.prog-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.prog-levels {
  margin-bottom: 14px;
}

.prog-tab,
.prog-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(232, 214, 180, 0.16);
  color: var(--muted-light);
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  letter-spacing: 1.8px;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.prog-tab {
  flex: 1 1 140px;
  max-width: 220px;
  padding: 11px 14px;
  font-size: 14px;
}
.prog-page {
  padding: 8px 12px;
  font-size: 12px;
  letter-spacing: 1.5px;
}
.prog-tab:hover,
.prog-page:hover {
  color: var(--white);
}
.prog-tab[aria-selected="true"] {
  color: var(--white);
  border-color: var(--red);
  background: rgba(229, 51, 31, 0.16);
}
.prog-page[aria-selected="true"] {
  color: var(--white);
  border-color: var(--gold);
  background: rgba(185, 152, 91, 0.14);
}
.prog-tab:focus-visible,
.prog-page:focus-visible,
.prog-download:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

.prog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.prog-download {
  appearance: none;
  border: 1px solid var(--red);
  background: var(--red);
  color: var(--white);
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2.2px;
  padding: 11px 16px;
  cursor: pointer;
  transition: background 0.18s ease, opacity 0.18s ease;
}
.prog-download:hover:not(:disabled) {
  background: var(--red-bright);
}
.prog-download:disabled {
  opacity: 0.55;
  cursor: wait;
}

.prog-hint,
.prog-status {
  margin-top: 10px;
  text-align: center;
  font-size: 10px;
  letter-spacing: 2.4px;
  color: var(--gold);
}
.prog-status:empty {
  display: none;
}
.prog-app {
  margin-top: 6px;
  text-align: center;
}
.prog-app a {
  color: var(--muted-light);
  text-decoration: none;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2px;
}
.prog-app a:hover {
  color: var(--white);
}

/* one sheet at a time; JS marks .is-on, hash links cover no-JS */
.sheet-frame {
  display: none;
  width: min(720px, 100%);
  margin: 0 auto 20px;
  container: sheet / inline-size;
}
html.js .sheet-frame.is-on {
  display: block;
}
html:not(.js):not(:has(.sheet-frame:target)) #beginner-1 {
  display: block;
}
html:not(.js) .sheet-frame:target {
  display: block;
}

.sheet-switch {
  display: none;
  margin-top: 12px;
  text-align: center;
}
html:not(.js) .sheet-switch {
  display: block;
}
.sheet-switch a {
  color: var(--gold);
  text-decoration: none;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.6px;
}
.sheet-switch a:hover {
  color: var(--white);
}

.sheet {
  background-color: #0a0807;
  background-image: radial-gradient(
    ellipse 92% 34% at 50% 0%,
    rgba(176, 28, 14, 0.45),
    transparent 70%
  );
  border: 1px solid rgba(214, 196, 160, 0.28);
  padding: 22px 22px 16px;
  color: var(--white);
}

.sheet-banner,
.sheet-meta {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  border: 1px solid rgba(214, 196, 160, 0.32);
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-align: center;
}
.sheet-banner span,
.sheet-meta span {
  padding: 9px 8px;
  border-right: 1px solid rgba(214, 196, 160, 0.32);
}
.sheet-banner span:last-child,
.sheet-meta span:last-child {
  border-right: 0;
}
.sheet-banner .emph,
.sheet-meta .emph {
  color: var(--gold);
  font-weight: 600;
}
.sheet-banner b,
.sheet-banner .end {
  color: var(--red);
  font-weight: 700;
}
.sheet-banner-split {
  grid-template-columns: 1fr auto;
}
.sheet-banner-split span:first-child {
  text-align: left;
  padding-left: 12px;
}
.sheet-banner-split span:last-child {
  padding-right: 12px;
}

.sheet-badge {
  display: inline-block;
  margin-top: 18px;
  background: #c4a36a;
  color: #140e09;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.3px;
  line-height: 1;
  padding: 7px 10px 6px;
}
.sheet-title {
  margin-top: 8px;
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: 64px;
  font-size: clamp(46px, 9cqi, 68px);
  line-height: 0.88;
  letter-spacing: 0.5px;
  color: var(--white);
}
.sheet-kicker {
  margin-top: 8px;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 2.4px;
  color: var(--red);
}
.sheet-meta {
  margin-top: 16px;
}

.block {
  margin-top: 16px;
  border: 1px solid rgba(214, 196, 160, 0.28);
}
.block-head,
.drill {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(78px, 0.7fr) minmax(0, 1fr) minmax(0, 1.05fr);
  column-gap: 12px;
  align-items: baseline;
  padding: 11px 12px;
}
.block-head {
  border-bottom: 1px solid rgba(214, 196, 160, 0.28);
  padding-top: 12px;
  padding-bottom: 9px;
}
.drill + .drill {
  border-top: 1px solid rgba(214, 196, 160, 0.12);
}
.block-title {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.2px;
  color: var(--red);
}
.col-label {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 1.8px;
  color: var(--muted-light);
}
.drill-name {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.2px;
  line-height: 1.25;
  color: var(--white);
}
.drill-work {
  font-family: "Share Tech Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.4px;
  color: var(--white);
  white-space: nowrap;
}
.drill-goal {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2px;
  line-height: 1.25;
  color: #e0c27a;
}
.drill-notes {
  font-family: "Share Tech Mono", monospace;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted-light);
}

.sheet-progress {
  margin-top: 18px;
  border: 1px solid rgba(214, 196, 160, 0.28);
  padding: 14px 16px 16px;
}
.sheet-progress h3 {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.8px;
  color: var(--red);
  margin-bottom: 8px;
}
.sheet-progress p {
  font-family: "Oswald", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.45;
  color: #c6ad78;
}
.sheet-progress strong {
  color: var(--white);
  font-weight: 600;
}

.sheet-close {
  margin-top: 22px;
}
.sheet-brand {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: 48px;
  line-height: 0.86;
  letter-spacing: 0.5px;
  color: var(--white);
}
.sheet-brand span {
  color: var(--red);
}
.sheet-lockup {
  margin-top: 10px;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2.2px;
  color: var(--gold);
}
.sheet-signoff {
  margin-top: 12px;
  max-width: 62ch;
  font-family: "Share Tech Mono", monospace;
  font-size: 13px;
  line-height: 1.55;
  color: #c6ad78;
}

.sheet-page {
  margin-top: 22px;
  text-align: right;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 2px;
  color: rgba(185, 152, 91, 0.5);
}
.sheet-page b {
  color: var(--gold);
  font-weight: 600;
}

/* off-screen clone used only while saving a PNG */
.sheet-export {
  position: fixed;
  left: 0;
  top: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
}

/* The image renderer locks the on-screen box size, then draws the font a
   little larger, so these labels need extra room inside the saved PNG. */
.sheet.is-capture .sheet-badge {
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  box-sizing: content-box !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
  padding: 8px 36px 7px 16px !important;
}
.sheet.is-capture .sheet-banner-split .end {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
  padding: 6px 12px 6px 8px !important;
}

@container sheet (max-width: 560px) {
  .sheet {
    padding: 14px 12px 12px;
  }
  .sheet-banner,
  .sheet-meta {
    font-size: 10px;
    letter-spacing: 0.4px;
  }
  .sheet-banner span,
  .sheet-meta span {
    padding: 8px 4px;
  }
  .sheet-kicker {
    font-size: 13px;
    letter-spacing: 1.4px;
  }
  .block-head {
    grid-template-columns: 1fr;
  }
  .col-label {
    display: none;
  }
  .drill {
    grid-template-columns: auto 1fr;
    column-gap: 14px;
    row-gap: 3px;
  }
  .drill-name,
  .drill-notes {
    grid-column: 1 / -1;
  }
  .sheet-progress p {
    font-size: 15px;
  }
  .sheet-brand {
    font-size: 40px;
  }
}

@media (max-width: 560px) {
  .prog-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .prog-pages {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .prog-download {
    width: 100%;
  }
}
