/* Aula — seções didáticas (exemplos, sem widgets pesados) */

.aula-layout {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 0;
  align-items: start;
  max-width: 64rem;
  margin: 0 auto;
}

.aula-toc {
  position: sticky;
  top: 0;
  align-self: start;
  padding: 1.25rem 0.75rem 2rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-right: 1px solid var(--border);
  min-height: 100vh;
  background: rgba(12, 14, 18, 0.85);
}
.aula-toc-label {
  margin: 0 0 0.35rem;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtle, #6b7588);
}
.aula-toc a {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  text-decoration: none;
  padding: 0.25rem 0.35rem;
  border-radius: 2px;
  line-height: 1.3;
}
.aula-toc a:hover,
.aula-toc a.is-active {
  color: var(--text);
  background: rgba(110, 176, 255, 0.08);
}

.aula-page {
  max-width: 48rem;
  margin: 0;
  padding: 1.5rem 1.35rem 3rem;
}

.aula-hero {
  margin-bottom: 1.75rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}
.aula-kicker {
  margin: 0 0 0.35rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtle, #6b7588);
}
.aula-title {
  margin: 0 0 0.65rem;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.aula-page .lede {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.aula-page .lede.subtle { margin-top: 1rem; font-size: 0.82rem; }
.aula-page .lede b,
.aula-sec b { color: var(--text); }
.aula-page a { color: var(--accent); }

.aula-sec {
  margin: 0 0 2.2rem;
  scroll-margin-top: 1rem;
}
.aula-sec h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}
.aula-sec h2 .n {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--subtle, #6b7588);
  letter-spacing: 0.04em;
}
.sec-lead {
  margin: 1.1rem 0 0.55rem !important;
  font-size: 0.88rem !important;
  color: var(--text) !important;
}
.ex-calc {
  margin: 0.65rem 0 0.85rem !important;
  padding: 0.65rem 0.75rem;
  border-left: 2px solid #e8956a;
  background: rgba(20, 24, 32, 0.55);
  font-family: var(--mono);
  font-size: 0.82rem !important;
  color: var(--text) !important;
  line-height: 1.65 !important;
}
.aula-sec > p {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.ex-box {
  margin: 0 0 1rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: rgba(20, 24, 32, 0.7);
}
.ex-box > p {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.ex-box > p:last-child { margin-bottom: 0; }
.ex-setup {
  font-family: var(--mono);
  font-size: 0.82rem !important;
  color: var(--text) !important;
  line-height: 1.45 !important;
}
.ex-math {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 0.65rem 0 0.85rem;
}
.ex-math > div {
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: rgba(12, 14, 18, 0.55);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.ex-math span {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--subtle, #6b7588);
}
.ex-math b {
  font-size: 0.95rem;
  color: var(--text);
}
.ex-math em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: #e8956a;
}

.aula-situations {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0.65rem 0 0.85rem;
}
.sit {
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.7rem 0.8rem;
  background: rgba(20, 24, 32, 0.65);
}
.sit h3 {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  color: var(--text);
}
.sit.down h3 { color: #f07178; }
.sit.up h3 { color: #3dd68c; }
.sit.flat h3 { color: #f5c15c; }
.sit p {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}
.sit-result {
  margin: 0.45rem 0 0 !important;
  padding-top: 0.4rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem !important;
  color: var(--text) !important;
}
.sit-result.neg { color: var(--down) !important; }
.sit-result.pos { color: var(--up) !important; }

.aula-bullets {
  margin: 0.35rem 0 0.75rem;
  padding: 0 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}
.aula-bullets li { margin: 0.3rem 0; }

.aula-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 0.75rem 0;
}
.aula-card {
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.75rem 0.8rem;
  background: rgba(20, 24, 32, 0.7);
}
.aula-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  font-family: var(--mono);
}
.aula-card.call h3 { color: #e8956a; }
.aula-card.put h3 { color: #6eb0ff; }
.aula-card p {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}
.aula-card p:last-child { margin-bottom: 0; }
.ex-line {
  font-family: var(--mono) !important;
  font-size: 0.75rem !important;
  color: var(--text) !important;
  padding-top: 0.35rem;
  border-top: 1px solid var(--border);
}

.aula-steps {
  margin: 0.5rem 0 0;
  padding: 0 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.aula-steps li { margin: 0.4rem 0; }

.aula-cta { margin: 1.25rem 0 0; }
.cta-btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--bg) !important;
  background: var(--accent);
  padding: 0.55rem 0.95rem;
  border-radius: 2px;
}
.cta-btn:hover { filter: brightness(1.08); }

.note {
  margin: 0.45rem 0 0 !important;
  font-size: 0.82rem !important;
  color: var(--subtle, #6b7588) !important;
}

.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}
.story > div {
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.65rem 0.75rem;
  background: rgba(20, 24, 32, 0.7);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.story span {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}
.story b { font-size: 0.95rem; }
.story small {
  font-size: 0.78rem;
  color: var(--subtle, #6b7588);
  line-height: 1.4;
}

.cap-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 0.75rem 0 0.65rem;
}
.cap {
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.7rem 0.8rem;
  background: rgba(20, 24, 32, 0.7);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.cap h3 {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--subtle, #6b7588);
}
.cap.spot h3 { color: #8b95a8; }
.cap.opt h3 { color: #e8956a; }
.cap > b {
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0.15rem 0;
}
.cap.opt > b { color: #e8956a; }
.cap.spot > b { color: #c5cddb; }
.cap > small {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}
.cap > p {
  margin: 0.45rem 0 0 !important;
  padding-top: 0.4rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem !important;
  color: var(--muted) !important;
  line-height: 1.4 !important;
}

.cap-bar {
  margin: 0 0 1rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: rgba(12, 14, 18, 0.45);
}
.cap-bar-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr 3.5rem;
  gap: 0.5rem;
  align-items: center;
  margin: 0.3rem 0;
}
.cap-bar-row span {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
}
.cap-bar-row em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.75rem;
  text-align: right;
  color: var(--text);
}
.cap-track {
  height: 10px;
  background: #1a212b;
  border-radius: 2px;
  overflow: hidden;
}
.cap-track i {
  display: block;
  height: 100%;
  background: #8b95a8;
  border-radius: 2px;
}
.cap-bar-row.opt .cap-track i { background: #e8956a; }
.cap-bar-row.opt em { color: #e8956a; }
.cap-bar > p {
  margin: 0.45rem 0 0 !important;
  font-size: 0.78rem !important;
  color: var(--muted) !important;
}
.cap-bar > p b { color: var(--text); }

.expose-bars {
  margin: 0.35rem 0 1rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: rgba(12, 14, 18, 0.45);
}
.expose-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr 2.2rem;
  gap: 0.45rem;
  align-items: center;
  margin: 0.28rem 0;
}
.expose-row span {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
}
.expose-row em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.75rem;
  text-align: right;
  color: var(--text);
}
.expose-track {
  height: 10px;
  background: #1a212b;
  border-radius: 2px;
  overflow: hidden;
}
.expose-track i {
  display: block;
  height: 100%;
  background: #8b95a8;
  border-radius: 2px;
}
.expose-row.opt .expose-track i { background: #e8956a; }
.expose-row.opt em { color: #e8956a; }
.expose-row.hot .expose-track i { background: #f5c15c; }
.expose-row.hot em { color: #f5c15c; }
.expose-bars > p {
  margin: 0.4rem 0 0 !important;
  font-size: 0.72rem !important;
  color: var(--subtle, #6b7588) !important;
}

.paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 0.55rem 0 1rem;
}
.path {
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.65rem 0.7rem;
  background: rgba(20, 24, 32, 0.65);
}
.path h3 { margin: 0 0 0.3rem; font-size: 0.88rem; }
.path.bad h3 { color: #f07178; }
.path.mid h3 { color: #f5c15c; }
.path.good h3 { color: #3dd68c; }
.path p {
  margin: 0 0 0.3rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}
.path-r {
  margin: 0.4rem 0 0 !important;
  padding-top: 0.35rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem !important;
  color: var(--text) !important;
}
.path-r.neg { color: var(--down, #f07178) !important; }
.path-r.pos { color: var(--up, #3dd68c) !important; }

.kpis, .defs, .formulas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}
.defs, .formulas { grid-template-columns: 1fr 1fr; }
.kpis > div, .defs > div, .formulas > div {
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.55rem 0.65rem;
  background: rgba(20, 24, 32, 0.7);
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}
.kpis span, .defs span, .formulas span {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--subtle, #6b7588);
}
.kpis b, .defs b, .formulas b {
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}
.kpis small, .defs small, .formulas small {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}
.defs em, .formulas em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #22d3ee;
  margin-top: 0.2rem;
}

.chart-fig {
  margin: 0.4rem 0 0.85rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: rgba(12, 14, 18, 0.55);
  padding: 0.55rem 0.5rem 0.55rem;
}
.chart-title {
  margin: 0 0.35rem 0.35rem !important;
  font-family: var(--mono);
  font-size: 0.72rem !important;
  color: var(--text) !important;
  letter-spacing: 0.02em;
}
.chart-fig svg { display: block; width: 100%; height: auto; }
.chart-fig figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  align-items: center;
  margin: 0.25rem 0.35rem 0.15rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
}
.chart-read {
  margin: 0.35rem 0.35rem 0.1rem !important;
  font-size: 0.8rem !important;
  color: var(--muted) !important;
  line-height: 1.45 !important;
}
.lg { display: inline-flex; align-items: center; gap: 0.3rem; }
.lg i { width: 14px; height: 3px; display: inline-block; }
.lg.opt i { background: #e8956a; }
.lg.spot i { background: #8b95a8; }
.lg.perp i { background: #6eb0ff; }

.table-scroll { overflow-x: auto; margin: 0.35rem 0 0.5rem; }
.aula-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.aula-table th, .aula-table td {
  text-align: left;
  padding: 0.42rem 0.5rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.aula-table th {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--subtle, #6b7588);
}
.aula-table td { color: var(--text); font-variant-numeric: tabular-nums; }
.aula-table td:first-child { color: var(--muted); font-variant-numeric: normal; }
.aula-table .pos { color: var(--up, #3dd68c); }
.aula-table .neg { color: var(--down, #f07178); }
.aula-table tr.is-mark td { background: rgba(34, 211, 238, 0.06); }
.aula-table.tight td:last-child { color: var(--text); }

.bar {
  display: block;
  width: 5.5rem;
  height: 6px;
  background: #1a212b;
  border-radius: 1px;
  overflow: hidden;
}
.bar i {
  display: block;
  width: var(--w, 50%);
  height: 100%;
  background: #e8956a;
}

.mini { display: block; width: 100%; height: auto; margin: 0 0 0.45rem; }

.rails { display: flex; flex-direction: column; gap: 0.85rem; margin: 0.75rem 0 0.5rem; }
.rail p {
  margin: 0 0 0.3rem !important;
  font-family: var(--mono);
  font-size: 0.62rem !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--subtle, #6b7588) !important;
}
.rail-bar {
  display: grid;
  height: 10px;
  border-radius: 2px;
  overflow: hidden;
}
.rail-bar.call { grid-template-columns: 42% 58%; }
.rail-bar.put { grid-template-columns: 38% 62%; }
.rail-bar.call i:first-child, .rail-bar.put i:last-child { background: rgba(240, 113, 120, 0.55); }
.rail-bar.call i:last-child, .rail-bar.put i:first-child { background: rgba(61, 214, 140, 0.55); }
.rail-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 0.28rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
}
.rail-ticks .k { color: #f472b6; }
.rail-ticks .be { color: #22d3ee; }

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin: 0.65rem 0 1rem;
}
.cmp {
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.75rem 0.85rem;
  background: rgba(20, 24, 32, 0.7);
}
.cmp h3 {
  margin: 0 0 0.45rem;
  font-family: var(--mono);
  font-size: 0.82rem;
}
.cmp.opt h3 { color: #e8956a; }
.cmp.perp h3 { color: #6eb0ff; }
.cmp ul {
  margin: 0;
  padding: 0 0 0 1rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}
.cmp li { margin: 0.28rem 0; }
.cmp b { color: var(--text); }

.gloss {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin: 0.5rem 0 1rem;
}
.gloss > div {
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.45rem 0.55rem;
  background: rgba(20, 24, 32, 0.55);
}
.gloss span {
  display: block;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--subtle, #6b7588);
  margin-bottom: 0.15rem;
}
.gloss b { font-size: 0.82rem; font-weight: 500; }

@media (max-width: 820px) {
  .aula-layout { grid-template-columns: 1fr; }
  .aula-toc {
    position: relative;
    min-height: 0;
    flex-direction: row;
    flex-wrap: wrap;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem;
  }
  .aula-toc-label { width: 100%; }
  .aula-split,
  .story,
  .paths,
  .compare-grid,
  .cap-compare,
  .gloss,
  .kpis { grid-template-columns: 1fr; }
  .ex-math { grid-template-columns: 1fr; }
  .aula-page { max-width: none; }
}
