.math-guides { max-width: 68rem; margin-inline: auto; }
.math-guides .guide-breadcrumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .95rem; margin-bottom: 1.6rem; }
.math-guides .guide-breadcrumbs a, .math-guides .guide-links a { text-decoration: underline; text-underline-offset: .2em; }
.math-guides .guide-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 18rem),1fr)); gap: 1rem; margin-block: 1rem 2rem; }
.math-guides .guide-grid article { border: 1px solid #bfcfc7; border-radius: 11px; background: #f6faf7; padding: clamp(16px,3vw,25px); }
.math-guides h1 { font-size: clamp(2rem,5vw,3.6rem); line-height: 1.14; letter-spacing: -.04em; margin-block: .45em .4em; }
.math-guides h2 { font-size: clamp(1.28rem,2.5vw,1.62rem); line-height: 1.3; margin: 0 0 .65rem; }
.math-guides .guide-grid h3 { font-size: 1.11rem; line-height: 1.4; margin: 0 0 .5rem; }
.math-guides p, .math-guides li { font-size: 1.04rem; line-height: 1.75; }
.math-guides .guide-lead { font-size: 1.2rem; }
.math-guides .guide-article { max-width: 48rem; }
.math-guides .guide-byline { font-size: .91rem; color: #476258; }
.math-guides section { margin-top: 2.25rem; scroll-margin-top: 1rem; }
.math-guides .guide-formula { background: #edf5ee; border-radius: 8px; padding: .4rem .8rem; margin: 1rem 0; overflow-x: auto; }
.math-guides .guide-links { border-top: 1px solid #bfcfc7; padding-top: 1.2rem; }
.math-guides .guide-links ul { padding-inline-start: 1.4rem; }
.math-guides .percent-calculator { padding: clamp(15px, 3vw, 24px); border: 1px solid #a7c6b1; border-radius: 10px; background: #edf5ee; margin-block: 1.5rem; }
.math-guides .percent-calculator[hidden] { display: none; }
.math-guides .percent-calculator > label { max-width: 22rem; }
.math-guides .percent-calculator label { display: grid; gap: .35rem; font-weight: 650; }
.math-guides .percent-calculator select, .math-guides .percent-calculator input { min-height: 44px; padding: .5rem .65rem; border: 1px solid #789987; border-radius: 6px; font: inherit; color: #17352a; background: #fff; width: 100%; }
.math-guides .percent-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin-block: .9rem; }
.math-guides .percent-calculator output { display: block; min-height: 1.6em; margin-top: .65rem; font-weight: 700; }
