.sg-page{background:#fff;color:#193d33}
.sg-shell{width:88%;max-width:1000px;margin:0 auto;padding:64px 0 72px}
.sg-shell [id]{scroll-margin-top:112px}
.sg-intro{display:grid;grid-template-columns:minmax(0,1fr) 88px;gap:42px;align-items:start;padding-bottom:32px}
.sg-intro h1{margin:0 0 18px;font-size:clamp(34px,4.2vw,50px);line-height:1.35;letter-spacing:0}
.sg-intro p{max-width:650px;margin:0 0 22px;font-size:16px;line-height:1.85;color:#647168}
.sg-intro .sg-name{margin-bottom:12px;font-size:14px;color:#193d33}
.sg-avatar{padding-top:8px}
.sg-avatar img{width:76px;height:96px;object-fit:contain}
.sg-primary{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 26px;background:#193d33;color:#fff;border:1px solid #193d33;font-size:16px}
.sg-primary:hover{background:#2a5145}
.sg-intro .sg-explain{margin:15px 0 0;font-size:14px;line-height:1.75}
.sg-shortcuts{display:flex;flex-wrap:wrap;gap:8px 32px;padding:8px 0 20px;border-bottom:1px solid #d7dcd5}
.sg-shortcuts a{padding:8px 0;font-size:15px;min-height:44px}
.sg-shortcuts a:hover,.sg-text-link:hover{text-decoration:underline;text-underline-offset:5px}
.sg-measure{padding:36px 0 30px}
.sg-shell h2{margin:0 0 22px;font-size:27px;line-height:1.5;letter-spacing:0}
.sg-dimensions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px;margin:0 0 22px}
.sg-dimensions>div{padding-left:18px;border-left:2px solid #b7c3b7}
.sg-dimensions dt{font-size:17px;color:#193d33;margin-bottom:8px}
.sg-dimensions dd{font-size:15px;color:#647168;line-height:1.8;margin:0}
.sg-text-link{display:inline-block;padding:8px 0;min-height:44px;color:#193d33;font-size:15px;text-decoration:underline;text-decoration-color:#a5b3a8;text-underline-offset:5px}
.sg-disclosure{border-top:1px solid #d7dcd5;border-bottom:0}
.sg-disclosure>summary{padding:23px 0;gap:20px;align-items:center;min-height:72px}
.sg-disclosure>summary strong{display:block;font-size:21px;font-weight:400;line-height:1.5;color:#193d33}
.sg-disclosure>summary small{display:block;font-size:14px;line-height:1.7;margin-top:4px;color:#647168}
.sg-indicator{font-style:normal;font-size:26px;font-weight:300;line-height:1;color:#647168}
.sg-disclosure[open]>summary .sg-indicator{transform:rotate(45deg)}
.sg-disclosure-body{padding:0 0 25px;max-width:760px}
.sg-disclosure-body>p{font-size:15px;line-height:1.85;margin-bottom:15px}
.sg-disclosure-body h3{font-size:17px;margin:18px 0 6px}
.sg-disclosure-body h3:first-child{margin-top:0}
.sg-disclosure-body article p{font-size:15px;line-height:1.85;margin:0 0 6px}
.sg-links{display:flex;flex-wrap:wrap;gap:0 28px;margin-top:8px}
.sg-reference{margin-top:14px;border-bottom:1px solid #d7dcd5}
.sg-reference>summary strong{font-size:17px}
.sg-reference-note{max-width:760px;font-size:14px;line-height:1.85;color:#647168;margin:0 0 24px;padding:16px 18px;background:#f5f3ed}
.sg-reference-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px 24px;padding-bottom:28px}
.sg-reference-card{min-width:0}
.sg-reference-card button{display:block;width:100%;padding:12px;border:1px solid #d7dcd5;background:#f8f7f3;color:#193d33;cursor:zoom-in}
.sg-reference-card img{width:100%;height:190px;object-fit:contain}
.sg-reference-card button small{display:block;margin-top:10px;font-size:12px}
.sg-reference-card h3{margin:12px 0 0;font-size:14px;line-height:1.7}
.sg-page #zenbo-dialog p{font-size:14px;line-height:1.8}
.sg-shell a:focus-visible,.sg-shell summary:focus-visible,.sg-shell button:focus-visible{outline:2px solid #ae925b;outline-offset:5px}
@media(max-width:760px){
 .sg-shell{width:88%;padding:34px 0 42px}
 .sg-shell [id]{scroll-margin-top:92px}
 .sg-intro{grid-template-columns:minmax(0,1fr) 54px;gap:16px;padding-bottom:24px}
 .sg-intro h1{font-size:32px;margin-bottom:14px}
 .sg-intro p{font-size:15px;margin-bottom:18px}
 .sg-intro .sg-name{font-size:13px;margin-bottom:10px}
 .sg-avatar img{width:54px;height:70px}
 .sg-primary{min-height:48px;padding:11px 22px;font-size:16px}
 .sg-intro .sg-explain{font-size:14px;line-height:1.85}
 .sg-shortcuts{gap:5px 24px;padding:0 0 13px}
 .sg-shortcuts a{font-size:15px}
 .sg-measure{padding:27px 0 22px}
 .sg-shell h2{font-size:23px;margin-bottom:20px}
 .sg-dimensions{grid-template-columns:1fr;gap:19px;margin-bottom:13px}
 .sg-dimensions>div{padding-left:14px}
 .sg-dimensions dt{font-size:16px;margin-bottom:4px}
 .sg-dimensions dd{font-size:15px}
 .sg-disclosure>summary{padding:20px 0;gap:16px}
 .sg-disclosure>summary strong{font-size:19px}
 .sg-disclosure>summary small{font-size:14px;margin-top:3px}
 .sg-disclosure-body{padding-bottom:22px}
 .sg-reference>summary strong{font-size:16px}
 .sg-reference-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 14px}
 .sg-reference-card button{padding:8px}
 .sg-reference-card img{height:150px}
 .sg-reference-card h3{font-size:13px}
 .sg-reference-note{padding:14px;font-size:14px}
}
@media(max-width:360px){.sg-intro{grid-template-columns:1fr}.sg-avatar{display:none}.sg-intro h1{font-size:30px}.sg-shortcuts{gap:4px 18px}}
@media(prefers-reduced-motion:reduce){.sg-page{scroll-behavior:auto}.sg-disclosure>summary .sg-indicator{transition:none}}

/* Keep every navigation link reachable when the phone is held horizontally. */
@media(max-width:760px){.sg-page>header #nav.open{max-height:calc(100vh - 72px);max-height:calc(100dvh - 72px);overflow-y:auto;overscroll-behavior:contain}}
