/* BizzLibrary public design system — lightweight, framework-free, server-rendered. */
:root{
  --ink:#0d1728;--ink-2:#25334b;--muted:#667085;--muted-2:#98a2b3;
  --line:#e7eaf0;--line-strong:#d6dbe5;--surface:#fff;--surface-2:#f7f8fb;--surface-3:#eef2f8;
  --brand:#2251ff;--brand-2:#1537b8;--brand-soft:#edf1ff;--accent:#17a673;--accent-soft:#e8f8f2;
  --warning:#a15c00;--warning-soft:#fff5dd;--danger:#b42318;--danger-soft:#fff0ee;
  --shadow-sm:0 1px 2px rgba(16,24,40,.04),0 5px 18px rgba(16,24,40,.05);
  --shadow-md:0 8px 30px rgba(16,24,40,.08),0 2px 8px rgba(16,24,40,.04);
  --shadow-lg:0 22px 70px rgba(16,24,40,.12);
  --radius-sm:.65rem;--radius:.9rem;--radius-lg:1.35rem;--radius-xl:1.8rem;
  --shell:1240px;--header-h:72px;
  --space-1:.35rem;--space-2:.6rem;--space-3:.85rem;--space-4:1.15rem;--space-5:1.6rem;--space-6:2.25rem;--space-7:3.2rem;--space-8:4.5rem;
  --font:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
*{box-sizing:border-box}html{font-family:var(--font);color:var(--ink);background:#fff;scroll-behavior:smooth;text-size-adjust:100%}body{margin:0;min-width:320px;background:var(--surface);color:var(--ink);font-size:16px;line-height:1.55;-webkit-font-smoothing:antialiased}img,svg{display:block;max-width:100%}img{height:auto}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}a{color:var(--brand-2);text-underline-offset:.16em;text-decoration-thickness:.08em}a:hover{color:var(--brand)}::selection{background:#dce5ff;color:#101828}
:focus-visible{outline:3px solid #86a0ff;outline-offset:3px;border-radius:.2rem}.sr-only,.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.skip-link{position:fixed;left:1rem;top:-5rem;z-index:1000;background:#fff;color:var(--ink);padding:.8rem 1rem;border:1px solid var(--line);border-radius:.7rem;box-shadow:var(--shadow-md)}.skip-link:focus{top:1rem}
.shell,.container{width:min(calc(100% - 2rem),var(--shell));margin-inline:auto}.content-width{width:min(calc(100% - 2rem),820px);margin-inline:auto}.auth-width{width:min(calc(100% - 2rem),560px);margin-inline:auto}.section{padding-block:clamp(3.3rem,7vw,6.5rem)}.section-tight{padding-block:clamp(2.3rem,5vw,4.25rem)}
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);border-bottom:1px solid transparent;backdrop-filter:saturate(160%) blur(15px);transition:border-color .2s ease,box-shadow .2s ease}.site-header.is-scrolled{border-color:var(--line);box-shadow:0 2px 12px rgba(16,24,40,.035)}.header-bar{height:var(--header-h);display:grid;grid-template-columns:auto auto minmax(220px,430px) auto;gap:clamp(.7rem,2vw,1.5rem);align-items:center}.brand{display:inline-flex;align-items:center;gap:.68rem;text-decoration:none;color:var(--ink);font-weight:800;letter-spacing:-.035em}.brand:hover{color:var(--ink)}.brand-word{font-size:1.25rem}.brand-word span{color:var(--brand)}.brand-mark{width:31px;height:31px;border-radius:.7rem;background:var(--ink);display:flex;align-items:flex-end;gap:3px;padding:6px}.brand-mark span{display:block;width:5px;background:#fff;border-radius:2px}.brand-mark span:nth-child(1){height:9px}.brand-mark span:nth-child(2){height:15px;background:#8da6ff}.brand-mark span:nth-child(3){height:20px}.desktop-nav{display:flex;align-items:center;gap:.15rem}.desktop-nav a,.account-link,.text-button{min-height:44px;display:inline-flex;align-items:center;padding:.5rem .72rem;border-radius:.65rem;text-decoration:none;color:var(--ink-2);font-size:.93rem;font-weight:650;white-space:nowrap}.desktop-nav a:hover,.account-link:hover,.text-button:hover{background:var(--surface-2);color:var(--ink)}.text-button{border:0;background:transparent;cursor:pointer}.header-search{height:44px;border:1px solid var(--line-strong);border-radius:.8rem;display:flex;align-items:center;gap:.55rem;padding:0 .85rem;background:#fff;transition:border-color .18s,box-shadow .18s}.header-search:focus-within{border-color:#91a6ff;box-shadow:0 0 0 4px rgba(34,81,255,.08)}.header-search svg{width:18px;height:18px;fill:none;stroke:var(--muted);stroke-width:1.9;stroke-linecap:round}.header-search input{width:100%;border:0;outline:0;background:transparent;color:var(--ink);min-width:0}.header-search input::placeholder{color:var(--muted-2)}.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:.2rem}.header-actions form{margin:0}.icon-link{width:44px;height:44px;display:grid;place-items:center;border-radius:.7rem;color:var(--ink);text-decoration:none}.icon-link:hover{background:var(--surface-2);color:var(--ink)}.icon-link svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.nav-toggle{display:none;width:44px;height:44px;border:0;background:transparent;border-radius:.7rem;place-items:center;cursor:pointer}.nav-toggle span:not(.sr-only){display:block;width:21px;height:2px;background:var(--ink);border-radius:2px;transition:.2s}.nav-toggle span:last-child{margin-top:5px}.mobile-nav{display:none;border-top:1px solid var(--line);background:#fff;max-height:calc(100dvh - var(--header-h));overflow:auto}.mobile-nav-inner{padding-block:1rem 1.4rem}.mobile-search{display:grid;grid-template-columns:1fr auto;gap:.55rem;margin-bottom:1rem}.mobile-search input{min-width:0}.mobile-nav nav{display:grid}.mobile-nav nav a{min-height:50px;padding:.75rem .2rem;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;text-decoration:none;color:var(--ink);font-weight:700}.mobile-nav nav a span{color:var(--muted)}
.flash-wrap{padding-top:1rem}.flash{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.85rem 1rem;border-radius:var(--radius);font-weight:600}.flash-success{background:var(--accent-soft);color:#08623f}.flash-warning{background:var(--warning-soft);color:#784200}.flash button{border:0;background:transparent;color:inherit;font-size:1.4rem;line-height:1;cursor:pointer;width:40px;height:40px}
.site-footer{margin-top:clamp(4rem,8vw,7rem);background:#0b1220;color:#d0d5dd;padding-top:clamp(3.5rem,6vw,5.5rem)}.footer-grid{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:3rem}.site-footer .brand{color:#fff}.site-footer .brand-word span{color:#8ba4ff}.footer-brand p{max-width:28rem;margin-top:1rem;color:#98a2b3}.site-footer h2{font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;color:#98a2b3;margin:0 0 1rem}.site-footer a:not(.brand){display:block;color:#e4e7ec;text-decoration:none;margin:.7rem 0;font-size:.94rem}.site-footer a:hover{color:#fff}.footer-bottom{margin-top:3rem;border-top:1px solid #243047;padding:1.25rem 0 1.7rem;display:flex;justify-content:space-between;gap:1rem;color:#667085;font-size:.85rem}
.hero{position:relative;overflow:hidden;background:linear-gradient(180deg,#f7f9ff 0%,#fff 74%)}.hero::before{content:"";position:absolute;inset:-15rem -5rem auto auto;width:42rem;height:42rem;border-radius:50%;background:radial-gradient(circle,rgba(91,123,255,.19),rgba(91,123,255,0) 68%);pointer-events:none}.hero-grid{min-height:min(680px,calc(100vh - var(--header-h)));display:grid;grid-template-columns:minmax(0,1.08fr) minmax(350px,.92fr);gap:clamp(2rem,6vw,6rem);align-items:center;padding-block:clamp(4rem,9vw,8rem)}.hero-copy{position:relative;z-index:1}.eyebrow{margin:0 0 .75rem;color:var(--brand);font-size:.78rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.hero h1,.page-title{margin:0;color:#0a1426;font-size:clamp(2.35rem,5vw,4.25rem);line-height:1.02;letter-spacing:-.045em;font-weight:850;max-width:15ch;overflow-wrap:anywhere}.hero .lead{max-width:45rem;margin:1.35rem 0 0;color:var(--muted);font-size:clamp(1.05rem,1.6vw,1.25rem);line-height:1.65}.hero-search{margin-top:2rem;max-width:720px;background:#fff;border:1px solid #d9deea;border-radius:1rem;padding:.45rem;display:grid;grid-template-columns:1fr auto;box-shadow:0 18px 50px rgba(30,48,94,.12)}.hero-search input{height:54px;border:0;outline:0;padding:0 .95rem;background:transparent;color:var(--ink);min-width:0}.hero-search .btn{min-width:145px}.hero-meta{margin-top:1.25rem;display:flex;flex-wrap:wrap;gap:.8rem 1.3rem;color:var(--muted);font-size:.9rem}.hero-meta span{display:flex;align-items:center;gap:.45rem}.hero-meta svg{width:18px;height:18px;stroke:var(--accent);fill:none;stroke-width:2}.hero-visual{position:relative}.document-stack{position:relative;min-height:490px}.doc-card{position:absolute;background:#fff;border:1px solid #e2e6ee;border-radius:1.1rem;box-shadow:var(--shadow-lg);overflow:hidden}.doc-card-main{width:min(86%,430px);right:2%;top:4%;transform:rotate(1.4deg)}.doc-card-secondary{width:68%;left:0;bottom:5%;transform:rotate(-5deg);opacity:.98}.doc-topbar{height:38px;background:#f7f8fa;border-bottom:1px solid #eceef2;display:flex;align-items:center;gap:5px;padding:0 12px}.doc-dot{width:7px;height:7px;border-radius:50%;background:#d0d5dd}.doc-page{aspect-ratio:4/5;padding:12% 11%;background:linear-gradient(90deg,#fff,#fcfcfd)}.doc-logo{width:34%;height:10px;background:var(--brand);border-radius:5px;margin-bottom:16%}.doc-heading{width:80%;height:15px;background:#17233b;border-radius:4px;margin-bottom:9px}.doc-heading.short{width:57%}.doc-line{height:6px;border-radius:3px;background:#d7dce6;margin:8px 0}.doc-line.w80{width:80%}.doc-line.w65{width:65%}.doc-block{height:70px;margin-top:11%;border-radius:8px;background:#f1f4fa;border:1px solid #e6eaf2}.doc-stamp{position:absolute;right:10%;bottom:10%;padding:.5rem .7rem;border-radius:.55rem;background:var(--accent-soft);color:#0b7650;font-size:.75rem;font-weight:800;transform:rotate(-4deg)}.floating-chip{position:absolute;z-index:4;padding:.75rem .9rem;border:1px solid var(--line);border-radius:.8rem;background:rgba(255,255,255,.94);box-shadow:var(--shadow-md);font-size:.82rem;font-weight:750;color:var(--ink-2);backdrop-filter:blur(8px)}.chip-one{right:-1%;bottom:16%}.chip-two{left:7%;top:10%}
.section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:2rem;margin-bottom:2rem}.section-head h2,.archive-title{margin:.2rem 0 0;font-size:clamp(1.85rem,3vw,2.7rem);line-height:1.08;letter-spacing:-.035em;overflow-wrap:anywhere}.section-head p{margin:.65rem 0 0;color:var(--muted);max-width:46rem}.text-link{display:inline-flex;align-items:center;gap:.35rem;font-weight:750;text-decoration:none;white-space:nowrap}.text-link:hover{text-decoration:underline}.category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}.category-card,.category-tile{position:relative;display:flex;flex-direction:column;min-height:190px;padding:1.4rem;border:1px solid var(--line);border-radius:var(--radius-lg);background:#fff;text-decoration:none;color:var(--ink);transition:transform .2s,border-color .2s,box-shadow .2s}.category-card:hover,.category-tile:hover{color:var(--ink);transform:translateY(-3px);border-color:#cfd7ea;box-shadow:var(--shadow-md)}.category-icon{width:42px;height:42px;border-radius:.8rem;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;margin-bottom:1.25rem}.category-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.category-card h2,.category-card h3,.category-tile h2,.category-tile h3{font-size:1.1rem;line-height:1.25;letter-spacing:-.02em;margin:0}.category-card p,.category-tile p{color:var(--muted);font-size:.9rem;margin:.6rem 0 1rem;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.category-card-foot{margin-top:auto;display:flex;justify-content:space-between;gap:.5rem;align-items:center;color:var(--muted);font-size:.84rem}.category-card-foot strong{color:var(--ink-2)}
.template-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.25rem}.template-card{container-type:inline-size;min-width:0;position:relative;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:var(--radius-lg);background:#fff;overflow:hidden;transition:transform .2s,border-color .2s,box-shadow .2s}.template-card:hover{transform:translateY(-4px);border-color:#ced6e8;box-shadow:var(--shadow-md)}.template-card-media{position:relative;aspect-ratio:4/3;background:linear-gradient(145deg,#f0f3f8,#fafbfc);display:grid;place-items:center;overflow:hidden;text-decoration:none}.template-card-media img{width:100%;height:100%;object-fit:contain;padding:.45rem;transition:transform .35s ease}.template-card:hover .template-card-media img{transform:scale(1.025)}.template-placeholder{width:60%;height:72%;background:#fff;border:1px solid #dfe4ec;border-radius:.4rem;box-shadow:0 10px 30px rgba(16,24,40,.08);padding:14%;display:flex;flex-direction:column;gap:7px}.template-placeholder span{height:4px;border-radius:4px;background:#d8dee8}.template-placeholder span:first-child{width:55%;height:7px;background:#6f8cff;margin-bottom:4px}.template-card-badge{position:absolute;top:.75rem;left:.75rem;z-index:2;padding:.34rem .55rem;border-radius:999px;background:rgba(11,18,32,.88);color:#fff;font-size:.7rem;font-weight:800;letter-spacing:.02em;backdrop-filter:blur(8px)}.template-card-badge.free{background:rgba(7,117,79,.9)}.template-card-body{display:flex;flex-direction:column;flex:1;padding:1.15rem}.template-card-kicker{display:flex;justify-content:space-between;align-items:center;gap:.5rem;color:var(--muted);font-size:.75rem;text-transform:uppercase;letter-spacing:.05em;font-weight:750}.template-card h2,.template-card h3{font-size:1.03rem;line-height:1.35;margin:.55rem 0 0;letter-spacing:-.018em}.template-card h2 a,.template-card h3 a{color:var(--ink);text-decoration:none}.template-card-summary{color:var(--muted);font-size:.87rem;line-height:1.5;margin:.6rem 0 1.1rem;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.template-card-foot{margin-top:auto;display:flex;justify-content:space-between;align-items:center;gap:.8rem}.template-card-price{font-weight:800;color:var(--ink)}.template-card-open{width:34px;height:34px;border-radius:50%;background:var(--surface-2);display:grid;place-items:center;color:var(--ink);transition:background .18s,color .18s}.template-card:hover .template-card-open{background:var(--brand);color:#fff}.template-card-open svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2}
.trust-band{border-block:1px solid var(--line);background:var(--surface-2)}.trust-grid{display:grid;grid-template-columns:repeat(4,1fr)}.trust-item{padding:1.5rem;display:flex;align-items:flex-start;gap:.8rem;border-right:1px solid var(--line)}.trust-item:last-child{border:0}.trust-icon{width:36px;height:36px;flex:0 0 36px;border-radius:.7rem;display:grid;place-items:center;background:#fff;color:var(--brand);box-shadow:var(--shadow-sm)}.trust-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}.trust-item strong{display:block;font-size:.9rem}.trust-item span{display:block;color:var(--muted);font-size:.8rem;margin-top:.15rem}
.page-hero{padding:clamp(2.5rem,6vw,5rem) 0 2.4rem;background:linear-gradient(180deg,#f8faff,#fff)}.page-hero .archive-title{max-width:18ch}.page-hero .lead{font-size:1.08rem;color:var(--muted);max-width:50rem;margin:.9rem 0 0}.result-count{display:inline-flex;margin-top:1.1rem;padding:.38rem .65rem;border-radius:999px;background:var(--surface-3);color:var(--ink-2);font-size:.8rem;font-weight:750}.breadcrumb{list-style:none;margin:0 0 1.6rem;padding:0;display:flex;align-items:center;flex-wrap:wrap;gap:.35rem;color:var(--muted);font-size:.82rem}.breadcrumb-item{display:flex;align-items:center}.breadcrumb-item+ .breadcrumb-item::before{content:"/";margin-right:.35rem;color:#b2b9c6}.breadcrumb a{color:var(--muted);text-decoration:none}.breadcrumb a:hover{color:var(--ink)}.breadcrumb .active{color:var(--ink-2)}.archive-body{padding:2.3rem 0 clamp(4rem,7vw,7rem)}.subcategory-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-bottom:3.5rem}.subcategory-card{display:flex;justify-content:space-between;align-items:center;gap:1rem;min-height:92px;padding:1rem 1.1rem;border:1px solid var(--line);border-radius:var(--radius);text-decoration:none;color:var(--ink);background:#fff}.subcategory-card:hover{border-color:#c9d2e4;box-shadow:var(--shadow-sm);color:var(--ink)}.subcategory-card strong{display:block}.subcategory-card small{display:block;color:var(--muted);margin-top:.2rem}.subcategory-arrow{width:34px;height:34px;border-radius:50%;background:var(--surface-2);display:grid;place-items:center;flex:0 0 34px}.archive-toolbar{display:flex;justify-content:space-between;align-items:flex-end;gap:1rem;margin:0 0 1.4rem}.archive-toolbar h2{margin:0;font-size:clamp(1.45rem,2.5vw,2rem);letter-spacing:-.03em}.archive-toolbar span{color:var(--muted);font-size:.9rem}.tag-cloud{display:flex;flex-wrap:wrap;gap:.7rem}.tag-chip{display:inline-flex;align-items:center;gap:.55rem;min-height:44px;padding:.6rem .8rem;border:1px solid var(--line);border-radius:999px;text-decoration:none;color:var(--ink-2);background:#fff;font-size:.9rem;font-weight:650}.tag-chip:hover{color:var(--brand);border-color:#bfcafb;background:var(--brand-soft)}.tag-count{display:inline-grid;place-items:center;min-width:25px;height:25px;padding:0 .35rem;border-radius:999px;background:var(--surface-3);font-size:.72rem;color:var(--muted)}
.search-panel{margin:-.75rem 0 2rem;padding:1rem;border:1px solid var(--line);border-radius:var(--radius-lg);background:#fff;box-shadow:var(--shadow-sm)}.filter-grid{display:grid;grid-template-columns:minmax(240px,2.4fr) repeat(3,minmax(110px,1fr)) auto;gap:.8rem;align-items:end}.filter-field label{display:block;font-size:.75rem;color:var(--muted);font-weight:750;margin:0 0 .35rem}.filter-check{min-height:46px;display:flex;align-items:center;gap:.5rem;padding:0 .2rem}.filter-check input{width:18px;height:18px}.empty-state{padding:clamp(2.5rem,6vw,5rem);border:1px dashed var(--line-strong);background:var(--surface-2);border-radius:var(--radius-lg);text-align:center}.empty-state h2,.empty-state h3{margin:0}.empty-state p{color:var(--muted)}
.pagination{list-style:none;display:flex;justify-content:center;flex-wrap:wrap;gap:.35rem;padding:0;margin:3rem 0 0}.page-item{display:block}.page-link{min-width:42px;height:42px;padding:0 .75rem;display:grid;place-items:center;border:1px solid var(--line);border-radius:.65rem;color:var(--ink-2);text-decoration:none;background:#fff;font-size:.88rem;font-weight:650}.page-link:hover{border-color:#aebcf4;color:var(--brand);background:var(--brand-soft)}.page-item.active .page-link{background:var(--ink);border-color:var(--ink);color:#fff}
.product-shell{padding:1.3rem 0 clamp(4rem,7vw,7rem)}.product-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(340px,.75fr);gap:clamp(2rem,5vw,5rem);align-items:start}.product-gallery{min-width:0}.product-gallery-track{display:flex;overflow:auto;scroll-snap-type:x mandatory;gap:1rem;scrollbar-width:thin;scrollbar-color:#c7cedb transparent;border-radius:var(--radius-lg)}.product-preview{flex:0 0 100%;scroll-snap-align:start;margin:0;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface-2);overflow:hidden}.product-preview-frame{aspect-ratio:4/3;display:grid;place-items:center;padding:1rem}.product-preview img{width:100%;height:100%;object-fit:contain}.product-preview figcaption{border-top:1px solid var(--line);background:#fff;padding:.75rem 1rem;color:var(--muted);font-size:.82rem}.product-no-preview{font-size:clamp(2rem,5vw,4rem);font-weight:850;letter-spacing:-.05em;color:#b5bdca}.gallery-thumbs{display:flex;gap:.55rem;overflow:auto;padding:.75rem .1rem .2rem}.gallery-thumb{flex:0 0 82px;aspect-ratio:4/3;border:1px solid var(--line);border-radius:.6rem;background:var(--surface-2);padding:.25rem;display:grid;place-items:center}.gallery-thumb:hover{border-color:#9fb0f6}.gallery-thumb img{width:100%;height:100%;object-fit:cover;border-radius:.35rem}.product-buy{position:sticky;top:calc(var(--header-h) + 1.25rem);min-width:0}.product-badge{display:inline-flex;padding:.36rem .62rem;border-radius:999px;font-size:.72rem;font-weight:850;background:#131c2e;color:#fff}.product-badge.free{background:#087553}.product-title{margin:.8rem 0 0;font-size:clamp(1.8rem,3vw,2.8rem);line-height:1.08;letter-spacing:-.035em;overflow-wrap:anywhere;word-break:break-word}.product-summary{margin:1rem 0 0;color:var(--muted);font-size:1.06rem;line-height:1.65}.product-price{font-size:1.75rem;font-weight:850;letter-spacing:-.03em;margin-top:1.35rem}.product-price-note{color:var(--muted);font-size:.8rem;margin:.2rem 0 1rem}.purchase-box{margin-top:1rem;border:1px solid var(--line);border-radius:var(--radius-lg);padding:1rem;background:#fff;box-shadow:var(--shadow-sm)}.purchase-box legend{font-size:.82rem;font-weight:800;margin-bottom:.6rem}.file-list{display:grid;gap:.55rem}.file-choice{display:flex;align-items:center;gap:.75rem;padding:.8rem;border:1px solid var(--line);border-radius:.75rem;background:#fff;cursor:pointer;transition:border-color .18s,background .18s}.file-choice:has(input:checked){border-color:#91a5ff;background:var(--brand-soft);box-shadow:0 0 0 3px rgba(34,81,255,.06)}.file-choice input{width:18px;height:18px;accent-color:var(--brand);flex:0 0 auto}.file-choice>span{min-width:0;display:flex;flex-direction:column;flex:1}.file-choice strong{font-size:.87rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-choice small{color:var(--muted);font-size:.74rem}.download-choice{cursor:default}.download-choice .btn{margin-left:auto;flex:0 0 auto}.delivery-note{display:flex;gap:.55rem;align-items:flex-start;color:var(--muted);font-size:.78rem;margin-top:.8rem}.delivery-note svg{width:17px;height:17px;flex:0 0 auto;stroke:var(--accent);fill:none;stroke-width:2}.topic-links{display:flex;flex-wrap:wrap;gap:.45rem;margin-top:1.1rem}.topic-links a,.topic-links span{padding:.38rem .6rem;border-radius:999px;background:var(--surface-2);border:1px solid var(--line);text-decoration:none;color:var(--ink-2);font-size:.74rem;font-weight:650}.product-info-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:clamp(2rem,5vw,5rem);margin-top:clamp(3rem,6vw,5.5rem)}.content-body{font-size:1.05rem;line-height:1.78;color:var(--ink-2);min-width:0}.content-body h2,.content-body h3{color:var(--ink);letter-spacing:-.03em;scroll-margin-top:6rem}.content-body h2{font-size:clamp(1.65rem,3vw,2.2rem);margin:2.5rem 0 .9rem}.content-body h3{font-size:1.3rem;margin:2rem 0 .7rem}.content-body p,.content-body ul,.content-body ol{margin:0 0 1.2rem}.content-body img{max-width:100%;border-radius:var(--radius)}.info-card{border:1px solid var(--line);border-radius:var(--radius-lg);padding:1.15rem;background:var(--surface-2)}.info-card h2{font-size:.9rem;margin:0 0 .8rem}.info-list{margin:0;display:grid;grid-template-columns:1fr auto;gap:.55rem .8rem;font-size:.8rem}.info-list dt{color:var(--muted)}.info-list dd{margin:0;text-align:right;font-weight:700}.faq{margin-top:3.5rem}.faq h2{letter-spacing:-.035em}.faq details{border-top:1px solid var(--line)}.faq details:last-child{border-bottom:1px solid var(--line)}.faq summary{list-style:none;min-height:60px;padding:.95rem 2.2rem .95rem 0;display:flex;align-items:center;position:relative;font-weight:750;cursor:pointer}.faq summary::-webkit-details-marker{display:none}.faq summary::after{content:"+";position:absolute;right:.3rem;font-size:1.35rem;color:var(--muted)}.faq details[open] summary::after{content:"−"}.faq-answer{padding:0 2.2rem 1.2rem 0;color:var(--muted)}.related-section{margin-top:clamp(4rem,8vw,7rem)}
.cart-page,.checkout-page{padding:clamp(2rem,5vw,4.5rem) 0}.commerce-heading{margin-bottom:2rem}.commerce-heading h1{font-size:clamp(2rem,3.5vw,3rem);line-height:1.08;letter-spacing:-.04em;margin:0;overflow-wrap:anywhere}.commerce-heading p{color:var(--muted);max-width:45rem}.commerce-grid{display:grid;grid-template-columns:minmax(0,1fr) 370px;gap:clamp(1.5rem,4vw,3.5rem);align-items:start}.cart-list{display:grid;gap:.85rem}.cart-line{border:1px solid var(--line);border-radius:var(--radius-lg);padding:1rem 1.1rem;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1rem;align-items:center}.cart-line-title{font-size:1rem;font-weight:800;color:var(--ink);text-decoration:none}.cart-line-title:hover{color:var(--brand)}.cart-line-meta{margin-top:.25rem;color:var(--muted);font-size:.8rem}.cart-line-actions{display:flex;gap:.5rem;align-items:center}.quantity{width:72px!important}.summary-card{position:sticky;top:calc(var(--header-h) + 1.25rem);min-width:0;border:1px solid var(--line);border-radius:var(--radius-lg);padding:1.35rem;background:#fff;box-shadow:var(--shadow-sm)}.summary-card h2{margin:0 0 1rem;font-size:1.15rem}.summary-row{display:flex;justify-content:space-between;gap:1rem;padding:.42rem 0;color:var(--muted);font-size:.9rem}.summary-row strong{color:var(--ink)}.summary-total{margin-top:.8rem;padding-top:.85rem;border-top:1px solid var(--line);font-size:1.08rem;font-weight:800;color:var(--ink)}.checkout-sections{display:grid;gap:1rem}.checkout-section{border:1px solid var(--line);border-radius:var(--radius-lg);padding:clamp(1rem,3vw,1.5rem);background:#fff}.checkout-section h2{margin:0 0 1rem;font-size:1.12rem;letter-spacing:-.02em}.section-number{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;margin-right:.45rem;background:var(--ink);color:#fff;font-size:.72rem}.seller-box{padding:.85rem 1rem;border-radius:var(--radius);background:var(--surface-2);color:var(--muted);font-size:.82rem;margin-bottom:1rem}.seller-box strong{color:var(--ink)}.checkout-item{display:flex;justify-content:space-between;gap:1rem;padding:.8rem 0;border-bottom:1px solid var(--line);font-size:.86rem;min-width:0}.checkout-item:last-of-type{border-bottom:0}.checkout-item small{display:block;color:var(--muted)}.payment-methods{display:flex;flex-wrap:wrap;gap:.5rem}.payment-method-chip,.payment-methods>span.border{display:inline-flex;align-items:center;gap:.5rem;min-height:42px;padding:.5rem .65rem;border:1px solid var(--line)!important;border-radius:.65rem!important;background:#fff;color:var(--ink-2);font-size:.8rem}.payment-method-chip img,.payment-methods img{max-width:28px;max-height:20px}.legal-consents{display:grid;gap:.8rem}.consent-row{padding:.85rem;border:1px solid var(--line);border-radius:.75rem;background:var(--surface-2)}.obligation-box{padding:1rem;border-radius:var(--radius);background:#101828;color:#e4e7ec;margin:1rem 0}.obligation-box h2{margin:0 0 .35rem;font-size:.92rem;color:#fff}.obligation-box p{margin:.25rem 0;font-size:.82rem}.secure-note{display:flex;align-items:center;justify-content:center;gap:.45rem;color:var(--muted);font-size:.78rem;margin-top:.65rem}.secure-note svg{width:15px;height:15px;stroke:var(--accent);fill:none;stroke-width:2}
.btn{min-height:44px;border:1px solid transparent;border-radius:.72rem;padding:.66rem .95rem;display:inline-flex;align-items:center;justify-content:center;gap:.4rem;font-weight:750;line-height:1;text-decoration:none;cursor:pointer;transition:transform .12s,background .18s,border-color .18s,color .18s,box-shadow .18s}.btn:hover{transform:translateY(-1px)}.btn:active{transform:translateY(0)}.btn:disabled{opacity:.55;cursor:not-allowed;transform:none}.btn-primary{background:var(--brand);border-color:var(--brand);color:#fff;box-shadow:0 6px 16px rgba(34,81,255,.18)}.btn-primary:hover{background:#1745ea;border-color:#1745ea;color:#fff}.btn-secondary,.btn-outline-secondary{background:#fff;border-color:var(--line-strong);color:var(--ink-2)}.btn-secondary:hover,.btn-outline-secondary:hover{border-color:#aeb8c8;background:var(--surface-2);color:var(--ink)}.btn-success{background:#087553;border-color:#087553;color:#fff}.btn-success:hover{background:#066343;color:#fff}.btn-danger,.btn-outline-danger{background:#fff;border-color:#f2b8b4;color:var(--danger)}.btn-danger:hover,.btn-outline-danger:hover{background:var(--danger-soft);color:var(--danger)}.btn-lg{min-height:50px;padding:.8rem 1.15rem;font-size:.96rem}.w-100{width:100%}.form-label{display:block;margin:0 0 .4rem;color:var(--ink-2);font-size:.8rem;font-weight:750}.form-control,.form-select,input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea{width:100%;min-height:46px;border:1px solid var(--line-strong);border-radius:.72rem;padding:.68rem .78rem;background:#fff;color:var(--ink);outline:0;transition:border-color .18s,box-shadow .18s}.form-control:focus,.form-select:focus,input:not([type=checkbox]):not([type=radio]):not([type=hidden]):focus,select:focus,textarea:focus{border-color:#849eff;box-shadow:0 0 0 4px rgba(34,81,255,.08)}.form-control::placeholder,input::placeholder{color:#9aa3b2}.form-control-lg{min-height:52px;font-size:1rem}.form-text{margin-top:.3rem;color:var(--muted);font-size:.76rem}.form-check{display:flex;gap:.55rem;align-items:flex-start}.form-check-input{width:19px;height:19px;margin-top:.12rem;accent-color:var(--brand);flex:0 0 auto}.form-check-label{font-size:.88rem;color:var(--ink-2)}.text-danger{color:var(--danger)!important;font-size:.78rem}.validation-summary-valid{display:none}.validation-summary-errors{padding:.8rem 1rem;border-radius:.75rem;background:var(--danger-soft);color:var(--danger);font-size:.85rem;margin-bottom:1rem}.validation-summary-errors ul{margin:.25rem 0;padding-left:1.2rem}.alert{padding:.85rem 1rem;border-radius:.8rem;border:1px solid transparent;margin:1rem 0}.alert-success{background:var(--accent-soft);border-color:#bfe9d9;color:#086240}.alert-warning{background:var(--warning-soft);border-color:#f1d9a8;color:#784200}.alert-danger{background:var(--danger-soft);border-color:#f3c1bd;color:var(--danger)}.alert-info{background:#eef6ff;border-color:#cbe1fb;color:#174f83}.alert-heading{margin-top:0}.card{border:1px solid var(--line);border-radius:var(--radius-lg);background:#fff}.card-body{padding:1.25rem}.shadow-sm{box-shadow:var(--shadow-sm)}
.status-icon{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:var(--accent-soft);color:#087553;font-size:2rem;margin-inline:auto}.complete-card{border:1px solid var(--line);border-radius:var(--radius-lg);padding:1.35rem;background:#fff;box-shadow:var(--shadow-sm)}.download-row{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 0;border-bottom:1px solid var(--line)}.download-row:last-child{border:0}
/* Lightweight compatibility utilities retained for account/withdrawal views and existing Razor markup. */
.row{display:flex;flex-wrap:wrap;margin-inline:-.5rem}.row>*{padding-inline:.5rem;width:100%}.g-2{row-gap:.5rem}.g-3{row-gap:1rem}.g-4{row-gap:1.25rem}.g-5{row-gap:1.75rem}.col-5{width:41.6667%}.col-7{width:58.3333%}.col-12{width:100%}.d-flex{display:flex!important}.d-inline-flex{display:inline-flex!important}.d-block{display:block!important}.d-none{display:none!important}.flex-column{flex-direction:column!important}.flex-wrap{flex-wrap:wrap!important}.justify-content-between{justify-content:space-between!important}.justify-content-center{justify-content:center!important}.align-items-center{align-items:center!important}.align-items-start{align-items:flex-start!important}.align-items-end{align-items:flex-end!important}.gap-2{gap:.5rem!important}.gap-3{gap:.85rem!important}.vstack{display:flex;flex-direction:column}.h-100{height:100%}.flex-grow-1{flex-grow:1}.mt-auto{margin-top:auto}.mt-1{margin-top:.25rem!important}.mt-2{margin-top:.5rem!important}.mt-3{margin-top:.8rem!important}.mt-4{margin-top:1.15rem!important}.mt-5{margin-top:2rem!important}.mb-0{margin-bottom:0!important}.mb-1{margin-bottom:.25rem!important}.mb-2{margin-bottom:.5rem!important}.mb-3{margin-bottom:.8rem!important}.mb-4{margin-bottom:1.15rem!important}.mb-5{margin-bottom:2rem!important}.pt-2{padding-top:.5rem!important}.pt-3{padding-top:.8rem!important}.pt-4{padding-top:1.15rem!important}.py-2{padding-block:.5rem!important}.py-3{padding-block:.8rem!important}.py-4{padding-block:1.15rem!important}.py-5{padding-block:clamp(2.3rem,5vw,4rem)!important}.p-3{padding:.8rem!important}.p-4{padding:1.15rem!important}.p-5{padding:2rem!important}.px-2{padding-inline:.5rem!important}.px-3{padding-inline:.8rem!important}.ps-3{padding-left:.8rem!important}.border{border:1px solid var(--line)!important}.border-0{border:0!important}.border-top{border-top:1px solid var(--line)!important}.border-bottom{border-bottom:1px solid var(--line)!important}.border-start{border-left:2px solid var(--line)!important}.rounded{border-radius:.55rem!important}.rounded-3{border-radius:.75rem!important}.rounded-4{border-radius:var(--radius-lg)!important}.rounded-pill{border-radius:999px!important}.bg-white{background:#fff!important}.bg-body-tertiary{background:var(--surface-2)!important}.text-body{color:var(--ink)!important}.text-body-secondary{color:var(--muted)!important}.text-primary{color:var(--brand)!important}.text-center{text-align:center!important}.text-end{text-align:right!important}.text-decoration-none{text-decoration:none!important}.text-uppercase{text-transform:uppercase!important}.text-capitalize{text-transform:capitalize!important}.fw-normal{font-weight:400!important}.fw-semibold{font-weight:650!important}.fw-bold{font-weight:800!important}.small,small{font-size:.8rem}.lead{font-size:1.08rem;line-height:1.65}.h1{font-size:2rem}.h2{font-size:1.65rem}.h3{font-size:1.4rem}.h4{font-size:1.18rem}.h5{font-size:1rem}.h6{font-size:.9rem}.display-4{font-size:clamp(2.6rem,6vw,4.7rem);line-height:1.02}.display-5{font-size:clamp(2.2rem,5vw,3.7rem);line-height:1.04}.display-6{font-size:clamp(1.9rem,4vw,3rem);line-height:1.06}.badge{display:inline-flex;align-items:center;min-height:26px;padding:.25rem .5rem;border-radius:.45rem;font-size:.7rem;font-weight:800}.text-bg-primary{background:var(--brand);color:#fff}.text-bg-success{background:#087553;color:#fff}.text-bg-dark{background:var(--ink);color:#fff}.text-bg-light{background:var(--surface-2);color:var(--ink-2)}.position-sticky,.sticky-lg-top{position:sticky}.text-break{overflow-wrap:anywhere}.user-select-all{user-select:all}.font-monospace{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.fs-5{font-size:1.15rem}.fs-6{font-size:1rem}.img-fluid{max-width:100%;height:auto}.d-inline-block{display:inline-block}.clamp-3{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
dl.row{margin-inline:0}dl.row>*{padding-inline:0}dl dt,dl dd{margin-bottom:.4rem}
@media(min-width:576px){.col-sm-4{width:33.3333%}.col-sm-6{width:50%}.col-sm-8{width:66.6667%}.flex-sm-row{flex-direction:row!important}}
@media(min-width:768px){.col-md-4{width:33.3333%}.col-md-6{width:50%}.flex-md-row{flex-direction:row!important}}
@media(min-width:992px){.col-lg-1{width:8.3333%}.col-lg-2{width:16.6667%}.col-lg-3{width:25%}.col-lg-4{width:33.3333%}.col-lg-5{width:41.6667%}.col-lg-7{width:58.3333%}.col-lg-8{width:66.6667%}.col-lg-9{width:75%}.align-items-lg-center{align-items:center!important}.sticky-lg-top{position:sticky}.desktop-only{display:flex!important}}
@media(min-width:1200px){.col-xl-3{width:25%}}
@media(max-width:1100px){.header-bar{grid-template-columns:auto 1fr auto}.desktop-nav{display:none}.nav-toggle{display:grid}.header-search{justify-self:center;width:min(100%,430px)}.category-grid,.template-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hero-grid{grid-template-columns:1fr .8fr}.footer-grid{grid-template-columns:1.5fr repeat(3,1fr);gap:2rem}}
@media(max-width:900px){:root{--header-h:66px}.header-bar{height:var(--header-h);grid-template-columns:auto 1fr auto}.header-search,.desktop-only,.account-link{display:none!important}.nav-toggle{display:grid}.mobile-nav.is-open{display:block}.nav-open{overflow:hidden}.hero-grid{grid-template-columns:1fr;min-height:0;padding-block:4rem 2.5rem}.hero-copy{max-width:760px}.hero-visual{display:none}.category-grid,.template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.trust-grid{grid-template-columns:repeat(2,1fr)}.trust-item:nth-child(2){border-right:0}.trust-item:nth-child(-n+2){border-bottom:1px solid var(--line)}.subcategory-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-grid .filter-field:first-child{grid-column:1/-1}.product-layout{grid-template-columns:1fr}.product-buy{position:static}.product-info-layout{grid-template-columns:1fr}.info-card{order:-1}.commerce-grid{grid-template-columns:1fr}.summary-card{position:static}.footer-grid{grid-template-columns:1.5fr 1fr 1fr}.footer-grid>div:last-child{grid-column:2/4}}
@media(max-width:640px){.shell,.container,.content-width,.auth-width{width:min(calc(100% - 1.25rem),var(--shell))}.brand-word{font-size:1.1rem}.brand-mark{width:29px;height:29px}.hero-grid{padding-block:3.2rem 1.5rem}.hero h1{font-size:clamp(2.25rem,10vw,3.35rem)}.hero-search{grid-template-columns:1fr}.hero-search .btn{width:100%;min-width:0}.hero-meta{display:grid;grid-template-columns:1fr 1fr;gap:.65rem}.section-head{align-items:flex-start;flex-direction:column;gap:.7rem}.category-grid,.template-grid,.subcategory-strip{grid-template-columns:1fr}.category-card,.category-tile{min-height:160px}.trust-grid{grid-template-columns:1fr}.trust-item{border-right:0!important;border-bottom:1px solid var(--line)!important}.trust-item:last-child{border-bottom:0!important}.filter-grid{grid-template-columns:1fr}.filter-grid .filter-field:first-child{grid-column:auto}.product-shell{padding-top:.8rem}.product-layout{gap:1.5rem}.product-preview-frame{padding:.4rem}.product-title{font-size:clamp(1.75rem,8vw,2.2rem)}.product-info-layout{margin-top:2.5rem}.cart-line{grid-template-columns:1fr}.cart-line-actions{flex-wrap:wrap}.footer-grid{grid-template-columns:1fr 1fr;gap:2rem 1.5rem}.footer-brand{grid-column:1/-1}.footer-grid>div:last-child{grid-column:auto}.footer-bottom{flex-direction:column}.download-row{align-items:flex-start;flex-direction:column}.row{margin-inline:-.35rem}.row>*{padding-inline:.35rem}.col-5,.col-7{width:100%}.text-end{text-align:left!important}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
/* Small finishing rules */
fieldset{border:0;margin:0;padding:0;min-width:0}legend{padding:0}h1,h2,h3,h4,h5,h6{color:var(--ink)}.btn-outline-primary{background:#fff;border-color:#a9b8ff;color:var(--brand)}.btn-outline-primary:hover{background:var(--brand-soft);border-color:#8ea3ff;color:var(--brand-2)}
.product-preview{scroll-margin-top:calc(var(--header-h) + 1rem)}
.mobile-nav.is-open{display:block}.mobile-nav form.mobile-signout{margin:0}.mobile-signout button{width:100%;min-height:50px;padding:.75rem .2rem;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:left;color:var(--ink);font-weight:700;cursor:pointer}

/* Long-title and responsive overflow safety */
.product-layout>* ,.commerce-grid>* ,.cart-line>* ,.template-card-body{min-width:0}
.checkout-item>span{min-width:0;flex:1 1 auto;overflow-wrap:anywhere;word-break:break-word}
.checkout-item>strong{flex:0 0 auto;white-space:nowrap}
.cart-line-title,.template-card-title,.category-card h2,.category-card h3,.category-tile h2,.category-tile h3,.breadcrumb-item,.file-choice strong{overflow-wrap:anywhere;word-break:break-word}
.summary-row>span,.summary-row>strong{min-width:0;overflow-wrap:anywhere}
.content-body{min-width:0;overflow-wrap:anywhere}


/* Template detail discovery, support and unbroken-content safety */
.product-shell,.product-layout,.product-gallery,.product-buy,.product-info-layout,.template-discovery,.related-section,.support-panel{min-width:0;max-width:100%}
.product-buy>*{min-width:0;max-width:100%}
.product-title,.product-summary,.product-price-note,.delivery-note span,.info-list dd,.info-category-link,.support-panel p,.support-panel h2,.support-panel span,.discovery-card h3,.discovery-links a,.topic-links a,.topic-links span,.section-copy{overflow-wrap:anywhere;word-break:break-word;hyphens:auto}
.product-summary{white-space:normal;max-width:100%}
.content-body p,.content-body li,.content-body a,.faq summary,.faq-answer{overflow-wrap:anywhere;word-break:break-word}
.content-body img,.content-body iframe,.content-body video{max-width:100%;height:auto}
.content-body table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.content-body pre{max-width:100%;overflow-x:auto;white-space:pre-wrap;overflow-wrap:anywhere}
.content-body code{overflow-wrap:anywhere;word-break:break-word}
.template-discovery{margin-top:clamp(2.6rem,6vw,5rem);padding-top:clamp(2rem,4vw,3.2rem);border-top:1px solid var(--line)}
.section-copy{margin:.55rem 0 0;color:var(--muted);max-width:720px;line-height:1.65}
.discovery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:1.25rem}
.discovery-card{min-width:0;border:1px solid var(--line);border-radius:var(--radius-lg);background:linear-gradient(180deg,#fff 0%,var(--surface-2) 100%);padding:clamp(1.15rem,2.5vw,1.6rem)}
.discovery-card h3{font-size:clamp(1.15rem,2vw,1.4rem);margin:.2rem 0 1rem}
.discovery-label{margin:0;color:var(--brand);font-size:.72rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.discovery-links{display:grid;gap:.55rem}
.discovery-links a{display:flex;align-items:center;justify-content:space-between;gap:.75rem;min-height:42px;padding:.65rem .75rem;border:1px solid var(--line);border-radius:.7rem;background:#fff;color:var(--ink);font-weight:700;text-decoration:none}
.discovery-links a:hover{border-color:#aebcff;background:var(--brand-soft);color:var(--brand-2)}
.topic-links-large{gap:.55rem;margin-top:.2rem}
.topic-links-large a,.topic-links-large span{max-width:100%;white-space:normal}
.discovery-all-link{display:inline-flex;margin-top:1rem}
.support-panel{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:clamp(1rem,4vw,2.5rem);align-items:center;margin-top:clamp(2.4rem,5vw,4rem);padding:clamp(1.25rem,3vw,2rem);border:1px solid #cfd7ff;border-radius:var(--radius-lg);background:linear-gradient(135deg,#f6f8ff 0%,#fff 58%,#f4fbf8 100%)}
.support-panel-copy{min-width:0}
.support-panel h2{margin:.2rem 0 .55rem;font-size:clamp(1.35rem,2.4vw,1.85rem)}
.support-panel p{margin:0;max-width:760px;color:var(--ink-2);line-height:1.65}
.support-panel-action{min-width:0;display:flex;flex-direction:column;align-items:flex-end;gap:.55rem}
.support-panel-action span{max-width:260px;color:var(--muted);font-size:.82rem;text-align:right}
.related-section{margin-top:clamp(3rem,7vw,5.5rem)}
@media(max-width:760px){.discovery-grid{grid-template-columns:1fr}.support-panel{grid-template-columns:1fr}.support-panel-action{align-items:flex-start}.support-panel-action span{text-align:left;max-width:100%}}
.template-card h3,.template-card h3 a,.template-card-summary,.template-card-kicker span{min-width:0;max-width:100%;overflow-wrap:anywhere;word-break:break-word;hyphens:auto}


/* Search/AI document-outline discovery */
.inside-template{min-width:0;max-width:100%;margin-top:clamp(2.75rem,6vw,4.5rem);padding:clamp(1.25rem,3vw,2rem);border:1px solid var(--line);border-radius:var(--radius-lg);background:linear-gradient(145deg,#f8faff 0%,#fff 70%)}
.inside-template-head{display:flex;justify-content:space-between;align-items:flex-start;gap:1.5rem;min-width:0}
.inside-template-head>div{min-width:0}.inside-template h2{margin:.15rem 0 .55rem;font-size:clamp(1.55rem,2.6vw,2.05rem);line-height:1.12;letter-spacing:-.03em;overflow-wrap:anywhere}.inside-template-head p:not(.eyebrow){margin:0;max-width:48rem;color:var(--muted);overflow-wrap:anywhere;word-break:break-word}
.inside-template-meta{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.4rem;flex:0 0 auto}.inside-template-meta span,.semantic-kind{display:inline-flex;align-items:center;padding:.3rem .55rem;border:1px solid #dce3f3;border-radius:999px;background:#fff;color:var(--ink-2);font-size:.7rem;font-weight:750;text-transform:uppercase;letter-spacing:.045em}
.semantic-outline{list-style:none;margin:1.35rem 0 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.semantic-outline li{min-width:0;display:grid;grid-template-columns:2rem minmax(0,1fr);gap:.65rem;align-items:flex-start;padding:.8rem .85rem;border:1px solid var(--line);border-radius:.78rem;background:#fff}.semantic-outline li>div{min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:.35rem .5rem}.semantic-outline strong{min-width:0;font-size:.9rem;line-height:1.4;color:var(--ink);overflow-wrap:anywhere;word-break:break-word}.semantic-number{width:2rem;height:2rem;display:grid;place-items:center;border-radius:.58rem;background:var(--brand-soft);color:var(--brand-2);font-size:.73rem;font-weight:850}.semantic-level-2{margin-left:.8rem}.semantic-level-3,.semantic-level-4,.semantic-level-5,.semantic-level-6{margin-left:1.35rem}
@media(max-width:700px){.inside-template-head{display:grid;gap:.9rem}.inside-template-meta{justify-content:flex-start}.semantic-outline{grid-template-columns:1fr}.semantic-level-2,.semantic-level-3,.semantic-level-4,.semantic-level-5,.semantic-level-6{margin-left:0}}

/* Editorial landing pages + verified customer reviews */
.editorial-landing-hero{padding-block:clamp(2.8rem,6vw,5.2rem);background:linear-gradient(180deg,#f6f8ff 0%,#fff 100%);border-bottom:1px solid var(--line)}
.editorial-landing-hero .archive-title{max-width:18ch}.editorial-landing-hero .lead{max-width:760px;color:var(--muted);font-size:clamp(1.05rem,1.8vw,1.22rem);line-height:1.7}
.editorial-landing{padding-top:clamp(2rem,4vw,3.5rem)}.landing-editorial-content{max-width:900px;font-size:1.02rem;line-height:1.75}.landing-editorial-content h2{margin-top:2.2rem}.landing-editorial-content h3{margin-top:1.6rem}
.product-rating-summary{display:inline-flex;align-items:center;gap:.55rem;margin:.1rem 0 .7rem;padding:.45rem .65rem;border:1px solid #d8dfef;border-radius:999px;background:#fff;text-decoration:none;color:var(--ink-2);font-size:.85rem}.product-rating-summary strong{color:#8a5a00}.product-rating-summary:hover{border-color:#aebcff;background:var(--brand-soft);color:var(--ink)}
.customer-reviews{margin-top:clamp(2.75rem,6vw,4.5rem);padding-top:clamp(2rem,4vw,3rem);border-top:1px solid var(--line)}.review-list{display:grid;gap:.85rem;margin-top:1.25rem}.review-card{min-width:0;padding:1.15rem 1.2rem;border:1px solid var(--line);border-radius:var(--radius);background:#fff;box-shadow:var(--shadow-sm)}.review-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}.review-card-head>div:first-child{display:flex;flex-wrap:wrap;align-items:center;gap:.45rem .65rem;min-width:0}.verified-review-badge{display:inline-flex;align-items:center;padding:.22rem .45rem;border-radius:999px;background:var(--accent-soft);color:#08704a;font-size:.7rem;font-weight:800}.review-stars{flex:0 0 auto;color:#a76800;letter-spacing:.04em;white-space:nowrap}.review-card p{margin:.85rem 0 .55rem;color:var(--ink-2);white-space:pre-line;overflow-wrap:anywhere}.review-card time{color:var(--muted);font-size:.78rem}
@media(max-width:640px){.review-card-head{display:grid;gap:.55rem}.review-stars{justify-self:start}}

/* Phase 2: solution workflows and jurisdiction discovery */
.directory-shell,.solution-shell{padding-top:2rem;padding-bottom:5rem}.directory-hero,.solution-hero{max-width:900px;margin:1.5rem 0 2.5rem}.directory-hero h1,.solution-hero h1{max-width:820px}.directory-hero>p:last-child,.solution-lead{font-size:1.15rem;line-height:1.7;color:var(--text-muted,#526071);max-width:780px}.solution-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem}.solution-card,.jurisdiction-card{background:#fff;border:1px solid var(--border,#e4e8ee);border-radius:18px;padding:1.5rem;display:flex;flex-direction:column;justify-content:space-between;gap:1.25rem;box-shadow:0 8px 24px rgba(15,23,42,.04)}.solution-card h2,.jurisdiction-card h2{font-size:1.3rem;margin:.35rem 0 .65rem}.solution-card h2 a,.jurisdiction-card h2 a{color:inherit;text-decoration:none}.solution-meta,.solution-facts,.jurisdiction-counts,.scope-tags{display:flex;flex-wrap:wrap;gap:.5rem}.solution-meta span,.solution-facts span,.solution-facts a,.scope-tags a,.jurisdiction-counts span{display:inline-flex;align-items:center;border-radius:999px;background:#f2f5f8;color:#334155;padding:.35rem .7rem;font-size:.82rem;text-decoration:none}.solution-card-foot{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;font-size:.9rem;color:#64748b}.solution-card-foot .text-link{margin-left:auto}.solution-intro{max-width:900px;margin:0 0 3rem}.workflow{margin-top:2rem}.workflow-list{list-style:none;padding:0;margin:2rem 0 0;display:grid;gap:1.35rem}.workflow-step{display:grid;grid-template-columns:52px minmax(0,1fr);gap:1rem}.workflow-number{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#0b1220;color:#fff;font-weight:700;position:sticky;top:1rem}.workflow-content{background:#fff;border:1px solid var(--border,#e4e8ee);border-radius:18px;padding:1.5rem}.workflow-order{font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;color:#64748b;margin:0 0 .25rem}.workflow-content h3{font-size:1.35rem;margin:0 0 .5rem}.workflow-summary{font-size:1.02rem;color:#526071}.workflow-body{margin:1rem 0 0;line-height:1.7}.workflow-documents{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin-top:1.25rem}.workflow-document{border:1px solid #e5e9ef;border-radius:14px;padding:1rem;background:#f9fbfc}.workflow-document-head{display:flex;flex-wrap:wrap;align-items:center;gap:.55rem}.workflow-document-head a{color:inherit;text-decoration:none}.workflow-role{font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;padding:.25rem .5rem;border-radius:999px;background:#e8edf3}.role-required{background:#fee2e2;color:#991b1b}.role-recommended{background:#dbeafe;color:#1e40af}.role-optional{background:#ecfccb;color:#3f6212}.role-supporting{background:#f3e8ff;color:#6b21a8}.workflow-document p{font-size:.9rem;color:#64748b;margin:.65rem 0}.workflow-document-meta{display:flex;justify-content:space-between;gap:.75rem;font-size:.85rem}.scope-panel,.scope-warning{background:#f7f9fb;border:1px solid #e3e8ee;border-radius:16px}.scope-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.7fr);gap:2rem;padding:1.5rem;margin:3rem 0}.scope-warning{padding:1rem 1.15rem;margin-top:1.25rem;font-size:.9rem;color:#526071}.jurisdiction-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.template-jurisdictions{border-top:1px solid #e5e9ef;margin-top:1rem;padding-top:1rem}.template-jurisdictions small{display:block;color:#64748b;margin-top:.6rem;line-height:1.45}.template-workflow-context{margin-top:3rem}.workflow-link-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.workflow-link-group{border:1px solid #e4e8ee;border-radius:16px;padding:1.25rem;background:#fff}.workflow-link-group h3{font-size:1rem;margin:0 0 .75rem}.workflow-link-group>div{display:grid;gap:.5rem}.workflow-link-group a{display:grid;text-decoration:none;color:inherit;background:#f7f9fb;border-radius:10px;padding:.75rem}.workflow-link-group a span{font-size:.83rem;color:#64748b;margin-top:.2rem}.pagination-nav{margin-top:2rem}.pagination-links{display:flex;justify-content:center;align-items:center;gap:1rem}.pagination-links a{text-decoration:none}.empty-state{text-align:center;padding:4rem 1.5rem;background:#f7f9fb;border-radius:18px}.empty-state p{color:#64748b}
@media(max-width:900px){.solution-grid,.workflow-documents,.workflow-link-groups,.jurisdiction-grid{grid-template-columns:1fr}.scope-panel{grid-template-columns:1fr}.solution-card-foot .text-link{margin-left:0}.workflow-step{grid-template-columns:38px minmax(0,1fr)}.workflow-number{width:34px;height:34px}}
.template-solution-context,.jurisdiction-solutions{margin-top:3rem}.solution-context-links{display:flex;flex-wrap:wrap;gap:.65rem}.solution-context-links a{display:inline-flex;gap:.5rem;align-items:center;padding:.7rem 1rem;border:1px solid #e4e8ee;border-radius:999px;background:#fff;text-decoration:none;color:inherit}.jurisdiction-solutions{margin-bottom:3rem}

/* Phase 3 quality/trust */
.product-trust-strip{display:flex;flex-wrap:wrap;gap:.55rem;margin:.8rem 0 1rem}.product-trust-strip>span,.product-trust-strip>a{display:inline-flex;align-items:center;gap:.25rem;padding:.45rem .7rem;border:1px solid var(--border,#dfe3e8);border-radius:999px;background:#fff;color:inherit;text-decoration:none;font-size:.9rem}.professional-review-section{margin-top:3.5rem}.trust-public-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:1rem}.trust-public-card{display:flex;gap:1rem;padding:1.15rem;border:1px solid var(--border,#dfe3e8);border-radius:1rem;background:#fff}.trust-public-card p{margin:.25rem 0}.trust-public-card small{color:#69707a}.trust-score{font-size:1.6rem;font-weight:800;white-space:nowrap}.trust-score span{font-size:.85rem;font-weight:600;color:#69707a}.trust-check{display:grid;place-items:center;width:2.3rem;height:2.3rem;border-radius:50%;background:#eaf7ef;font-weight:800;flex:0 0 auto}.trust-disclaimer{margin-top:1rem;color:#69707a;font-size:.85rem}

/* Phase 4: discovery facets, versioning and My BizzLibrary */
.advanced-search-panel{margin:-1.2rem 0 2rem;padding:1.2rem;border:1px solid var(--line);border-radius:var(--radius-lg);background:#fff;box-shadow:var(--shadow-sm)}
.filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.9rem}.filter-search-wide{grid-column:span 2}.filter-field{min-width:0}.filter-field label{display:block;margin-bottom:.35rem;color:var(--ink-2);font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.045em}.filter-field input,.filter-field select,.workspace-form input,.workspace-form select,.workspace-inline-form input,.workspace-inline-form select{width:100%;min-height:44px;border:1px solid var(--line-strong);border-radius:.7rem;background:#fff;color:var(--ink);padding:.65rem .75rem}.filter-field input:focus,.filter-field select:focus,.workspace-form input:focus,.workspace-form select:focus,.workspace-inline-form input:focus,.workspace-inline-form select:focus{outline:0;border-color:#91a6ff;box-shadow:0 0 0 4px rgba(34,81,255,.08)}
.advanced-filters{margin-top:.9rem;border-top:1px solid var(--line);padding-top:.8rem}.advanced-filters summary{cursor:pointer;font-weight:750;color:var(--ink-2);min-height:40px;display:flex;align-items:center}.mt-filter{margin-top:.8rem}.search-panel-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.7rem;margin-top:1rem}.filter-check{display:inline-flex;align-items:center;gap:.45rem;font-size:.9rem;color:var(--ink-2)}.filter-check input{width:17px;height:17px}.search-discover-link{margin-left:auto;font-weight:700;text-decoration:none}
.template-quality-badge{position:absolute;right:.7rem;top:.7rem;z-index:2;padding:.32rem .5rem;border-radius:999px;background:rgba(11,18,32,.9);color:#fff;font-size:.73rem;font-weight:850;box-shadow:var(--shadow-sm)}.template-card-context{display:flex;flex-wrap:wrap;gap:.35rem;margin:.85rem 0 0}.template-card-context a{display:inline-flex;max-width:100%;padding:.28rem .5rem;border:1px solid #dfe5ef;border-radius:999px;background:#f8fafc;color:var(--ink-2);font-size:.72rem;font-weight:700;text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.template-card-quality{margin-left:auto;color:#43516a;font-size:.76rem;font-weight:750}.template-card-foot{gap:.55rem}.template-card-open{margin-left:.15rem}
.discovery-directory{padding-top:2rem}.discovery-group{margin-bottom:3rem}.discovery-group>h2{font-size:clamp(1.45rem,2.5vw,2rem);margin:0 0 1rem}.topic-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.9rem}.topic-card{display:flex;min-width:0;min-height:155px;flex-direction:column;gap:.55rem;padding:1.1rem;border:1px solid var(--line);border-radius:var(--radius);background:#fff;color:var(--ink);text-decoration:none;box-shadow:var(--shadow-sm);transition:transform .16s,box-shadow .16s,border-color .16s}.topic-card:hover{transform:translateY(-2px);border-color:#bdc9e8;box-shadow:var(--shadow-md);color:var(--ink)}.topic-card strong{font-size:1.05rem}.topic-card span{display:-webkit-box;overflow:hidden;color:var(--muted);font-size:.88rem;line-height:1.5;-webkit-line-clamp:3;-webkit-box-orient:vertical}.topic-card small{margin-top:auto;color:var(--brand-2);font-weight:750}.editorial-body{max-width:900px;margin:0 0 2rem;font-size:1.01rem;line-height:1.75}.editorial-body h2,.editorial-body h3{margin-top:1.8em}
.my-workspace{padding-top:1.5rem;padding-bottom:4rem}.my-nav{display:flex;gap:.25rem;overflow-x:auto;border-bottom:1px solid var(--line);margin-bottom:1.5rem;padding-bottom:.4rem}.my-nav a{flex:0 0 auto;padding:.6rem .75rem;border-radius:.65rem;color:var(--ink-2);font-size:.9rem;font-weight:750;text-decoration:none}.my-nav a:hover{background:var(--surface-2);color:var(--ink)}.my-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.9rem;margin-bottom:1.5rem}.my-stat-grid a{display:flex;min-height:125px;flex-direction:column;justify-content:center;padding:1.1rem;border:1px solid var(--line);border-radius:var(--radius);background:#fff;color:var(--ink);text-decoration:none;box-shadow:var(--shadow-sm)}.my-stat-grid strong{font-size:clamp(1.25rem,2vw,1.75rem);line-height:1.15;overflow-wrap:anywhere}.my-stat-grid span{margin-top:.35rem;color:var(--muted);font-size:.84rem}.my-panel,.workspace-form{margin-top:1.2rem;padding:1.35rem;border:1px solid var(--line);border-radius:var(--radius-lg);background:#fff;box-shadow:var(--shadow-sm)}.my-panel .archive-toolbar,.workspace-form .archive-toolbar{margin-bottom:1rem}.archive-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.archive-toolbar h2{margin:0}.archive-toolbar p{margin:.25rem 0 0;color:var(--muted)}.my-template-list,.saved-list{display:grid;gap:.75rem}.owned-template,.saved-item{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem;border:1px solid var(--line);border-radius:var(--radius);background:#fff}.owned-template h3,.saved-item h2{margin:.2rem 0}.owned-template p,.saved-item p{margin:.25rem 0;color:var(--muted);font-size:.9rem}.owned-template-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:.55rem}.quality-pill,.update-badge,.current-badge,.workspace-role{display:inline-flex;align-items:center;padding:.27rem .5rem;border-radius:999px;font-size:.72rem;font-weight:800}.quality-pill{background:#eef2ff;color:#3448a8}.update-badge{background:var(--warning-soft);color:#7b4600}.current-badge{background:var(--accent-soft);color:#08623f}.workspace-role{background:#eef2f6;color:#44546b}.version-timeline{display:grid;gap:1rem;margin-top:1.25rem}.version-card{padding:1.25rem;border:1px solid var(--line);border-radius:var(--radius-lg);background:#fff}.version-card.current{border-color:#a8dbc8;box-shadow:0 0 0 3px rgba(23,166,115,.06)}.version-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.version-card h2{margin:0}.version-card header p{margin:.2rem 0;color:var(--muted)}.release-notes{margin:.9rem 0;line-height:1.65}.version-files{display:grid;gap:.55rem;margin-top:.9rem}.version-files form{margin:0}.version-file{width:100%;display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.8rem 1rem;border:1px solid var(--line);border-radius:.75rem;background:var(--surface-2);color:var(--ink);text-align:left;cursor:pointer}.version-file:hover{border-color:#b6c3e8;background:var(--brand-soft)}.version-file span:first-child{display:grid}.version-file small{color:var(--muted)}
.workspace-form section+section{margin-top:1.7rem;padding-top:1.5rem;border-top:1px solid var(--line)}.workspace-form h2,.workspace-section h2{margin:0}.workspace-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.9rem;margin-top:1rem}.workspace-grid label{display:grid;align-content:start;gap:.35rem;color:var(--ink-2);font-size:.82rem;font-weight:700}.workspace-grid .wide{grid-column:1/-1}.check-label{display:flex!important;align-items:center!important;grid-template-columns:auto 1fr!important;gap:.5rem!important;min-height:44px}.check-label input{width:18px!important;min-height:18px!important}.workspace-notice{margin:1rem 0;padding:.9rem 1rem;border:1px solid #dce3ef;border-radius:.8rem;background:#f7f9fc;color:var(--ink-2)}.workspace-section{margin-top:1.2rem}.workspace-people,.workspace-members{display:grid;gap:.6rem}.workspace-person,.workspace-member{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.85rem;border:1px solid var(--line);border-radius:.75rem;background:#fff}.workspace-person>div:first-child,.workspace-member>div:first-child{display:grid;gap:.15rem}.workspace-person span,.workspace-person small,.workspace-member small{color:var(--muted)}.person-badges{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.3rem}.person-badges span{padding:.2rem .4rem;border-radius:999px;background:var(--surface-3);color:var(--ink-2);font-size:.68rem;font-weight:750}.workspace-inline-form{margin-top:1rem;padding-top:1rem;border-top:1px solid var(--line)}.workspace-inline-form h3{margin:0}.workspace-member-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:.45rem}.workspace-member-actions form{display:flex;align-items:center;gap:.4rem;margin:0}.workspace-member-actions select{min-height:36px;padding:.4rem .55rem;border:1px solid var(--line-strong);border-radius:.6rem;background:#fff}.back-link{display:inline-flex;margin:.25rem 0 1rem;text-decoration:none;font-weight:700}
@media(max-width:980px){.filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-search-wide{grid-column:1/-1}.topic-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.my-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.filter-grid,.workspace-grid,.topic-card-grid,.my-stat-grid{grid-template-columns:1fr}.filter-search-wide,.workspace-grid .wide{grid-column:auto}.search-discover-link{width:100%;margin-left:0}.owned-template,.saved-item,.workspace-person,.workspace-member,.version-card header{align-items:flex-start;flex-direction:column}.owned-template-actions,.workspace-member-actions{justify-content:flex-start}.workspace-member-actions form{flex-wrap:wrap}.my-panel,.workspace-form{padding:1rem}.template-card-quality{margin-left:0}.archive-toolbar{display:grid}}

/* Phase 4: private company branding */
.company-logo-row{display:flex;align-items:center;gap:1.25rem;flex-wrap:wrap;margin:1rem 0}.company-logo-preview{width:180px;min-height:96px;display:flex;align-items:center;justify-content:center;padding:1rem;border:1px solid var(--bs-border-color,#dee2e6);border-radius:14px;background:#fff}.company-logo-preview img{display:block;max-width:100%;max-height:90px;object-fit:contain}.company-branding-panel input[type=file]{display:block;margin-top:.45rem;max-width:420px}


/* Baseline UX corrections — component-level form controls, stable cards and development checkout. */
.header-search input:not([type=checkbox]):not([type=radio]):not([type=hidden]){
  width:100%;height:42px;min-height:0;border:0;border-radius:0;padding:0;background:transparent;box-shadow:none;color:var(--ink);outline:0;
}
.header-search input:not([type=checkbox]):not([type=radio]):not([type=hidden]):focus{
  border:0;box-shadow:none;background:transparent;
}
.hero-search{gap:.55rem}
.hero-search input:not([type=checkbox]):not([type=radio]):not([type=hidden]){
  height:54px;min-height:54px;border:0;border-radius:.7rem;padding:0 .95rem;background:transparent;box-shadow:none;color:var(--ink);outline:0;
}
.hero-search input:not([type=checkbox]):not([type=radio]):not([type=hidden]):focus{
  border:0;box-shadow:none;background:transparent;
}

.template-grid{align-items:stretch}
.template-card{height:100%}
.template-card-kicker{justify-content:flex-start;flex-wrap:wrap;min-height:1.25rem;gap:.35rem .65rem}
.template-card-kicker span+span::before{content:"·";margin-right:.65rem;color:var(--muted-2)}
.template-card h2,.template-card h3{min-height:2.8rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.template-card-summary{min-height:3.92rem;margin-bottom:.75rem}
.template-card-signals{min-height:1.8rem;display:flex;align-items:flex-start;flex-wrap:wrap;gap:.35rem}
.template-card-signals .reviewed-signal{display:inline-flex;align-items:center;min-height:24px;padding:.2rem .45rem;border-radius:999px;background:var(--accent-soft);color:#08623f;font-size:.7rem;font-weight:800;line-height:1.2}
.template-card-context{min-height:3.55rem;max-height:3.55rem;margin:.35rem 0 .8rem;align-content:flex-start;overflow:hidden}
.template-card-foot{align-items:center}
.template-card-foot-copy{min-width:0;display:grid;gap:.15rem}
.template-card-quality{margin-left:0;white-space:normal}
.template-card-open{flex:0 0 34px}

/* Keep document-structure cards aligned while making the extracted heading hierarchy visually explicit. */
.semantic-outline li{position:relative;overflow:hidden;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease}
.semantic-outline li:hover{border-color:#c9d3e7;box-shadow:0 5px 16px rgba(31,45,79,.06)}
.semantic-level-1,.semantic-level-2,.semantic-level-3,.semantic-level-4,.semantic-level-5,.semantic-level-6{margin-left:0}

/* Main document sections: strongest typography and filled number marker. */
.semantic-level-1{background:#fff;border-color:#d9e0ec}
.semantic-level-1 .semantic-number{background:var(--brand);color:#fff;box-shadow:0 4px 10px rgba(34,81,255,.16)}
.semantic-level-1 strong{font-size:.94rem;font-weight:850}

/* Subsections: same outer card width, but an internal tree connector and outlined marker make nesting obvious. */
.semantic-level-2{background:linear-gradient(90deg,#f8faff 0%,#fff 58%);border-color:#dde4f1}
.semantic-level-2 .semantic-number{background:#fff;color:var(--brand-2);border:1px solid #bfcbed;box-shadow:none}
.semantic-level-2>div{position:relative;padding-left:1.05rem}
.semantic-level-2>div::before{content:"";position:absolute;left:.05rem;top:.72rem;width:.58rem;height:.58rem;border-left:2px solid #afbee6;border-bottom:2px solid #afbee6;border-bottom-left-radius:.28rem}
.semantic-level-2 strong{font-weight:760;color:#283755}

/* Deeper outline levels: a quieter marker plus a longer connector communicates detail without narrowing the row. */
.semantic-level-3,.semantic-level-4,.semantic-level-5,.semantic-level-6{background:#fafbfe;border-color:#e4e8f1}
.semantic-level-3 .semantic-number,.semantic-level-4 .semantic-number,.semantic-level-5 .semantic-number,.semantic-level-6 .semantic-number{background:#f1f4fb;color:#5b6880;border:1px solid #d7deeb;box-shadow:none}
.semantic-level-3>div,.semantic-level-4>div,.semantic-level-5>div,.semantic-level-6>div{position:relative;padding-left:1.7rem}
.semantic-level-3>div::before,.semantic-level-4>div::before,.semantic-level-5>div::before,.semantic-level-6>div::before{content:"";position:absolute;left:.18rem;top:.78rem;width:1rem;border-top:2px solid #c5cedf}
.semantic-level-3>div::after,.semantic-level-4>div::after,.semantic-level-5>div::after,.semantic-level-6>div::after{content:"";position:absolute;left:1.05rem;top:.6rem;width:.38rem;height:.38rem;border-radius:50%;background:#9aa8c1}
.semantic-level-3 strong,.semantic-level-4 strong,.semantic-level-5 strong,.semantic-level-6 strong{font-weight:690;color:#44516a}

@media(max-width:700px){
  .semantic-level-2>div{padding-left:.9rem}
  .semantic-level-3>div,.semantic-level-4>div,.semantic-level-5>div,.semantic-level-6>div{padding-left:1.3rem}
}

.payment-provider-options{display:grid;gap:.7rem;margin-top:.8rem}
.payment-provider-option{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.8rem;align-items:flex-start;padding:1rem;border:1px solid var(--line-strong);border-radius:.85rem;background:#fff;cursor:pointer;transition:border-color .18s,box-shadow .18s,background .18s}
.payment-provider-option:hover{border-color:#aebcff;background:#fbfcff}
.payment-provider-option:has(input:checked){border-color:#8fa5ff;box-shadow:0 0 0 3px rgba(34,81,255,.07);background:var(--brand-soft)}
.payment-provider-option input{width:18px;height:18px;margin-top:.15rem;accent-color:var(--brand)}
.payment-provider-option span{display:grid;gap:.2rem;min-width:0}
.payment-provider-option strong{color:var(--ink)}
.payment-provider-option small{color:var(--muted);line-height:1.45}
.development-provider:has(input:checked){border-color:#7bc8aa;background:#effaf5;box-shadow:0 0 0 3px rgba(23,166,115,.07)}
.development-payment-notice{margin-top:.8rem;padding:.75rem .85rem;border:1px solid #bfe9d9;border-radius:.75rem;background:#f2fbf7;color:#176144;font-size:.82rem;line-height:1.5}
#molliePaymentPanel{margin-top:1rem;padding-top:.9rem;border-top:1px solid var(--line)}

@media(max-width:640px){
  .hero-search{gap:.6rem}
  .template-card-context{min-height:0;max-height:none}
}


/* Baseline UX: entire template card is the primary link while contextual links remain interactive. */
.template-card-main-link{position:absolute;inset:0;z-index:1;border-radius:inherit;text-decoration:none}
.template-card-main-link:focus-visible{outline:3px solid var(--brand);outline-offset:3px}
.template-card-media,.template-card-body{position:relative}
.template-card-context a,.template-card form,.template-card button,.template-card input,.template-card select{position:relative;z-index:2}
.template-card{cursor:pointer}
.template-card-context a{cursor:pointer}
