.wme-word-template-browser{--wme-navy:#183a5e;--wme-purple:#183251;--wme-purple-dark:#183251;--wme-gold:#e2bb79;color:var(--wme-navy);margin:28px 0}
.wme-word-template-browser *{box-sizing:border-box}
.wme-word-template-browser [hidden]{display:none!important}
.wme-template-badges{display:flex;flex-wrap:wrap;gap:9px;margin-top:16px!important}
.wme-template-badges span{background:#f4f7fb;border:1px solid #c8d6e5;border-radius:999px;padding:7px 13px;font-size:.88rem;font-weight:700;color:#183251}
.wme-template-package{margin:18px 0 46px;padding-top:4px}
.wme-template-package-header{text-align:center;max-width:820px;margin:0 auto 20px}
.wme-template-package-header h1{color:#183251;margin:0 0 8px}
.wme-template-package-header p{margin:0 auto 12px;line-height:1.6}
.wme-template-package-header .wme-template-badges{justify-content:center}
body.wme-word-template-post h1.wp-block-post-title,body.wme-word-template-post .taxonomy-category.wp-block-post-terms,body.wme-word-template-post .taxonomy-category.wp-block-post-terms+.wp-block-spacer{display:none!important}
body.wme-word-template-post .entry-content{margin-block-start:0!important}
body.wme-word-template-post .wme-word-template-browser{margin-top:0}
body.wme-word-template-post .wme-template-package{margin-top:0;padding-top:0}
body.wme-word-template-post .wme-template-package-header{box-sizing:border-box;max-width:none;margin:0 0 28px;padding:clamp(24px,4vw,38px);border-radius:20px;background:linear-gradient(135deg,#183251,#2b5287);color:#fff;box-shadow:0 12px 26px #18325124;text-align:left}
body.wme-word-template-post .wme-template-package-header h1{margin:0 0 12px;color:#fff;font-size:clamp(1.8rem,4vw,2.6rem);line-height:1.15}
body.wme-word-template-post .wme-template-package-header p{margin:0 0 12px}
body.wme-word-template-post .wme-template-package-header .wme-template-eyebrow{margin-bottom:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
body.wme-word-template-post .wme-template-package-header .wme-template-eyebrow a{color:#fff4dc;text-decoration:underline;text-underline-offset:3px}
body.wme-word-template-post .wme-template-package-header .wme-template-badges{justify-content:flex-start;margin-top:16px!important}
body.wme-word-template-post .wme-template-package-header .wme-template-badges span{border-color:#ffffff52;background:#ffffff24;color:#fff}
.wme-template-browser-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;margin:18px 0}
.wme-template-browser-controls [role=group]{display:flex;gap:8px}
.wme-word-template-browser button{font:inherit;cursor:pointer;min-height:44px;padding:9px 15px;border:1px solid #b9cadc;border-radius:999px;background:#fff;color:#183a5e;font-weight:700}
.wme-word-template-browser button[aria-pressed=true]{background:#183251;color:#fff;border-color:#183251}
.wme-word-template-browser :focus-visible{outline:3px solid #ba7419;outline-offset:3px}
.wme-word-template-browser select{font:inherit;min-height:48px;max-width:100%;border:1px solid #b9cadc;border-radius:10px;padding:9px 12px;color:#183a5e;background:#fff}
.wme-word-template-browser .wme-ar-carousel{max-width:940px;margin:0 auto;overflow-anchor:none}
.wme-template-preview-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}.wme-template-preview-pair.is-single{grid-template-columns:minmax(0,480px);justify-content:center}
.wme-word-template-browser figure{margin:0}
.wme-word-template-browser .wme-ar-preview{max-width:440px;margin:0 auto;padding:10px;border:1px solid #dce5ee;border-radius:14px;background:#f3f5f8;overflow:hidden}
.wme-word-template-browser .wme-ar-preview img{display:block;width:100%;height:auto;aspect-ratio:1000/1414;object-fit:contain}
.wme-word-template-browser .wme-ar-caption{text-align:center;font-size:.9rem;line-height:1.5;min-height:3em;margin-top:10px}
.wme-template-slide{margin-bottom:20px}
.wme-template-paging{display:flex;align-items:center;justify-content:center;gap:12px}
.wme-template-paging p{font-size:.85rem;text-align:center;margin:0;flex:1}
.wme-template-dots{display:flex;flex-wrap:wrap;justify-content:center;gap:5px;margin:16px 0 28px}
.wme-template-dots button{width:44px;min-height:44px;padding:4px;font-size:.85rem}
.wme-word-template-browser .wme-ar-download{border:1px solid #dbe3ee;border-radius:18px;background:#f4f7fb;padding:clamp(18px,3vw,30px);margin-top:28px}
.wme-word-template-browser .wme-ar-download h3{margin-top:0;color:#183251}
.wme-word-template-browser .wme-template-download-choice__actions .wme-template-download-choice__submit{background:#183251;color:#fff;border-color:#183251}
@media(max-width:600px){.wme-template-preview-pair{grid-template-columns:1fr}.wme-template-paging{gap:6px}.wme-template-paging button{padding:8px 10px;font-size:.9rem}.wme-template-browser-controls{align-items:stretch}.wme-template-browser-controls select{max-width:70%}}
/* Related templates: tiles beside a single preview, or a row of four under paired previews. Quiet cards; the download form stays the main action. */
.wme-template-stage.has-related{display:grid;grid-template-columns:minmax(0,3fr) minmax(220px,2fr);gap:28px;align-items:start;max-width:1040px;margin:0 auto}
.wme-template-stage.has-related .wme-ar-carousel{max-width:none}
.wme-template-related{background:#f4f7fb;border:1px solid #dfe7f1;border-radius:14px;padding:16px;margin:18px 0}
.wme-template-related-heading{font-family:'League Spartan',sans-serif;font-weight:700;font-size:1.05rem;color:#183251;margin:0 0 12px;text-align:left}
.wme-template-related ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.wme-template-related li{margin:0}
.wme-template-related a{display:flex;flex-direction:column;height:100%;background:#fff;border:1px solid #dfe7f1;border-radius:10px;overflow:hidden;text-decoration:none;color:#183251;transition:border-color .15s,box-shadow .15s}
.wme-template-related a:hover,.wme-template-related a:focus-visible{border-color:#5f86b0;box-shadow:0 4px 14px rgba(24,50,81,.12)}
.wme-template-related img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.wme-template-related-name{font-weight:700;font-size:.9rem;line-height:1.25;padding:8px 10px 2px}
.wme-template-related-count{font-size:.78rem;color:#5b6b7f;padding:0 10px 10px}
.wme-template-stage.has-related-below .wme-template-related{max-width:940px;margin:0 auto 24px}
.wme-template-stage.has-related-below .wme-template-related ul{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:900px){.wme-template-stage.has-related{display:block}.wme-template-stage.has-related-below .wme-template-related ul{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Landscape templates (envelopes, storyboards, certificates): wide preview in its real shape, related tiles in a row of four below. */
.wme-template-stage.is-landscape .wme-template-preview-pair.is-single{grid-template-columns:minmax(0,900px)}
.wme-word-template-browser .wme-template-stage.is-landscape .wme-ar-preview{max-width:900px}
.wme-word-template-browser .wme-template-stage.is-landscape .wme-ar-preview img{aspect-ratio:auto}
.wme-template-stage.is-landscape .wme-ar-carousel{max-width:940px;margin-left:auto;margin-right:auto}
