/* Shared paper colors for library cards and their document pages. */
.tone-rose{--tile:#f4d6df;--wash:#f8e4e9}
.tone-blush{--tile:#e9baca;--wash:#f6e2eb}
.tone-peach{--tile:#f1b18b;--wash:#f7e4d6}
.tone-apricot{--tile:#ec985f;--wash:#f8e4d5}
.tone-azure{--tile:#a0d0ed;--wash:#dfecf5}
.tone-sky{--tile:#a7cee6;--wash:#e1edf5}
.tone-sand{--tile:#e9d8bd;--wash:#f6eee3}
.sr-resource{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.resource-intro{text-align:center;padding:72px 20px 0}
.resource-intro>img{display:block;max-width:100%;height:120px;width:auto;object-fit:contain;margin:0 auto 32px}
.resource-intro h1,.detail-band h1{font-size:clamp(42px,4.77vw,66px);letter-spacing:-.05em;line-height:1.1;font-weight:550}
.resource-intro h1{margin:0 auto;max-width:720px}
.resource-intro>p{max-width:500px;margin:14px auto 0;font-size:16.5px;line-height:1.45;color:var(--ink)}
.library-intro>p{max-width:465px}
.template-search{width:min(360px,100%);height:64px;display:flex;align-items:stretch;margin:32px auto 0;background:transparent;border:1px solid #ded9d4;border-radius:999px;padding:0 16px 0 24px}
.template-search:focus-within{border-color:#867261;box-shadow:0 0 0 2px #bba38a35}
.template-search input{border:0;background:none;font-size:17px;min-width:0;flex:1;outline:none!important}
.template-search button{display:grid;place-items:center;width:43px;color:#757771}
.library-layout{display:grid;grid-template-columns:minmax(195px,24.2%) minmax(0,1fr);gap:20px;padding-block:72px 110px}
.library-layout,.library-intro .template-search{scroll-margin-top:100px}
.library-filters{align-self:start;position:sticky;top:100px;max-height:calc(100dvh - 106px);overflow-y:auto;scrollbar-width:thin}
.library-filters>button{display:none}
#library-categories{display:flex;flex-direction:column;align-items:flex-start;gap:3px}
#library-categories a{border-radius:999px;padding:9px 16px;font-size:16px;line-height:1.42}
#library-categories a:hover,#library-categories a[aria-current]{background:var(--sand2);text-decoration:none}
.template-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.template-card{display:flex;flex-direction:column;min-width:0;padding:8px 8px 17px;border:1px solid #dedddf;border-radius:16px;background:#fff;transition:border-color .18s,transform .18s;color:var(--ink)}
.template-card:hover,.hub-inner a:hover{border-color:#8d897f;text-decoration:none}
.template-card:hover{transform:translateY(-2px)}
.template-image{display:grid;place-items:center;aspect-ratio:2;border-radius:10px;background:var(--tile);overflow:hidden}
.template-image img{width:min(38%,100px);height:auto;object-fit:contain}
.template-card>div+div{padding:19px 19px 0}
.template-card h3,.hub-inner h3{font-size:18px;font-weight:550;line-height:1.42;letter-spacing:-.022em;color:var(--ink)}
.template-card p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;line-height:1.46;font-size:16px;color:#636661;margin-top:4px}
.no-templates{padding:35px 0}.no-templates h2{font-size:28px}.no-templates p{margin:12px 0 18px}
/* Resources hub */
.resources-hub,.resources-hub .top{background:#fff}
.hub-inner{width:min(1000px,calc(100% - 80px));margin:auto}
.hub-intro{margin-bottom:102px}.hub-intro>img{width:556px;max-width:100%}
.hub-inner>section+section{margin-top:97px}
.hub-heading h2,.hub-free h2{color:var(--ink);font-size:clamp(32px,3.15vw,43px);line-height:1.14}
.hub-heading>div{display:flex;align-items:baseline;justify-content:space-between;gap:18px;margin:8px 0 32px}
.hub-heading>div>a{white-space:nowrap;color:#666961}.hub-heading a>span{margin-left:6px}
.hub-templates{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.hub-featured{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:space-between;min-height:270px;aspect-ratio:.8;padding:13% 16px 24px;border-radius:15px;background:var(--wash);border:1px solid transparent}
.hub-featured>img{width:65%;max-width:125px;height:auto;margin:auto}
.hub-featured h3{align-self:stretch;margin-top:32px;min-height:2.8em}
.hub-three,.compare-directory{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.hub-learn-card{text-align:center}.guide-art{position:relative;background:var(--tile);border-radius:15px;aspect-ratio:1.52;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden}
.art-signature{position:absolute;top:8%;display:flex;align-items:center;gap:3px;font-weight:600;font-size:10px}.art-signature img{width:13px}
.art-label{margin-top:4%;width:79%;height:51%;display:grid;place-items:center;padding:12px 18px;border:1px solid #716257;border-radius:6px;background:white;color:#343732;font-weight:550;font-size:15px;line-height:1.22}
.guide-art>img{position:absolute;width:44px;height:44px;bottom:3%;transform:rotate(-10deg)}
.hub-learn-card h3{margin:20px auto 7px;max-width:270px}.hub-learn-card>small{color:#75736c;font-size:14px}
.hub-blog{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.hub-blog>a{display:grid;grid-template-columns:38% 1fr;align-items:center;gap:20px;padding:14px;border:1px solid var(--line);border-radius:15px;min-height:162px}
.hub-blog img{width:100%;height:auto;aspect-ratio:1.1;border-radius:10px;object-fit:cover}
.hub-blog p,.hub-stories p,.hub-compare-card>p{color:#676a63;font-size:15px;margin-top:5px}
.hub-stories{display:grid;gap:18px}
.hub-stories>a{display:grid;grid-template-columns:22% 1fr 18px;gap:24px;align-items:center;min-height:115px;border-radius:14px;border:1px solid var(--line);padding:16px 25px}
.hub-story-mark{display:flex;align-items:center;gap:7px;font-size:23px;letter-spacing:-.035em}
.hub-story-mark b{font-family:Georgia,serif;font-style:italic}.hub-stories>a>span{font-size:22px}
.hub-compare-card{padding:26px 18px;text-align:center;border:1px solid var(--line);border-radius:15px;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:210px}
.hub-compare-card>div{display:flex;align-items:center;justify-content:center;gap:18px;margin-bottom:24px}
.hub-compare-card img,.hub-compare-card i{width:55px;height:55px;border-radius:12px;background:var(--sand);padding:8px}
.hub-compare-card i{display:grid;place-items:center;background:#e6eaec}.hub-compare-card small{color:#726d68}
.hub-free{display:grid;grid-template-columns:1fr 2fr;align-items:center;gap:24px;padding:0 0 105px}
.hub-free p{margin-top:13px}.hub-free>a{position:relative;border-radius:16px;background:#dae3e4;display:flex;align-items:center;justify-content:center;gap:8%;min-height:230px;overflow:hidden}
.hub-free img{width:36%;border-radius:8px}.hub-free b{font-size:clamp(19px,2.1vw,30px);letter-spacing:-.04em}
.compare-directory{padding-block:76px 98px}.compare-intro>p{margin-bottom:12px}
/* Template document and original working copy */
.template-detail{background:white}.template-detail .top,.detail-band{background:var(--tile)}
.detail-band{position:relative;isolation:isolate;padding:72px 0 185px;overflow:hidden}
.detail-band:after{content:'';position:absolute;z-index:-1;bottom:-102px;left:-9%;width:122%;height:196px;border-radius:49% 56% 0 0/85% 95% 0 0;transform:rotate(2.8deg);background:white}
.templates-back{font-size:16px;color:#5e5e5a}
.detail-band h1{max-width:1200px;margin:32px 0 18px;font-weight:550;color:var(--ink)}
.template-credit{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:550}
.template-credit img{background:#fbf9ef;border-radius:50%;padding:4px}
.detail-layout{display:grid;grid-template-columns:minmax(0,3.3fr) minmax(210px,1fr);gap:40px;margin-top:40px;align-items:start}
.template-actions{font-size:18px;line-height:1.46}.template-actions>.btn{margin:28px 0 32px}
.template-actions h2{margin:0 0 10px;font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#55534e}
.template-tools{display:flex;align-items:center;gap:12px}
.template-tools button,.template-tools a{color:#484740;display:grid;place-items:center;padding:4px;border-radius:4px}
.template-tools button:hover,.template-tools a:hover{background:#ffffff60}
.template-actions [data-copy-status]{display:block;font-size:14px;min-height:1.5em;margin-top:4px}
.template-actions textarea,.template-actions input{width:100%;padding:8px;border:1px solid #999;border-radius:5px;font-size:13px}
.preview-mount{min-width:0}.doc-preview{position:relative;display:grid;grid-template-columns:29% minmax(0,1fr);height:auto;aspect-ratio:4/3;padding:6px;border-radius:17px;background:#f4f5f7;overflow:hidden;color:#34363b;box-shadow:0 4px 22px #3a302307}
.preview-index{padding:7px 11px 12px 5px;min-width:0;overflow-y:auto}
.preview-index label,.preview-index strong,.preview-index a{display:flex;align-items:center;gap:7px;border-radius:7px;line-height:1.3}
.preview-index label{padding:1px 8px;color:#70747a}.preview-index input{width:100%;background:none;border:0;font-size:13px;padding:4px 0}
.preview-index strong{padding:10px 8px;background:#e9eaf0;font-size:14px;margin:20px 0 4px;overflow-wrap:anywhere}
.preview-index a{font-size:13px;padding:8px 8px 8px 17px}.preview-index a:hover,.preview-index a[aria-current]{background:#e9eaf0;text-decoration:none}
.preview-index small{font-size:12px;color:#696b6f;padding:6px;display:block}
.preview-sheet{display:flex;flex-direction:column;min-width:0;min-height:0;border:1px solid #eeeceb;border-radius:13px;background:white;overflow:hidden}
.preview-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:47px;padding:5px 12px;font-size:13px;color:#646770}
.preview-bar>span{display:flex;align-items:center;gap:6px;overflow:hidden}.preview-bar button{display:grid;place-items:center;padding:5px;border-radius:5px}.preview-bar button:hover{background:#f0eeeb}
.preview-bar [data-preview-menu]{display:none}
.preview-scroll{flex:1;overflow:auto;min-height:0;padding:11px 22px 30px;scrollbar-color:#d5d5d4 transparent;scrollbar-width:thin}
.preview-cover{height:clamp(120px,17vw,242px);border-radius:13px;background:var(--wash);display:grid;place-items:center}
.preview-cover img{width:min(36%,164px);height:auto}
.preview-text{padding:22px 0}.preview-text h2,.preview-text h3,.preview-text h4{color:#343538}.preview-text h2{font-size:clamp(27px,2.8vw,41px);font-weight:650;margin-bottom:8px}
.preview-text h3{font-size:22px;font-weight:600;letter-spacing:-.04em}.preview-text h4{font-size:16px;margin:14px 0 7px}
.preview-text p,.preview-text li{font-size:15px;line-height:1.55}
.preview-text section{margin-top:24px;scroll-margin-top:14px}.preview-text section p,.preview-text ul,.preview-text ol{margin:10px 0}.preview-text ul,.preview-text ol{padding-left:22px}
.sample-check{color:#72766f}.preview-text code{background:#f2efeb;border-radius:4px;padding:1px 4px}
.preview-dialog{padding:0;width:min(1180px,96vw);max-width:none;height:min(90dvh,900px);border:0;border-radius:18px;margin:auto;overflow:hidden;box-shadow:0 14px 60px #2224}
.preview-dialog::backdrop{background:#25272caa}.preview-dialog .doc-preview{height:100%;width:100%;aspect-ratio:auto}
.template-lower{width:min(968px,calc(100% - 80px));margin:0 auto 96px}
.template-use h2,.template-faq h2{font-size:clamp(30px,3.1vw,43px);margin-bottom:15px}
.template-use p,.template-faq>p{font-size:17px;line-height:1.6;margin:12px 0}
.tag-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:30px}
.category-pill{font-size:14px;border-radius:999px;padding:5px 12px;background:#f3f0eb}
.template-faq,.related-templates{margin-top:96px}.template-faq>p{margin-bottom:24px}.template-faq>p a{text-decoration:underline}
.template-faq details{border-bottom:1px solid var(--line);padding:0}.template-faq details summary{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:19px;line-height:1.45;font-weight:550;padding:18px 0;list-style:none}
.template-faq details[open] .chev{transform:rotate(225deg)}.template-faq details p{margin:0 0 20px;color:#63645e}
.related-templates h2{font-size:25px;margin-bottom:24px}
.template-editor{max-width:940px;padding:64px 0 80px}.template-editor h1{font-size:clamp(38px,4.4vw,60px);margin:22px 0}
.editor-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:14px;color:#65675f;margin-bottom:10px}
.template-editor textarea,.formatter-panel textarea{background:white;width:100%;border:1px solid #cec9bf;border-radius:12px;padding:20px;font:15px/1.55 ui-monospace,Menlo,monospace;resize:vertical}
.template-editor textarea{min-height:55vh}
.formatter-panel{width:min(750px,calc(100% - 40px));margin:60px auto 88px;padding:32px;border-radius:20px;background:white;border:1px solid var(--line)}
.formatter-panel h2{font-size:30px}.formatter-panel label{display:block;margin:16px 0 6px;font-weight:550}
.formatter-panel textarea{min-height:185px}.formatter-panel .btn{margin-top:12px}
.format-examples{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.format-examples button{border:1px solid var(--line);background:var(--paper);border-radius:999px;padding:7px 12px;font-size:14px}
.formatter-panel [role=status]{font-size:14px;color:#68665f;margin-top:8px}
@media(max-width:1000px){
 .library-layout{grid-template-columns:minmax(165px,24%) minmax(0,1fr)}.library-layout .template-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
 .hub-inner{width:calc(100% - 48px)}.hub-templates,.hub-three,.compare-directory{gap:16px}.hub-featured{min-height:205px}
 .detail-layout{gap:22px;grid-template-columns:minmax(0,2.6fr) minmax(190px,1fr)}.preview-index{padding-right:5px}.preview-index strong,.preview-index a{font-size:12px}
}
@media(max-width:700px){
 .resource-intro{padding:50px 20px 0}.resource-intro>img{max-width:100%;margin-bottom:28px}
 .hub-intro>img{height:auto;aspect-ratio:556/120}
 .resource-intro h1,.detail-band h1{font-size:clamp(36px,9vw,48px);line-height:1.09}.resource-intro>p{font-size:16px;margin-top:16px}
 .template-search{height:61px;margin-top:28px;padding-inline:18px 10px}
 .library-layout{display:block;padding:25px 0 60px}.library-filters{position:relative;top:0;max-height:none;overflow:visible;margin-bottom:12px}
 .library-filters>button{display:inline-flex;align-items:center;gap:8px;border:0;border-radius:999px;padding:3px 9px;background:var(--sand);font-size:13px;min-height:29px}
 #library-categories{display:none;position:absolute;top:calc(100% + 4px);left:0;min-width:min(285px,100%);max-height:48vh;overflow:auto;z-index:4;background:white;box-shadow:0 6px 22px #40372d26;border:1px solid var(--line);border-radius:13px;padding:8px}
 .is-open #library-categories{display:flex}.library-filters a{font-size:14px}
 .library-layout .template-cards,.template-cards{grid-template-columns:1fr;gap:18px}.template-card>div+div{padding:16px 18px 0}
 .template-card h3{font-size:18px}.template-card p{font-size:15px}
 .hub-inner,.template-lower{width:calc(100% - 40px)}.hub-intro{margin-bottom:64px}
 .hub-heading>div{margin:8px 0 22px;align-items:start}.hub-heading p{font-size:15px}.hub-heading>div>a{font-size:14px}
 .hub-inner>section+section{margin-top:62px}
 .hub-templates{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.hub-featured{min-width:0;width:100%;padding:15px 12px;min-height:170px;aspect-ratio:.92}
 .hub-featured h3{margin-top:12px;font-size:16px}
 .hub-three,.hub-blog,.compare-directory{grid-template-columns:1fr}.hub-three{gap:22px}.guide-art{max-height:230px}.hub-learn-card h3{margin:12px auto 1px}
 .hub-blog{gap:12px}.hub-blog>a{padding:10px;gap:15px;min-height:100px;grid-template-columns:31% 1fr}.hub-blog h3,.hub-stories h3{font-size:17px}.hub-blog p,.hub-stories p{font-size:14px}
 .hub-stories{gap:12px}.hub-stories>a{grid-template-columns:1fr;gap:9px;padding:15px}.hub-stories>a>span{display:none}.hub-story-mark{font-size:17px}.hub-story-mark svg{width:19px}
 .hub-compare-card{min-height:145px;padding:18px}.hub-compare-card>div{margin-bottom:12px}
 .hub-free{grid-template-columns:1fr;gap:20px;padding-bottom:68px}.hub-free>a{min-height:160px}.compare-directory{padding-block:50px}
 .detail-band{padding:49px 0 86px}.detail-band:after{height:75px;bottom:-42px}
 .detail-band h1{margin:31px 0 19px}.detail-layout{display:block;margin-top:20px}
 .doc-preview{display:block;aspect-ratio:1;padding:0;border-radius:14px}
 .preview-index{display:none;position:absolute;top:45px;bottom:6px;left:4px;width:76%;z-index:3;background:#f4f5f7;border:1px solid #e0e1e3;box-shadow:4px 6px 12px #24242b14;border-radius:7px;padding:10px}
 .show-index .preview-index{display:block}.preview-sheet{height:100%}.preview-bar [data-preview-menu]{display:grid}.preview-bar>span{flex:1}
 .preview-scroll{padding:9px 16px 20px}.preview-cover{height:clamp(145px,48vw,212px)}.preview-cover img{width:44%}
 .preview-text{padding:18px 0}.template-actions{margin-top:24px;font-size:17px}.template-actions>.btn{margin:18px 0 22px}
 .template-actions [data-copy-status]:empty{min-height:0}.template-lower{margin-bottom:60px}
 .template-use p,.template-faq>p{font-size:16px}
 .related-templates,.template-faq{margin-top:53px}.template-faq details summary{font-size:17px}.template-editor{padding:39px 0 55px}.template-editor textarea,.formatter-panel textarea{padding:14px;font-size:14px}.editor-toolbar{align-items:start;flex-direction:column}
 .formatter-panel{margin:38px auto 60px;padding:20px}.formatter-intro h1{font-size:36px}
}

.take-template{display:flex;gap:10px;flex-wrap:wrap;margin-top:23px}
.template-use [data-copy-status],.template-actions [data-share-status]{display:block;margin-top:6px;font-size:14px}
.template-use [data-md]{width:100%;min-height:100px;font:15px monospace}
