#bac-practice { margin-block: 24px 40px; }
#bac-practice [hidden] { display: none !important; }
#bac-practice [data-storage] { font-size: .9rem; color: #4c6351; }
#bac-practice [data-competences] { margin-block: 18px; }
#bac-practice [data-competences] a { color: #234b3e; text-decoration: underline; }
#bac-practice .revision-list-item p { margin-block: 6px; }
#bac-practice .revision-tools { gap: 10px; }
#bac-practice :is(button, [tabindex="0"]):focus-visible {
  outline: 2px solid #234b3e;
  outline-offset: 3px;
}

:is(#bac-practice, #bac-assessment) .revision-formula-part {
  min-inline-size: 0;
  padding-block: .4em .5em;
  overflow-x: auto;
  scrollbar-width: thin;
}
:is(#bac-practice, #bac-assessment) .revision-formula:has(> .revision-formula-part) {
  padding-block: 0;
  overflow: visible;
}
:is(#bac-practice, #bac-assessment) .calculation-step-table mtd { text-align: left; padding: .16em .08em; }
:is(#bac-practice, #bac-assessment) .calculation-step-table mtd:first-child { text-align: right; }
:is(#bac-practice, #bac-assessment) .calculation-step-recap mtd:nth-child(2) { text-align: center; }
:is(#bac-practice, #bac-assessment) .revision-choice { max-width: 42rem; }
:is(#bac-practice, #bac-assessment) .revision-choice-content { padding-block: 6px; }

.bac-table-scroll { max-inline-size: 100%; overflow: auto; margin-block: 18px; scrollbar-width: thin; }
.bac-math-table { width: 100%; border-collapse: collapse; color: #234b3e; font-size: .96rem; font-variant-numeric: tabular-nums; }
.bac-math-table caption { text-align: left; font-weight: 700; margin-bottom: 8px; }
.bac-math-table :is(th, td) {
  border: 1px solid #bccbb7;
  padding: .6em .7em;
  text-align: center;
  vertical-align: middle;
}
.bac-math-table thead th:not(:first-child) { white-space: nowrap; }
.bac-math-table :is(th, .bac-total) { background: #e8efdf; font-weight: 650; }
.bac-math-table td { background: #fffdf7; }
.bac-math-table .bac-total td { background: #e8efdf; }
.bac-math-table math { math-style: normal; }
.bac-sign { display: inline-block; min-width: 1em; font-size: 1.1em; font-weight: 700; }
.bac-sign[data-sign="nul"] { background: #f4ebd5; border-radius: 4px; padding-inline: .35em; }
.bac-variation-arrow { display: inline-block; font-size: 1.45em; line-height: 1.1; font-weight: 700; }

.bac-figure {
  max-inline-size: 540px;
  margin: 18px auto 12px;
}
.bac-figure > svg {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #ccd7c8;
  border-radius: 10px;
  background: #fffdf7;
}
.bac-figure text { fill: #234b3e; font-size: 16px; font-variant-numeric: tabular-nums; }
.bac-figure figcaption { margin-top: 8px; font-size: .9rem; line-height: 1.45; }
.bac-figure-note { display: block; margin-top: 2px; color: #4c6351; }
.bac-plane-figure { max-inline-size: 500px; }
.bac-unit-circle { max-inline-size: 345px; }
.bac-probability-tree { max-inline-size: 490px; }
.bac-plot-frame { fill: #f3f6ed; stroke: #c1cfbc; }
.bac-gridline { fill: none; stroke: #d3ded0; stroke-width: 1; }
.bac-axis { fill: none; stroke: #63776a; stroke-width: 1.5; }
.bac-axis-label, .bac-point-label { font-weight: 650; }
.bac-point-label {
  paint-order: stroke fill;
  stroke: #fffdf7;
  stroke-width: 4px;
  stroke-linejoin: round;
}
.bac-curve, .bac-plane-vector { fill: none; stroke: #234b3e; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.bac-plot-point { fill: #234b3e; stroke: #fffdf7; stroke-width: 1.5; }
.bac-stat-bar { fill: #668151; }
.bac-circle-background { fill: #f3f6ed; stroke: #668151; stroke-width: 2; }
.bac-circle-direction, .bac-plane-segment { fill: none; stroke: #668151; stroke-width: 2; }
.bac-plane-guide { fill: none; stroke: #866633; stroke-width: 1.8; stroke-dasharray: 5 4; }
.bac-right-angle { fill: none; stroke: #866633; stroke-width: 2; }
.bac-tree-branch { fill: none; stroke: #668151; stroke-width: 2.2; }
.bac-tree-node { fill: #e8efdf; stroke: #668151; stroke-width: 1.4; }
.bac-tree-root { fill: #234b3e; }
.bac-tree-event, .bac-tree-weight text {
  text-anchor: middle;
  dominant-baseline: central;
  font-weight: 650;
}
.bac-figure .bac-tree-event { font-size: 19px; }
.bac-tree-weight rect { fill: #fffdf7; stroke: #c1cfbc; }
.bac-tree-weight path { fill: none; stroke: #234b3e; stroke-width: 1.3; }
.bac-tree-weight-missing rect { fill: #f8eed5; stroke: #9b793b; }
.bac-code {
  max-inline-size: 100%;
  overflow-x: auto;
  white-space: pre;
  padding: 14px;
  background: #f1f5eb;
  border: 1px solid #b9c8b6;
  border-radius: 8px;
  font-size: .95rem;
}

@media (max-width: 600px) {
  #bac-practice .revision-card { padding: 13px; }
  #bac-practice :is(.revision-prompt, .revision-support) { padding: 12px; }
  #bac-practice .revision-support ol { padding-inline-start: 1.2rem; }
  .bac-math-table :is(th, td) { padding: .45em .4em; }
  .bac-figure text { font-size: 20px; }
  .bac-figure .bac-bar-category { font-size: 17px; }
  .bac-probability-tree .bac-tree-weight text { font-size: 16px; }
}

.bac-tree-event-bar { fill:none; stroke:#234b3e; stroke-width:1.7; stroke-linecap:round; }
