/* Single worksheet, preserving the approved layout with eight related cards below. */
.single-worksheet .breadcrumb{display:flex;align-items:center;gap:9px;flex-wrap:wrap;color:#61748a;font-size:11.5px;font-weight:600;padding:23px 0 20px;overflow-wrap:anywhere}
.single-worksheet .breadcrumb a:hover{color:#2563eb}
.single-worksheet .breadcrumb [aria-current=page]{color:#516c8b}
.page-title{font-size:32px;line-height:1.15;letter-spacing:-1px;font-weight:800;overflow-wrap:anywhere}
.page-desc{color:#62778d;font-size:13.5px;margin-top:9px;max-width:760px;white-space:pre-line;overflow-wrap:anywhere}
.worksheet-layout{display:grid;grid-template-columns:minmax(0,1fr) 318px;gap:28px;align-items:start;margin-top:26px}
.main-col,.worksheet-sidebar{min-width:0}
.paper-panel{border:1px solid #e0e9f2;background:#fff;border-radius:14px;overflow:hidden;box-shadow:var(--shadow)}
.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 19px;border-bottom:1px solid #e6edf5}
.panel-heading h2{font-size:15px;font-weight:800;letter-spacing:-.2px}
.panel-hint{font-size:11px;color:#61748a;font-weight:600}
.paper-stage{min-height:615px;background:#f2f6fb;display:grid;place-items:center;padding:29px 30px}
.preview-zoom-link{display:block;max-width:100%;cursor:zoom-in}
.worksheet-preview-image{display:block;height:568px;width:auto;max-width:100%;object-fit:contain;box-shadow:0 7px 28px #203d6220;background:#fff}
.paper-caption{padding:11px 18px;text-align:center;font-size:11px;color:#61748a;background:#fff;border-top:1px solid #e8eef5}
.preview-unavailable{display:grid;gap:16px;justify-items:center;text-align:center;color:#64748b;font-size:13px}
.worksheet-sidebar{display:grid;gap:16px}
.side-card{border:1px solid #e1eaf3;border-radius:14px;padding:21px;background:#fff;box-shadow:var(--shadow)}
.side-eyebrow{color:#087d74;font-weight:800;font-size:10px;letter-spacing:.09em;text-transform:uppercase}
.side-card h2{font-size:15px;font-weight:800;letter-spacing:-.2px;margin-bottom:13px}
.btn-primary,.btn-secondary{display:flex;justify-content:center;gap:9px;align-items:center;border-radius:9px;min-height:46px;width:100%;font-size:13px;font-weight:800;text-align:center;padding:9px}
.btn-primary{background:#2563eb;color:#fff;border:1px solid #2563eb;box-shadow:0 5px 13px #2563eb29}
.btn-primary:hover{background:#1d4ed8}
.btn-secondary{background:#fff;color:#234c75;border:1px solid #cedeea;margin-top:9px}
.btn-secondary:hover{background:#eef6ff}
.btn-primary:disabled,.btn-secondary:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}
.detail-list{margin:0}
.detail-row{display:flex;gap:10px;justify-content:space-between;border-bottom:1px solid #edf2f7;padding:9px 0;font-size:12px}
.detail-row:first-child{padding-top:0}
.detail-row:last-child{border:0;padding-bottom:0}
.detail-row dt{color:#61748a;flex-shrink:0}
.detail-row dd{margin:0;text-align:right;font-weight:750;color:#31516f;overflow-wrap:anywhere}
.browse-links{display:flex;flex-wrap:wrap;gap:6px}
.browse-links a{border:1px solid #dce7f1;border-radius:7px;color:#395c81;background:#f9fbff;padding:5px 8px;font-size:11px;font-weight:650;overflow-wrap:anywhere}
/* Single download button within article; colors remain shared with .btn-primary. */
.pws-worksheet-primary{margin-bottom:10px;}
.pws-download-inline{margin:12px 0 28px;max-width:180px}
.pws-download-inline .btn-primary {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    opacity: 1;
    visibility: visible;
}
.editorial.category-article{padding:10px 3px 0}
.single-no-preview .editorial.category-article{padding-top:0}
.editorial>h2,.worksheet-skills h2{font-size:21px;letter-spacing:-.4px;margin:10px 0}
.editorial .article-content{font-size:14px;line-height:1.85}
.editorial .article-content iframe,.editorial .article-content object{max-width:100%}
.worksheet-skills{padding:16px 3px 0}
.skills{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.skills a{padding:7px 10px;border-radius:7px;background:#eaf7f4;color:#087d74;font-size:11px;font-weight:750}
.more-section{border-top:1px solid #eaf0f6;margin-top:39px;padding:30px 0 48px}
.more-head{display:flex;gap:16px;align-items:center;justify-content:space-between;margin-bottom:17px}
.more-head h2{font-size:22px;letter-spacing:-.4px}
.more-head a{color:#2563eb;font-size:12px;font-weight:750}
.related-worksheet-card .arrow-circle{margin-left:auto;margin-top:4px}
.related-grid .preview-area{height:278px}
.related-grid .sheet-preview{height:250px;object-fit:contain}
.worksheet-zoom-dialog{border:0;border-radius:16px;box-shadow:0 24px 90px #102b4b66;padding:0;width:min(850px,calc(100% - 32px));max-height:90vh;color:#172b45}
.worksheet-zoom-dialog::backdrop{background:rgba(13,34,60,.55)}
.zoom-head{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-bottom:1px solid #e1eaf3}
.zoom-head h2{font-size:17px}
.zoom-head button{width:36px;height:36px;display:grid;place-items:center;background:#f0f4fa;color:#435a75;border:0;border-radius:8px}
.zoom-sheet{padding:20px;background:#f2f6fb;text-align:center}
.zoom-sheet img{display:block;max-width:100%;height:auto;margin:auto;background:#fff}
@media(min-width:761px) and (max-width:900px){.single-post .header .head-inner{gap:5px}}
@media(max-width:760px){
 .single-worksheet .breadcrumb{padding:18px 0 15px}
 .page-title{font-size:27px}
 .page-desc{font-size:12.5px}
 .worksheet-layout{grid-template-columns:1fr;margin-top:19px;gap:19px}
 .paper-stage{min-height:0;padding:18px 10px}
 .worksheet-preview-image{height:auto;width:min(100%,380px)}
 .worksheet-sidebar{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
 .single-post .header .mobile-menu-toggle{width:35px}
}
@media(max-width:690px){.related-grid .preview-area{height:242px}.related-grid .sheet-preview{height:219px}}
@media(max-width:440px){
 .page-title{font-size:25px}
 .panel-heading{padding:12px 14px}
 .panel-hint{font-size:10px}
 .worksheet-sidebar{grid-template-columns:1fr}
 .more-head{align-items:flex-start;flex-direction:column;gap:8px}
 .more-head h2{font-size:20px}
 .related-grid .preview-area{height:222px}
 .related-grid .sheet-preview{height:205px}
 .single-post .header .brand{font-size:16px;letter-spacing:-.6px}
 .single-post .header .brandmark{width:26px;height:26px;margin-right:5px}
 .single-post .header .generator-mobile-cta{font-size:11px;padding:0 7px;gap:4px}
 .single-post .header .custom-logo-link,.single-post .header .custom-logo{max-width:155px}
}
@media(max-width:340px){
 .single-post .header .brand{font-size:13px}
 .single-post .header .brandmark{width:23px;height:23px;margin-right:4px}
 .single-post .header .wrap.head-inner{gap:4px!important}
 .single-post .header .mobile-search-toggle,.single-post .header .mobile-menu-toggle{width:31px}
 .single-post .header .custom-logo-link,.single-post .header .custom-logo{max-width:125px}
}

/* Search remains the first sidebar item on single posts, including narrow screens. */
.worksheet-sidebar .pws-sidebar-search{grid-column:1/-1}
