/* A template's own page (template.html, /templates/<slug>): the slide
   previews and detail images on the left, a sticky panel with the title,
   facts, download button and description on the right. Matches the
   details dialog (template-detail.css). */
.bp-template-page{background:#f6f8fc;color:#102548;padding:28px 0 72px}
.bp-tp-crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 22px;font-size:13px;font-weight:600;color:#4f6382}
.bp-tp-crumbs a{color:#0859df;text-decoration:none}
.bp-tp-crumbs a:hover{text-decoration:underline;text-underline-offset:2px}
.bp-tp-crumbs [aria-current]{color:#102548;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:60ch}
.bp-tp-grid{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:32px;align-items:start}
.bp-tp-media{display:flex;flex-direction:column;gap:28px;min-width:0}
.bp-tp-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.bp-tp-gallery figure{margin:0}
.bp-tp-gallery figure:first-child{grid-column:1/-1}
.bp-tp-gallery img,.bp-tp-details-images img{display:block;width:100%;height:auto;background:#dfe6f1}
.bp-tp-gallery img{aspect-ratio:16/9;object-fit:contain;border-radius:10px;box-shadow:0 4px 18px #10254814}
.bp-tp-details{padding-top:22px;border-top:1px solid #d5dde9}
.bp-tp-details-title{margin:0 0 14px;font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#4f6382}
.bp-tp-details-images{overflow:hidden;border-radius:10px;box-shadow:0 4px 18px #10254814}
.bp-tp-panel{position:sticky;top:96px;display:flex;flex-direction:column;gap:14px;padding:30px 28px;border-radius:18px;background:#fff;box-shadow:0 10px 40px #1025481a}
.bp-tp-kicker{font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#0859df}
.bp-tp-panel h1{margin:0;font-size:30px;line-height:1.15;letter-spacing:-.03em;color:#102548}
.bp-tp-summary{margin:0;color:#4f6382;font-size:15px;line-height:1.6}
.bp-tp-facts{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.bp-tp-facts li{padding:5px 11px;border-radius:999px;background:#f1f4f9;color:#102548;font-size:12px;font-weight:600}
.bp-tp-actions{margin:6px 0 4px}
.bp-tp-download{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:50px;border:0;border-radius:10px;background:#ffe329;color:#102548;font:inherit;font-size:15px;font-weight:800;letter-spacing:.02em;cursor:pointer;transition:transform .15s,box-shadow .15s}
.bp-tp-download:hover{transform:translateY(-2px);box-shadow:0 6px 0 #10254819}
.bp-tp-download:focus-visible{outline:3px solid #0859df;outline-offset:2px}
.bp-tp-content{color:#4f6382;font-size:14px;line-height:1.7}
.bp-tp-content p{margin:0 0 12px}
.bp-tp-content :is(ul,ol){margin:0 0 12px;padding-left:20px}
.bp-tp-content li{margin:2px 0}
.bp-tp-content h2{margin:18px 0 8px;font-size:15px;line-height:1.35;letter-spacing:0;color:#102548}
.bp-tp-content h2:first-child{margin-top:0}
.bp-tp-content strong{color:#102548}
.bp-tp-content a{color:#0859df;text-decoration:underline;text-underline-offset:2px}
@media(max-width:960px){
 .bp-tp-grid{grid-template-columns:minmax(0,1fr)}
 .bp-tp-panel{position:static;order:-1}
}
@media(max-width:600px){
 .bp-template-page{padding:18px 0 48px}
 .bp-tp-gallery{grid-template-columns:minmax(0,1fr)}
 .bp-tp-panel{padding:24px 18px}
 .bp-tp-panel h1{font-size:25px}
}
@media(prefers-reduced-motion:reduce){.bp-tp-download{transition:none}}
.bp-tp-actions:has(.bp-template-open){display:flex;gap:10px;align-items:stretch}
.bp-tp-actions:has(.bp-template-open) .bp-tp-download{flex:1;min-width:0}
.bp-site .bp-tp-actions .bp-template-open{width:50px;height:auto;min-height:50px;border-radius:10px;background:#102548;box-shadow:none}
