body:has(.template-library){background:#592d3b}.template-library{color:#faf8f5;max-width:1400px;margin:auto;padding:9rem max(2vw,1.2rem) 5rem;font-family:Inter,sans-serif}.library-heading{justify-content:space-between;align-items:center;gap:2rem;margin-bottom:2rem;display:flex}.library-heading h1{margin:.8rem 0 1rem;font:400 clamp(2.2rem,4vw,3.8rem)/1.1 DM Serif Display,serif}.library-heading p:not(.eyebrow){color:#e5d5da;max-width:700px;line-height:1.7}.template-library .eyebrow,.template-dialog .eyebrow{color:#c8a76a;text-transform:uppercase;letter-spacing:.15em;font:800 .65rem Montserrat,sans-serif}.library-total{color:#c8a76a;text-align:center;font:400 3.6rem DM Serif Display,serif}.library-total small{text-transform:uppercase;letter-spacing:.12em;font:600 .7rem Montserrat,sans-serif;display:block}.library-tools{color:#592d3b;background:#faf8f5;border:1px solid #c8a76a66;border-radius:16px;flex-wrap:wrap;align-items:end;gap:1rem;padding:1.2rem;display:flex}.library-tools label{flex:1;gap:.5rem;min-width:150px;display:grid}.library-tools .search-label{flex:2;min-width:240px}.library-tools label>span{text-transform:uppercase;letter-spacing:.06em;font:700 .68rem Montserrat,sans-serif}.library-tools input,.library-tools select{color:#0c1728;width:100%;min-height:46px;font:inherit;background:#fff;border:1px solid #d8cbc9;border-radius:8px;padding:.7rem}.library-tools button,.library-empty button{color:#592d3b;cursor:pointer;background:0 0;border:0;padding:.8rem;font:600 .8rem Inter,sans-serif}.library-count{color:#e5d5da;margin:1.25rem 0;font-size:.85rem}.template-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:1.4rem;display:grid}.template-card{color:#0c1728;background:#faf8f5;border:1px solid #c8a76a88;border-radius:16px;flex-direction:column;transition:transform .2s,box-shadow .2s;display:flex;overflow:hidden}.template-card:hover{transform:translateY(-3px);box-shadow:0 14px 30px #240d1633}.template-preview{cursor:pointer;color:#592d3b;background:#eadfe1;border:0;border-bottom:1px solid #decfd0;width:100%;padding:1.4rem 1.5rem .8rem;display:block}.paper{background:#fff;border:1px solid #dacfd0;border-radius:3px;max-width:285px;height:150px;margin:auto;padding:1rem;transition:transform .2s;overflow:hidden;transform:rotate(-2deg);box-shadow:0 5px 12px #592d3b16}.template-preview:hover .paper{transform:rotate(0)}.paper-title{text-align:left;margin-bottom:.7rem;font:700 .75rem Inter,sans-serif;display:block}.paper-content{text-align:left;grid-template-columns:repeat(3,minmax(0,1fr));font-size:.45rem;display:grid}.paper-content span{color:#fff;background:#592d3b;padding:.35rem}.paper-content i{border:1px solid #e7dfe0;height:22px}.paper-content--document{grid-template-columns:1fr}.paper-content--document i{background:#eee8e9;width:90%;height:7px;margin-top:5px}.preview-caption{text-transform:uppercase;letter-spacing:.06em;margin-top:.8rem;font:700 .6rem Montserrat,sans-serif;display:block}.template-card__body{flex-direction:column;flex:1;padding:1.3rem;display:flex}.template-meta{justify-content:space-between;align-items:center;gap:.5rem;display:flex}.template-meta span{color:#835067;text-transform:uppercase;letter-spacing:.04em;font:700 .6rem Montserrat,sans-serif}.template-meta small{white-space:nowrap;color:#592d3b;background:#eee6e8;border-radius:4px;padding:.3rem .5rem;font-size:.65rem}.template-card h2{margin:.8rem 0;font:400 1.6rem/1.15 DM Serif Display,serif}.template-card p{color:#66616a;margin-bottom:1.3rem;font-size:.85rem;line-height:1.65}.template-actions{border-top:1px solid #dfd4d4;justify-content:space-between;align-items:center;gap:.6rem;margin-top:auto;padding-top:1rem;display:flex}.template-actions a:first-child{color:#faf8f5;background:#592d3b;border-radius:6px;padding:.65rem .8rem;font-size:.78rem;font-weight:700}.template-actions a:first-child:hover{background:#754153}.template-actions .download{color:#592d3b;font-size:.75rem;font-weight:600}.template-library [hidden]{display:none!important}.library-empty{text-align:center;color:#592d3b;background:#faf8f5;border-radius:16px;padding:3rem}.library-empty p{margin:1rem}.library-how{border-top:1px solid #c8a76a66;grid-template-columns:1fr 2fr;gap:2rem;margin-top:3rem;padding-top:2rem;display:grid}.library-how h2{margin-top:.8rem;font:400 1.8rem DM Serif Display,serif}.library-how ol{grid-template-columns:repeat(3,1fr);gap:2rem;padding-left:1.2rem;display:grid}.library-how li::marker{color:#c8a76a}.library-how strong{margin-bottom:.6rem;font-size:.85rem;display:block}.library-how li span{color:#e5d5da;font-size:.8rem;line-height:1.6}.template-dialog{color:#0c1728;background:#faf8f5;border:1px solid #c8a76a;border-radius:16px;width:min(1000px,100vw - 2rem);max-height:calc(100dvh - 2rem);padding:0;overflow:auto}.template-dialog::backdrop{backdrop-filter:blur(4px);background:#160b12bb}.template-dialog header,.template-dialog footer{justify-content:space-between;align-items:center;gap:1rem;padding:1.2rem 1.5rem;display:flex}.template-dialog .eyebrow{color:#835067}.template-dialog h2{margin:.4rem 0;font:400 1.7rem DM Serif Display,serif}.template-dialog header button{color:#592d3b;cursor:pointer;background:0 0;border:1px solid #d8cbc9;border-radius:50%;place-items:center;width:40px;height:40px;font-size:1.5rem;display:grid}.preview-help{color:#66616a;padding:0 1.5rem 1rem;font:.8rem/1.5 Inter,sans-serif}.template-dialog iframe{background:#fff;border:0;width:100%;height:min(60dvh,650px);display:block}.template-dialog footer{border-top:1px solid #d8cbc9;justify-content:flex-end}.template-dialog footer a{color:#faf8f5;background:#592d3b;border-radius:6px;padding:.7rem 1rem;font:600 .8rem Inter,sans-serif}.template-dialog footer a:last-child{color:#592d3b;background:#eee6e8}.template-library :focus-visible,.template-dialog :focus-visible{outline-offset:3px;outline:3px solid #c8a76a}@media (width<=1000px){.template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.library-how{grid-template-columns:1fr}}@media (width<=620px){.template-library{padding-top:7.5rem}.template-grid{grid-template-columns:1fr}.library-total{display:none}.library-how ol{grid-template-columns:1fr}.library-tools label,.library-tools .search-label{min-width:100%}.template-dialog header,.template-dialog footer{padding:1rem}}@media (prefers-reduced-motion:reduce){.template-card,.paper{transition:none}}.library-filter-toolbar{justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1.3rem;display:flex}.library-filter-trigger{white-space:nowrap;color:#592d3b;cursor:pointer;background:#faf8f5;border:1px solid #c8a76a;border-radius:999px;align-items:center;gap:.5rem;padding:.75rem 1.2rem;font:700 .85rem Inter,sans-serif;transition:background .2s;display:inline-flex}.library-filter-dialog{color:#0c1728;background:#faf8f5;border:1px solid #c8a76a;border-radius:18px;width:min(580px,100vw - 2rem);max-height:calc(100dvh - 2rem);margin:auto;padding:0;overflow:auto}.library-filter-dialog::backdrop{backdrop-filter:blur(4px);background:#0c172899}.library-filter-dialog header,.library-filter-dialog footer{justify-content:space-between;align-items:center;gap:1rem;padding:1.2rem 1.5rem;display:flex}.library-filter-dialog header button{color:#0c1728;cursor:pointer;background:0 0;border:1px solid #d7d0c4;border-radius:50%;place-items:center;width:40px;height:40px;padding:0;font-size:1.5rem;display:grid}.library-filter-dialog footer{border-top:1px solid #d7d0c4;justify-content:flex-end}.library-filter-dialog footer button{color:#faf8f5;cursor:pointer;background:#592d3b;border:0;border-radius:8px;padding:.8rem 1.2rem;font:700 .85rem Inter,sans-serif}.library-filter-dialog .library-tools{background:0 0;border:0;border-radius:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;padding:1.5rem;display:grid}.library-filter-dialog label{min-width:0!important}.library-filter-dialog .search-label{grid-column:1/-1;min-width:0}.library-filter-dialog input,.library-filter-dialog select{box-sizing:border-box;width:100%}.library-filter-dialog input[type=checkbox]{width:auto}.library-filter-dialog :focus-visible,.library-filter-trigger:focus-visible{outline-offset:3px;outline:3px solid #c8a76a}@media (width<=620px){.library-filter-dialog .library-tools{grid-template-columns:1fr}.directory-filter-toolbar{width:100%;margin:0}}.library-filter-trigger{color:#c8a76a;background:#754153;border:1px solid #c8a76a88;border-radius:8px;gap:.65rem;min-height:44px;padding:.75rem 1rem;font:600 .85rem Inter,sans-serif}.library-filter-trigger:hover{background:#592d3b}.library-filter-trigger svg{fill:none;stroke:currentColor;stroke-width:1.5px;width:20px;height:20px}.library-filter-trigger [data-filter-count]{color:#592d3b;background:#c8a76a;border-radius:50%;place-items:center;width:20px;height:20px;font-size:.7rem;display:grid}.library-filter-trigger [hidden]{display:none!important}.library-filter-dialog{box-sizing:border-box;color:#faf8f5;background:#754153;border:1px solid #c8a76a88;border-radius:16px;width:min(460px,100vw - 2rem)}.library-filter-dialog::backdrop{background:#040911cc}.library-filter-dialog header{padding:1.8rem 4rem 1rem 1.5rem;display:block;position:relative}.library-filter-dialog header .eyebrow{color:#c8a76a;letter-spacing:.12em;text-transform:uppercase;margin:0;font:600 .7rem Inter,sans-serif}.library-filter-dialog h2{margin:.5rem 0;font:400 1.8rem DM Serif Display,Georgia,serif}.library-filter-dialog header button{color:#faf8f5;background:#592d3b;border:1px solid #c8a76a66;width:44px;height:44px;position:absolute;top:1rem;right:1rem}.library-filter-dialog .library-tools{color:#c8a76a;gap:.8rem;padding:0 1.5rem 1.5rem}.library-filter-dialog label,.library-filter-dialog label>span{letter-spacing:normal;text-transform:none;color:#c8a76a;font:600 .75rem Inter,sans-serif}.library-filter-dialog input:not([type=checkbox]),.library-filter-dialog select{color:#faf8f5;color-scheme:dark;background:#592d3b;border:1px solid #c8a76a66;border-radius:8px;padding:.8rem;font:400 .9rem Inter,sans-serif}.library-filter-dialog input::placeholder{color:#deded3;opacity:1}.library-filter-dialog footer{border-top:1px solid #c8a76a44;justify-content:space-between;gap:1rem;padding:1rem 1.5rem}.library-filter-dialog footer button{font:600 .85rem Inter,sans-serif}.library-filter-dialog footer button[data-reset]{color:#e5ded5;background:0 0;border:0;padding:.7rem 0}.library-filter-dialog footer button[data-close-filters]{color:#0c1728;background:#c8a76a;border:1px solid #c8a76a;border-radius:8px;min-height:44px;padding:.9rem 1.2rem}
