@keyframes formulaSlideIn{0%{opacity:0;transform:translateX(-20px)}to{opacity:1;transform:translateX(0)}}.formula-master-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;margin:2rem 0;overflow:hidden;box-shadow:0 4px 20px rgba(0,0,0,.08);transition:all .3s ease}.formula-master-card:hover{transform:translateY(-2px);box-shadow:0 8px 30px rgba(0,0,0,.12)}.formula-header{background:linear-gradient(135deg,#f8fafc,#f1f5f9);padding:1.5rem 2rem;border-bottom:1px solid #e5e7eb;display:flex;align-items:center;gap:1rem}.formula-header i{color:#3b82f6;font-size:1.5rem}.formula-header h4{margin:0;font-size:1.25rem;flex:1}.formula-tag{background:#3b82f6;color:#fff;padding:.25rem .75rem;border-radius:20px;font-size:.8rem;font-weight:600}.formula-tag.popular{background:linear-gradient(135deg,#f59e0b,#d97706)}.formula-content{padding:2rem}.formula-equation{background:#1f2937;color:#e5e7eb;padding:2rem;border-radius:12px;font-family:ui-monospace,Menlo,Monaco,"Courier New",monospace;font-size:1.25rem;text-align:center;margin-bottom:1.5rem;border:1px solid #374151;font-weight:600}.formula-explanation{margin-bottom:2rem}.formula-explanation p{margin:0;color:#6b7280;line-height:1.6;font-style:italic}.formula-variables{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem}.variable-item{display:flex;align-items:center;gap:.75rem;padding:.75rem;background:#f8fafc;border-radius:8px;border:1px solid #e5e7eb}.variable-symbol{width:40px;height:40px;background:linear-gradient(135deg,#3b82f6,#2563eb);border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:1rem;flex-shrink:0}.variable-desc{color:#374151;font-size:.9rem;font-weight:500}.formula-example{background:linear-gradient(135deg,#f0f9ff,#e0f2fe);border-top:1px solid #bfdbfe;padding:1.5rem 2rem}.formula-example h5{margin:0 0 1rem;color:#1e40af;font-size:1rem;font-weight:600}.example-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem}.example-item,.example-result{display:flex;justify-content:space-between;align-items:center;padding:.5rem 0}.example-item span{color:#6b7280;font-size:.9rem}.example-item strong,.formula-header h4{color:#1f2937;font-weight:600}.example-result{padding:1rem 0 0;margin-top:1rem;border-top:2px solid #bfdbfe}.result-highlight{color:#dc2626!important;font-size:1.1rem;font-weight:700}.formulas-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem;margin:2rem 0}.formula-compact-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:1.5rem;transition:all .3s ease;box-shadow:0 2px 8px rgba(0,0,0,.05)}.formula-compact-card:hover,.rule-card:hover{transform:translateY(-4px);box-shadow:0 8px 25px rgba(0,0,0,.1);border-color:#3b82f6}.formula-compact-header{display:flex;align-items:center;gap:.75rem;margin-bottom:1rem}.formula-compact-header i{color:#3b82f6;font-size:1.25rem}.formula-compact-header h4,.rule-card h4{color:#1f2937;font-size:1.1rem;font-weight:600}.formula-compact-header h4{margin:0}.formula-compact-equation{background:#1f2937;color:#e5e7eb;padding:1rem;border-radius:8px;font-family:ui-monospace,Menlo,Monaco,"Courier New",monospace;font-size:.9rem;text-align:center;margin-bottom:1rem;border:1px solid #374151}.formula-compact-desc{color:#6b7280;font-size:.9rem;line-height:1.5;margin:0}.rule-of-thumb-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem;margin:2rem 0}.rule-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:2rem;text-align:center;transition:all .3s ease;box-shadow:0 2px 8px rgba(0,0,0,.05)}.rule-card:hover{border-color:#10b981}.rule-icon{width:60px;height:60px;background:linear-gradient(135deg,#10b981,#059669);border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 1.5rem;color:#fff;font-size:1.5rem}.rule-card h4{margin:0 0 1rem}.rule-equation{background:#f0f9ff;border:1px solid #bfdbfe;border-radius:8px;padding:1rem;font-family:ui-monospace,Menlo,Monaco,"Courier New",monospace;font-size:.9rem;color:#1e40af;font-weight:600;margin-bottom:1rem}.rule-card p{margin:0;color:#6b7280;font-size:.9rem;line-height:1.5}.complexity-indicator{display:flex;gap:.5rem;margin-top:1rem}.complexity-dot{width:8px;height:8px;border-radius:50%;background:#e5e7eb}.complexity-dot.active{background:#3b82f6}.formula-demo{background:#f8fafc;border:1px solid #e5e7eb;border-radius:12px;padding:2rem;margin:2rem 0}.demo-inputs{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-bottom:1.5rem}.demo-input{display:flex;flex-direction:column;gap:.5rem}.demo-input label{font-weight:500;color:#374151;font-size:.9rem}.demo-input input{padding:.75rem;border:1px solid #d1d5db;border-radius:6px;font-size:.9rem}.demo-result{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:1.5rem;text-align:center}@media (max-width:768px){.formula-header{flex-direction:column;text-align:center;gap:.75rem}.formula-equation{font-size:1rem;padding:1.5rem}.demo-inputs,.example-grid,.formula-variables,.formulas-grid,.rule-of-thumb-grid{grid-template-columns:1fr}}@media print{.formula-master-card{break-inside:avoid;box-shadow:none;border:1px solid #ccc}.formula-equation{background:#f8f9fa;color:#000;border:1px solid #ccc}}.formula-master-card{animation:formulaSlideIn .6s ease-out}.ref-stats-grid{display:flex;flex-direction:column;gap:1rem;margin-bottom:1.5rem}.ref-stat-item{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:1rem;transition:all .3s ease}.ref-stat-item.highlight{background:linear-gradient(135deg,#f0f9ff 0,#e0f2fe 100%);border-color:#93c5fd;border-left:4px solid #3b82f6}.ref-stat-item:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,.08)}.stat-icon{background:#e0f2fe;color:#3b82f6;width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;margin-bottom:.75rem}.ref-stat-item.highlight .stat-icon{background:#3b82f6;color:#fff}.stat-content{margin-left:0}.stat-label{font-size:.875rem;color:#6b7280;font-weight:500;margin-bottom:.25rem;text-transform:uppercase;letter-spacing:.05em}.stat-value{font-size:.95rem;color:#1f2937;font-weight:600;margin-bottom:.75rem;line-height:1.4}.stat-badges{display:flex;gap:.5rem;flex-wrap:wrap}.stat-badge{background:#3b82f6;color:#fff;font-size:.75rem;padding:.25rem .75rem;border-radius:20px;font-weight:500}.stat-badge:nth-child(2){background:#10b981}.stat-progress{margin-top:.75rem}.progress-bar{height:6px;background:#e5e7eb;border-radius:3px;overflow:hidden;margin-bottom:.5rem}.progress-fill{height:100%;background:linear-gradient(90deg,#10b981,#3b82f6);border-radius:3px}.progress-labels{display:flex;justify-content:space-between;font-size:.75rem;color:#6b7280}.stat-tags{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:.5rem}.application-tag{background:#f3f4f6;color:#1f2937;font-size:.75rem;padding:.25rem .75rem;border-radius:6px;border:1px solid #e5e7eb;font-weight:500}.application-tag:nth-child(1){background:#dbeafe;color:#1e40af;border-color:#bfdbfe}.application-tag:nth-child(2){background:#fef3c7;color:#92400e;border-color:#fde68a}.application-tag:nth-child(3){background:#dcfce7;color:#166534;border-color:#bbf7d0}.detailed-calc-btn{display:flex;align-items:center;justify-content:center;gap:.75rem;width:100%;background:linear-gradient(135deg,#3b82f6,#1d4ed8);color:#fff;padding:.875rem 1.5rem;border-radius:10px;font-weight:600;text-decoration:none;transition:all .3s ease;border:0;cursor:pointer;font-size:.95rem;text-align:center}.detailed-calc-btn span{text-align:center;flex:1}.detailed-calc-btn:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(37,99,235,.3);color:#fff;text-decoration:none}.calculator-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;margin-bottom:1.5rem;box-shadow:0 4px 6px rgba(0,0,0,.05)}.calculator-header{display:flex;align-items:center;gap:.75rem;margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:1px solid #e5e7eb}.calculator-header i{color:#3b82f6;font-size:1.5rem}.calculator-header h4{margin:0;color:#1f2937;font-size:1.1rem;font-weight:600}@media (max-width:768px){.ref-stat-item{padding:.875rem}.stat-value{font-size:.9rem}.detailed-calc-btn{padding:.75rem 1.25rem;font-size:.9rem}.stat-badges,.stat-tags{font-size:.7rem}.application-tag{padding:.2rem .6rem}}@media (min-width:769px) and (max-width:1024px){.ref-stats-grid{gap:.875rem}.ref-stat-item{padding:.875rem}}