.tpl-page,.tpl-library{max-width:1190px;padding-inline:clamp(18px,4vw,48px)}
.tpl-page .tpl-header,.tpl-library .tpl-header{min-height:52px}
.tpl-brand{font-weight:720;letter-spacing:-.025em}
.tpl-crumb,.tpl-jump{display:flex;align-items:center;flex-wrap:wrap}
.tpl-crumb{gap:8px;margin:24px 0 18px;color:#52655f;font-size:.85rem}
.tpl-crumb [aria-current=page]{font-weight:500}
.tpl-lead{display:grid;grid-template-columns:minmax(230px,.78fr) minmax(0,1.35fr);align-items:center;gap:clamp(24px,4vw,64px)}
.tpl-intro h1{margin:0 0 14px;font-size:clamp(31px,3.6vw,53px);line-height:1.08}
.tpl-intro .howto-intro,.tpl-library>.howto-intro{font-size:clamp(16px,1.5vw,18px)}
.tpl-intro .howto-action{margin-top:4px;align-items:center;min-height:44px;padding:10px 19px}
.tpl-page .tpl-preview{min-width:0;margin:0}
.tpl-preview img,.tpl-preview video{width:100%;height:auto;background:#ebece8}
.tpl-page .tpl-preview video{max-height:none;object-fit:contain}
.tpl-page .tpl-preview figcaption{font-size:13px}
.tpl-info{display:grid;grid-template-columns:1.15fr 1fr;gap:clamp(24px,6vw,75px);margin-top:32px;padding-top:22px;border-top:1px solid #ced8ce}
.tpl-info h2{margin:0 0 6px}
.tpl-info dl{margin:0}
.tpl-info dl>div{display:flex;justify-content:space-between;gap:1em;align-items:baseline;padding:4px 0;border-bottom:1px solid #dce1d8}
.tpl-info dt{color:#50645b}
.tpl-info dd{margin:0;text-align:right;font-weight:600}
.tpl-library>h1{margin-bottom:8px}
.tpl-library>.howto-intro{max-width:64ch}
.tpl-jump{gap:8px 16px;margin:18px 0 32px;font-size:.94rem}
.tpl-shelf{scroll-margin-top:12px;margin-top:28px}
.tpl-shelf h2{margin:0 0 14px}
.tpl-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,215px),1fr));gap:22px 18px}
.tpl-grid .tpl-card{display:block;min-width:0;text-decoration:none}
.tpl-card img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:contain;background:#eceee8;border-radius:8px}
.tpl-card strong,.tpl-card span{display:block}
.tpl-card strong{margin-top:5px;line-height:1.35}
.tpl-card span{font-size:.82rem;color:#50645b}
.tpl-card:hover strong,.tpl-card:focus-visible strong{text-decoration:underline;text-underline-offset:3px}
.tpl-page a:focus-visible,.tpl-library a:focus-visible{outline:3px solid #166c50;outline-offset:3px}
@media(max-width:720px){
  .tpl-lead,.tpl-info{display:block}
  .tpl-crumb{margin:17px 0 12px}
  .tpl-intro .howto-intro{margin-bottom:.7em}
  .tpl-page .tpl-preview{margin:20px 0}
  .tpl-info{margin-top:20px;padding-top:16px}
  .tpl-info dl{margin-top:14px}
  .tpl-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}
}

.tpl-study {
  max-width: 760px;
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid #ced8ce;
  scroll-margin-top: 16px;
}
.tpl-study h2 { margin-top: 0; }
.tpl-study table { width: 100%; margin: 16px 0; border-collapse: collapse; font-size: .94em; }
.tpl-study caption { text-align: left; padding-bottom: .5em; font-weight: 600; }
.tpl-study th, .tpl-study td { padding: .45em .3em; text-align: right; border-bottom: 1px solid #dce1d8; }
.tpl-study th:first-child { text-align: left; }
