@font-face {
  font-family: "MCS Jakarta";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(../mcs-lectie/plus-jakarta-sans-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "MCS Jakarta";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(../mcs-lectie/plus-jakarta-sans-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "MCS Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(../mcs-lectie/jetbrains-mono-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "MCS Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(../mcs-lectie/jetbrains-mono-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: #fff; }
body {
  color: #1c1a20;
  font-family: "MCS Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
:root {
  --mov: #662D91;
  --mov-inchis: #4a1f6b;
  --mov-fundal: #f7f3fa;
  --mov-linie: #dccfe9;
  --text: #1c1a20;
  --sters: #5f5a68;
  --linie: #e6e2ec;
  --verde: #1b7f4b;
  --rosu: #b3261e;
}
.pagina { max-width: 880px; margin: 0 auto; padding: 20px 20px 28px; }
.sus { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sus img { display: block; height: 36px; width: auto; }
.context { font-size: 15px; font-weight: 600; color: var(--mov); text-decoration: none; text-align: right; }
.context:hover { text-decoration: underline; }
h1 { margin: 36px 0 10px; font-size: 30px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; text-align: center; }
.intro { margin: 0 auto 26px; max-width: 62ch; text-align: center; color: var(--sters); font-size: 16px; }
h2 { font-size: 24px; line-height: 1.25; letter-spacing: -0.015em; margin: 0 0 12px; }

.avertisment { border: 1px solid #e8c9c6; background: #fdf4f3; color: #7a1f18; border-radius: 8px; padding: 12px 16px; font-size: 15px; margin-bottom: 20px; }
.avertisment[hidden] { display: none; }

.panou { border: 1px solid var(--linie); border-radius: 10px; padding: 16px 18px; margin-bottom: 20px; }
.rand { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rand + .rand { margin-top: 12px; }
.eticheta { flex: 0 0 72px; font-size: 14px; font-weight: 700; color: var(--sters); }
.chipuri { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 0; min-width: 0; }
.chip {
  font: inherit; font-size: 15px; padding: 6px 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--linie); background: #fff; color: var(--text);
}
.chip:hover { border-color: var(--mov-linie); }
.chip[aria-pressed="true"] { border-color: var(--mov); background: var(--mov-fundal); color: var(--mov-inchis); font-weight: 600; }
.chip:focus-visible, .buton:focus-visible, .buton-2:focus-visible, select:focus-visible, .optiune:focus-visible { outline: 2px solid var(--mov); outline-offset: 2px; }
select {
  font: inherit; font-size: 15px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--linie);
  background: #fff; color: var(--text); max-width: 100%; min-width: 0;
}
.rand select { flex: 1 1 220px; }
.chip:disabled { opacity: .45; cursor: not-allowed; }
.tip { flex: 1 1 0; min-width: 0; }
.tipuri { border: 1px solid var(--linie); border-radius: 8px; }
.rand:has(.tipuri) { align-items: flex-start; }
.rand:has(.tipuri) > .eticheta { padding-top: 8px; }
.tipuri > summary { cursor: pointer; padding: 6px 12px; font-size: 15px; }
.tipuri[open] > summary { border-bottom: 1px solid var(--linie); }
.tipuri > summary:focus-visible { outline: 2px solid var(--mov); outline-offset: 2px; }
.tipuri-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 18px; padding: 8px 12px 10px; }
.bifa { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; line-height: 1.4; cursor: pointer; min-width: 0; overflow-wrap: anywhere; }
.bifa input { margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--mov); width: 15px; height: 15px; }
.bifa-toate { grid-column: 1 / -1; font-weight: 600; }
.descriere { margin: 14px 0 0; font-size: 15px; color: var(--sters); }

.buton, .buton-2 {
  font: inherit; font-size: 16px; font-weight: 600; padding: 9px 16px; border-radius: 8px; cursor: pointer;
}
.buton { background: var(--mov); color: #fff; border: 1px solid var(--mov); }
.buton:hover { background: var(--mov-inchis); }
.buton-2 { background: #fff; color: var(--mov-inchis); border: 1px solid var(--mov-linie); }
.buton-2:hover { border-color: var(--mov); }
.buton-2:disabled, .buton:disabled { opacity: .45; cursor: not-allowed; }
.buton-mic { font: inherit; font-size: 13px; padding: 4px 10px; border-radius: 6px; cursor: pointer; background: #fff; color: var(--mov-inchis); border: 1px solid var(--mov-linie); white-space: nowrap; }
.buton-mic:hover { border-color: var(--mov); }

.exercitiu { border: 1px solid var(--linie); border-radius: 10px; padding: 18px 20px 20px; margin-bottom: 20px; min-width: 0; }
.exercitiu[hidden], .sectiune[hidden] { display: none; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 15px; color: var(--sters); margin-bottom: 12px; }
.meta b { color: var(--mov-inchis); font-weight: 600; }
.meta > * + *::before { content: "·"; margin-right: 12px; color: var(--mov-linie); }
.text-enunt { margin: 0 0 6px; font-size: 17px; line-height: 1.6; }
.formula { position: relative; overflow-x: auto; overflow-y: hidden; max-width: 100%; padding: 2px 0; }
.formula .katex-display { margin: 6px 0; }
.indiciu-derulare { margin: -2px 0 6px; font-size: 13px; color: var(--mov-inchis); text-align: right; }
.actiuni { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.cerinte { margin: 6px 0 0; padding: 0; list-style: none; font-size: 16px; }
.cerinte:empty { display: none; }
.cerinta { margin: 6px 0 0; font-size: 16px; }
.cerinta:empty, .enunt:empty, .figura:empty, .dupa-enunt:empty { display: none; }
.enunt { margin: 4px 0 2px; }
.figura { margin: 10px 0 4px; max-width: 100%; overflow-x: auto; }
.figura svg { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.figura-sim svg { max-width: 320px; }
.cerinta-s3 { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--linie); }
.cerinta-s3 > span:nth-child(2) { flex: 1 1 auto; min-width: 0; }
.litera { flex: 0 0 auto; font-weight: 700; color: var(--mov); }
.puncte { flex: 0 0 auto; font-size: 13px; font-weight: 700; color: var(--mov); background: var(--mov-fundal); border-radius: 5px; padding: 1px 7px; }
.intrebare { margin: 10px 0 0; font-size: 16px; font-weight: 600; color: var(--mov-inchis); }
.intrebare:empty { display: none; }
.grila { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 12px; }
.grila:empty { display: none; }
.grila.alege { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.aprox { margin: 2px 0 0; font-size: 15px; color: var(--sters); }
.optiune {
  display: flex; align-items: center; gap: 8px; text-align: left; font: inherit; font-size: 16px; cursor: pointer; min-width: 0;
  border: 1px solid var(--linie); border-radius: 8px; background: #fff; padding: 9px 12px; color: var(--text); overflow-x: auto;
}
.optiune:hover { border-color: var(--mov-linie); }
.optiune.corect { border-color: var(--verde); background: #f1f8f4; }
.optiune.gresit { border-color: var(--rosu); background: #fcf2f1; }
.optiune .marca { margin-left: auto; padding-left: 6px; font-weight: 700; }
.optiune.corect .marca { color: var(--verde); }
.optiune.gresit .marca { color: var(--rosu); }
.chip-progres { margin-left: 4px; font-size: 13px; font-weight: 600; color: var(--verde); }
.scor-fisa { margin: 6px 0 0; font-size: 15px; color: var(--mov-inchis); font-weight: 600; }
.scor-fisa.gata { padding: 8px 12px; background: var(--mov-fundal); border-radius: 8px; }
.scor-fisa[hidden] { display: none; }
#grila .optiune:not(.optiune-grafic) .katex { white-space: nowrap; }
#grila[data-coloane="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#grila[data-coloane="1"] { grid-template-columns: minmax(0, 1fr); }
#grila.grila-lunga .optiune .katex { white-space: normal; }
.pas-jos { margin-top: 12px; }
.rand[hidden] { display: none; }
.chip-zona { flex: 1 0 100%; font-size: 13px; font-weight: 700; color: var(--mov-inchis); margin-top: 4px; }
.chip-zona:first-child { margin-top: 0; }
.fisa-categorie { margin: 6px 0 4px; }
@media print { .fisa-tipar .figura-banca { margin: 4px 0; } .fisa-tipar .figura-banca img { width: auto !important; max-width: 46mm !important; max-height: 38mm !important; } .fisa-tipar .ft-item .meta { font-size: 10.5px; margin-bottom: 2px; } }
.mai-multi[hidden] { display: none; }
.bara-jos { position: fixed; left: 0; right: 0; bottom: 0; z-index: 800; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--linie); box-shadow: 0 -6px 18px rgba(28, 26, 32, .08); }
.bara-jos[hidden] { display: none; }
.bara-jos .buton, .bara-jos .buton-2 { min-height: 48px; font-size: 16px; padding: 8px 10px; }
body.cu-bara-jos { padding-bottom: 76px; }
.pas-titlu[role="button"] { cursor: pointer; }
.pas.pas-strans > :not(.pas-titlu) { display: none; }
.pas.pas-strans > .pas-titlu { color: var(--sters); }
.pas.pas-strans > .pas-titlu::after { content: " ▸"; color: var(--mov); }
@media (max-width: 767px) { .pasi > .pas { scroll-margin-top: 12px; } .pas-jos { display: none; } }
@media print { .bara-jos { display: none; } }
.grila-sim { margin: 8px 0 2px; }
.grila-sim .optiune.ales { border-color: var(--mov); background: var(--mov-fundal); }
.grila-sim .optiune .katex { white-space: nowrap; }
.grila-sim[data-coloane="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grila-sim[data-coloane="1"] { grid-template-columns: minmax(0, 1fr); }
.grila-sim.grila-lunga .optiune .katex { white-space: normal; }
.grila-sim.doar-litere { grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); }
.grila-sim.doar-litere .optiune { justify-content: center; }
.bife-sim { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 8px; font-size: 15px; }
.bife-sim[hidden] { display: none; }
.bife-sim label { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; }
.sim-final { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--linie); }
.sim-final .scor-fisa { margin-top: 12px; font-size: 16px; }
.fisa-lista > li.sim-extra { counter-increment: none; margin-left: 26px; border-top-style: dashed; }
.fisa-lista > li.sim-extra::before { content: "+"; }
#btn-termina[hidden] { display: none; }
@media print { .sim-final, #ceas-sim { display: none; } }
.pliabil.pliat { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.intro.pliabil { margin-bottom: 4px; }
.mai-mult { display: block; margin: 0 auto 14px; padding: 6px 10px; min-height: 36px; font: inherit; font-size: 14px; font-weight: 600; color: var(--mov-inchis); background: none; border: 0; text-decoration: underline; cursor: pointer; }
.descriere + .mai-mult { margin: 2px 0 0; padding-left: 0; }
.mai-mult[hidden] { display: none; }
.pas-jos[hidden] { display: none; }
@media (hover: none) and (pointer: coarse) { .scurtaturi { display: none; } }
.progres-banca { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; font-size: 15px; color: var(--sters); }
.progres-banca .buton-mic { margin-top: 0; }
.stare-pb.corect { color: var(--verde); font-weight: 600; }
.stare-pb.gresit { color: var(--rosu); font-weight: 600; }
.stare-pb[hidden] { display: none; }
.feedback .buton-mic { margin-left: 4px; vertical-align: baseline; }
.progres-banca:empty { display: none; }
.buton-mic[aria-pressed="true"] { background: var(--mov-fundal); border-color: var(--mov); font-weight: 600; }
.autoevaluare { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--mov-linie); font-size: 15px; }
.autoevaluare-q { font-weight: 600; color: var(--mov-inchis); }
.lista-probleme > li[hidden], .lista-probleme[hidden], .subiect-titlu[hidden] { display: none; }
.optiune:disabled { cursor: default; color: inherit; }
.feedback { margin: 10px 0 0; font-size: 16px; }
.feedback.ok { color: var(--verde); }
.feedback.nu { color: var(--rosu); }
.feedback[hidden] { display: none; }

.pasi { list-style: none; margin: 18px 0 0; padding: 0; }
.pas { border-left: 3px solid var(--mov-linie); padding: 2px 0 2px 14px; margin-bottom: 16px; min-width: 0; }
.pas-titlu { font-weight: 700; font-size: 16px; color: var(--mov-inchis); margin-bottom: 4px; }
.pas-titlu > span:first-child { display: inline-block; min-width: 20px; color: var(--mov); }
.pas-nota { margin: 0 0 6px; font-size: 15px; color: var(--sters); }
.tabel-wrap { overflow-x: auto; max-width: 100%; margin: 6px 0 8px; }
.tabel-pas { border-collapse: collapse; font-size: 15px; }
.tabel-pas th, .tabel-pas td { border: 1px solid var(--mov-linie); padding: 5px 12px; text-align: center; white-space: nowrap; }
.tabel-pas thead th { background: var(--mov-fundal); color: var(--mov-inchis); font-weight: 600; }
.tabel-pas tbody th { text-align: left; font-weight: 600; color: var(--mov-inchis); }
.tabel-pas tbody tr:last-child { color: var(--sters); }
.rezultat { margin-top: 16px; border-left: 3px solid var(--mov); background: var(--mov-fundal); border-radius: 0 8px 8px 0; padding: 10px 14px; min-width: 0; }
.rezultat-titlu { font-size: 13px; font-weight: 700; color: var(--mov-inchis); }
.rezultat-text { margin: 4px 0 0; font-size: 16px; }

.sectiune { border: 1px solid var(--linie); border-radius: 10px; padding: 16px 18px; margin-bottom: 20px; min-width: 0; }
.fisa-control { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.fisa-control label { font-size: 15px; color: var(--sters); display: flex; align-items: center; gap: 6px; }
.total-sim { margin: 10px 0 0; font-size: 15px; color: var(--sters); }
.sim-titlu { margin: 18px 0 6px; font-size: 18px; color: var(--mov-inchis); }
.fisa-lista { list-style: none; margin: 0; padding: 0; counter-reset: ex; }
.fisa-lista > li { display: flex; gap: 10px; align-items: flex-start; border-top: 1px solid var(--linie); padding: 10px 0; min-width: 0; counter-increment: ex; }
.fisa-lista > li::before { content: counter(ex) "."; flex: 0 0 26px; font-weight: 700; color: var(--mov); padding-top: 2px; }
.fisa-lista .corp { flex: 1 1 auto; min-width: 0; }
.fisa-lista .corp .text-enunt { font-size: 16px; }
.fisa-lista .buton-mic { margin-top: 6px; }
.optiuni-inline { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 16px; margin: 4px 0 2px; }
.optiuni-inline > span { max-width: 100%; overflow-x: auto; overflow-y: hidden; }
.cerinte-sim { list-style: none; margin: 4px 0 0; padding: 0; font-size: 16px; }
.cerinte-sim li { display: flex; gap: 8px; align-items: baseline; padding: 2px 0; }
.cerinte-sim li > span:nth-child(2) { flex: 1 1 auto; min-width: 0; }
.raspuns-sim { margin: 4px 0 0; font-size: 15px; color: var(--verde); max-width: 100%; overflow-x: auto; overflow-y: hidden; }
.raspuns-sim[hidden] { display: none; }

details.memento { border: 1px solid var(--linie); border-radius: 10px; padding: 0 18px; }
details.memento summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--mov-inchis); }
.memento-corp { padding: 0 0 16px; font-size: 16px; }
.memento-corp h3 { font-size: 18px; margin: 16px 0 6px; }
.memento-corp p { margin: 0 0 8px; }
.memento-corp ul { margin: 0 0 8px; padding-left: 20px; }
.memento-corp li { margin-bottom: 4px; }
.memento-corp .formula { margin: 4px 0 10px; }
.scurtaturi { color: var(--sters); font-size: 15px; }
kbd { font: inherit; font-size: 13px; font-weight: 600; border: 1px solid var(--mov-linie); border-radius: 4px; padding: 0 5px; color: var(--mov-inchis); }

.jos { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--linie); text-align: center; font-size: 15px; color: var(--sters); }
.jos a { color: var(--mov); text-decoration: none; }
.nota-verificare { margin: 6px 0 0; font-size: 13px; }

code { font-family: "MCS Mono", ui-monospace, Menlo, monospace; font-size: 0.9375em; }
.fara-katex { font-family: "MCS Mono", ui-monospace, Menlo, monospace; font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.fisa-tipar { display: none; }
@media (max-width: 600px) {
  .pagina { padding: 16px 16px 24px; }
  .sus img { height: 30px; }
  .context { font-size: 15px; }
  h1 { margin-top: 28px; }
  .eticheta { flex-basis: 100%; }
  .exercitiu, .panou, .sectiune { padding: 14px; }
  .actiuni .buton, .actiuni .buton-2 { flex: 1 1 calc(50% - 10px); font-size: 16px; padding: 9px 10px; }
  .tabel-pas th, .tabel-pas td { padding: 4px 8px; font-size: 15px; }
}

@media print {
  @page { size: A4; margin: 14mm 14mm 18mm; @bottom-center { content: "Prof. Bogdan Daniel Ioan · mycodeschool.ro"; font-family: system-ui, sans-serif; font-size: 9pt; color: #5f5a68; } }
  body.tipareste > *:not(.fisa-tipar) { display: none !important; }
  body.tipareste .fisa-tipar { display: block; }
  .fisa-tipar { font-size: 12.5px; }
  .ft-antet { display: flex; align-items: center; gap: 14px; border-bottom: 1.5px solid var(--mov); padding-bottom: 8px; margin-bottom: 8px; }
  .ft-antet img { height: 26px; }
  .ft-titlu { font-weight: 700; color: var(--mov-inchis); font-size: 15px; }
  .ft-cat { margin-left: auto; color: var(--sters); font-size: 11.5px; text-align: right; }
  .ft-nume { display: flex; gap: 26px; font-size: 11.5px; color: var(--sters); margin: 6px 0 10px; }
  .ft-nota { margin: 0 0 10px; font-size: 11.5px; color: var(--sters); }
  .ft-sub { font-size: 12.5px; margin: 14px 0 6px; color: var(--mov-inchis); }
  .ft-lista { margin: 0; padding: 0; list-style: none; }
  .ft-item { break-inside: avoid; padding: 4px 0 6px 26px; position: relative; }
  .ft-nrex { position: absolute; left: 0; top: 4px; width: 22px; font-weight: 700; color: #000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ft-item .text-enunt { margin: 0; font-size: 12.5px; }
  .ft-item .optiuni-inline { font-size: 12.5px; gap: 2px 22px; }
  .ft-item .cerinte-sim { font-size: 12.5px; }
  .ft-spatiu { padding-bottom: 96px; border-bottom: 1px dotted #bbb; }
  .ft-barem { break-before: page; page-break-before: always; }
  .ft-tabel { border-collapse: collapse; font-size: 12px; }
  .ft-tabel th, .ft-tabel td { border: 1px solid #bbb; padding: 3px 12px; text-align: left; }
  .ft-barem-item { display: grid; grid-template-columns: 26px 1fr; gap: 2px 6px; margin: 6px 0 10px; break-inside: avoid; }
  .ft-nr { font-weight: 700; color: var(--mov); grid-row: 1 / span 6; }
  .ft-item .figura svg { max-width: 260px; }
  .ft-barem-rand { grid-column: 2; display: flex; gap: 8px; align-items: baseline; font-size: 11.5px; }
  .ft-lit { flex: 0 0 18px; font-weight: 700; color: var(--mov); }
  .ft-txt { flex: 1 1 auto; }
  .ft-p { flex: 0 0 auto; font-weight: 600; }
}

.rezultat-text { max-width: 100%; overflow-x: auto; overflow-y: hidden; }

.oficiale .lista-probleme { list-style: none; margin: 0; padding: 0; }
.oficiale .problema { border: 1px solid var(--linie); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; min-width: 0; }
.oficiale .actiuni { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.oficiale .rezolvare { margin-top: 12px; }
.oficiale .rezolvare[hidden] { display: none; }
.subpuncte { margin: 0.4rem 0 0.2rem 1.2rem; padding: 0; }
.subpuncte li { margin: 0.2rem 0; }
.cote { color: var(--sters); font-size: 0.85em; margin-left: 0.3rem; }
.figura-banca { margin: 0.6rem 0; }
.figura-banca img { max-width: min(100%, 420px); height: auto; display: block; }
.oficiale .fisa-control { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 14px; }
.oficiale select { font: inherit; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--linie); background: #fff; }
.oficiale .oficial-unu { border-color: var(--mov-linie); }
.oficiale .oficial-pasi { margin-top: 10px; }
.oficiale .oficial-pasi .pas[hidden], .oficiale .rezultat-text[hidden], #oficial-lista[hidden], #oficial-unu[hidden], #oficial-fisa[hidden] { display: none; }
.fisa-tipar-of, .fisa-tipar-gen { display: none; }
@media print {
  body.tipareste-oficiale > *:not(.fisa-tipar-of) { display: none !important; }
  body.tipareste-oficiale .fisa-tipar-of { display: block; font-size: 12.5px; }
  .fisa-tipar-of .ft-barem { break-before: page; }
  .fisa-tipar-of .figura-banca img { max-width: 60mm; }
}
@media print {
  body.tipareste-generate > *:not(.fisa-tipar-gen) { display: none !important; }
  body.tipareste-generate .fisa-tipar-gen { display: block; font-size: 12.5px; }
  .fisa-tipar-gen .ft-barem { break-before: page; }
  .fisa-tipar-gen .figura svg { max-width: 220px; }
}
.generate .lista-probleme { list-style: none; margin: 0; padding: 0; }
.generate .lista-probleme > li { margin-bottom: 12px; }
.generate .fisa-control { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 14px; }
.generate select { font: inherit; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--linie); background: #fff; }
#fisa-generata[hidden] { display: none; }
.olimpiada .lista-probleme { list-style: none; margin: 0; padding: 0; }
.olimpiada .problema { border: 1px solid var(--linie); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; min-width: 0; }
.olimpiada .actiuni { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.olimpiada .rez-idee { margin-top: 10px; background: var(--mov-fundal); border-left: 4px solid var(--mov); padding: 8px 12px; border-radius: 0 6px 6px 0; }
.olimpiada .rez-idee[hidden], .olimpiada[hidden] { display: none; }
.generate .problema.asemanatoare { margin-top: 0; border: 1px solid var(--linie); border-radius: 10px; padding: 14px 16px; min-width: 0; }
.generate .actiuni { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.optiune { min-width: 0; overflow-x: auto; }
.pas-titlu, .pas-nota, .text-enunt, .rezultat-text, .subpuncte li, .raspuns-sim, .optiuni-inline > span { overflow-x: auto; overflow-y: hidden; max-width: 100%; overflow-wrap: anywhere; }
.problema, .corp, .rezolvare, .sectiune, .panou { min-width: 0; }
.pas, .rezultat, .barem-sub, .pas-text { overflow-x: auto; overflow-y: hidden; max-width: 100%; }

.intro { max-width: 58ch; }
.memento-corp p, .memento-corp li { max-width: 62ch; }
.descriere, .nota-verificare { max-width: 54ch; }
.problema > .text-enunt { max-width: 68ch; }
.nota-verificare { margin-left: auto; margin-right: auto; }
.descriere a, .jos a, .memento-corp a { text-decoration: underline; text-underline-offset: 2px; }
.katex-display { max-width: 100%; overflow-x: auto; overflow-y: hidden; }
.oficiale .mai-multi { display: block; margin: 4px auto 0; }
.oficiale .mai-multi[hidden] { display: none; }
.filtre-buton, .filtre-cap, .filtre-fundal { display: none; }
.filtre-foaie, .filtre-corp { display: contents; }
.filtre-corp > .rand + .rand { margin-top: 12px; }

@media (min-width: 768px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
}
@media screen {
  #generator:empty { min-height: 100vh; }
  #lista-subiecte:empty, #lista-probleme:empty { min-height: 100vh; }
  .lista-probleme > .problema { content-visibility: auto; contain-intrinsic-size: auto 260px; }
}

@keyframes mcs-apare { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes mcs-intra { from { opacity: .35; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.exercitiu.intra { animation: mcs-intra .26s cubic-bezier(.16, 1, .3, 1); }
.pasi > .pas, .rezultat, .rezolvare:not([hidden]), .feedback:not([hidden]), #oficial-unu > .problema, .raspuns-sim:not([hidden]), #oficial-fisa:not([hidden]), .fisa-lista > li {
  animation: mcs-apare .22s cubic-bezier(.16, 1, .3, 1);
}

@media screen and (max-width: 767px) {
  .pagina { padding: 8px 16px 24px; }
  .sus { position: relative; padding-right: 44px; min-height: 44px; }
  .sus > #mcs-nav-buton { position: absolute !important; right: -8px !important; top: 50% !important; margin: -22px 0 0 !important; }
  .sus > a:first-child { display: inline-flex; align-items: center; min-height: 44px; }
  .context { display: inline-flex; align-items: center; justify-content: flex-end; min-height: 44px; }
  h1 { margin: 14px 0 8px; text-wrap: balance; }
  .intro { margin: 0 auto 16px; font-size: 16px; text-wrap: pretty; }

  #generator { display: flex; flex-direction: column; }
  #generator > * { min-width: 0; }
  #generator > .panou:not(.cu-filtre) { order: 1; }
  .panou.cu-filtre { border: 0; padding: 0; margin-bottom: 16px; }
  .panou.cu-filtre > .descriere { margin: 10px 2px 0; }
  .panou.cu-filtre > .fisa-control { margin-top: 12px; }
  .filtre-buton {
    display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 0 16px; cursor: pointer;
    font: inherit; font-size: 15px; text-align: left; color: var(--text);
    background: #fff; border: 1px solid var(--linie); border-radius: 10px;
    touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: border-color .15s ease, background-color .15s ease;
  }
  .filtre-buton:active { background: var(--mov-fundal); }
  .filtre-buton:focus-visible { outline: 2px solid var(--mov); outline-offset: 2px; }
  .filtre-buton svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--mov); stroke-width: 2; stroke-linecap: round; }
  .filtre-rezumat { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--sters); }
  .filtre-eticheta { flex: none; font-weight: 700; color: var(--mov); }

  .filtre-fundal { display: block; position: fixed; inset: 0; z-index: 900; background: rgba(28, 26, 32, .4); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s; }
  .filtre-foaie {
    display: flex; flex-direction: column; position: fixed; left: 0; right: 0; bottom: 0; z-index: 901;
    max-height: min(86vh, calc(100% - 40px)); background: #fff; border-radius: 14px 14px 0 0;
    box-shadow: 0 -6px 24px rgba(28, 26, 32, .16); padding-bottom: env(safe-area-inset-bottom);
    transform: translateY(104%); visibility: hidden;
    transition: transform .28s cubic-bezier(.16, 1, .3, 1), visibility 0s linear .28s;
  }
  .filtre-deschise > .filtre-fundal { opacity: 1; visibility: visible; transition: opacity .2s ease; }
  .filtre-deschise > .filtre-foaie { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
  .filtre-cap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 20px; border-bottom: 1px solid var(--linie); }
  .filtre-titlu { margin: 0; font-size: 18px; }
  .filtre-gata { min-height: 44px; padding: 0 18px; border: 1px solid var(--mov); border-radius: 8px; background: var(--mov); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
  .filtre-gata:focus-visible { outline: 2px solid var(--mov); outline-offset: 2px; }
  .filtre-corp { display: block; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 14px 20px 24px; }
  .filtre-corp > .rand + .rand { margin-top: 16px; }
  html.filtre-blocat, html.filtre-blocat body { overflow: hidden; }

  .eticheta { flex-basis: 100%; }
  .chipuri { gap: 8px; }
  .chip { min-height: 44px; padding: 8px 14px; font-size: 15px; touch-action: manipulation; }
  select { min-height: 44px; font-size: 16px; }
  .tipuri > summary { display: flex; align-items: center; min-height: 44px; padding: 0 12px; }
  .tipuri-lista { grid-template-columns: 1fr; gap: 0; padding: 4px 4px 8px; }
  .bifa { align-items: center; gap: 12px; min-height: 44px; padding: 6px 8px; border-radius: 8px; }
  .bifa input { width: 20px; height: 20px; margin: 0; }

  .actiuni { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .actiuni .buton-mic { white-space: normal; }
  .actiuni .buton, .actiuni .buton-2 { min-height: 48px; padding: 8px 12px; font-size: 16px; line-height: 1.25; touch-action: manipulation; }
  .exercitiu .actiuni > #btn-nou { grid-column: 1 / -1; order: -1; }
  .actiuni > :only-child { grid-column: 1 / -1; }
  .buton, .buton-2 { min-height: 48px; touch-action: manipulation; }
  .buton-mic { min-height: 44px; padding: 8px 14px; }
  .optiune { min-height: 48px; }
  .fisa-control { gap: 10px; }
  .fisa-control > .buton, .fisa-control > .buton-2, .fisa-control > select { flex: 1 1 calc(50% - 10px); }
  .fisa-control label { min-height: 44px; }
  .fisa-control label input[type="checkbox"] { width: 20px; height: 20px; }
  details.memento summary { min-height: 44px; }
  .jos a { display: inline-flex; align-items: center; min-height: 44px; }

  .oficiale .problema { border-width: 0 0 1px; border-radius: 0; padding: 14px 0; margin: 0; }
  .oficiale .oficial-unu { border: 1px solid var(--mov-linie); border-radius: 10px; padding: 14px; margin-bottom: 12px; }
}

@keyframes mcs-opac { from { opacity: .4; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .exercitiu.intra { animation: mcs-opac .15s linear; }
  .pasi > .pas, .rezultat, .rezolvare:not([hidden]), .feedback:not([hidden]), #oficial-unu > .problema, .raspuns-sim:not([hidden]), #oficial-fisa:not([hidden]), .fisa-lista > li { animation: none; }
  .filtre-foaie, .filtre-deschise > .filtre-foaie { transform: none; transition: opacity .15s linear, visibility 0s linear .15s; opacity: 0; }
  .filtre-deschise > .filtre-foaie { opacity: 1; transition: opacity .15s linear; }
}

@media print {
  .filtre-buton, .filtre-fundal, .filtre-cap { display: none !important; }
  .exercitiu, .pasi > .pas, .rezultat, .rezolvare, .fisa-lista > li { animation: none !important; }
}
.asemanatoare { margin-top: 16px; border-left: 3px solid var(--mov); padding-left: 14px; }
.tabel-md { display: block; overflow-x: auto; margin: 8px 0; max-width: 100%; }
.tabel-md table { border-collapse: collapse; font-size: 15px; }
.tabel-md th, .tabel-md td { border: 1px solid var(--linie); padding: 4px 10px; text-align: center; white-space: nowrap; }
.tabel-md th { background: var(--mov-fundal); font-weight: 600; }
.paragraf-md { display: block; }
.paragraf-md + .paragraf-md, .tabel-md + .paragraf-md { margin-top: 6px; }
@media print { .tabel-md table { font-size: 11.5px; } .tabel-md th, .tabel-md td { padding: 2px 8px; } }
