@import url('./fading.css');
/* Shared practice uses the two courses' existing typography and instrument colours. */
.brc-page .ck-panel,
.brc-page .ck-hub,
.brc-page .ck-end {
  margin: 1.15rem 0;
  padding: clamp(1rem, 2vw, 1.7rem);
  background: #0b1929;
  border: 1px solid #294254;
  border-radius: 14px;
  min-width: 0;
}
.ck-opening {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 1.5rem;
  align-items: start;
}
.brc-page .ck-opening h2,
.brc-page .ck-end h2,
.brc-page .ck-hub h2 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}
.ck-objectives ul {
  margin: 0.7rem 0;
  padding-left: 1.2em;
}
.ck-objectives li {
  margin: 0.3rem 0;
}
.ck-eyebrow {
  display: block;
  color: #84e2cd;
  font: 600 0.76rem/1.4 var(--mono, monospace);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}
.brc-page .ck-checks {
  border-top: 1px solid #34505f;
  margin-top: 1.25rem;
  padding: 0.75rem 0 0;
  min-width: 0;
}
.ck-checks summary,
.ck-end summary,
.ck-hub summary {
  cursor: pointer;
  color: #94e5d7;
  font-weight: 650;
  padding: 0.5rem 0;
  overflow-wrap: anywhere;
}
.ck-question {
  padding: 0.75rem 0;
  color: #d4e3ec;
  min-width: 0;
}
.ck-question + .ck-question {
  border-top: 1px solid #31434e;
}
.ck-question fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.ck-question legend,
.ck-card-prompt {
  font-weight: 650;
  line-height: 1.42;
  font-size: 1rem;
  color: #f1f5fa;
  margin-bottom: 0.5rem;
}
.ck-question label:not(.ck-choice),
.ck-confidence label {
  display: grid;
  gap: 0.4rem;
  margin: 0.55rem 0;
}
.ck-options,
.ck-tools {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.5rem 0;
}
.ck-options:has(input[type='radio']) {
  display: grid;
}
.brc-page .ck-choice {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  border: 1px solid #344b5d;
  padding: 0.48rem 0.7rem;
  border-radius: 7px;
  cursor: pointer;
  background: #0a1623;
  font-size: 0.94rem;
  line-height: 1.4;
}
.ck-choice:has(:checked) {
  border-color: #77d8c8;
  background: #0f3036;
}
.ck-choice input {
  flex: none;
  accent-color: #7de3ce;
  margin: 0;
}
.brc-page .ck-submit {
  color: #051e20;
  background: #83dcc9;
  border: 1px solid #83dcc9;
  font-weight: 650;
}
.ck-question button,
.ck-tools button,
.ck-pop button {
  margin: 2px;
  white-space: normal;
}
.ck-question input[type='number'],
.ck-confidence select {
  color: #eff5f7;
  background: #071524;
  border: 1px solid #526c78;
  border-radius: 6px;
  padding: 0.55rem;
  max-width: 100%;
  width: fit-content;
}
.brc-page .ck-feedback {
  margin: 0.35rem 0;
  font-size: 0.93rem;
  color: #acc5d1;
}
.brc-page .ck-feedback[data-result='pass'] {
  color: #9aebcd;
}
.brc-page .ck-feedback[data-result='retry'] {
  color: #f6d4a5;
}
.ck-feedback:empty {
  display: none;
}
.ck-drop {
  padding: 0.85rem 1rem;
  background: #071825;
  border-left: 3px solid #69bcad;
  border-radius: 3px;
  margin: 0.5rem 0;
}
.ck-sequence {
  margin: 0.25rem 0;
  padding-left: 1.3rem;
}
.ck-card-stage {
  max-width: 42rem;
}
.ck-card-stage > small {
  display: block;
  color: #acc6cf;
  font-size: .82rem;
}
.ck-card-meter .ck-feedback { margin: .5rem 0 0; font-size: .85rem; }
.ck-card-progress {
  width: 100%;
  height: .28rem;
  margin: .3rem 0 .55rem;
  border: 0;
  border-radius: 1rem;
  appearance: none;
  background: #2c4653;
  color: #8be1ce;
}
.ck-card-progress::-webkit-progress-bar { background: #2c4653; border-radius: 1rem; }
.ck-card-progress::-webkit-progress-value { background: #8be1ce; border-radius: 1rem; }
.ck-card-progress::-moz-progress-bar { background: #8be1ce; border-radius: 1rem; }
.ck-card {
  position: relative;
  perspective: 68rem;
  margin: 0 0 .8rem;
}
.ck-card-rotor {
  display: grid;
  transform-style: preserve-3d;
  transition: transform 400ms cubic-bezier(.38,.04,.23,1);
}
.ck-card-rotor.ck-is-turned { transform: rotateY(180deg); }
.ck-card-face {
  grid-area: 1 / 1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .6rem;
  box-sizing: border-box;
  min-height: clamp(12.5rem, 26vw, 15.2rem);
  min-width: 0;
  padding: 1.6rem clamp(1.05rem, 4vw, 2.1rem) 3.65rem;
  border-radius: .95rem;
  border: 1px solid #4a6978;
  box-shadow: 0 3px 0 #1b3544, 0 7px 13px #02091155;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow-wrap: anywhere;
}
.ck-card-front {
  background: linear-gradient(115deg, #193345, #102635 76%);
  /* An explicit transform promotes this face independently for backface culling. */
  transform: rotateY(0deg);
}
.ck-card-back {
  transform: rotateY(180deg);
  border-color: #508981;
  background: linear-gradient(115deg, #164044, #102d36 76%);
}
.ck-face-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font: 650 .78rem/1.4 var(--sans, sans-serif);
  color: #a6d7d6;
}
.ck-face-label::before {
  content: '';
  width: 1.15rem;
  border-top: 2px solid #7bccc0;
}
.brc-page .ck-card-prompt,
.brc-page .ck-card-answer,
.brc-page .ck-card-equation,
.brc-page .ck-card-units { margin: 0; }
.brc-page .ck-card-prompt {
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 650;
  color: #f3f8fa;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.brc-page .ck-card-answer { font: 550 clamp(1.05rem, 2vw, 1.3rem)/1.45 var(--sans, sans-serif); color: #f3fbf8; }
.brc-page .ck-card-equation { font: 550 1.04rem/1.4 var(--mono, monospace); color: #b7f2df; }
.brc-page .ck-card-units { font-size: .9rem; color: #c3e5dd; }
.ck-card-back .ck-sketch { width: min(100%, 14rem); color: #c7f7e7; }
.brc-page button.ck-turn {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  border-radius: .95rem;
  background: transparent;
  box-shadow: none;
  border: 0;
  margin: 0;
  padding: 0;
  cursor: pointer;
}
.brc-page button.ck-turn:hover { background: transparent; }
.brc-page button.ck-turn:focus-visible { outline: 3px solid #a9eee0; outline-offset: 3px; }
.ck-turn-cue {
  position: absolute;
  inset: auto 1.1rem 1rem auto;
  color: #c6efe4;
  padding: .2rem .65rem;
  font: 600 .82rem/1.5 var(--sans, sans-serif);
  border: 1px solid #739a9e;
  border-radius: 2rem;
}
.ck-review-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .5rem 0; }
.ck-tools.ck-ratings { margin: 0; }
.ck-ratings[hidden] { display: none; }
.ck-ratings kbd { font: 550 .76rem/1 var(--mono, monospace); padding: .13rem .25rem; margin-right: .4rem; border-radius: .2rem; background: #264654; color: #d7ece9; }
.brc-page button.ck-end-review { margin-left: auto; }
.ck-card-speech { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .ck-card-rotor { transition: none; }
}
.ck-diagram {
  max-width: 360px;
}
.ck-diagram svg,
.ck-sketch svg {
  display: block;
  width: 100%;
  height: auto;
}
.ck-dot {
  cursor: pointer;
  fill: #16303f;
}
.ck-dot circle {
  stroke: #9cd7d2;
  stroke-width: 1.4;
}
.ck-dot text {
  fill: white;
  font: 600 11px sans-serif;
}
.ck-dot.ck-marked circle {
  fill: #28756b;
  stroke: #fff;
}
.ck-hub .ck-resume {
  display: inline-block;
  margin: 0.4rem 0;
}
.ck-onboarding {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.ck-ring-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.77rem;
  color: #c4d4df;
  margin-top: 8px;
  line-height: 1.4;
}
.ck-ring {
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 100%;
  background:
    radial-gradient(circle, #0c1928 48%, transparent 52%),
    conic-gradient(#81ddc7 var(--ck-deg), #385062 0);
}
.ck-end > * + * {
  margin-top: 1rem;
}
.ck-end details {
  border-top: 1px solid #2e4958;
}
.ck-end details > div {
  padding-bottom: 1rem;
}
.ck-readhead {
  font-size: 1.05rem !important;
  margin: 0.7rem 0 0.2rem !important;
}
.ck-visit {
  display: block;
  height: 1px;
  width: 1px;
  pointer-events: none;
}
.brc-page button.ck-term {
  display: inline;
  padding: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-decoration: underline dotted #70c4b4;
  text-underline-offset: 3px;
}
.ck-pop {
  position: fixed;
  color: #e7eef4;
  background: #102334;
  border: 1px solid #6a978f;
  border-radius: 12px;
  padding: 1.25rem;
  width: min(27rem, calc(100vw - 32px));
  max-height: 85dvh;
}
.ck-pop::backdrop {
  background: #030a14b8;
}
.ck-pop > * + * {
  margin-top: 0.65rem !important;
}
.ck-pop h3 {
  font-size: 1.4rem;
}
.ck-pop .ck-sketch {
  max-width: 240px;
}
.ck-pop .ck-units {
  color: #a3dacc;
}
.ck-paper {
  display: none;
}
.ck-confidence select {
  min-width: 10rem;
}
.brc-page #certificate .ck-mastery {
  font:
    normal 11px/1.3 Arial,
    sans-serif;
  color: #214740;
  text-align: left;
  max-width: 680px;
  margin: 9px auto;
}
.ck-mastery ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
  list-style: none;
  padding: 0;
  margin: 4px 0;
}
.ck-mastery b {
  display: block;
}
@media (max-width: 750px) {
  .ck-opening {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }
  .ck-mastery ul {
    grid-template-columns: 1fr;
  }
  .brc-page .ck-choice {
    min-height: 42px;
  }
  .ck-checks summary {
    padding: 0.7rem 0;
  }
}
@media print {
  .ck-panel,
  .ck-end,
  .ck-hub,
  .ck-pop,
  .ck-checks,
  .ck-paper {
    display: none !important;
  }
  html.ck-print-module body {
    background: white !important;
    margin: 0 !important;
  }
  html.ck-print-module body > *:not(main):not(:has(main.brc-page)),
  html.ck-print-module main.brc-page > *:not(.ck-paper) {
    display: none !important;
  }
  html.ck-print-module main.brc-page {
    display: block !important;
    background: white !important;
    color: #15252b !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  html.ck-print-module main.brc-page > .ck-paper {
    display: block !important;
    background: white;
    color: #182e33;
    padding: 8mm;
    font:
      11pt/1.35 Arial,
      sans-serif;
  }
  .ck-paper h2,
  .ck-paper h3,
  .ck-paper p {
    color: #162e35 !important;
    margin: 0.35em 0 !important;
  }
  .ck-paper h2 {
    font-size: 19pt !important;
  }
  .ck-paper h3 {
    font-size: 13pt !important;
  }
  .ck-paper table {
    width: 100%;
    border-collapse: collapse;
  }
  .ck-paper td,
  .ck-paper th {
    text-align: left;
    border-bottom: 1px solid #adbdc2;
    padding: 4px;
  }
  .ck-paper ul {
    margin: 0.3em 0;
  }
  .ck-mastery ul {
    grid-template-columns: 1fr 1fr;
  }
}
.brc-types,
.brc-quiz-intro,
.brc-below {
  position: relative;
}
:is(.brc-types, .brc-quiz-intro, .brc-below) > .ck-visit {
  position: absolute;
  inset: 0 auto auto 0;
}
:is(.brc-types, .brc-quiz-intro, .brc-below) > .ck-checks {
  grid-column: 1/-1;
}
@media (max-width: 750px) {
  .brc-journey:has(.ck-checks[open], [data-fading][open]) .brc-sticky {
    position: static;
  }
}
