.math-content{max-width:100%;line-height:1.7;color:#374151}.math-content h1{font-size:2.25rem;font-weight:700;color:#111827;margin-bottom:1.5rem;line-height:1.2}.math-content h2{font-size:1.75rem;font-weight:600;color:#111827;margin-top:2rem;margin-bottom:1rem;padding-bottom:.5rem;border-bottom:2px solid #e5e7eb}.math-content h3{font-size:1.25rem;font-weight:600;color:#1f2937;margin-top:1.5rem;margin-bottom:.75rem}.math-content p{margin-bottom:1rem;line-height:1.7}.math-content ol,.math-content ul{margin-bottom:1rem;padding-left:1.5rem}.math-content li{margin-bottom:.5rem;line-height:1.7}.math-content table{width:100%;border-collapse:collapse;margin:1.5rem 0;background-color:#fff;border:1px solid #e5e7eb}.math-content table th{background-color:#f3f4f6;padding:.75rem;text-align:left;font-weight:600;color:#111827;border:1px solid #e5e7eb}.math-content table td{padding:.75rem;border:1px solid #e5e7eb;color:#374151}.math-content table tr:nth-child(2n){background-color:#f9fafb}.math-content .formula-box{background-color:#f0f9ff;border-left:4px solid #3b82f6;padding:1rem;margin:1.5rem 0;border-radius:.25rem;font-family:Courier New,monospace;font-size:1.125rem}.math-content .example-box{background-color:#f0fdf4;border-left:4px solid #10b981;padding:1rem;margin:1.5rem 0;border-radius:.25rem}.math-content .disclaimer-box{background-color:#fef8f0;border:1px solid #fed7aa;border-left:4px solid #f97316;padding:1rem;margin:1.5rem 0;border-radius:.25rem;font-size:.875rem;color:#92400e}.math-content .disclaimer-box strong{color:#9a3412;font-weight:600}.math-content .related-tools{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1rem;margin:1.5rem 0}.math-content .related-tool-card{background-color:#fff;border:2px solid #e5e7eb;border-radius:.5rem;padding:1rem;transition:all .2s;text-decoration:none;display:block}.math-content .related-tool-card:hover{border-color:#8b5cf6;background-color:#faf5ff;transform:translateY(-2px);box-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -1px rgba(0,0,0,.06)}.math-content .related-tool-card h4{font-size:1rem;font-weight:600;color:#111827;margin-bottom:.5rem;margin-top:0}.math-content .related-tool-card p{font-size:.875rem;color:#6b7280;margin:0;line-height:1.5}.math-content strong{color:#111827;font-weight:600}.math-content code{background-color:#f3f4f6;padding:.125rem .375rem;border-radius:.25rem;font-family:Courier New,monospace;font-size:.875em;color:#1f2937}.math-content blockquote{border-left:4px solid #8b5cf6;background-color:#faf5ff;padding:1rem;margin:1.5rem 0;font-style:italic;color:#5b21b6}.math-content .shape-diagram{background-color:#f8fafc;border:1px solid #e2e8f0;border-radius:.5rem;padding:1.5rem;margin:1.5rem 0;text-align:center}.math-content .shape-diagram img{max-width:100%;height:auto;margin-bottom:1rem}.math-content .shape-diagram figcaption{font-size:.875rem;color:#64748b;font-style:italic}.math-content .unit-notation{font-family:Times New Roman,serif;font-style:italic;color:#7c3aed}.math-content .formula{font-family:Cambria Math,Times New Roman,serif;font-size:1.125rem;color:#1e40af;margin:.5rem 0}@media (max-width:768px){.math-content h1{font-size:1.875rem}.math-content h2{font-size:1.5rem}.math-content h3{font-size:1.125rem}.math-content table{font-size:.875rem;display:block;overflow-x:auto}.math-content table td,.math-content table th{padding:.5rem}.math-content .related-tools{grid-template-columns:1fr}.math-content .disclaimer-box{font-size:.8125rem}.math-content .example-box,.math-content .formula-box{font-size:.9375rem;padding:.875rem}}@media (max-width:480px){.math-content h1{font-size:1.5rem}.math-content h2{font-size:1.25rem}.math-content h3{font-size:1rem}.math-content .related-tool-card{padding:.875rem}.math-content .shape-diagram{padding:1rem}}.math-content .info-accent{color:#3b82f6;font-weight:600}.math-content .geometry-accent{color:#10b981;font-weight:600}.math-content .algebra-accent{color:#8b5cf6;font-weight:600}.math-content .calculation-accent{color:#f59e0b;font-weight:600}@media print{.math-content .related-tool-card:hover,.math-content .related-tools{display:none}.math-content,.math-content h1,.math-content h2,.math-content h3{color:#000}.math-content .example-box,.math-content .formula-box{border-left:2px solid #000;background-color:#fff}}