.template-hero{padding:clamp(2.3rem,6vw,5rem) 0}
.template-hero h1{margin:0 0 1rem;font-size:clamp(2rem,4vw,3.7rem);line-height:1.22;color:#26231c}
.template-summary{max-width:48rem;font-size:clamp(1.06rem,2vw,1.28rem);color:#51493c;line-height:1.75}
.template-version{font-size:.92rem;color:#5f553f}
.template-actions{display:flex;flex-wrap:wrap;gap:.75rem;margin:1.4rem 0}
.template-guide{padding:2rem 0;background:#f5f1e7;border-block:1px solid #e4daca}
.template-guide h2,.template-library h2,.template-end h2{margin:0 0 1.35rem;font-size:1.45rem;line-height:1.4;color:#26231c}
.template-levels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.4rem;margin:0;padding:0;list-style:none}
.template-levels li{padding-left:1rem;border-left:2px solid #b69448}
.template-levels strong{font-size:1.08rem;color:#302c23}
.template-levels p,.template-types p{margin:.5rem 0 0;line-height:1.75;color:#50483a}
.template-library{padding-block:1rem 3rem}
.template-types{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.template-types section{display:flex;flex-direction:column;align-items:flex-start;padding:clamp(1.15rem,3vw,2rem);background:#fffefa;border:1px solid #e4daca;border-radius:1rem}
.template-types .template-kind{margin:0 0 .65rem;color:#634f28;font-weight:650}
.template-types h3{margin:0;line-height:1.42;font-size:1.34rem;color:#26231c}
.template-types p:not(.template-kind){margin-bottom:1.3rem}
.template-types .button{margin-top:auto}
.template-end{padding:1rem 0 3.5rem}
.template-end .text-link{display:inline-block;margin-bottom:.8rem}
.agreement-layout .agreement-toc details summary{display:list-item}
.agreement-toc .agreement-section{scroll-margin-top:7rem}
.seal-grid p{overflow-wrap:anywhere}
@media(min-width:901px){.agreement-toc details:not([open]) ol{display:none}}
@media(max-width:675px){.template-levels,.template-types{grid-template-columns:1fr}.template-guide{padding:1.6rem 0}.template-types .button{white-space:normal}}
@media print{.template-hero,.template-guide,.template-end{display:none}}
.template-title-tail{white-space:nowrap}
