/* 수학 공식 모음 — 고유 레이아웃만 (박스/버튼/배경은 style_tools_base.css 통일) */
.wrap{ max-width:100%; padding:0 0 70px; }

.math-head{ margin-bottom:20px; }
.math-title{ font-size:38px; font-weight:800; margin:0; letter-spacing:-.02em; }
.math-sub{ margin:8px 0 0; color:#6b7280; font-size:13px; }

.math-filters{ margin-bottom:18px; }
.math-search{ width:100%; padding:10px 14px; border:1.5px solid #e5e7eb; font-size:14px; margin-bottom:12px; }
.math-cats{ display:flex; gap:8px; flex-wrap:wrap; }
.math-cat{ padding:6px 14px; border:1.5px solid #e5e7eb; background:#fff; font-size:13px; font-weight:600; color:#6b7280; cursor:pointer; }
.math-cat:hover{ border-color:#9ca3af; color:#111827; }
.math-cat.active{ background:#111827; color:#fff; border-color:#111827; }

.math-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:14px; }
.math-card{ border:1.5px solid #e2e8f0; border-radius:14px; padding:18px; background:#fff; }
.mc-cat{ font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:#2563eb; margin-bottom:6px; }
.mc-name{ font-size:15px; font-weight:800; color:#111827; margin-bottom:12px; }
.mc-formula{ font-family:'Cambria Math','Times New Roman',serif; font-size:18px; color:#111827; background:#f8fafc; border-radius:8px; padding:12px 14px; line-height:1.5; word-break:break-word; }
.mc-desc{ font-size:12px; color:#6b7280; margin-top:8px; }

.math-empty{ grid-column:1/-1; text-align:center; color:#9ca3af; padding:40px; }

@media (max-width:480px){ .math-title{ font-size:30px; } }
