/* Course-specific layout. Shared components and palette come from the sister course. */
.brc-page {
  --signal: #74e2c6;
  --muted-line: #254353;
  overflow-wrap: break-word;
}
.brc-page .brc-mast {
  justify-content: space-between;
}
.brc-page .brc-hero {
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  position: relative;
}
.brc-page .brc-hero h1 {
  font-size: clamp(40px, 4.55vw, 72px);
  line-height: 1.02;
}
.brc-page .brc-hero h1 span {
  color: var(--signal);
  background: none;
}
.brc-bench-figure {
  position: relative;
  margin: 0;
  min-width: 0;
  display: grid;
  align-content: center;
  background: radial-gradient(ellipse at 50% 50%, #254753, #10232f 76%);
  border-left: 1px solid var(--border);
}
.brc-bench-figure img {
  width: 100%;
  height: auto;
  display: block;
}
.brc-bench-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 9px;
  padding: 10px 20px 12px;
  align-self: end;
  border-top: 1px solid #41606b;
  background: #0b1e2a;
  color: #d9edea;
  font-size: 0.78rem;
}
.brc-bench-figure figcaption a,
.brc-readlinks a {
  text-underline-offset: 3px;
}
.brc-audience,
.brc-prices,
.brc-course-grid,
.brc-learn-grid,
.brc-fields,
.brc-statline {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.brc-audience {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  gap: clamp(24px, 4vw, 64px);
}
.brc-audience h2 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.brc-course-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.brc-page .brc-cardbody {
  padding: 19px;
}
.brc-page .brc-cardbody h3 {
  font-size: 1.37rem;
  margin: 17px 0 10px;
}
.brc-page .brc-cardmeta {
  flex-wrap: wrap;
}
.brc-tier {
  display: inline-flex;
  align-items: center;
  color: #afc8da;
  background: #132637;
  border: 1px solid #294459;
  border-radius: 20px;
  padding: 2px 9px;
  font: 600 11px/1.5 var(--sans);
}
.brc-lesson[data-tier] > .brc-tier {
  color: #dbbffc;
  background: #28203b;
  border-color: #483760;
  margin-bottom: 9px;
}
.brc-modhead .brc-tier {
  margin-left: 12px;
}
.brc-prices {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.brc-prices article {
  display: flex;
  align-items: start;
  flex-direction: column;
}
.brc-prices article:nth-child(2) {
  border-color: #438679;
}
.brc-prices .brc-primary {
  margin-top: auto;
}
.brc-prices p {
  margin: 0 0 20px;
}
.brc-price {
  font-size: 2.6rem;
  letter-spacing: -0.06em;
  font-weight: 700;
  color: var(--heading);
  margin: 8px 0;
}
.brc-faq {
  max-width: 900px;
  margin: 40px 0;
}
.brc-faq h2 {
  margin-bottom: 18px;
}
.brc-faq details p {
  padding: 10px 0;
}
.brc-learn-grid {
  grid-template-columns: minmax(0, 230px) minmax(0, 940px);
  justify-content: center;
  gap: clamp(18px, 3vw, 52px);
}
.brc-content {
  min-width: 0;
  display: grid;
  gap: 18px;
}
.brc-rail {
  position: sticky;
  top: 14px;
  align-self: start;
  border-top: 2px solid #3a8278;
  padding: 14px 2px;
}
.brc-rail h2 {
  font-size: 1rem;
  margin-bottom: 10px;
}
.brc-rail a {
  display: block;
  font-size: 14px;
  padding: 7px 0;
  color: var(--text-dim);
  text-decoration: none;
  line-height: 1.35;
}
.brc-rail a:hover {
  color: var(--signal);
  text-decoration: underline;
}
.brc-lesson {
  scroll-margin-top: 12px;
}
.brc-lesson h3 {
  font-size: 1.05rem;
  margin: 19px 0 6px;
}
.brc-lesson p + p,
.brc-lesson table + p {
  margin-top: 10px;
}
.brc-lesson ul,
.brc-lesson ol {
  padding-left: 23px;
}
.brc-lesson li {
  margin-bottom: 7px;
}
.brc-lesson table {
  table-layout: fixed;
  font-size: 14px;
  margin: 12px 0 15px;
}
.brc-lesson table th:first-child {
  width: 28%;
}
.brc-lesson tbody th {
  font-size: 14px;
  color: #cde1e4;
}
.brc-equation {
  padding: 14px 16px;
  background: #0e2331;
  border-left: 2px solid var(--blue);
  font: 500 1rem/1.65 var(--mono);
  overflow-wrap: anywhere;
  color: #d2eee9;
  margin: 14px 0;
}
.brc-readlinks {
  display: flex;
  gap: 8px 15px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.brc-finish {
  margin: 0;
}
.brc-instrument,
.brc-example {
  margin-top: 18px;
  border: 1px solid var(--muted-line);
  background: #0a1a28;
  border-radius: 10px;
  padding: clamp(12px, 2vw, 22px);
  min-width: 0;
}
.brc-instrument h3,
.brc-example h3 {
  margin: 0 0 8px;
}
.brc-instrument h4 {
  margin: 14px 0 5px;
}
.brc-instrument .brc-stage {
  height: clamp(265px, 26vw, 385px);
  border-radius: 7px;
  border: 1px solid var(--border);
}
.brc-instrument .brc-stage canvas {
  touch-action: pan-y pinch-zoom;
}
.brc-controlbar,
.brc-legend,
.brc-choicebar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.brc-controlbar select,
.brc-fields select {
  max-width: 100%;
  white-space: normal;
  border-radius: 7px;
}
.brc-fields {
  margin: 13px 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr));
  align-items: start;
}
.brc-fields label,
.brc-controlbar label,
.brc-example label,
.brc-candidate {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #c5d4df;
  font-size: 13px;
  font-weight: 600;
}
.brc-fields input,
.brc-fields select,
.brc-fields output {
  max-width: 100%;
  min-width: 0;
}
.brc-page input[type='range'] {
  width: 100%;
  margin: 4px 0;
  accent-color: var(--signal);
}
.brc-page label output {
  font-size: 12px;
  color: var(--signal);
}
.brc-page .brc-unit {
  color: var(--signal);
  font: 600 11px/1.3 var(--mono);
  letter-spacing: 0.03em;
}
.brc-screen {
  background: #04121d;
  border: 1px solid #26404e;
  border-radius: 8px;
  padding: 12px 10px 4px;
  margin: 12px 0;
}
.brc-screen canvas {
  display: block;
  width: 100%;
  height: 192px;
}
.brc-screen .brc-unit {
  padding-left: 5px;
}
.brc-legend {
  margin: 8px 5px 10px;
  gap: 6px 16px;
  font-size: 12px;
  color: #c6d5df;
}
.brc-legend i {
  display: inline-block;
  width: 15px;
  height: 3px;
  vertical-align: middle;
  margin-right: 5px;
}
.brc-readout,
.brc-feedback {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #e2f2ef;
  background: #102b34;
  border-radius: 6px;
  padding: 11px 13px;
  margin: 10px 0 0;
}
.brc-readout:empty,
.brc-feedback:empty {
  display: none;
}
.brc-challenge,
.brc-work {
  margin: 12px 0;
}
.brc-example {
  border-left: 3px solid #61bcac;
}
.brc-example .brc-kicker {
  margin-bottom: 5px;
}
.brc-page .brc-work {
  background: #102636;
  border-radius: 6px;
  padding: 12px;
  line-height: 1.6;
}
.brc-target {
  display: block;
  width: 100%;
  height: 215px;
}
.brc-stage-caption {
  gap: 8px;
  padding: 8px 0;
  border: 0;
}
.brc-instrument .brc-stage-settings {
  max-width: 125px;
}
.brc-quiz-field {
  border: 0;
  padding: 0;
  margin: 12px 0;
  min-width: 0;
}
.brc-quiz-field legend {
  font-weight: 650;
  color: var(--heading);
  margin-bottom: 8px;
}
.brc-quiz-field select {
  max-width: 100%;
}
.brc-page .brc-completion {
  font-weight: 600;
  color: var(--signal);
}
.brc-instrument small {
  display: block;
  color: var(--text-dim);
}
.brc-stage [data-stage-status] {
  position: absolute;
  inset: 40% 7% auto;
  text-align: center;
  color: #18303d;
  background: #e5f0ef;
  padding: 12px;
  border-radius: 8px;
  z-index: 1;
}
.brc-progressbar {
  height: 4px;
  background: #1c3342;
  border-radius: 6px;
  margin: 10px 0;
}
.brc-progressbar span {
  display: block;
  height: 100%;
  background: var(--signal);
  border-radius: 6px;
}
.brc-page button,
.brc-page select {
  min-height: 40px;
}
@media (max-width: 930px) {
  .brc-course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .brc-learn-grid {
    grid-template-columns: minmax(0, 160px) minmax(0, 1fr);
  }
}
@media (max-width: 700px) {
  .brc-page .brc-hero,
  .brc-audience,
  .brc-prices,
  .brc-learn-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .brc-bench-figure {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .brc-bench-figure img {
    max-height: 300px;
    object-fit: contain;
  }
  .brc-page .brc-modhead {
    padding-block: 20px;
  }
  .brc-rail {
    position: static;
    display: flex;
    gap: 5px 12px;
    flex-wrap: wrap;
    padding: 10px 0;
  }
  .brc-rail h2 {
    width: 100%;
    margin: 0;
  }
  .brc-rail a {
    font-size: 12px;
    padding: 2px 0;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .brc-lesson table :is(td, th) {
    padding: 8px 5px;
  }
  .brc-learn-grid {
    gap: 10px;
  }
  .brc-audience {
    gap: 16px;
  }
  .brc-instrument .brc-stage {
    height: 275px;
  }
}
@media (max-width: 500px) {
  .brc-course-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .brc-page .brc-pad {
    padding: 15px;
  }
  .brc-screen canvas {
    height: 165px;
  }
  .brc-modhead .brc-tier {
    margin-left: 6px;
  }
  .brc-instrument button {
    font-size: 14px;
  }
  .brc-page .brc-hero-copy {
    padding: 22px;
  }
  .brc-lesson table {
    font-size: 13px;
  }
  .brc-lesson tbody th {
    font-size: 12px;
  }
  .brc-page .brc-overall {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .brc-page * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media print {
  body:has(#certificate:not([hidden])) {
    background: white !important;
  }
  .brc-page #certificate {
    max-width: none;
  }
  .brc-certificate [data-recipient] {
    overflow-wrap: anywhere;
  }
  .brc-page:has(#certificate:not([hidden])) {
    max-width: none;
    padding: 0;
  }
}
.brc-sensor-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.brc-stage .brc-sensor-overlay .brc-leaders {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  cursor: default;
}
.brc-stage .brc-pin {
  position: absolute;
  transform: translateY(-50%);
  pointer-events: auto;
  min-height: 26px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  padding: 5px 9px;
  background: #0b262eeb;
  color: #ccf7e9;
  border: 1px solid #4a807a;
  border-radius: 5px;
}
.brc-stage .brc-zoom {
  z-index: 3;
}
.brc-gas-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 9px;
  background: #0a242de6;
  color: #c2f2e3;
  border: 1px solid #46776f;
  border-radius: 4px;
  font: 600 12px var(--mono);
  pointer-events: none;
}


/* Site integration: global.css gives every heading Instrument Serif (400 only).
   Keep that for the page title so the course matches the rest of the site, and
   use DM Sans for the compact panel headings, where a light serif reads poorly. */
.brc-page h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  letter-spacing: 0;
}
.brc-page :where(h2, h3, h4) {
  font-family: 'DM Sans', Arial, sans-serif;
  font-weight: 650;
  letter-spacing: -0.01em;
}
