body.template-library-page{background:var(--ut-s-3a3420,#faf9f6);color:var(--ut-t-dcdbeb,#24233d);}
.template-library-page .tpl-shell{max-width:1240px;padding-inline:32px;}
.template-library-page .tpl-library-hero{background:var(--ut-s-3a3420,#faf9f6)!important;padding:64px 0 40px!important;}
.template-library-page .tpl-hero-grid{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:64px;align-items:start;}
.template-library-page .tpl-library-hero h1{font-family:Georgia,serif;font-weight:400;font-size:clamp(3rem,5.7vw,5.4rem);line-height:1.02;letter-spacing:-.045em;max-width:12ch;margin:22px 0;}
.template-library-page .tpl-library-hero h1 em{color:var(--ut-t-c7b7d7,#6b4c8a);}
.template-library-page .eyebrow{color:var(--ut-t-c6bed0,#665878);letter-spacing:.12em;font-size:.75rem;font-weight:700;}
.template-library-page .tpl-library-hero p:not(.eyebrow){color:var(--ut-t-c3c1cd,#585569);font-size:1rem;line-height:1.65;}
.template-library-page .tpl-hero-actions{gap:12px;flex-wrap:wrap;}
.template-library-page .tpl-primary{background:#36304f;color:#fff!important;border-radius:8px;min-height:48px;}
.template-library-page .tpl-secondary{color:var(--ut-t-dfdcea,#36304f);border:1px solid #8c8399;border-radius:8px;background:transparent;min-height:48px;}
.template-library-page .tpl-library{padding-block:36px 72px;}
.template-library-page .tpl-section-heading{align-items:end;margin-bottom:24px;}
.template-library-page .tpl-section-heading h2{font-family:Georgia,serif;font-weight:400;font-size:clamp(2rem,3.4vw,3.4rem);letter-spacing:-.035em;}
.template-library-page .tpl-filters{background:var(--ut-s-342d20,#f0ede7);border:1px solid var(--ut-l-85788c,#b8b0bc);border-radius:12px;grid-template-columns:minmax(180px,1.35fr) minmax(160px,1fr) auto;gap:18px;padding:24px;}
.template-library-page .tpl-filters input,.template-library-page .tpl-filters select{border:1px solid #89818f;background:var(--ut-s-3d3721,#fffefa);color:var(--ut-t-dcdbeb,#24233d);border-radius:7px;font:inherit;min-height:48px;}
.template-library-page .tpl-filter-button{background:#36304f;min-height:48px;font-size:.875rem;border-radius:7px;}
.template-library-page .tpl-component-discovery{grid-row:2;grid-column:1/-1;display:flex;gap:24px;flex-wrap:wrap;}
.template-library-page .tpl-component-discovery a{color:var(--ut-t-c4bad4,#514269);text-underline-offset:4px;min-height:24px;}
.template-library-page .tpl-result{color:var(--ut-t-c3c1cd,#585569);margin:22px 0;}
.template-library-page .tpl-collection{border:0;padding:32px 0 48px;}
.template-library-page .tpl-collection>header{align-items:baseline;gap:16px;}
.template-library-page .tpl-collection>header h3{font-size:1.3rem;font-weight:600;letter-spacing:-.02em;}
.template-library-page .tpl-collection>header span{color:var(--ut-t-c6c1cd,#62586e);}
.template-library-page .tpl-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:40px 28px;}
.template-library-page .tpl-card{border:0;border-radius:0;box-shadow:none;background:transparent;transform:none!important;transition:none;}
.template-library-page .tpl-card:is(:hover,:focus-within){box-shadow:none;}
.template-library-page .tpl-card-preview{aspect-ratio:1.44;border:1px solid var(--ut-l-817392,#aaa0b5);border-radius:10px;box-shadow:none;background:var(--ut-s-332c1f,#eeeae3);}
.template-library-page .tpl-card-preview>.tpl-capture{width:100%;height:100%;object-fit:cover;object-position:top;transform:none;}
.template-library-page .tpl-style-badge{display:none;}
.template-library-page .tpl-preview-overlay{background:#36304f;color:#fff;padding:12px;font-size:.875rem;}
.template-library-page .tpl-card-copy{padding:20px 0 0;gap:0;}
.template-library-page .tpl-card-copy>span{font-size:.75rem;color:var(--ut-t-c6bed0,#665878);letter-spacing:.07em;}
.template-library-page .tpl-card-copy h3{font-family:Georgia,serif;font-size:1.9rem;line-height:1.15;font-weight:400;margin:10px 0 12px;}
.template-library-page .tpl-card-copy p{font-size:.9375rem;color:var(--ut-t-c3c1cd,#585569);line-height:1.6;min-height:0;margin-bottom:18px;max-width:52ch;}
.template-library-page .tpl-card-copy>div{border:0;padding-top:10px;}
.template-library-page .tpl-card-copy a{color:var(--ut-t-c4bad4,#514269);min-height:44px;text-decoration:underline;text-underline-offset:4px;}
.template-library-page .tpl-card-copy .tpl-use{background:var(--ut-s-2a1d35,#e9e2ef);color:var(--ut-t-e1dcea,#3d3052);border:1px solid var(--ut-l-81669e,#b4a4c5);text-decoration:none;padding:10px 18px;}
.template-library-page .tpl-how-band{background:var(--ut-s-253222,#e9efe8);color:var(--ut-t-dceae3,#253e32);padding:56px 0;}
.template-library-page .tpl-how-grid{gap:40px;}
.template-library-page .tpl-how-grid article{border:0;padding:0;background:transparent;box-shadow:none;}
.template-library-page .tpl-how-grid :is(p,svg),.template-library-page .tpl-how-band .eyebrow{color:var(--ut-t-dee8e2,#3c5847);}
.template-library-page .tpl-no-results{border:1px solid var(--ut-l-85788c,#b8b0bc);background:var(--ut-s-342d20,#f0ede7);color:var(--ut-t-dcdbeb,#24233d);border-radius:12px;}
.template-library-page :is(a,button,input,select,summary):focus-visible{outline:3px solid #514269;outline-offset:4px;}
@media(max-width:1000px){.template-library-page .tpl-hero-grid{grid-template-columns:1fr;gap:28px;}.template-library-page .tpl-library-hero h1{max-width:20ch;}.template-library-page .tpl-hero-art{display:none;}.template-library-page .tpl-filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr);}.template-library-page .tpl-filter-button{grid-row:2;grid-column:2;}.template-library-page .tpl-component-discovery{grid-column:1;gap:12px;}.template-library-page .tpl-how-grid{gap:24px;}}
@media(max-width:600px){.template-library-page .tpl-shell{padding-inline:16px;}.template-library-page .tpl-library-hero{padding:32px 0 16px!important;}.template-library-page .tpl-library-hero h1{font-size:3rem;}.template-library-page .tpl-card-grid{grid-template-columns:1fr;gap:36px;}.template-library-page .tpl-filters{grid-template-columns:1fr;padding:18px;}.template-library-page .tpl-filter-button{grid-column:1;grid-row:auto;justify-content:center;}.template-library-page .tpl-component-discovery{grid-row:auto;}.template-library-page .tpl-section-heading,.template-library-page .tpl-collection>header{align-items:start;flex-direction:column;gap:8px;}.template-library-page .tpl-how-grid{grid-template-columns:1fr;gap:32px;}.template-library-page .tpl-how-band{padding:40px 0;}}
body.template-library-page .tpl-hero-art.tpl-design-stack{display:grid;grid-template-columns:1fr;gap:14px;min-height:0;height:auto;transform:none;padding:10px 0 0;overflow:visible;}
body.template-library-page .tpl-design-stack .tpl-stack-design:nth-child(n){position:static;inset:auto;display:grid;grid-template-columns:150px minmax(0,1fr);align-items:center;width:100%;height:auto;transform:none;animation:none;opacity:1;box-shadow:none;border:1px solid var(--ut-l-836f95,#b4a8bf);border-radius:10px;background:var(--ut-s-312335,#f4f0f5);overflow:hidden;text-decoration:none;}
body.template-library-page .tpl-stack-design>.tpl-capture{display:block;width:150px;height:104px;object-fit:cover;object-position:top;}
body.template-library-page .tpl-stack-design>span:not(.sr-only){display:flex;align-items:center;justify-content:space-between;gap:10px;background:transparent;color:var(--ut-t-dfdcea,#36304f);min-height:0;padding:16px;border:0;border-radius:0;box-shadow:none;font-size:1rem;line-height:1.4;}
@media(max-width:1000px){body.template-library-page .tpl-hero-art.tpl-design-stack{display:none;}}
/* Real captures retain their desktop aspect ratio; retire the old phone mockup. */
html[data-platform-design] body.template-library-page .tpl-card .tpl-card-preview{width:100%!important;height:auto!important;aspect-ratio:1.44!important;margin:0!important;border:1px solid var(--ut-l-817392,#aaa0b5)!important;border-radius:10px!important;box-shadow:none!important;}
html[data-platform-design] body.template-library-page .tpl-card-preview::before{content:none;}
html[data-platform-design] body.template-library-page .tpl-card-preview>.tpl-capture{display:block;width:100%!important;height:100%!important;object-fit:contain;object-position:top;}
@media(max-width:600px){
html[data-platform-design] body.template-library-page .tpl-library-hero p:not(.eyebrow){font-size:1rem!important;line-height:1.5!important;margin-block:14px;}
html[data-platform-design] body.template-library-page .tpl-library-hero h1{font-size:2.5rem!important;line-height:1.08!important;margin-block:16px;}
html[data-platform-design] body.template-library-page .tpl-library-hero .tpl-hero-caption{font-size:.8125rem!important;}
html[data-platform-design] body.template-library-page .tpl-hero-grid .tpl-primary{margin-top:0;}
html[data-platform-design] body.template-library-page .tpl-library{padding-top:8px;}
html[data-platform-design] body.template-library-page .tpl-section-heading{margin-bottom:18px;}
html[data-platform-design] body.template-library-page .tpl-section-heading>[data-template-summary]{display:none;}
}
