.themes-page{--brand:#09CE66;--ink:#070E1E;--muted:#5B606A;--line:#E2E8F0}
.themes-page{padding-bottom:0}
.themes-wrap{width:100%;max-width:1240px;margin:0 auto;padding:0 28px}
.themes-page h1,.themes-page h2{font-weight:500;letter-spacing:-.025em;line-height:1.05}
.themes-page h1,.themes-help h2{font-size:clamp(40px,5vw,68px)}
.themes-page h1 em,.themes-page h2 em{color:var(--brand);font-style:italic}
.themes-intro{padding-top:112px}
.themes-eyebrow{margin-bottom:18px;color:var(--muted);font-size:14px;font-weight:600;letter-spacing:.1em;text-transform:uppercase}
.themes-lede{max-width:880px;margin-top:28px;color:var(--muted);font-size:clamp(24px,2.8vw,36px);line-height:1.45;text-wrap:pretty;-webkit-mask-image:linear-gradient(to top,rgba(0,0,0,.08),#000 85%);mask-image:linear-gradient(to top,rgba(0,0,0,.08),#000 85%)}
.themes-concept-note{margin-top:24px;color:var(--muted);font-size:17px}
.themes-browser{margin-top:64px}
.themes-page :focus-visible{outline:2px solid #087443;outline-offset:5px;border-radius:4px}
.theme-controls{display:flex;align-items:flex-end;gap:24px;margin-bottom:28px}
.theme-controls[hidden],.theme-filter-list[hidden],.theme-empty[hidden],.theme-card[hidden]{display:none}
.theme-search{flex:1;max-width:670px}
.theme-sort{margin-left:auto;min-width:190px}
.theme-controls label{display:block;margin-bottom:8px;font-size:16px;font-weight:500}
.theme-controls input,.theme-controls select{width:100%;min-height:52px;padding:12px 16px;border:1px solid #C7D0C9;border-radius:12px;background:#fff;color:var(--ink);font:400 18px/1.3 Afacad,system-ui,sans-serif}
.theme-controls input::placeholder{color:#69736C;opacity:1}
.theme-filter-list{display:flex;flex-wrap:wrap;gap:10px 12px;padding:0 0 24px;border-bottom:1px solid var(--line)}
.theme-filter-list button{min-height:44px;padding:10px 16px;border:1px solid #DCE3DC;border-radius:999px;background:#fff;color:var(--ink);font:500 17px/1.3 Afacad,system-ui,sans-serif;cursor:pointer}
.theme-filter-list button[aria-pressed="true"]{border-color:var(--ink);background:var(--ink);color:#fff}
.theme-filter-list button:hover{border-color:#087443}
.theme-result-count{margin:24px 0;color:var(--muted);font-size:16px}
.theme-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px 28px}
.theme-card{position:relative;isolation:isolate;min-width:0}
.theme-card::before{content:"";position:absolute;z-index:-1;inset:5px 0 -5px;border:1px solid #E0E4DC;border-radius:20px;background:#F6F7F1;transform:rotate(-.6deg);pointer-events:none}
.theme-thumbnail{position:relative;overflow:hidden;aspect-ratio:16/10;border:1px solid #DCE2DA;border-bottom:0;border-radius:18px 18px 0 0;background:var(--preview-bg,#F1F3ED)}
.theme-thumbnail-canvas{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.theme-thumbnail iframe{display:block;width:1440px;height:900px;max-width:none;border:0;transform:scale(.25);transform-origin:top left;pointer-events:none}
.theme-thumbnail-link{position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:flex-end;padding:16px;text-decoration:none}
.theme-thumbnail-link>span{display:inline-flex;align-items:center;gap:14px;padding:9px 14px;border:1px solid rgba(7,14,30,.15);border-radius:999px;background:#fff;color:var(--ink);box-shadow:0 4px 18px rgba(7,14,30,.1);font-size:15px;font-weight:500}
.theme-thumbnail-link:hover>span{background:var(--brand)}
.theme-card-copy{padding:22px 22px 24px;border:1px solid #DCE2DA;border-top:0;border-radius:0 0 18px 18px;background:#fff}
.theme-card-title{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px}
.theme-card-title h2{font-size:30px}
.theme-card-title h2 a{text-decoration:none;text-underline-offset:5px}
.theme-card-title h2 a:hover{text-decoration:underline;text-decoration-color:var(--brand)}
.theme-card-title>span{color:var(--muted);font-size:13px}
.theme-card-category{margin-top:12px;color:var(--muted);font-size:15px;line-height:1.4}
.theme-card-category>span{padding:0 5px}
.theme-card-copy>p:not(.theme-card-category){margin-top:14px;color:var(--muted);font-size:19px;line-height:1.4}
.theme-card-palette{display:flex;gap:8px;margin-top:18px}
.theme-card-palette>span{width:17px;height:17px;border:1px solid rgba(7,14,30,.2);border-radius:50%}
.theme-empty{padding:64px 24px;border:1px dashed #CCD6CE;border-radius:20px;text-align:center}
.theme-empty h2{font-size:36px}
.theme-empty p{margin-top:18px;color:var(--muted);font-size:21px}
.theme-empty button{margin-top:24px;padding:10px 0;border:0;background:none;color:var(--ink);font:600 20px Afacad,system-ui,sans-serif;text-decoration:underline;text-underline-offset:6px;cursor:pointer}
.themes-help{position:relative;isolation:isolate;overflow:hidden;margin-top:112px;padding:clamp(90px,9vw,140px) 0;background:#FFDC5E}
.themes-help>.themes-wrap{position:relative;z-index:1}
.themes-help .themes-eyebrow,.themes-help h2 em{color:var(--ink)}
.themes-help p:not(.themes-eyebrow){max-width:900px;margin-top:28px;font-size:clamp(24px,2.8vw,36px);line-height:1.45;-webkit-mask-image:linear-gradient(to top,rgba(0,0,0,.08),#000 85%);mask-image:linear-gradient(to top,rgba(0,0,0,.08),#000 85%)}
.themes-help a{display:inline-flex;align-items:center;gap:12px;margin-top:32px;color:var(--ink);font-size:20px;font-weight:600;text-decoration:underline;text-underline-offset:6px}
.theme-tear{position:absolute;left:0;width:100%;height:clamp(28px,4.5vw,64px);background:url('../images/paper-tear-sm.webp') repeat-x center top/auto 100%;z-index:2;pointer-events:none}
.theme-tear-top{top:-2px}
.theme-tear-bottom{bottom:-2px;transform:scaleY(-1)}
.theme-skip-link{position:absolute;z-index:100;top:8px;left:8px;padding:10px 16px;border-radius:8px;background:#fff;color:#070E1E;transform:translateY(-150%)}
.theme-skip-link:focus{transform:none;outline:2px solid #09CE66}
@media(max-width:1050px){.theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.themes-intro{padding-top:88px}.themes-browser{margin-top:48px}.themes-help{margin-top:80px}.theme-controls{gap:18px}.theme-sort{min-width:150px}.theme-filter-list{gap:8px}.theme-filter-list button{font-size:16px}}
@media(max-width:560px){.themes-wrap{padding-left:24px;padding-right:24px}.themes-page h1,.themes-help h2{font-size:clamp(38px,9vw,48px)}.themes-lede,.themes-help p:not(.themes-eyebrow){font-size:24px}.theme-controls{flex-direction:column;align-items:stretch}.theme-search{max-width:none}.theme-sort{margin-left:0}.theme-grid{grid-template-columns:minmax(0,1fr);gap:32px}.theme-card-copy{padding:24px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Dedicated theme details; the demo responds to the browser width. */
.theme-detail-page{padding-bottom:112px}
.theme-detail-heading{padding-top:112px}
.theme-back-link{display:inline-flex;align-items:center;gap:12px;margin-bottom:28px;color:var(--muted);font-size:18px;text-underline-offset:5px}
.theme-detail-heading .themes-eyebrow{margin-bottom:18px}
.theme-detail-lede{max-width:850px;margin-top:24px;color:var(--muted);font-size:clamp(24px,2.6vw,32px);line-height:1.45;text-wrap:pretty}
.theme-detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;grid-template-areas:"preview install";align-items:start;gap:32px;margin-top:48px}
.theme-detail-preview{grid-area:preview;min-width:0}
.theme-detail-preview-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:18px;padding:20px 24px;border:1px solid var(--line);border-radius:18px 18px 0 0;background:#F4F7F1}
.theme-detail-preview-heading h2{font-size:25px}
.theme-detail-preview-heading a{display:inline-flex;align-items:center;gap:10px;font-size:17px;font-weight:500;text-underline-offset:5px}
.theme-detail-frame{display:block;width:100%;height:720px;border:1px solid var(--line);border-top:0;border-radius:0 0 18px 18px;background:#fff}
.theme-detail-preview-hint{margin-top:16px;color:var(--muted);font-size:16px;line-height:1.4}
.theme-install-panel{grid-area:install;padding:28px 24px;border:1px solid #DCE4D9;border-radius:20px;background:#F8FAF4;scroll-margin-top:32px}
.theme-install-panel h2{font-size:34px}
.theme-install-panel>p:not(.themes-eyebrow):not(.theme-install-note):not(.theme-install-status){margin-top:18px;color:var(--muted);font-size:19px;line-height:1.45}
.theme-detail-facts{margin:24px 0 0}
.theme-detail-facts>div{padding:16px 0;border-top:1px solid #DCE4D9}
.theme-detail-facts dt{margin-bottom:6px;color:var(--muted);font-size:14px}
.theme-detail-facts dd{margin:0;font-size:18px;line-height:1.35}
.theme-detail-swatches{display:flex;gap:10px;margin-top:12px}
.theme-detail-swatches>span{width:22px;height:22px;border:1px solid rgba(7,14,30,.2);border-radius:50%}
.theme-install-panel .btn.primary{--ink-fill:var(--brand);--ink-line:var(--brand);--ink-text:var(--ink);justify-content:center;width:100%;min-height:58px;margin-top:28px;padding:16px 20px;border:0;background:var(--brand);color:var(--ink);font-size:21px;cursor:pointer}
.theme-install-panel .theme-install-button:disabled{opacity:.65;cursor:wait}
.theme-install-note{margin-top:18px;color:var(--muted);font-size:15px;line-height:1.4}
.theme-install-status:not(:empty){margin-top:18px;padding:14px;border:1px solid #A6D9BB;border-radius:10px;background:#E6F8ED;color:#07562F;font-size:16px;line-height:1.4}
.theme-install-status[data-state="error"]{border-color:#F0B5BC;background:#FFF0F2;color:#8C2234}
.theme-detail-more{display:inline-flex;align-items:center;gap:10px;margin-top:24px;font-size:17px;text-underline-offset:5px}
@media(max-width:980px){.theme-detail-layout{grid-template-columns:minmax(0,1fr) 280px;gap:24px}.theme-install-panel{padding:26px 22px}}
@media(max-width:760px){.theme-detail-page{padding-bottom:80px}.theme-detail-heading{padding-top:88px}.theme-detail-layout{grid-template-columns:minmax(0,1fr);grid-template-areas:"install" "preview";gap:36px;margin-top:36px}.theme-detail-frame{height:680px}.theme-install-panel .btn.primary{max-width:360px}}
@media(max-width:560px){.theme-detail-preview-heading{padding:20px}.theme-detail-preview-heading h2{font-size:23px}.theme-detail-frame{height:600px}.theme-detail-lede{font-size:24px}}
