.algo-guide { padding-bottom: 42px; }
.algo-guide-intro h1 { margin: 0 0 12px; font-size: clamp(34px, 4vw, 46px); letter-spacing: -1.5px; line-height: 1.15; }
.algo-guide-intro > p { color: var(--muted); font-size: 17px; line-height: 1.65; margin: 0; max-width: 750px; }
.algo-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 30px; scroll-margin-top: calc(var(--header-height) + 16px); }
.algo-tabs a { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 4px; font-size: 13px; line-height: 1.4; font-weight: 600; color: #b9c3cc; }
.algo-tabs a:hover { color: var(--text); border-color: #52728a; }
.algo-tabs a[aria-selected=true] { background: #102b3e; border-color: var(--blue); color: var(--blue-soft); }
.algo-panel { max-width: 850px; outline-offset: 8px; scroll-margin-top: calc(var(--header-height) + 24px); }
.algo-guide:not(.algo-ready) .algo-panel + .algo-panel { margin-top: 55px; border-top: 1px solid var(--line); padding-top: 30px; }
.algo-panel[hidden] { display: none; }
.algo-panel > h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.25; letter-spacing: -.8px; max-width: 800px; font-weight: 600; margin: 0 0 16px; }
.algo-lead { color: #bac3cb; font-size: 17px; line-height: 1.75; max-width: 790px; margin: 0 0 22px; }
.algo-guide h3 { font-size: 19px; line-height: 1.4; margin: 0 0 7px; letter-spacing: -.25px; font-weight: 600; }
.algo-guide p { overflow-wrap: break-word; }
.algo-takeaway { border-left: 2px solid var(--blue); background: #0d151c; padding: 16px 20px; margin: 26px 0 0; font-size: 15px; line-height: 1.75; color: #c7d0d8; }
.algo-reading-note { margin: 0 0 24px; font-size: 14px; color: #bac3cb; line-height: 1.75; max-width: 790px; }
.algo-reading-note strong { color: var(--text); }
.algo-reading-note em { font-style: normal; color: var(--text); }
.algo-coefficients { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 15px; line-height: 1.45; }
.algo-coefficients caption { text-align: left; color: var(--muted); font-size: 12px; padding: 0 0 12px; }
.algo-coefficients th, .algo-coefficients td { padding: 11px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.algo-coefficients thead th { font-size: 12px; font-weight: 500; color: #b5c1cb; background: #11181e; }
.algo-coefficients thead th:last-child { width: 124px; text-align: right; }
.algo-coefficients th[scope=row] { font-weight: 400; }
.algo-coefficients td { text-align: right; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.algo-coefficients tr[data-coefficient]:hover { background: #0f161c; }
.algo-table-group th { color: var(--muted); font-size: 10px; line-height: 1.6; letter-spacing: .8px; text-transform: uppercase; font-weight: 500; padding-top: 20px; }
.coefficient-positive { color: #a9d9bc; }
.coefficient-negative { color: #efb5a6; }
.coefficient-zero { color: var(--muted); }
.algo-table-notes { margin-top: 20px; }
.algo-table-notes p { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 9px 0; }
.algo-table-notes strong { color: #c7d0d8; font-weight: 500; }
.algo-steps { list-style: none; margin: 26px 0 0; padding: 0; }
.algo-steps li { display: grid; grid-template-columns: 38px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.algo-steps li > span { width: 34px; height: 34px; border: 1px solid #2d506a; border-radius: 50%; display: grid; place-items: center; color: var(--blue-soft); font-size: 14px; }
.algo-steps p, .algo-facts p { margin: 0; color: #aab5bf; font-size: 15px; line-height: 1.75; max-width: 700px; }
.algo-facts > div { padding: 20px 0; border-top: 1px solid var(--line); }
.algo-inline-link { font-size: 14px; margin: 20px 0 0; }
.algo-inline-link a { color: var(--blue-soft); }
.algo-myths { margin: 24px 0 0; }
.algo-myths > div { padding: 19px 0; border-top: 1px solid var(--line); }
.algo-myths dt { font-size: 18px; line-height: 1.5; font-weight: 600; margin-bottom: 7px; }
.algo-myths dd { color: #aab5bf; font-size: 15px; line-height: 1.75; margin: 0; }
.algo-receipts { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 16px; }
.algo-guide summary { cursor: pointer; min-height: 34px; font-size: 13px; line-height: 1.7; color: var(--blue-soft); }
.algo-guide details p { color: var(--muted); font-size: 13px; line-height: 1.85; max-width: 790px; }
.algo-guide details ul { padding-left: 18px; margin: 14px 0 0; }
.algo-guide details li { margin: 10px 0; font-size: 12px; line-height: 1.7; color: var(--blue-soft); }
.algo-guide details a { overflow-wrap: anywhere; }
.algo-carousel-controls { display: flex; align-items: center; justify-content: space-between; gap: 18px; max-width: 850px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.algo-carousel-controls[hidden] { display: none; }
.algo-carousel-controls button { min-height: 42px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 3px; background: transparent; font-size: 12px; }
.algo-carousel-controls button:hover { border-color: var(--blue); color: var(--blue-soft); }
#algo-position { color: var(--muted); font-size: 12px; }
.algo-edition-note { color: var(--muted); font-size: 12px; line-height: 1.8; max-width: 850px; margin-top: 20px; }
@media(max-width:600px) {
  .algo-guide-intro h1 { font-size: 34px; letter-spacing: -1.2px; }
  .algo-guide-intro > p { font-size: 15px; }
  .algo-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #36556c transparent; gap: 7px; padding: 4px 4px 10px; margin: 18px -4px 18px; }
  .algo-tabs a { flex: 0 0 auto; white-space: nowrap; padding: 9px 11px; font-size: 12px; min-height: 40px; }
  .algo-panel > h2 { font-size: 26px; letter-spacing: -.6px; }
  .algo-lead { font-size: 16px; line-height: 1.7; }
  .algo-reading-note { font-size: 13px; }
  .algo-coefficients { font-size: 13px; }
  .algo-coefficients th, .algo-coefficients td { padding: 10px; }
  .algo-coefficients thead th:last-child { width: 96px; }
  .algo-coefficients td { font-size: 16px; }
  .algo-table-group th { font-size: 9px; padding-top: 18px; }
  .algo-table-notes p { font-size: 12px; }
  .algo-takeaway { padding: 14px 16px; font-size: 14px; }
  .algo-steps li { grid-template-columns: 32px 1fr; gap: 12px; }
  .algo-steps li > span { width: 30px; height: 30px; }
  .algo-guide h3 { font-size: 18px; }
  .algo-myths dt { font-size: 17px; }
  .algo-steps p, .algo-facts p, .algo-myths dd { font-size: 14px; }
  .algo-carousel-controls { gap: 8px; }
}
