/* Only template pages load these three approved mock-up adjustments. */
.template-detail .route-meta .route-facts{margin:0;padding:0;border:0}
.template-detail .route-sources{margin-top:32px}
.template-detail>h1+.route-meta+p{margin-top:20px}

/* Approved workbook story, November 8, 2026. */
.template-detail .tpl-sec,.template-detail .template-how-to{margin-top:38px;max-width:800px}
.template-detail .tpl-sec h2,.template-detail .template-how-to h2{margin:0 0 14px;font-size:24px;line-height:1.25}
.tpl-purpose{font-size:20px;line-height:1.45;max-width:800px}
.tpl-pic{margin:0}.tpl-pic img{display:block;width:100%;height:auto;border:1px solid #dce2de;border-radius:8px}
.tpl-fpic{margin-bottom:18px}.tpl-fpic img{border:0;border-radius:0}
.tpl-table{width:100%;border-collapse:collapse;font-size:16px;line-height:1.4;table-layout:auto}
.tpl-table th{font-size:13px;text-align:left;color:#515b56;padding:6px 10px;font-weight:650}
.tpl-table td{padding:10px;border-top:1px solid #e3e7e5;vertical-align:middle;overflow-wrap:anywhere}
.tpl-n{width:42px;padding-left:0!important}.tpl-n span{display:inline-grid;place-items:center;width:32px;height:32px;border-radius:4px;color:#fff;font-weight:700;font-size:15px}
.tpl-table code{font:14px/1.45 ui-monospace,SFMono-Regular,Consolas,monospace;font-weight:600;white-space:pre-wrap;overflow-wrap:anywhere}
.tpl-res{background:#eaf5f9}.tpl-res code{color:#23312c;font-weight:400}
.tpl-note{font-size:15px;font-style:italic;color:#515b56;margin:12px 0 0}
.tpl-yellow{font-size:16px;margin:0 0 10px;color:#3a4540}
.template-detail .route-code{margin-top:18px}.template-detail .route-code code{font:14px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;color:#17305c;overflow-wrap:anywhere}
.template-detail .vh{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:650px){.tpl-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.tpl-table,.tpl-table tbody,.tpl-table tr,.tpl-table td{display:block;width:100%}.tpl-table tr{position:relative;padding:12px 0 12px 44px;border-top:1px solid #e3e7e5}.tpl-table td{border:0;padding:3px 0}.tpl-n{position:absolute;left:0;top:12px;width:auto}.tpl-res{padding:6px 8px!important;margin-top:4px;border-radius:4px}}
.template-detail .tpl-sec p+p{margin-top:12px}
.template-detail .template-how-to li+li{margin-top:12px}
.template-detail .tpl-table .tpl-action{font-family:inherit;font-weight:700}
.template-detail .tpl-sec,.template-detail .tpl-table{min-width:0}

/* Remove empty diagram canvas on phones without changing approved artwork. */
@media(max-width:650px){
 .tpl-fpic{background:#eaf6fb;padding-bottom:0;position:relative}
 .tpl-fpic .tpl-diagram-view{width:var(--diagram-width);max-width:100%;aspect-ratio:var(--diagram-ratio);overflow:hidden}
 .tpl-fpic .tpl-diagram-view img{width:var(--diagram-image-width);max-width:none;height:auto}
}
