/* CineLove catalog geometry, paired with scoped original module styles. */
/* Appending cards must move the footer down, rather than anchor the viewport to
   it and trigger every remaining batch. The footer sits outside .tc-page. */
body:has(.tc-page){overflow-anchor:none}
html[data-site-theme=atelier] :is(.tc-page,.tc-menu,.tc-preview){--cl-font-sans:'CineLove SN Pro',system-ui,-apple-system,'Segoe UI',sans-serif;font-family:var(--cl-font-sans);color:var(--cl-text-primary);font-size:14px;line-height:20px}
html[data-site-theme=atelier] .tc-page{box-sizing:border-box;padding:64px 0 0;margin:0;min-height:100vh;background:#fff;color:#1d1d1f}
.tc-page *,.tc-menu *,.tc-preview *{box-sizing:border-box}
.tc-page :is(h1,h2,h3,p){margin:0}
html[data-site-theme=atelier] .tc-page .marketing_heroTitle__RdcWT{font-family:var(--cl-font-sans);font-weight:600}
html[data-site-theme=atelier] .tc-page .tc-collection{padding-bottom:72px}
.tc-page .Navigation_crumbLink__dniA0>svg{margin-right:4px;width:13.5px;height:13.5px;flex:none}
.tc-page .Navigation_crumbSep__eTHWP{width:14px;height:14px;flex:none}
.tc-results{margin:16px 0 32px}
.tc-results-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.tc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px;row-gap:24px;margin:0 4px}
.tc-card{min-width:0;margin:0}
.tc-card .infrastructure{width:100%}
.tc-card-mask{position:absolute;inset:0;overflow:hidden;border-radius:5px}
.tc-page .badge-icon{width:12px;height:12px}
.tc-page .previewTemplate_cardOverlay__I3xMy .Button_button__o7vXM{z-index:1}
.tc-pagination{height:8px;position:relative}
.tc-pagination button{position:absolute;top:12px;left:50%;transform:translateX(-50%);border:0;background:transparent;color:var(--cl-text-secondary);font:inherit;cursor:pointer;padding:7px 16px}
.tc-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
.tc-empty{text-align:center;padding:64px 16px;border:1px dashed var(--cl-border-default);border-radius:16px}
.tc-empty h2{font:600 22px/28px var(--cl-font-sans)}
.tc-empty p{margin:12px 0 24px;color:var(--cl-text-secondary)}
html[data-site-theme=atelier] .tc-menu{position:fixed;z-index:2200;padding:6px;background:#fff;border:1px solid var(--cl-border-default);border-radius:var(--cl-radius-md);box-shadow:var(--cl-shadow-lg);max-height:min(70vh,520px);overflow:auto;animation:tc-menu-enter var(--cl-motion-fast) var(--cl-motion-ease)}
.tc-menu>button{display:flex;align-items:center;gap:10px;width:100%;min-height:38px;padding:9px 10px;border:0;border-radius:9px;background:transparent;color:#1d1d1f;text-align:left;font:500 14px/20px var(--cl-font-sans);cursor:pointer}
.tc-menu>button:hover,.tc-menu>button:focus-visible{background:#f5f5f7;outline:none}
.tc-menu-check{width:16px;height:16px;display:inline-flex;flex:none;color:#6e6e73}
.tc-menu-check svg{width:16px;height:16px}
@keyframes tc-menu-enter{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:none}}
html[data-site-theme=atelier] .tc-preview{width:min(880px,calc(100vw - 48px));max-width:none;max-height:calc(100dvh - 48px);height:fit-content;margin:auto;padding:24px;border:0;border-radius:24px;background:#fff;color:#1d1d1f;overflow:auto;box-shadow:0 24px 80px #0003}
.tc-preview[open]{display:flex;flex-direction:column;gap:24px}
.tc-preview::backdrop{background:#0006;backdrop-filter:blur(4px)}
.tc-preview-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.tc-preview-heading h2{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0;font:600 20px/22px var(--cl-font-sans)}
.tc-preview-heading small{padding:3px 9px;border-radius:999px;background:#f5f5f7;color:#515158;font-size:11.5px;font-weight:600;line-height:14px}
.tc-preview-heading>button{display:grid;place-items:center;width:20px;height:20px;flex:none;padding:0;border:0;background:transparent;color:#6e6e73;cursor:pointer}
.tc-preview-heading>button svg{width:18px;height:18px}
.tc-preview iframe{width:100%;height:100%}
.tc-preview-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px}
html[data-site-theme=atelier] .tc-preview .tc-use-template{background:#1d1d1f;color:#fff;border-color:#1d1d1f}
html[data-site-theme=atelier] .tc-preview .tc-use-template:hover{background:#333}
@media(min-width:640px){.tc-grid{margin-inline:40px}}
@media(min-width:768px){.tc-grid{grid-template-columns:repeat(5,minmax(0,1fr));margin-inline:0}}
@media(min-width:1024px){.tc-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:767px){
 html[data-site-theme=atelier] .tc-preview{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:16px;border-radius:20px}
 .tc-preview[open]{gap:16px}
 .tc-preview-heading h2{font-size:17px;line-height:22px}
 .tc-preview-heading small{font-size:10px;padding:2px 7px}
 .tc-preview-footer{gap:8px}
 .tc-preview-footer>a{flex:1;min-width:0}
}
@media(prefers-reduced-motion:reduce){.tc-menu{animation:none!important}.tc-page .invitation:hover{transform:none!important}.tc-page .invitation:hover img{transform:none!important;transition:none!important}}

html[data-site-theme=atelier] .tc-support{position:fixed;right:24px;bottom:40px;z-index:999;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:999px;background:var(--vm-accent);color:#fff;cursor:pointer;transition:transform .3s,box-shadow .3s}
.tc-support svg{width:20px;height:20px}
.tc-support:hover{transform:scale(1.1);box-shadow:0 16px 24px #0003}

/* Exact dialog section padding and bottom-sheet behavior from Overlay module. */
html[data-site-theme=atelier] .tc-preview{padding:0;border-radius:var(--cl-radius-card-lg);box-shadow:var(--cl-shadow-xl)}
.tc-preview[open]{gap:0;animation:tc-modal-in .34s cubic-bezier(.2,.8,.2,1) backwards}
.tc-preview::backdrop{background:var(--cl-bg-overlay,#0006);backdrop-filter:blur(3px);animation:tc-backdrop-in .26s ease-out backwards}
.tc-preview-heading{gap:14px;padding:22px 22px 0 24px;flex-shrink:0}
.tc-preview-heading h2{font-size:19px;font-weight:700;line-height:28px;letter-spacing:-.01em;padding-top:2px}
.tc-preview-heading>button{margin:-4px -6px 0 0;width:32px;height:32px}
.tc-preview>.previewTemplate_layout__g43Lk{padding:18px 24px 4px;overflow-y:auto;min-height:0}
.tc-preview-footer{padding:18px 24px 22px;flex-shrink:0}
.tc-preview-handle{display:none}
@keyframes tc-modal-in{from{opacity:0;transform:translateY(12px) scale(.97)}}
@keyframes tc-backdrop-in{from{opacity:0}}
@keyframes tc-sheet-in{from{transform:translateY(100%)}}
@media(max-width:767px){
 html[data-site-theme=atelier] .tc-preview{width:100%;max-height:calc(100dvh - max(16px,env(safe-area-inset-top,0px)));inset:auto 0 0;margin:0;border-radius:var(--cl-radius-card-lg) var(--cl-radius-card-lg) 0 0;padding:0 0 env(safe-area-inset-bottom,0px);overflow:hidden}
 .tc-preview[open]{gap:0;animation:tc-sheet-in .38s cubic-bezier(.32,.72,0,1) backwards}
 .tc-preview::backdrop{backdrop-filter:none}
 .tc-preview-handle{display:flex;justify-content:center;flex-shrink:0;padding:12px 0 8px;touch-action:none;cursor:grab}
 .tc-preview-handle>span{width:40px;height:5px;border-radius:999px;background:var(--cl-neutral-300)}
 .tc-preview-heading{padding:8px 20px 12px}
 .tc-preview>.previewTemplate_layout__g43Lk{padding:12px 20px 20px;overscroll-behavior:contain}
 .tc-preview-footer{padding:16px 20px;border-top:1px solid var(--cl-border-subtle);flex-wrap:wrap}
 .tc-preview-footer>a{flex:1 1 120px;width:auto;min-width:max-content}
}
@media(prefers-reduced-motion:reduce){.tc-preview[open],.tc-preview::backdrop{animation:none}}

.tc-preview[data-closing=true]{animation:tc-modal-out .22s ease-in both!important}
.tc-preview[data-closing=true]::backdrop{animation:none;opacity:0;transition:opacity .22s ease-in}
@keyframes tc-modal-out{to{opacity:0;transform:translateY(12px) scale(.97)}}
@keyframes tc-sheet-out{from{transform:translateY(var(--sheet-drag,0px))}to{transform:translateY(100%)}}
@media(max-width:767px){.tc-preview[data-closing=true]{animation:tc-sheet-out .28s cubic-bezier(.4,0,1,1) both!important}.tc-preview[data-closing=true]::backdrop{transition-duration:.28s}}
@media(prefers-reduced-motion:reduce){.tc-preview[data-closing=true]{animation:none!important}}
