/* 13 Nov 2026: calculators, comparison tables, solution pages. Same tokens as tools.css; transform + opacity only. */
.stool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(16px, 3vw, 36px); align-items: start; padding-bottom: 64px; }
@media (max-width: 900px) { .stool { grid-template-columns: minmax(0, 1fr); } }
.stool .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.stool .fields .field.wide { grid-column: 1 / -1; }
@media (max-width: 480px) { .stool .fields { grid-template-columns: 1fr; } }
.stool .inp { min-width: 0; }
.rcs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.rc { background: var(--bg); border-radius: 16px; padding: 14px 16px; min-width: 0; }
.rc span { display: block; font-size: 13px; color: var(--muted); line-height: 1.3; }
.rc b { display: block; font-weight: 400; font-size: clamp(22px, 3.2vw, 30px); letter-spacing: -.025em; line-height: 1.15; margin-top: 6px; overflow-wrap: anywhere; }
.rc.big b { font-weight: 300; font-size: clamp(28px, 4vw, 40px); }
.n { color: var(--muted); font-size: 14.5px; margin-top: 14px; }
.n b { color: var(--fg); font-weight: 650; }
.cp { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: start; background: var(--bg); border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; }
.cp p { font-weight: 550; overflow-wrap: anywhere; }
.cp small { grid-column: 1 / -1; color: var(--muted); font-size: 12.5px; font-family: var(--mono); }
.cp .icon { min-width: 64px; }
.stool canvas { width: 100%; height: auto; border-radius: 14px; display: block; box-shadow: 0 0 0 1px var(--line); }
.stool textarea.inp { min-height: 96px; }
.ex { margin-top: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); border-radius: 18px; padding: 18px 20px; max-width: 820px; }
.ex b { font-weight: 650; }
.ex p { margin: 0; color: var(--muted); }
.ex p + p { margin-top: 8px; }
.ex .mono { display: block; margin-bottom: 10px; }
.tblw { overflow-x: auto; margin: 18px 0 8px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); background: var(--card); -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: 0; }
.tbl thead th { font: 500 12.5px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tbl tbody th { font-weight: 600; width: 22%; }
.tbl td { color: var(--muted); }
.tbl td:last-child { color: var(--fg); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
@media (max-width: 760px) { .two { grid-template-columns: minmax(0, 1fr); } }
.two .core h3 { font-size: 20px; font-weight: 400; letter-spacing: -.02em; margin-bottom: 10px; }
.two ul, .sec ul.dots { padding-left: 18px; color: var(--muted); display: grid; gap: 8px; }
.sec ul.dots { max-width: 64ch; margin-top: 10px; }
.src { font-size: 13px; color: var(--muted); margin-top: 14px; max-width: 80ch; }
.src a { text-underline-offset: 3px; overflow-wrap: anywhere; }
.sec .prose { max-width: 64ch; }
.sec .prose p { color: var(--muted); margin-bottom: 12px; }
.hero h1 { max-width: 18ch; }
.tgrid.t3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .tgrid.t3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tgrid.t3 { grid-template-columns: minmax(0, 1fr); } }
.tgrid.t3 .tcard .core { min-height: 190px; }
.tgrid.t3 .tcard h2 { font-size: clamp(22px, 2.2vw, 28px); }
.sec.more .tgrid { padding-bottom: 0; margin-top: 18px; }
@media (prefers-reduced-motion: reduce) { .tcard { transition: none; } }

.stool .fields { align-items: start; }
@media (max-width: 640px) {
  .tbl.stack { min-width: 0; } .tbl.stack thead { display: none; }
  .tbl.stack tr, .tbl.stack th, .tbl.stack td { display: block; width: auto; }
  .tbl.stack tbody th { padding: 14px 16px 0; border: 0; }
  .tbl.stack td { border: 0; padding: 8px 16px; }
  .tbl.stack td:last-child { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .tbl.stack tr:last-child td:last-child { border-bottom: 0; }
  .tbl.stack td::before { content: attr(data-l); display: block; font: 500 11.5px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
}
.tbl[style] tbody th { width: 46%; }
.tgrid.t3 .tcard { display: flex; } .tgrid.t3 .tcard .core { flex: 1; }
