/* STEP 49-9: Shared legend details layout (all legend single pages).
   Archive pages and weapon pages use their existing layouts. */
body.single-legend #sidebar{display:none!important}
body.single-legend #content-in{display:block!important;box-sizing:border-box;width:calc(100% - 32px);max-width:1000px;margin:0 auto;padding:20px 0 44px}
body.single-legend #main{display:block;box-sizing:border-box!important;float:none!important;width:100%!important;max-width:100%!important;margin:0 auto!important}
body.single-legend .apecle-legend-showcase{box-sizing:border-box;color:#24343b;font-size:16px;line-height:1.75}
body.single-legend .apecle-legend-showcase *{box-sizing:border-box}
body.single-legend .apecle-legend-showcase a{color:#207672}
body.single-legend .apecle-legend-showcase section[id]{scroll-margin-top:24px}
body.single-legend .apecle-legend-intro{background:#f1f7f6;border:1px solid #d5e6e3;border-radius:12px;padding:22px 24px;margin:20px 0 14px}
body.single-legend .apecle-legend-intro-label{display:block;margin-bottom:9px;font-size:12px;font-weight:700;letter-spacing:.08em;color:#367b78}
body.single-legend .apecle-legend-intro-meta{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:0 0 12px;font-size:14px;font-weight:650}
body.single-legend .apecle-legend-class-pill{display:inline-block;background:#d9ebe8;color:#1c6662;padding:3px 9px;border-radius:99px;font-size:12px}
body.single-legend .apecle-legend-intro-summary{margin:0;line-height:1.75;font-size:15px}
body.single-legend .apecle-legend-quickstats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 16px}
body.single-legend .apecle-legend-quickstats>div{border:1px solid #dbe7e7;background:#fff;border-radius:10px;text-align:center;padding:13px 8px}
body.single-legend .apecle-legend-quickstats dt{font-size:12px;line-height:1.4;color:#52676e;margin-bottom:3px;font-weight:650}
body.single-legend .apecle-legend-quickstats dd{font-size:22px;line-height:1.4;font-weight:750;margin:0;color:#206d68}
body.single-legend .apecle-legend-jumplinks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 30px}
body.single-legend .apecle-legend-jumplinks a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px;text-align:center;border:1px solid #d0e2e1;border-radius:8px;background:#fff;text-decoration:none;font-weight:700;font-size:13px;line-height:1.35}
body.single-legend .apecle-legend-jumplinks a:hover,body.single-legend .apecle-legend-jumplinks a:focus-visible{outline:2px solid #2b837f;outline-offset:1px;background:#f1f7f6}
body.single-legend .apecle-legend-showcase section>h2{background:#2b837f;color:#fff;font-size:20px;line-height:1.45;margin:30px 0 16px;padding:12px 16px;border-radius:5px;border:none}
body.single-legend .apecle-legend-ability-list{display:grid;grid-template-columns:1fr;gap:12px}
body.single-legend .apecle-legend-ability-card{margin:0;border:1px solid #dce7e6;background:#fff;border-radius:10px;padding:20px}
body.single-legend .apecle-legend-ability-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}
body.single-legend .apecle-legend-ability-type{display:block;color:#63807d;font-size:12px;font-weight:700;line-height:1.4;margin:0 0 3px}
body.single-legend .apecle-legend-ability-card h3{margin:0;padding:0;border:none;background:none;font-size:18px;line-height:1.5;color:#23353b}
body.single-legend .apecle-legend-ct-pill{flex:none;white-space:nowrap;background:#e7f3f0;color:#1d706b;padding:5px 10px;border-radius:7px;font-size:13px;font-weight:750}
body.single-legend .apecle-legend-ability-count{font-size:13px;color:#536a70;margin:0 0 5px}
body.single-legend .apecle-legend-ability-effect{font-size:15px;line-height:1.8;margin:0;white-space:pre-line;overflow-wrap:anywhere}
body.single-legend .apecle-legend-upgrade-level{margin:0 0 22px}
body.single-legend .apecle-legend-upgrade-level>h3{margin:0 0 10px;padding:0;border:0;background:none;font-size:17px;color:#24343b}
body.single-legend .apecle-legend-upgrade-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body.single-legend .apecle-legend-upgrade-card{min-width:0;border:1px solid #dce7e6;border-radius:10px;padding:15px 16px;background:#fff}
body.single-legend .apecle-legend-upgrade-title{display:flex;align-items:flex-start;gap:10px;line-height:1.5;margin-bottom:10px}
body.single-legend .apecle-legend-upgrade-title strong{font-size:15px;overflow-wrap:anywhere}
body.single-legend .apecle-legend-upgrade-choice{display:inline-flex;flex:none;align-items:center;justify-content:center;width:26px;height:26px;border-radius:6px;background:#e6f0f0;color:#206d68;font-size:13px;font-weight:750}
body.single-legend .apecle-legend-upgrade-card p{font-size:14px;line-height:1.75;margin:0;white-space:pre-line;overflow-wrap:anywhere}
body.single-legend .apecle-legend-strategy{margin:30px 0}
body.single-legend .apecle-legend-strategy>h2:first-child{margin-top:0}
body.single-legend .apecle-legend-verification dl{margin:0;border:1px solid #dae5e4;border-radius:10px;overflow:hidden}
body.single-legend .apecle-legend-verification dl>div{display:grid;grid-template-columns:minmax(120px,30%) minmax(0,1fr);border-bottom:1px solid #e2eceb}
body.single-legend .apecle-legend-verification dl>div:last-child{border-bottom:0}
body.single-legend .apecle-legend-verification dt,body.single-legend .apecle-legend-verification dd{font-size:13px;padding:11px 13px;margin:0;overflow-wrap:anywhere}
body.single-legend .apecle-legend-verification dt{background:#f4f7f7;font-weight:700}
body.single-legend .apecle-legend-disclaimer{font-size:12px;color:#677b80;margin:12px 0 0}
@media(max-width:640px){
 body.single-legend #content-in{width:100%;padding:10px 0 28px}
 body.single-legend .apecle-legend-intro{margin:12px 0;padding:16px}
 body.single-legend .apecle-legend-quickstats{gap:6px}
 body.single-legend .apecle-legend-quickstats>div{padding:11px 4px}
 body.single-legend .apecle-legend-quickstats dt{font-size:11px}
 body.single-legend .apecle-legend-quickstats dd{font-size:18px}
 body.single-legend .apecle-legend-jumplinks{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 body.single-legend .apecle-legend-showcase section>h2{font-size:18px;margin:26px 0 13px}
 body.single-legend .apecle-legend-ability-card{padding:14px}
 body.single-legend .apecle-legend-ability-card h3{font-size:16px}
 body.single-legend .apecle-legend-ability-effect{font-size:14px}
 body.single-legend .apecle-legend-upgrade-options{grid-template-columns:1fr;gap:9px}
 body.single-legend .apecle-legend-upgrade-card{padding:13px 14px}
 body.single-legend .apecle-legend-verification dl>div{grid-template-columns:minmax(112px,37%) minmax(0,1fr)}
}


/* STEP 49-7/49-9: Mobile polish and level distinction; legend detail pages only. */
body.single-legend .apecle-legend-jumplinks a{transition:background-color .15s ease,border-color .15s ease;gap:5px}
body.single-legend .apecle-legend-jumplinks a::after{content:"\2193";display:inline-block;font-size:14px;line-height:1;color:#287b77;font-weight:800}
body.single-legend .apecle-legend-jumplinks a:hover{background:#eff7f6;border-color:#7caaa7}
body.single-legend .apecle-legend-upgrade-level>h3{display:flex;align-items:center;gap:8px}
body.single-legend .apecle-legend-upgrade-level>h3::before{content:"";display:inline-block;width:5px;height:20px;border-radius:3px;background:#2881b5;flex:none}
body.single-legend .apecle-legend-upgrade-level--2 .apecle-legend-upgrade-card{border-color:#d3e5f0}
body.single-legend .apecle-legend-upgrade-level--2 .apecle-legend-upgrade-choice{background:#e9f3fb;color:#185f8f}
body.single-legend .apecle-legend-upgrade-level--3>h3::before{background:#9854b5}
body.single-legend .apecle-legend-upgrade-level--3 .apecle-legend-upgrade-card{border-color:#e9d8ef}
body.single-legend .apecle-legend-upgrade-level--3 .apecle-legend-upgrade-choice{background:#f6eafa;color:#70398a}
@media(max-width:640px){
 body.single-legend .apecle-legend-intro-summary{font-size:15px;line-height:1.8}
 body.single-legend .apecle-legend-quickstats dt{font-size:12px}
 body.single-legend .apecle-legend-quickstats dd{font-size:20px}
 body.single-legend .apecle-legend-jumplinks{margin-bottom:24px}
 body.single-legend .apecle-legend-jumplinks a{font-size:13px;padding:10px 5px;min-height:48px}
 body.single-legend .apecle-legend-ability-card h3{font-size:17px}
 body.single-legend .apecle-legend-ability-effect{font-size:15px;line-height:1.8}
 body.single-legend .apecle-legend-upgrade-card p{font-size:15px;line-height:1.8}
 body.single-legend .apecle-legend-showcase section[id]{scroll-margin-top:70px}
}
@media(max-width:360px){
 body.single-legend .apecle-legend-quickstats dd{font-size:18px}
 body.single-legend .apecle-legend-jumplinks a{font-size:12px}
}
@media(prefers-reduced-motion:reduce){
 body.single-legend .apecle-legend-jumplinks a{transition:none}
}
