/* S05 original five-Math key-visual repair: accessible full diagram + mobile guided exploration */
.s05-math-concept-figure{box-sizing:border-box;container-type:inline-size;margin:1.5rem 0;background:#fff;border:1px solid #d1e0e5;border-radius:18px;padding:clamp(.65rem,2vw,1.2rem);min-width:0}
.s05-math-concept-figure .s05-math-guide{margin:0 0 .8rem;padding:.75rem .9rem;background:#e8f5fa;border:2px solid #237b9b;border-radius:12px;color:#153e58;font-weight:650;font-size:1rem;line-height:1.55}
.s05-math-concept-figure .s05-math-guide::before{content:"↔";font-size:1.4em;font-weight:800;margin-right:.5rem}
.s05-math-concept-figure .s05-math-pan-shell{position:relative;min-width:0}
.s05-math-concept-figure .s05-math-pan-shell::after{content:"→";pointer-events:none;position:absolute;top:30%;right:0;z-index:1;display:grid;place-items:center;width:2.4rem;height:3rem;color:#fff;background:#17658c;border-radius:1rem 0 0 1rem;font-weight:800;font-size:1.4rem;box-shadow:0 2px 6px #0003}
.s05-math-concept-figure .s05-math-figure-pan{overflow-x:auto;max-width:100%;overscroll-behavior-inline:contain;scrollbar-width:auto;scrollbar-color:#14678c #d8e9f0;min-width:0}
.s05-math-concept-figure .s05-math-figure-pan:focus-visible{outline:3px solid #14678c;outline-offset:3px}
.s05-math-concept-figure img{display:block;width:720px;max-width:none;height:auto}
.s05-math-concept-figure .s05-math-coverage{margin:.75rem 0;border:1px solid #ccdee6;border-radius:12px;background:#f4f9fb;padding:clamp(.65rem,2vw,1rem);min-width:0}
.s05-math-concept-figure .s05-math-coverage h3{font-size:1.05rem;line-height:1.4;margin:.1rem 0 .65rem;color:#173349}
.s05-math-concept-figure .s05-math-coverage ul{list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));gap:.6rem;padding:0;margin:0}
.s05-math-concept-figure .s05-math-coverage li{background:#fff;border:1px solid #d3e4e8;border-left:4px solid #167e8c;border-radius:8px;padding:.65rem .75rem;line-height:1.45;overflow-wrap:anywhere;font-size:.95rem}
.s05-math-concept-figure .s05-math-coverage strong{display:block;margin-bottom:.25rem;font-size:1rem}
.s05-math-concept-figure figcaption{font-size:1rem;line-height:1.65;color:#24425a;overflow-wrap:anywhere}
.s05-math-concept-figure figcaption a{overflow-wrap:anywhere}
.s05-math-concept-figure details{margin-top:.65rem;padding:.55rem .85rem;border-radius:10px;background:#f2f7fa}
.s05-math-concept-figure summary{cursor:pointer;font-weight:700}
.s05-math-concept-figure details p{margin:.65rem 0}
@container(min-width:600px){
 .s05-math-concept-figure img{width:100%;max-width:100%}
 .s05-math-concept-figure .s05-math-guide{display:none}
 .s05-math-concept-figure .s05-math-pan-shell::after{display:none}
 .s05-math-concept-figure .s05-math-figure-pan{overflow-x:visible}
}
