/* Public dock has its own top-anchored layer, outside the scrolling public wrapper. */
html.classeto-public-page .public.cl-viewport-dock { display: none; }
html.classeto-public-page .public.cl-viewport-dock::before { content:none; display:none; }
.cl-picture { display:block; width:100%; height:100%; min-width:0; }
.cl-picture > img { display:block; width:100%; height:100%; object-fit:cover; }
picture.cl-upload-picture { width:auto; height:auto; }
picture.cl-upload-picture > img { width:auto; height:auto; max-width:100%; }
.public .site-article > .site-card-cover.site-post-hero > .cl-picture {
  position:absolute; top:0; right:0; bottom:0; left:0; width:100%; height:100%;
}
html { -webkit-text-size-adjust:100%; text-size-adjust:100%; }

@media(max-width:800px) {
  html.classeto-public-page { scroll-behavior:auto; }
  html.classeto-public-page .public { overflow:visible; }
  html.classeto-public-page .public::before { left:0; width:100%; max-width:540px; }
  html.classeto-public-page .public.cl-viewport-dock {
    position:fixed; top:var(--cl-viewport-top,0px); right:0; left:0; bottom:auto;
    width:100%; height:var(--cl-viewport-height,100%); min-height:0; max-height:none;
    margin:0; padding:0; display:flex; flex-direction:column; justify-content:flex-end;
    box-sizing:border-box; background:transparent !important; border:0;
    pointer-events:none; z-index:55; overflow:visible; transform:none; isolation:isolate;
  }
  html.classeto-public-page .public.cl-viewport-dock > .mobile-tabbar {
    position:relative; top:auto; right:auto; left:auto; bottom:auto;
    width:calc(100% - 30px); min-width:0; max-width:520px; height:68px;
    margin:0 auto 14px; margin-bottom:max(14px,env(safe-area-inset-bottom,0px));
    box-sizing:border-box; transform:none; translate:none; pointer-events:auto;
    flex:0 0 auto; direction:rtl; -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
    box-shadow:0 8px 24px rgba(0,0,0,.24);
  }
  html.classeto-public-page .public.cl-viewport-dock > .mobile-tabbar > a {
    flex:1 1 0; min-width:0; text-align:center; white-space:nowrap;
  }
  html.classeto-public-page .public-top {
    -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
    box-shadow:0 6px 22px rgba(0,0,0,.17);
  }
  html.classeto-public-page .public .public-hero .hero-image {
    box-shadow:0 0 0 5px color-mix(in srgb,var(--accent) 9%,transparent),0 12px 30px color-mix(in srgb,var(--accent) 10%,transparent);
  }
  html.classeto-public-page .public-body { padding-bottom:128px; }
  html.classeto-panel-page .field input,
  html.classeto-panel-page .field select,
  html.classeto-panel-page .field textarea,
  html.classeto-panel-page .cl-article-editor { font-size:16px; }
  @view-transition { navigation:none; }
}

/* Aspect-ratio replacement for older Safari; pseudo-element uses this box's own width. */
html.cl-no-aspect .public .site-card-cover { height:auto; }
html.cl-no-aspect .public .site-card-cover::before { content:""; display:block; padding-top:61.35%; }
html.cl-no-aspect .public .site-card-cover > img,
html.cl-no-aspect .public .site-card-cover > .cl-picture {
  position:absolute; top:0; right:0; bottom:0; left:0; width:100%; height:100%;
}
html.cl-no-aspect .public .site-article > .site-post-hero::before { padding-top:100%; }
@media(max-width:800px) {
  html.cl-no-aspect .public .site-media-card .site-card-cover::before { padding-top:54.65%; }
}
html.cl-legacy-css,html.cl-legacy-css body { min-width:0; max-width:100%; }
html.cl-legacy-css .public,html.cl-legacy-css .public-body,
html.cl-legacy-css .public-hero-text,html.cl-legacy-css .public-header-actions { min-width:0; }
html.cl-legacy-css .public-brand-name { word-wrap:break-word; }
html.cl-legacy-css .public.cl-viewport-dock { background:transparent !important; }
